1 | ## Process this file with autoconf to produce a configure script. |
---|
2 | ## |
---|
3 | ## $Id: configure.ac 985 2009-12-13 17:09:02Z peter $ |
---|
4 | ## |
---|
5 | ## If you grabbed the source from subversion you should, at top-level, |
---|
6 | ## execute: |
---|
7 | ## ./bootstrap |
---|
8 | ## To push subsequent changes of this file into the build scripts you |
---|
9 | ## must issue: |
---|
10 | ## autoreconf |
---|
11 | |
---|
12 | # Copyright (C) 2005 Jari Häkkinen, Peter Johansson |
---|
13 | # Copyright (C) 2006 Jari Häkkinen |
---|
14 | # Copyright (C) 2007, 2008, 2009 Jari Häkkinen, Peter Johansson |
---|
15 | # |
---|
16 | # This file is part of svndigest, http://dev.thep.lu.se/svndigest |
---|
17 | # |
---|
18 | # svndigest is free software; you can redistribute it and/or modify it |
---|
19 | # under the terms of the GNU General Public License as published by |
---|
20 | # the Free Software Foundation; either version 3 of the License, or |
---|
21 | # (at your option) any later version. |
---|
22 | # |
---|
23 | # svndigest is distributed in the hope that it will be useful, but |
---|
24 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
25 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
26 | # General Public License for more details. |
---|
27 | # |
---|
28 | # You should have received a copy of the GNU General Public License |
---|
29 | # along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
---|
30 | |
---|
31 | AC_PREREQ([2.63]) |
---|
32 | |
---|
33 | m4_include([m4/version.m4]) |
---|
34 | AC_INIT([svndigest], m4_defn([SVNDIGEST_VERSION]),[jari@thep.lu.se],, |
---|
35 | [http://dev.thep.lu.se/svndigest]) |
---|
36 | AC_CONFIG_SRCDIR([lib/File.h]) |
---|
37 | AC_CONFIG_AUX_DIR([autotools]) |
---|
38 | dnl arg below should be the same as in Makefile.am |
---|
39 | AC_CONFIG_MACRO_DIR([m4]) |
---|
40 | AC_PREFIX_DEFAULT([/usr/local]) |
---|
41 | |
---|
42 | dnl FIXME remove when we assume autoconf 2.64 |
---|
43 | m4_ifndef([AC_PACKAGE_URL], |
---|
44 | [AC_DEFINE([PACKAGE_URL], ["http://dev.thep.lu.se/svndigest"], |
---|
45 | [Define to home page for this package]) |
---|
46 | AC_SUBST([PACKAGE_URL], ["http://dev.thep.lu.se/svndigest"])]) |
---|
47 | |
---|
48 | # propagate RELEASE_YEAR from file .release_year |
---|
49 | RELEASE_YEAR=`cat $srcdir/.release_year` |
---|
50 | AC_SUBST([RELEASE_YEAR]) |
---|
51 | AC_DEFINE_UNQUOTED([RELEASE_YEAR], ["$RELEASE_YEAR"], |
---|
52 | [Define year package was last modified]) |
---|
53 | AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/.release_year']) |
---|
54 | |
---|
55 | AC_SUBST([SVNDIGEST_MAJOR_VERSION], [MAJOR_VERSION]) |
---|
56 | AC_SUBST([SVNDIGEST_MINOR_VERSION], [MINOR_VERSION]) |
---|
57 | AC_SUBST([SVNDIGEST_PATCH_VERSION], [PATCH_VERSION]) |
---|
58 | |
---|
59 | AC_DEFINE([DEV_BUILD],[SVNDIGEST_DEV_BUILD], |
---|
60 | [true if dev build (version ends with pre)]) |
---|
61 | AC_DEFINE([SVNDIGEST_MAJOR_VERSION], [MAJOR_VERSION], |
---|
62 | [Define to the svndigest major version]) |
---|
63 | AC_DEFINE([SVNDIGEST_MINOR_VERSION], [MINOR_VERSION], |
---|
64 | [Define to the svndigest minor version]) |
---|
65 | AC_DEFINE([SVNDIGEST_PATCH_VERSION], [PATCH_VERSION], |
---|
66 | [Define to the svndigest patch version]) |
---|
67 | |
---|
68 | AC_CONFIG_HEADER([config.h]) |
---|
69 | AM_INIT_AUTOMAKE([1.10 std-options]) |
---|
70 | |
---|
71 | dnl create bin/svndigest-copy-cache.in at autoconf time and let |
---|
72 | dnl config.status create bin/svndigest-copy-cache from |
---|
73 | dnl bin/svndigest-copy-cache.in |
---|
74 | m4_pushdef([FILE], [svndigest-copy-cache]) |
---|
75 | m4_pushdef([my_m4sh_options], [-m 0644]) |
---|
76 | dnl me cd down in bin to have same output as when created from Makefile |
---|
77 | m4_syscmd([cd bin && autom4te -l M4sh -o ]FILE[.in ]my_m4sh_options FILE[.as]) |
---|
78 | AC_CONFIG_FILES([bin/]FILE[], [chmod +x bin/]FILE[ && chmod a-w bin/]FILE[]) |
---|
79 | dnl export options so we can use the same in Makefile |
---|
80 | AC_SUBST([M4SH_OPTIONS], ['my_m4sh_options']) |
---|
81 | m4_popdef([my_m4sh_options]) |
---|
82 | m4_popdef([FILE]) |
---|
83 | AM_MISSING_PROG([AUTOM4TE], [autom4te]) |
---|
84 | |
---|
85 | # Set default programming language |
---|
86 | AC_LANG([C++]) |
---|
87 | |
---|
88 | # propagate selected configure variables to DISTCHECK_CONFIGURE_FLAGS |
---|
89 | for var in CPPFLAGS CXX CXXFLAGS CXXCPP LDFLAGS LIBS; do |
---|
90 | eval isset=\${$var+set} |
---|
91 | if test "$isset" = 'set' ; then |
---|
92 | eval val=$`echo $var` |
---|
93 | DISTCHECK_CONFIGURE_FLAGS="${DISTCHECK_CONFIGURE_FLAGS}'${var}=${val}' " |
---|
94 | fi |
---|
95 | done |
---|
96 | AC_SUBST(DISTCHECK_CONFIGURE_FLAGS) |
---|
97 | |
---|
98 | # Let user overide default CXXFLAGS |
---|
99 | if test "${CXXFLAGS+set}" != set; then |
---|
100 | CXXFLAGS="" # Setting CXXFLAGS here to prevent expansion in AC_PROG_CXX |
---|
101 | fi |
---|
102 | |
---|
103 | # Checks for programs. |
---|
104 | AC_PROG_CXXCPP |
---|
105 | AC_PROG_CXX |
---|
106 | AC_PROG_INSTALL |
---|
107 | AC_PROG_RANLIB |
---|
108 | AC_PROG_SED |
---|
109 | AC_PATH_PROG([HELP2MAN], [help2man], [no]) |
---|
110 | AM_CONDITIONAL([HAVE_HELP2MAN], [test x$HELP2MAN != xno]) |
---|
111 | # look for pkg-config |
---|
112 | PKG_PROG_PKG_CONFIG([0.23]) |
---|
113 | |
---|
114 | # Save FLAGS |
---|
115 | APR_SAVE_THE_ENVIRONMENT(CPPFLAGS) |
---|
116 | APR_SAVE_THE_ENVIRONMENT(CXXFLAGS) |
---|
117 | |
---|
118 | # -Wno-long-long is needed to suppress compiler diagnostics regarding |
---|
119 | # using extension beyond the C++ standard (usage of non C++ standard |
---|
120 | # 'long long' types). |
---|
121 | YAT_CXX_ADD_FLAG([CXXFLAGS],[-pedantic -Wno-long-long]) |
---|
122 | AC_TYPE_LONG_LONG_INT |
---|
123 | AS_IF([test x$ac_cv_type_long_long_int = xno], |
---|
124 | [AC_MSG_ERROR([compiler does not support long long int])] |
---|
125 | ) |
---|
126 | |
---|
127 | AC_ARG_ENABLE([debug], |
---|
128 | [AS_HELP_STRING([--enable-debug],[turn on debug options and code])]) |
---|
129 | |
---|
130 | AS_IF([test x$enable_debug = xyes], |
---|
131 | [YAT_CXX_ADD_FLAG([CXXFLAGS],[-g -O])], |
---|
132 | [YAT_CPP_ADD_FLAG([CPPFLAGS],[-DNDEBUG]) |
---|
133 | YAT_CXX_ADD_FLAG([CXXFLAGS],[-O3])]) |
---|
134 | |
---|
135 | # Apache Portable Runtime (APR) API checks |
---|
136 | APR_FIND_APR(,,[1],[1 0]) |
---|
137 | AS_IF([test "${with_apr+set}" = set], |
---|
138 | [DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS --with-apr=$with_apr"] |
---|
139 | ) |
---|
140 | if test "$apr_found" = "yes" ; then |
---|
141 | APR_LIBS="`$apr_config --libs`" |
---|
142 | apr_link_ld="`$apr_config --link-ld`" |
---|
143 | for i in $apr_link_ld; do |
---|
144 | AS_IF([test ${i:0:2} = "-l"],[APR_LIBS="$i $APR_LIBS"], |
---|
145 | [YAT_LD_ADD_FLAG([APR_LDFLAGS], [$i])]) |
---|
146 | done |
---|
147 | YAT_CPP_ADD_FLAG([APR_CPPFLAGS],[`$apr_config --includes --cppflags`]) |
---|
148 | save_CPPFLAGS=$CPPFLAGS |
---|
149 | CPPFLAGS="$APR_CPPFLAGS $CPPFLAGS" |
---|
150 | AC_CHECK_HEADER([apr_allocator.h],,[apr_found="no"]) |
---|
151 | CPPFLAGS=$save_CPPFLAGS |
---|
152 | fi |
---|
153 | AC_SUBST([APR_CPPFLAGS]) |
---|
154 | AC_SUBST([APR_LDFLAGS]) |
---|
155 | AC_SUBST([APR_LIBS]) |
---|
156 | |
---|
157 | # Subversion API checks |
---|
158 | svn_found="yes" |
---|
159 | AC_ARG_WITH([svn], |
---|
160 | [AS_HELP_STRING([--with-svn=DIR],[prefix for svn developer files [[PREFIX]]])], |
---|
161 | [ AS_CASE([$withval], [yes|no], |
---|
162 | [AC_MSG_ERROR([--with-svn requires a directory to be provided])]) |
---|
163 | AS_IF([test -d $with_svn], [], |
---|
164 | [AC_MSG_ERROR([$with_svn: no such directory])]) |
---|
165 | # transform argument to absolute path |
---|
166 | with_svn=`cd $with_svn && pwd` |
---|
167 | DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS --with-svn=$with_svn" |
---|
168 | YAT_LD_ADD_FLAG([SVN_LDFLAGS], [-L$with_svn/lib]) |
---|
169 | YAT_CPP_ADD_FLAG([SVN_CPPFLAGS], [-I$with_svn/include]) |
---|
170 | ]) |
---|
171 | # svn needs needs apr headers |
---|
172 | save_CPPFLAGS=$CPPFLAGS |
---|
173 | CPPFLAGS="$APR_CPPFLAGS $SVN_CPPFLAGS $CPPFLAGS" |
---|
174 | AC_CHECK_HEADER([subversion-1/svn_types.h],,[svn_found="no"]) |
---|
175 | CPPFLAGS=$save_CPPFLAGS |
---|
176 | |
---|
177 | save_LDFLAGS=$LDFLAGS |
---|
178 | save_LIBS=$LIBS |
---|
179 | tmp_LIBS="$APR_LIBS $save_LIBS" |
---|
180 | LIBS="" |
---|
181 | LDFLAGS="$SVN_LDFLAGS $APR_LDFLAGS" |
---|
182 | AC_SEARCH_LIBS([svn_cmdline_setup_auth_baton],[svn_subr-1], |
---|
183 | [], [svn_found="no"], [$tmp_LIBS]) |
---|
184 | AC_SEARCH_LIBS([svn_ra_initialize],[svn_ra-1], [], [svn_found="no"],[$tmp_LIBS]) |
---|
185 | AC_SEARCH_LIBS([svn_wc_adm_open3],[svn_wc-1], [], [svn_found="no"], [$tmp_LIBS]) |
---|
186 | AC_SEARCH_LIBS([svn_diff_file_options_create],[svn_diff-1],[], |
---|
187 | [svn_found="no"], [$tmp_LIBS]) |
---|
188 | AC_SEARCH_LIBS([svn_client_log3],[svn_client-1],,[svn_found="no"], [$tmp_LIBS]) |
---|
189 | SVN_LIBS=$LIBS |
---|
190 | LIBS=$save_LIBS |
---|
191 | LDFLAGS=$save_LDFLAGS |
---|
192 | AC_SUBST([SVN_CPPFLAGS]) |
---|
193 | AC_SUBST([SVN_LDFLAGS]) |
---|
194 | AC_SUBST([SVN_LIBS]) |
---|
195 | |
---|
196 | |
---|
197 | # check if svnversion is installed |
---|
198 | AC_PATH_PROG([SVNVERSION], [svnversion], [no]) |
---|
199 | |
---|
200 | # PLplot API checks |
---|
201 | # plplot_found can get values: skip, noheader, old, or nolib if an |
---|
202 | # error is detected. |
---|
203 | plplot_found="yes" |
---|
204 | plplot_version=5.9 |
---|
205 | save_PKG_CONFIG_PATH=$PKG_CONFIG_PATH |
---|
206 | AC_ARG_WITH([plplot], |
---|
207 | [AS_HELP_STRING([--with-plplot=DIR],[prefix for plplot developer files])], |
---|
208 | [DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS --with-plplot=$withval" |
---|
209 | AS_IF([test "x$withval" = "xno"], [ dnl |
---|
210 | plplot_found=skip; |
---|
211 | ], [ dnl |
---|
212 | AS_IF([test -d $with_plplot], [], |
---|
213 | [AC_MSG_ERROR([$with_plplot: no such directory])]) |
---|
214 | with_plplot=`cd $with_plplot && pwd` |
---|
215 | # help pkg-config find .pc file |
---|
216 | PKG_CONFIG_PATH=$with_plplot/lib/pkgconfig$PATH_SEPARATOR$PKG_CONFIG_PATH |
---|
217 | export PKG_CONFIG_PATH |
---|
218 | ]) |
---|
219 | ]) |
---|
220 | |
---|
221 | use_plplot_pc="no" |
---|
222 | AS_IF([test "x$plplot_found" = "xyes" && test -n "$PKG_CONFIG"], [ |
---|
223 | AC_MSG_CHECKING([for plplotd-c++.pc]) |
---|
224 | AS_IF([$PKG_CONFIG --exists plplotd-c++], [ |
---|
225 | AC_MSG_RESULT([yes]) |
---|
226 | use_plplot_pc="yes" |
---|
227 | ],[ |
---|
228 | AC_MSG_RESULT([no]) |
---|
229 | AC_MSG_WARN([cannot find plplotd-c++; |
---|
230 | please use --with-plplot with appropriate argument to get more accurate |
---|
231 | configuration.]) |
---|
232 | ]) |
---|
233 | ]) |
---|
234 | |
---|
235 | AS_IF([test "x$plplot_found" = "xyes"], [ |
---|
236 | # copy flags if we have found pc file |
---|
237 | AS_IF([test "$use_plplot_pc" = "yes"], [ |
---|
238 | YAT_LD_ADD_FLAG([PLPLOT_LDFLAGS], [`$PKG_CONFIG plplotd-c++ --libs-only-L`]) |
---|
239 | PLPLOT_LIBS="`$PKG_CONFIG plplotd-c++ --libs-only-l --libs-only-other`" |
---|
240 | ],[ |
---|
241 | # otherwise guess |
---|
242 | PLPLOT_LIBS="-lplplotcxxd -lplplotd"; |
---|
243 | AS_IF([test -n "$with_plplot" && test "x$with_plplot" != "xyes"], [ |
---|
244 | YAT_LD_ADD_FLAG([PLPLOT_LDFLAGS], [$with_plplot/libs]) |
---|
245 | ]) |
---|
246 | ]) |
---|
247 | # don't use `pkg-config --cflags' because it returns |
---|
248 | # `PREFIX/include/plplot' rather than `PREFIX/include' |
---|
249 | AS_IF([test -n "$with_plplot" && test "x$with_plplot" != "xyes"], [ |
---|
250 | YAT_CPP_ADD_FLAG([PLPLOT_CPPFLAGS], [$with_plplot/include]) |
---|
251 | ]) |
---|
252 | ]) |
---|
253 | |
---|
254 | AS_IF([test "x$plplot_found" = "xyes"], [ |
---|
255 | save_CPPFLAGS=$CPPFLAGS |
---|
256 | CPPFLAGS="$PLPLOT_CPPFLAGS $CPPFLAGS" |
---|
257 | AC_CHECK_HEADER([plplot/plstream.h], [], [plplot_found="noheader"]) |
---|
258 | CPPFLAGS=$save_CPPFLAGS |
---|
259 | ]) |
---|
260 | |
---|
261 | |
---|
262 | AS_IF([test "x$plplot_found" = "xyes" && test -n "$PKG_CONFIG"], [ |
---|
263 | AC_MSG_CHECKING([plplot version >= $plplot_version]) |
---|
264 | AS_IF([$PKG_CONFIG --atleast-version=$plplot_version plplotd-c++], [ |
---|
265 | AC_MSG_RESULT([yes]) |
---|
266 | ],[ |
---|
267 | AC_MSG_RESULT([`$PKG_CONFIG --modversion= plplotd-c++`]) |
---|
268 | plplot_found="old" |
---|
269 | ]) |
---|
270 | ]) |
---|
271 | |
---|
272 | AS_IF([test "x$plplot_found" = "xyes"], [ |
---|
273 | save_LDFLAGS=$LDFLAGS |
---|
274 | LDFLAGS="$PLPLOT_LDFLAGS $LDFLAGS" |
---|
275 | save_LIBS=$LIBS |
---|
276 | LIBS="$PLPLOT_LIBS $LIBS" |
---|
277 | AC_MSG_CHECKING([for library containing plstream]) |
---|
278 | AC_LINK_IFELSE([AC_LANG_PROGRAM([@%:@include <plplot/plstream.h>], |
---|
279 | [plstream pls(1,1,"svg", "conftest.svg")])], |
---|
280 | [AC_MSG_RESULT([yes]); |
---|
281 | AC_DEFINE([HAVE_PLPLOT], [1], |
---|
282 | [Define to 1 if you have plplot])], |
---|
283 | [AC_MSG_RESULT([no]) |
---|
284 | plplot_found=nolib;]) |
---|
285 | ]) |
---|
286 | # restore variable |
---|
287 | LDFLAGS=$save_LDFLAGS |
---|
288 | LIBS=$save_LIBS |
---|
289 | export PKG_CONFIG_PATH=$save_PKG_CONFIG_PATH |
---|
290 | AC_SUBST(PLPLOT_CPPFLAGS) |
---|
291 | AC_SUBST(PLPLOT_LDFLAGS) |
---|
292 | AC_SUBST(PLPLOT_LIBS) |
---|
293 | |
---|
294 | # checking if we build in a subversion WC |
---|
295 | AS_IF([test -d $srcdir/.svn], [wc_found="yes"], [wc_found="no"]) |
---|
296 | AM_CONDITIONAL([HAVE_SVN_WC], [test "$wc_found" = "yes"]) |
---|
297 | AC_SUBST([wc_found]) |
---|
298 | |
---|
299 | # checking if we have test repo |
---|
300 | test_repo_filename=$srcdir/test/repo; |
---|
301 | AS_IF([test -r $test_repo_filename], |
---|
302 | [AC_DEFINE([HAVE_TEST_REPO],[1],[define if test repo is available]) |
---|
303 | test_repo_found="yes"], |
---|
304 | [test_repo_found="no"]) |
---|
305 | AC_SUBST([test_repo_found]) |
---|
306 | AS_IF([test "x$test_repo_found" = xyes], |
---|
307 | [abs_test_repo=`cd $test_repo_filename && pwd`; |
---|
308 | AC_SUBST(abs_test_repo)] |
---|
309 | ) |
---|
310 | AC_CONFIG_FILES([test/init.sh]) |
---|
311 | AC_CONFIG_FILES([test/svn_update.sh], [chmod +x test/svn_update.sh]) |
---|
312 | |
---|
313 | dnl maintainer make rukes from yat project |
---|
314 | YAT_SVN_RELEASE |
---|
315 | |
---|
316 | # Restore FLAGS |
---|
317 | APR_RESTORE_THE_ENVIRONMENT([CPPFLAGS], [DEFAULT_]) |
---|
318 | APR_RESTORE_THE_ENVIRONMENT([CXXFLAGS], [DEFAULT_]) |
---|
319 | |
---|
320 | AC_CONFIG_FILES([Makefile |
---|
321 | bin/Makefile |
---|
322 | lib/Makefile |
---|
323 | lib/yat/Makefile |
---|
324 | man/Makefile |
---|
325 | test/environment.h |
---|
326 | test/Makefile]) |
---|
327 | |
---|
328 | AC_CONFIG_HEADER([lib/yat/config_public.h]) |
---|
329 | |
---|
330 | # Print failure status information about selected items, and exit if |
---|
331 | # fatal errors were encountered. No output will be created if |
---|
332 | # configure is halted prematurely. |
---|
333 | |
---|
334 | # used to trigger exit before creation of output |
---|
335 | all_reqs_ok="true" |
---|
336 | |
---|
337 | if (test "$wc_found" = "yes"); then |
---|
338 | if test x$HELP2MAN = xno; then |
---|
339 | AC_MSG_WARN(m4_text_wrap(m4_normalize([ |
---|
340 | `help2man' is missing on your system. You will not be |
---|
341 | able to create the man page. A sound man page should be |
---|
342 | included in a distribution, and since you will not able |
---|
343 | to create a complete distribution `make dist' will fail. |
---|
344 | ]),[ ], |
---|
345 | [ ], 79)) |
---|
346 | fi |
---|
347 | # svnversion is required when building from svn wc |
---|
348 | if (test "$svnversion" = "no"); then |
---|
349 | all_reqs_ok="false"; |
---|
350 | AC_MSG_WARN([dnl |
---|
351 | Cannot find svnversion, which is required when building from a |
---|
352 | subversion working copy. Please install svnversion and make sure it is |
---|
353 | in your search path.]); |
---|
354 | fi |
---|
355 | if (test "$test_repo_found" = "no"); then |
---|
356 | all_reqs_ok="false"; |
---|
357 | AC_MSG_WARN([dnl |
---|
358 | Cannot find test repository (test_repo_filename), which should be |
---|
359 | available when building from a subversion working copy. Try svn |
---|
360 | update in top directory.]); |
---|
361 | fi |
---|
362 | fi |
---|
363 | |
---|
364 | # Non-existing APR is fatal -- sub-sequent compilation will fail. |
---|
365 | if (test "$apr_found" = "no") ; then |
---|
366 | AC_MSG_WARN([APR not found. The Apache Portable Runtime |
---|
367 | (APR) library cannot be found. Please make sure APR is installed |
---|
368 | and supply the appropriate --with-apr option to 'configure'.]) |
---|
369 | all_reqs_ok="false" |
---|
370 | fi |
---|
371 | |
---|
372 | # Non-existing subversion API is fatal -- sub-sequent compilation will fail. |
---|
373 | if (test "$svn_found" = "no") ; then |
---|
374 | svn_msg="Subversion API not found. Subversion API libraries cannot |
---|
375 | be found. Make sure the APIs are installed and supply the |
---|
376 | appropriate --with-svn option to 'configure'." |
---|
377 | if (test "$apr_found" = "no") ; then |
---|
378 | svn_msg="$svn_msg |
---|
379 | Note, APR was not found. Failure to locate APR affects the search |
---|
380 | of the subversion API. Please fix the APR problem before trying |
---|
381 | to resolve the subversion related issues." |
---|
382 | fi |
---|
383 | AC_MSG_WARN([$svn_msg]) |
---|
384 | all_reqs_ok="false" |
---|
385 | fi |
---|
386 | |
---|
387 | # Non-existing PLplot API is fatal -- sub-sequent compilation will fail. |
---|
388 | AS_CASE([$plplot_found], |
---|
389 | [noheader], |
---|
390 | [AC_MSG_WARN([ |
---|
391 | PLplot developer files cannot be found. Make sure PLplot is installed.]) |
---|
392 | all_reqs_ok="false"], |
---|
393 | [old], |
---|
394 | [AC_MSG_WARN([ |
---|
395 | PLplot developer files found but not required API version. |
---|
396 | Version at least $plplot_version is required. Please upgrade PLplot.]) |
---|
397 | all_reqs_ok="false"], |
---|
398 | [nolib], |
---|
399 | [AC_MSG_WARN([ |
---|
400 | PLplot developer files found but linking against plplot library failed.]) |
---|
401 | all_reqs_ok="false"]) |
---|
402 | |
---|
403 | if test $ac_cv_type_long_long_int != yes ; then |
---|
404 | AC_MSG_WARN([Compiler $CXX does not support `long long'. |
---|
405 | svndigest must be compiled with a compiler that supports `long long'.]) |
---|
406 | all_reqs_ok="false" |
---|
407 | fi |
---|
408 | |
---|
409 | if (test "$all_reqs_ok" = "false") ; then |
---|
410 | AC_MSG_ERROR([Some pre-requisites were not fulfilled, aborting |
---|
411 | configure. Please consult the 'README' file for more information |
---|
412 | about what is needed to compile svndigest and refer to above |
---|
413 | warning messages. Needed files were NOT created.]) |
---|
414 | fi |
---|
415 | |
---|
416 | # Create output. |
---|
417 | AC_OUTPUT |
---|
418 | |
---|
419 | # Some more messages. |
---|
420 | AC_MSG_NOTICE([ |
---|
421 | Ready to compile the executables of svndigest $VERSION |
---|
422 | The following flags and libs will be used: |
---|
423 | +++++++++++++++++++++++++++++++++++++++++++++++ |
---|
424 | Compiler: $CXX |
---|
425 | Preprocessor flags: $SD_CPPFLAGS $CPPFLAGS |
---|
426 | CPPFLAGS: $CPPFLAGS |
---|
427 | DEFAULT_CPPFLAGS: $DEFAULT_CPPFLAGS |
---|
428 | APR_CPPFLAGS: $APR_CPPFLAGS |
---|
429 | SVN_CPPFLAGS: $SVN_CPPFLAGS |
---|
430 | PLPLOT_CPPFLAGS: $PLPLOT_CPPFLAGS |
---|
431 | C++ flags: |
---|
432 | CXXFLAGS: $CXXFLAGS |
---|
433 | DEFAULT_CXXFLAGS: $DEFAULT_CXXFLAGS |
---|
434 | Linker flags: |
---|
435 | LDFLAGS: $LDFLAGS |
---|
436 | APR_LDFLAGS: $APR_LDFLAGS |
---|
437 | SVN_LDFLAGS: $SVN_LDFLAGS |
---|
438 | PLPLOT_LDFLAGS: $PLPLOT_LDFLAGS |
---|
439 | Libraries: |
---|
440 | LIBS $LIBS |
---|
441 | APR_LIBS $APR_LIBS |
---|
442 | SVN_LIBS $SVN_LIBS |
---|
443 | PLPLOT_LIBS $PLPLOT_LIBS |
---|
444 | +++++++++++++++++++++++++++++++++++++++++++++++]dnl |
---|
445 | ) |
---|
446 | |
---|
447 | AC_MSG_NOTICE([Now type 'make all check'.]) |
---|