File: configure.ac

package info (click to toggle)
plplot 5.3.1-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 26,248 kB
  • ctags: 11,687
  • sloc: ansic: 86,045; xml: 17,249; sh: 12,400; tcl: 8,113; cpp: 6,824; perl: 4,383; python: 3,915; makefile: 2,899; java: 2,788; fortran: 290; sed: 5; awk: 1
file content (277 lines) | stat: -rw-r--r-- 8,862 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
dnl configure.ac for PLplot  -*- autoconf -*-
dnl
dnl Process this file with autoconf to produce a configure script.
dnl
dnl Copyright (C) 1994, 2004  Maurice LeBrun
dnl Copyright (C) 2002, 2003, 2004  Rafael Laboissiere
dnl Copyright (C) 2002, 2003, 2004  Alan W. Irwin
dnl Copyright (C) 2003, 2004  Joao Cardoso
dnl Copyright (C) 2004  Andrew Roach
dnl
dnl This file is part of PLplot.
dnl
dnl PLplot is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Library General Public License as published
dnl by the Free Software Foundation; version 2 of the License.
dnl
dnl PLplot is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
dnl GNU Library General Public License for more details.
dnl
dnl You should have received a copy of the GNU Library General Public License
dnl along with the file PLplot; if not, write to the Free Software
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA

dnl Note: to recover legacy behavior as regards (site-specific) defaults
dnl files, configure using:
dnl
dnl $ CONFIG_SITE=~/config/cf_plplot.in ./configure


dnl =======================================================================
dnl Autoconf/automake initializations
dnl =======================================================================

dnl Package version number
dnl [ If changing the line below by hand, please keep the format up to and
dnl   including the version number, otherwise it will fool up the
dnl   bootstrap.sh script.  By the way, the line below can be changed using
dnl   options --version and --date-version of that script. ]

AC_INIT(plplot, 5.3.1, plplot-devel@lists.sourceforge.net)
AC_REVISION($Revision: 1.182 $)

dnl Date of release.  This can be set by hand, but the prefered method
dnl is by specifying one of the option --version of --date-version to
dnl bootstrap.sh

RELEASE_DATE=2004-06-25
AC_SUBST(RELEASE_DATE)

dnl Check if we are in the right directory (this used to be done by
dnl AC_INIT)

AC_CONFIG_SRCDIR(src/plcore.c)

dnl Use cf dir instead of the top dir for all autotools-related files

AC_CONFIG_AUX_DIR(cf)
AC_CONFIG_MACRO_DIR(cf)

dnl Configuration headers

AC_CONFIG_HEADERS([config.h include/plConfig.h include/plDevs.h])

dnl Automake initialization

AM_INIT_AUTOMAKE(1.8.2)

dnl Default installation prefix

AC_PREFIX_DEFAULT(/usr/local)
test "$prefix" = NONE && prefix=$ac_default_prefix
test "$exec_prefix" = NONE && exec_prefix=$prefix


dnl =======================================================================
dnl PLplot library sonames and soversions
dnl =======================================================================

dnl Version numbers for the shared C libraries.

SOVERSION=10:0:1
AC_SUBST(SOVERSION)

dnl Version number for the shared C++ library.  After version 5.2.1 was
dnl released, the C++ bindings were changed and backward incompatibilities
dnl were introduced.  Hence the different strings for SOVERSION and
dnl CPP_SOVERSION.

CPP_SOVERSION=10:0:1
AC_SUBST(CPP_SOVERSION)

dnl Version number for the shared F77 library.  Starting with release 5.3.1
dnl of PLplot, the Fortran shared library will have a separate SOVERSION
dnl than that of the C PLplot library.  This is necessary because there is a
dnl specialized Fortran API.

F77_SOVERSION=9:0:0
AC_SUBST(F77_SOVERSION)

dnl Version number for the CSIRO libraries distributed in lib/csa and
dnl lib/nn.  This information was buried into lib/{csa,nn}/Makefile.am and it
dnl is made explicit below.  It may happen that, in the future, we will need
dnl separate soversions for libcsirocsa and libcsironn, but let us keep an
dnl unique soversion for now.

CSIRO_SOVERSION=0:0:0
AC_SUBST(CSIRO_SOVERSION)

dnl According to man package, PLPLOT_TCL_VERSION (used in the various
dnl pkgIndex.tcl scripts) should be strictly numbers alternativing with
dnl decimal points with the first number (the major number) signifying
dnl incompatible changes in the scripts.  To keep our life simple, let us
dnl use the major number from the package version for now.
dnl N.B. both LIBRARY_VERSION and PLPLOT_TCL_VERSION are used for separate
dnl purposes in the various configured pkgIndex.tcl scripts.

PLPLOT_TCL_VERSION=5
AC_SUBST(PLPLOT_TCL_VERSION)


dnl =======================================================================
dnl Check for programs
dnl =======================================================================

dnl Require C compile

AC_PROG_CC

dnl Libtool configuration

m4_include(cf/libtool.ac)


dnl =======================================================================
dnl Libraires
dnl =======================================================================

dnl Add libm to LIBS, as some non linux unices might require this.

AC_CHECK_LIB(m, sin)

m4_include(cf/pthread.ac)
m4_include(cf/freetype.ac)
m4_include(cf/csiro.ac)


dnl =======================================================================
dnl Headers
dnl =======================================================================

AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h termios.h)
AC_HEADER_SYS_WAIT
AC_HEADER_DIRENT

dnl Check for inclusion of sys/types.h before dirent.h in broken MacOSX
dnl systems

case "$host_os" in
    darwin*)
        AC_DEFINE(NEED_SYS_TYPE_H, [], [Include sys/type.h if needed])
    ;;
esac


dnl =======================================================================
dnl Typedefs
dnl =======================================================================

dnl Some X11 headers require "caddr_t" even on systems that claim POSIX.1
dnl compliance, which is illegal.  This makes it impossible to compile
dnl programs that include X11 headers if _POSIX_SOURCE is defined.  I work
dnl around this potential problem by just defining caddr_t to 'char *' on all
dnl systems (unless it is set already), whether it will be needed or not.

AC_CHECK_TYPE(caddr_t, char *)

dnl The following is primarily for use in drivers/get-drv-info.c

AC_TYPE_SIGNAL


dnl =======================================================================
dnl Functions
dnl =======================================================================

AC_FUNC_VFORK
AC_CHECK_FUNC(popen, AC_DEFINE(HAVE_POPEN, [],
                               [Define if popen is available]))
AC_CHECK_FUNC(usleep, AC_DEFINE(HAVE_USLEEP, [],
                               [Define if usleep is available]))
AC_CHECK_FUNC(isinf, AC_DEFINE(HAVE_ISINF, [],
                               [Define if isinf is available]))
AC_CHECK_FUNC(finite, AC_DEFINE(HAVE_FINITE, [],
                               [Define if finite is available]))
AC_CHECK_FUNC(isnan,
    [AC_DEFINE(HAVE_ISNAN, [], [Define if isnan is available])
     have_isnan=yes],
    [have_isnan=no])

dnl =======================================================================
dnl Compilation and build options (PLFLT, rpath, install locations)
dnl =======================================================================

m4_include(cf/double.ac)
m4_include(cf/rpath.ac)
m4_include(cf/instdirs.ac)


dnl =======================================================================
dnl Language bindings
dnl =======================================================================

m4_include(cf/python.ac)
m4_include(cf/java.ac)
m4_include(cf/swig.ac)
m4_include(cf/octave.ac)
m4_include(cf/tcl.ac)
m4_include(cf/c++.ac)
m4_include(cf/f77.ac)


dnl =======================================================================
dnl Device drivers
dnl =======================================================================

m4_include(cf/drivers-init.ac)
m4_include(cf/cgm.ac)
m4_include(cf/gd.ac)
m4_include(cf/gnome.ac)
m4_include(cf/linuxvga.ac)
m4_include(cf/xwin.ac)
m4_include(cf/tk.ac)
m4_include(cf/ps.ac)
m4_include(cf/wingcc.ac)
m4_include(cf/drivers-finish.ac)


dnl =======================================================================
dnl Other parts of PLplot (test suite, DocBook manual, pkg-config support)
dnl =======================================================================

m4_include(cf/test.ac)
m4_include(cf/docbook.ac)
m4_include(cf/pkg-config.ac)


dnl =======================================================================
dnl Build configuration files and show summary
dnl =======================================================================

dnl Notice that there are other calls to AC_CONFIG_FILES in the cf/*.ac
dnl files.

AC_CONFIG_FILES([
    Makefile
    src/Makefile
    include/Makefile
    data/Makefile
    bindings/Makefile
    cf/Makefile
    drivers/Makefile
    examples/Makefile
    examples/c/Makefile
    examples/c/Makefile.examples
    examples/perl/Makefile
    utils/Makefile
    scripts/Makefile
    doc/Makefile
    scripts/plplot-config
])

AC_OUTPUT

m4_include(cf/summary.ac)