Mercurial > libpst
annotate configure.ac @ 387:f03ee7e0ccc3
Remove files copied in by autotools
These files are cruft that should be copied in by autotools
instead of embedded in the version control repository.
author | Paul Wise <pabs3@bonedaddy.net> |
---|---|
date | Sat, 21 Dec 2019 21:25:45 +0800 |
parents | f1f9920cc7b1 |
children | 292ad0f71fd4 |
rev | line source |
---|---|
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
1 AC_PREREQ(2.60) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
2 AC_INIT(libpst,0.6.73,carl@five-ten-sg.com) |
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 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
24 libpst_version_info='5:15:1' |
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 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
58 |
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 # Check for solaris |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
62 AC_MSG_CHECKING([for Solaris]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
63 case "$host" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
64 *solaris*) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
65 os_solaris=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
66 ;; |
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 os_solaris=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
69 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
70 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
71 AC_MSG_RESULT($os_solaris) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
72 AM_CONDITIONAL(OS_SOLARIS, [test "$os_solaris" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
73 |
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 # Check for win32 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
76 AC_MSG_CHECKING([for Win32]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
77 case "$host" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
78 *-mingw*) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
79 os_win32=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
80 ;; |
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 os_win32=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
83 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
84 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
85 AC_MSG_RESULT($os_win32) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
86 AM_CONDITIONAL(OS_WIN32, [test "$os_win32" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
87 |
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 # Check for Win32 platform |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
90 AC_MSG_CHECKING([for Win32 platform in general]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
91 case "$host" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
92 *-cygwin*) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
93 platform_win32=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
94 ;; |
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 platform_win32=$os_win32 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
97 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
98 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
99 AC_MSG_RESULT($platform_win32) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
100 AM_CONDITIONAL(PLATFORM_WIN32, [test "$platform_win32" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
101 |
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 # Checks for programs. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
104 # 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
|
105 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
106 # 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
|
107 # --enable-dii |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
108 # --enable-dii=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
109 # --enable-dii=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
110 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
111 AC_MSG_CHECKING([whether we are enabling dii utility]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
112 AC_ARG_ENABLE(dii, |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
113 AC_HELP_STRING([--enable-dii], [enable dii utility]), |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
114 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
115 case "${enableval}" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
116 yes) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
117 no) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
118 *) AC_MSG_ERROR(bad value ${enableval} for --enable-dii) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
119 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
120 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
121 # default if not specified |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
122 enable_dii=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
123 ) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
124 AC_MSG_RESULT([$enable_dii]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
125 AC_PATH_PROG(CONVERT, convert) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
126 if test "x$CONVERT" = "x" ; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
127 if test "$enable_dii" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
128 enable_dii=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
129 AC_MSG_WARN([convert program not found. pst2dii disabled]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
130 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
131 else |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
132 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
|
133 if test "$enable_dii" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
134 enable_dii=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
135 AC_MSG_WARN([wrong convert program found. pst2dii disabled]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
136 fi |
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 AC_CHECK_HEADER([gd.h], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
140 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
141 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
|
142 ], |
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 if test "$enable_dii" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
145 enable_dii=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
146 AC_MSG_WARN([gd.h not found. pst2dii disabled]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
147 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
148 ]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
149 AM_CONDITIONAL(BUILD_DII, [test "$enable_dii" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
150 |
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 # Checks for programs. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
153 AC_PROG_CXX |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
154 AC_PROG_CC |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
155 AM_PROG_CC_C_O |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
156 AC_PROG_CPP |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
157 AC_PROG_INSTALL |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
158 AC_PROG_LN_S |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
159 AC_PROG_LIBTOOL |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
160 AC_PROG_MAKE_SET |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
161 |
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 # make sure we get large file support |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
164 AC_SYS_LARGEFILE |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
165 AC_CHECK_SIZEOF(off_t) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
166 |
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 # Checks for header files. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
169 AC_CHECK_HEADER([unistd.h], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
170 AM_CONDITIONAL(NEED_XGETOPT, [test yes = no]), |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
171 AM_CONDITIONAL(NEED_XGETOPT, [test yes = yes]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
172 ) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
173 AC_HEADER_DIRENT |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
174 AC_HEADER_STDC |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
175 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]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
176 AC_SEARCH_LIBS([sem_init],[pthread rt]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
177 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
178 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
179 # Checks for typedefs, structures, and compiler characteristics. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
180 AC_HEADER_STDBOOL |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
181 AC_HEADER_SYS_WAIT |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
182 AC_C_CONST |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
183 AC_C_INLINE |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
184 AC_TYPE_OFF_T |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
185 AC_TYPE_SIZE_T |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
186 AC_TYPE_PID_T |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
187 AC_STRUCT_TM |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
188 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
189 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
190 # Checks for library functions. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
191 AC_FUNC_FORK |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
192 AC_FUNC_FSEEKO |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
193 AC_FUNC_STAT |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
194 AC_FUNC_LSTAT |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
195 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
196 if test "$cross_compiling" != "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
197 AC_FUNC_MALLOC |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
198 AC_FUNC_MKTIME |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
199 AC_FUNC_REALLOC |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
200 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
201 AC_FUNC_STRFTIME |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
202 AC_FUNC_VPRINTF |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
203 AC_CHECK_FUNCS([chdir getcwd memchr memmove memset regcomp strcasecmp strncasecmp strchr strdup strerror strpbrk strrchr strstr strtol get_current_dir_name]) |
386 | 204 AM_GNU_GETTEXT |
205 AM_GNU_GETTEXT_VERSION([0.19.1]) | |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
206 AM_ICONV |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
207 if test "$am_cv_func_iconv" != "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
208 AC_MSG_ERROR([libpst requires iconv which is missing]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
209 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
210 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
211 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
212 AC_CHECK_FUNCS(regexec,,[AC_CHECK_LIB(regex,regexec, |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
213 [REGEXLIB=-lregex |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
214 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
|
215 [AC_MSG_ERROR([No regex library found])])]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
216 AC_SUBST(REGEXLIB) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
217 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
218 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
219 # 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
|
220 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
221 # 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
|
222 # --enable-pst-debug |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
223 # --enable-pst-debug=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
224 # --enable-pst-debug=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
225 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
226 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
|
227 AC_ARG_ENABLE(pst-debug, |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
228 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
|
229 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
230 case "${enableval}" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
231 yes) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
232 no) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
233 *) 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
|
234 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
235 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
236 # default if not specified |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
237 enable_pst_debug=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
238 ) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
239 AC_MSG_RESULT([$enable_pst_debug]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
240 if test "$enable_pst_debug" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
241 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
|
242 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
243 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
244 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
245 # 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
|
246 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
247 # 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
|
248 # --enable-libpst-shared |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
249 # --enable-libpst-shared=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
250 # --enable-libpst-shared=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
251 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
252 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
|
253 AC_ARG_ENABLE(libpst-shared, |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
254 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
|
255 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
256 case "${enableval}" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
257 yes) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
258 no) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
259 *) 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
|
260 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
261 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
262 # default if not specified |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
263 enable_libpst_shared=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
264 ) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
265 AC_MSG_RESULT([$enable_libpst_shared]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
266 enable_static_tools=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
267 if test "$enable_libpst_shared" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
268 enable_shared=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
269 enable_static_tools=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
270 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
271 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
272 # needed by STATIC_TOOLS in src/Makefile.am |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
273 AC_SUBST(PST_OBJDIR, [$objdir]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
274 |
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 # 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
|
277 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
278 # 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
|
279 # --enable-static-tools |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
280 # --enable-static-tools=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
281 # --enable-static-tools=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
282 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
283 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
|
284 AC_ARG_ENABLE([static-tools], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
285 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
|
286 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
287 case "${enableval}" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
288 yes) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
289 no) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
290 *) 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
|
291 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
292 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
293 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
294 enable_static_tools=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
295 ]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
296 AC_MSG_RESULT([$enable_static_tools]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
297 AM_CONDITIONAL(STATIC_TOOLS, [test "$enable_static_tools" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
298 if test "$enable_static_tools" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
299 enable_static="yes" |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
300 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
301 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
302 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
303 # 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
|
304 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
305 # 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
|
306 # --enable-python |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
307 # --enable-python=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
308 # --enable-python=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
309 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
310 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
|
311 AC_ARG_ENABLE([python], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
312 AC_HELP_STRING([--enable-python], [build libpst python interface]), |
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 case "${enableval}" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
315 yes) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
316 no) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
317 *) AC_MSG_ERROR(bad value ${enableval} for --python) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
318 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
319 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
320 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
321 enable_python=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
322 ]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
323 AC_MSG_RESULT([$enable_python]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
324 AM_CONDITIONAL(PYTHON_INTERFACE, [test "$enable_python" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
325 if test "$enable_python" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
326 enable_shared="yes" |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
327 # get the version of installed python |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
328 AX_PYTHON |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
329 if test "$ax_python_bin" = "no"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
330 AC_MSG_ERROR(python binary not found) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
331 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
332 PYTHON_VERSION=`echo $ax_python_bin | cut -c7-` |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
333 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
334 # find the flags for that version |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
335 AX_PYTHON_DEVEL([$PYTHON_VERSION]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
336 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
337 # do we have boost python? |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
338 AX_BOOST_PYTHON |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
339 if test "$ac_cv_boost_python" = "no"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
340 AC_MSG_ERROR(boost python not found) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
341 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
342 AC_SUBST(PYTHON_VERSION, [$ax_python_bin]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
343 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
344 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
345 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
346 # 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
|
347 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
348 # 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
|
349 # --enable-profiling |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
350 # --enable-profiling=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
351 # --enable-profiling=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
352 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
353 AC_MSG_CHECKING([whether to link with gprof profiling]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
354 AC_ARG_ENABLE([profiling], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
355 AC_HELP_STRING([--enable-profiling], [link with gprof profiling]), |
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 case "${enableval}" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
358 yes) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
359 CFLAGS="$CFLAGS -pg" |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
360 CPPFLAGS="$CPPFLAGS -pg" |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
361 CXXFLAGS="$CXXFLAGS -pg" |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
362 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
363 no) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
364 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
365 *) AC_MSG_ERROR(bad value ${enableval} for --profiling) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
366 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
367 ], |
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 enable_profiling=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
370 ]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
371 AC_MSG_RESULT([$enable_profiling]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
372 AM_CONDITIONAL(GPROF_PROFILING, [test "$enable_profiling" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
373 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
374 gsf_flags="`pkg-config libgsf-1 --cflags`" |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
375 gsf_libs="`pkg-config libgsf-1 --libs`" |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
376 if test "$gsf_flags" = ""; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
377 AC_MSG_ERROR(libgsf not found) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
378 fi |
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 AC_SUBST(GSF_FLAGS, [$gsf_flags]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
381 AC_SUBST(GSF_LIBS, [$gsf_libs]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
382 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
383 PKG_CHECK_MODULES([ZLIB], [zlib]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
384 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
385 AC_OUTPUT( \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
386 Makefile \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
387 html/Makefile \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
388 libpst.pc \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
389 libpst.spec \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
390 man/Makefile \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
391 src/Makefile \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
392 src/pst2dii.cpp \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
393 python/Makefile \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
394 xml/Makefile \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
395 xml/libpst \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
396 ) |