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