source: stable/2.6/configure.ac @ 734

Last change on this file since 734 was 734, checked in by kulshres, 2 years ago

Revert "last step before tagging release"

This reverts commit a7ddc7e1bcd36ecf870e2e5a547a65b6f5aeb840.

  • Property svn:keywords set to Author Date Id Revision
File size: 22.8 KB
Line 
1##############################################################################
2# configure.ac -- Process this file with autoconf to produce configure
3# Revision: $Id: configure.ac 734 2017-01-17 08:34:58Z kulshres $
4#
5# Copyright (C) Andrea Walther, Andreas Kowarz
6#               
7# contains patches from the COIN OR libtool
8#
9##############################################################################
10define([ADOLC_VER], [2])
11define([ADOLC_SUB], [6])
12define([ADOLC_LVL], [3])
13
14AC_PREREQ(2.67)
15AC_INIT(adolc,
16        ADOLC_VER.ADOLC_SUB.ADOLC_LVL-stable,
17        [adol-c@list.coin-or.org])
18config_flags="$*"
19AC_REVISION($Revision: 734 $)
20AC_CONFIG_SRCDIR([ADOL-C/src/adouble.cpp])
21AC_CONFIG_AUX_DIR([autoconf])
22AC_CONFIG_MACRO_DIR([autoconf])
23AC_CONFIG_HEADERS([ADOL-C/src/config.h])
24AC_PREFIX_DEFAULT(${HOME}/adolc_base)
25AM_INIT_AUTOMAKE([1.11 dist-bzip2 foreign subdir-objects])
26AM_MAINTAINER_MODE([disable])
27AM_SILENT_RULES([yes])
28
29
30adolclib=adolc
31
32if test "x$CFLAGS" == x ; then
33    ac_shell_cflags="not_set"
34else
35    ac_shell_cflags="$CFLAGS"
36fi
37if test "x$CXXFLAGS" == x ; then
38    ac_shell_cxxflags="not_set"
39else
40    ac_shell_cxxflags="$CXXFLAGS"
41fi
42libdir_set_on_cmd="no"
43for i in $config_flags ; do
44    case $i in
45    -libdir | --libdir | --libdi | --libd | -libdir=* | --libdir=* | --libdi=* | --libd=*)
46            libdir_set_on_cmd="yes"
47            break
48            ;;
49    esac
50done
51
52AM_CONDITIONAL(DARWIN, [test "x${host_os#darwin}" != "x${host_os}"])
53
54AC_MSG_CHECKING(whether to build ADOL-C with adjoinable MPI (AMPI) support)
55AC_ARG_ENABLE(ampi,
56              [AS_HELP_STRING([--enable-ampi],[build ADOL-C with adjoinable MPI (AMPI) support [default=disabled]])],
57              [adolc_ampi_support=$enableval],[adolc_ampi_support=no])
58AC_MSG_RESULT($adolc_ampi_support)
59AM_CONDITIONAL(BUILD_ADOLC_AMPI_SUPPORT,[test x${adolc_ampi_support} = xyes])
60if test x"${adolc_ampi_support}" = xyes ; then
61AC_DEFINE(ADOLC_AMPI_SUPPORT,1,[defined if adjoinable MPI support is to be compiled in])
62fi
63
64LT_PREREQ([2.2.6])
65# checks for programs
66AC_PROG_CXX
67AX_CXX_COMPILE_STDCXX_11(noext,mandatory)
68AC_PROG_CC
69AC_PROG_CC_C_O
70AC_PROG_CC_C99
71AC_PROG_CPP
72AC_PROG_INSTALL
73AC_PROG_LN_S
74AC_PROG_MAKE_SET
75LT_INIT([disable-static win32-dll dlopen])
76
77if test "x$enable_static" != "xno" ; then
78   AC_MSG_WARN([Linking a user program with static ADOL-C library will always result in a segmentation fault])
79fi
80
81MPI_CONF_PRE
82
83AC_CHECK_SIZEOF([void *])
84if test "x$ac_cv_sizeof_void_p" = "x8" ; then
85   _lib=lib64
86else
87   _lib=lib
88fi
89if test "x$libdir_set_on_cmd" = "xno" ; then
90   libdir='${exec_prefix}'/"${_lib}"
91   AC_SUBST(_lib)
92   AC_SUBST(libdir)
93fi
94
95# check for builtin
96ACX_C_BUILTIN_EXPECT
97
98# checks for header files
99AC_HEADER_STDC
100AC_HEADER_TIME
101AC_HEADER_STDBOOL
102AC_CHECK_HEADERS([stddef.h stdlib.h stdio.h string.h unistd.h sys/timeb.h])
103
104# checks for types
105AC_C_CONST
106AC_C_INLINE
107AC_TYPE_SIZE_T
108AC_STRUCT_TM
109
110
111# Checks for libraries and fuctions
112AC_SEARCH_LIBS([pow], [m])
113AC_CHECK_FUNCS([floor fmax fmin ftime pow sqrt strchr strtol trunc])
114
115# substitutions
116AC_SUBST(ac_aux_dir)
117
118# ADOL-C configuration
119AC_DEFINE(ADOLC_VERSION,ADOLC_VER,[ADOL-C Version])
120AC_DEFINE(ADOLC_SUBVERSION,ADOLC_SUB,[ADOL-C Subversion])
121AC_DEFINE(ADOLC_PATCHLEVEL,ADOLC_LVL,[ADOL-C Patchlevel])
122ADOLC_VERSION=ADOLC_VER
123ADOLC_SUBVERSION=ADOLC_SUB
124ADOLC_PATCHLEVEL=ADOLC_LVL
125AC_SUBST(ADOLC_VERSION)
126AC_SUBST(ADOLC_SUBVERSION)
127AC_SUBST(ADOLC_PATCHLEVEL)
128
129# Checks for library functions
130AC_FUNC_MALLOC
131AC_FUNC_REALLOC
132if test x$ac_cv_func_malloc_0_nonnull != xyes ; then
133AC_DEFINE_UNQUOTED([calloc],[rpl_calloc],[Define to rpl_calloc if the replacement function should be used.])
134fi
135
136AC_MSG_CHECKING(whether to use calloc or malloc for memory allocation)
137AC_ARG_ENABLE(use-calloc,[AS_HELP_STRING([--disable-use-calloc],
138  [disable use of calloc and use malloc instead for memory allocation [default=calloc is used]])],
139  [use_calloc=$enableval],[use_calloc=yes])
140
141if test x$use_calloc = xyes ; then
142AC_MSG_RESULT(calloc)
143AC_DEFINE(ADOLC_USE_CALLOC,1,[Use calloc instead of malloc for memory allocation])
144else
145AC_MSG_RESULT(malloc)
146fi
147
148AC_MSG_CHECKING(whether to enable atrig/erf functions)
149AC_ARG_ENABLE(atrig-erf,[AS_HELP_STRING([--enable-atrig-erf],
150  [enable atrig and erf functions in ADOL-C [default=no]])],
151  [use_atrig_erf=$enableval],[use_atrig_erf=no])
152AC_MSG_RESULT($use_atrig_erf)
153
154if test x$use_atrig_erf = xyes ; then
155  ATRIG_ERF="#define ATRIG_ERF 1"
156else
157  ATRIG_ERF="#undef ATRIG_ERF"
158fi
159AC_SUBST(ATRIG_ERF)
160
161AC_MSG_CHECKING(whether to use 32-bit or 64-bit locations)
162AC_ARG_ENABLE(ulong,[AS_HELP_STRING([--enable-ulong],
163  [enable 64-bit locations (only available on 64-bit systems) [default=32-bit]])],
164  [use_ulong=$enableval],[use_ulong=no])
165
166if test x$use_ulong = xyes -a 0$ac_cv_sizeof_void_p -ge 8 ; then
167  UINT_TYPE=uint64_t
168  AC_MSG_RESULT(64-bit)
169else
170  UINT_TYPE=uint32_t
171  AC_MSG_RESULT(32-bit)
172fi
173AC_SUBST(UINT_TYPE)
174
175AC_MSG_CHECKING(whether to use single or double precision)
176AC_ARG_ENABLE(double,[AS_HELP_STRING([--disable-double],
177  [disable double precision arithmetic [untested, default=double is enabled]])],
178  [use_double=$enableval],[use_double=yes])
179
180if test x$use_double = xno ; then
181  REAL_TYPE=float
182  echo
183  echo -n "using ${REAL_TYPE} is not well tested, please report bugs if you find any..."
184else
185  REAL_TYPE=double
186fi
187AC_MSG_RESULT($REAL_TYPE)
188AC_SUBST(REAL_TYPE)
189
190AC_MSG_CHECKING(whether to enable advanced branching operations)
191AC_ARG_ENABLE(advanced-branching, [AS_HELP_STRING([--enable-advanced-branching],
192  [enable advanced branching operations to reduce retaping [default=no].
193The boolean valued comparison operators with two adouble arguments will
194not return boolean results but the active results may be used to automatically
195switch branches in conjunction with condassign or advector (see manual).])],
196  [use_advbranch=$enableval],[use_advbranch=no])
197AC_MSG_RESULT($use_advbranch)
198
199if test x$use_advbranch = xyes ; then
200  ADVBRANCH="#define ADOLC_ADVANCED_BRANCHING 1"
201else
202  ADVBRANCH="#undef ADOLC_ADVANCED_BRANCHING"
203fi
204AC_SUBST(ADVBRANCH)
205AC_SUBST(ADVBRANCH)
206
207AC_MSG_CHECKING(whether to use ADOL-C debug mode)
208AC_ARG_ENABLE(debug,
209              [
210AS_HELP_STRING([--enable-debug],[enable ADOL-C debug mode [default=no]])],
211  [
212  adolc_debug=$enableval
213   AC_MSG_RESULT($adolc_debug)
214   ],
215  [
216   adolc_debug=no
217   AC_MSG_RESULT(no)
218   ])
219
220AC_MSG_CHECKING(whether to use ADOL-C hard debug mode)
221AC_ARG_ENABLE(harddebug,
222              [
223AS_HELP_STRING([--enable-harddebug],[enable ADOL-C hard debug mode
224 [default=no]])],
225  [
226   adolc_harddebug=$enableval
227   AC_MSG_RESULT($adolc_harddebug)
228   ],
229  [
230   adolc_harddebug=no
231   AC_MSG_RESULT(no)
232   ])
233
234if test x$adolc_harddebug == xyes ; then
235adolc_debug=yes
236AC_DEFINE(ADOLC_HARDDEBUG,1,[ADOL-C hard debug mode])
237fi
238
239if test x$adolc_debug == xyes ; then
240AC_DEFINE(ADOLC_DEBUG,1,[ADOL-C debug mode])
241fi
242
243AC_MSG_CHECKING(whether the default adouble constructor should initialize the value to 0)
244AC_ARG_ENABLE(stdczero,
245              [
246AS_HELP_STRING([--disable-stdczero],[adouble default constructor does not initialize the value to zero
247(improves performance but yields incorrect results for implicit array initializations, see manual) [default=enabled]])],
248  [
249  adolc_stdczero=no
250  AC_MSG_RESULT(no)
251  ],
252  [
253  adolc_stdczero=yes
254  AC_MSG_RESULT(yes)
255  ])
256
257if test x$adolc_stdczero == xyes; then
258AC_DEFINE(ADOLC_ADOUBLE_STDCZERO,1,[ADOL-C adouble zeroing mode])
259fi
260
261AC_MSG_CHECKING(whether the adouble variables have a late initialize option for functions like malloc/realloc)
262AC_ARG_ENABLE(lateinit,
263              [
264AS_HELP_STRING([--enable-lateinit],[adouble constructors need to be called. With malloc or realloc that is not the case. With this option the adouble can do a late initialization.) [default=disabled]])],
265  [
266  adolc_late_init=yes
267  AC_MSG_RESULT(yes)
268  ],
269  [
270  adolc_late_init=no
271  AC_MSG_RESULT(no)
272  ])
273
274if test x$adolc_late_init == xyes; then
275AC_DEFINE(ADOLC_ADOUBLE_LATEINIT,1,[ADOL-C adouble late initialization mode])
276fi
277
278AC_MSG_CHECKING(whether errno is thread save)
279AC_ARG_ENABLE(tserrno,
280              [
281AS_HELP_STRING([--enable-tserrno],[use errno as thread number cache [default=no]])],
282  [
283  adolc_tserrno=$enableval
284  AC_MSG_RESULT($adolc_tserrno)
285   ],
286  [
287  adolc_tserrno=no
288  AC_MSG_RESULT(no)
289  ])
290
291if test x$adolc_tserrno == xyes ; then
292AC_DEFINE(ADOLC_THREADSAVE_ERRNO,1,[ADOL-C thread save errno mode])
293fi
294
295AC_MSG_CHECKING(which flag to use to enable OpenMP)
296AC_ARG_WITH(openmp-flag,
297            [AS_HELP_STRING([--with-openmp-flag=FLAG],
298                            [use FLAG to enable OpenMP at compile time [default=none]])],
299            [ac_adolc_openmpflag=$withval
300             AC_MSG_RESULT($ac_adolc_openmpflag)],
301            [ac_adolc_openmpflag=""
302             AC_MSG_RESULT(none)])
303
304AX_BOOST_BASE([1.54],[boost_new=yes],[boost_new=no])
305if test x$boost_new = xyes ; then
306CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
307AC_LANG_PUSH([C++])
308AC_CHECK_HEADERS([boost/pool/pool_alloc.hpp])
309AC_LANG_POP([C++])
310AX_BOOST_SYSTEM
311LDFLAGS="$LDFLAGS $BOOST_LDFLAGS $BOOST_SYSTEM_LIB"
312fi
313
314if test "x$want_boost" = xyes -a "x$boost_new" = xyes -a "x$ac_cv_header_boost_pool_pool_alloc_hpp" = xyes -a "x$link_system" = xyes ; then
315    using_boost_pool=yes
316else
317    using_boost_pool=no
318fi
319
320if test "x$using_boost_pool" = xyes -a "x$ac_adolc_openmpflag" = x ; then
321   AC_DEFINE(BOOST_POOL_NO_MT,1,[Boost pool should not assume multithreading])
322fi
323
324# ADOL-C Sparse facility
325AC_MSG_CHECKING(whether to build sparse drivers)
326AC_ARG_ENABLE(sparse,
327            [
328AS_HELP_STRING([--enable-sparse],[build sparse drivers [default=disabled]])],
329            [sparse=$enableval
330             AC_MSG_RESULT($sparse)],
331            [sparse="no"
332             AC_MSG_RESULT(no)])
333
334COLPACK_CONF
335
336AM_CONDITIONAL(SPARSE,[test x${sparse} = xyes])
337
338if test x$sparse = xyes ; then
339   AC_DEFINE(SPARSE,[1],[Define 1 if sparse derivative propagation is to be enabled])
340fi
341
342# ADOL-C Examples
343AC_MSG_CHECKING(whether to build documented examples)
344AC_ARG_ENABLE(docexa,
345            [
346AS_HELP_STRING([--enable-docexa],[build documented examples [default=disabled]])],
347            [docexa=$enableval
348             AC_MSG_RESULT(yes)],
349            [docexa="no"
350             AC_MSG_RESULT(no)])
351AM_CONDITIONAL(DOCEXA,[test x${docexa} = xyes])
352
353AC_MSG_CHECKING(whether to build additional examples)
354AC_ARG_ENABLE(addexa,
355            [AS_HELP_STRING([--enable-addexa],
356                            [build additional examples [default=disabled]])],
357            [addexa=$enableval
358             AC_MSG_RESULT(yes)],
359            [addexa="no"
360             AC_MSG_RESULT(no)])
361AM_CONDITIONAL(ADDEXA,[test x${addexa} = xyes])
362
363AC_MSG_CHECKING(whether to build parallel example)
364AC_ARG_ENABLE(parexa,
365            [AS_HELP_STRING([--enable-parexa],
366                            [build parallel example [default=disabled], if enabled -with-openmp-flag=FLAG required])],
367            [parexa=$enableval
368             AC_MSG_RESULT(yes)],
369            [parexa="no"
370             AC_MSG_RESULT(no)])
371AM_CONDITIONAL(PAREXA,[test x${parexa} = xyes])
372
373# ADOL-C Compilation flags
374AC_MSG_CHECKING(which CFLAGS to use)
375AC_ARG_WITH(cflags,
376            [AS_HELP_STRING([--with-cflags=FLAGS],
377                            [use CFLAGS=FLAGS (default: -O2)])],
378            [ac_adolc_cflags="$withval"
379             if test x${adolc_debug} == xyes ||
380                test x${adolc_harddebug} == xyes ; then
381                ac_adolc_cflags="$ac_adolc_cflags -g -O0"
382             fi
383             ac_adolc_cflags="$ac_adolc_cflags $ac_adolc_openmpflag"
384             AC_SUBST(ac_adolc_cflags)
385             AC_MSG_RESULT($ac_adolc_cflags)],
386            [if test "$ac_shell_cflags" = "not_set"; then
387                ac_adolc_cflags="-O2"
388                if test x${adolc_debug} == xyes ||
389                   test x${adolc_harddebug} == xyes ; then
390                   ac_adolc_cflags="-g -O0 -Wall -ansi"
391                fi
392             else
393                ac_adolc_cflags="$CFLAGS"
394             fi
395             ac_adolc_cflags="$ac_adolc_cflags $ac_adolc_openmpflag"
396
397             AC_SUBST(ac_adolc_cflags)
398             AC_MSG_RESULT($ac_adolc_cflags)])
399
400AC_MSG_CHECKING(which CXXFLAGS to use)
401AC_ARG_WITH(cxxflags,
402            [AS_HELP_STRING([--with-cxxflags=FLAGS],
403                            [use CXXFLAGS=FLAGS (default: -O2)])],
404            [ac_adolc_cxxflags="$withval"
405             if test x${adolc_debug} == xyes ||
406                test x${adolc_harddebug} == xyes ; then
407                ac_adolc_cxxflags="$ac_adolc_cxxflags -g -O0"
408             fi
409             ac_adolc_cxxflags="$ac_adolc_cxxflags $ac_adolc_openmpflag"
410             AC_SUBST(ac_adolc_cxxflags)
411             AC_MSG_RESULT($ac_adolc_cxxflags)],
412            [if test "$ac_shell_cxxflags" = "not_set"; then
413                ac_adolc_cxxflags="-O2"
414                if test x${adolc_debug} == xyes ||
415                   test x${adolc_harddebug} == xyes ; then
416                   ac_adolc_cxxflags="-g -O0 -Wall"
417                fi
418             else
419                ac_adolc_cxxflags="$CXXFLAGS"
420             fi
421             ac_adolc_cxxflags="$ac_adolc_cxxflags $ac_adolc_openmpflag"
422            AC_SUBST(ac_adolc_cxxflags)
423            AC_MSG_RESULT($ac_adolc_cxxflags)])
424
425MPI_CONF_POST
426AMPI_CONF
427
428AC_ARG_WITH(soname,
429            [AS_HELP_STRING([--with-soname=NAME],
430              [user can choose what to call his library here [default: if ampi enabled then adolc_ampi otherwise adolc]])],
431      [adolclib=$withval])
432
433AC_SUBST(adolclib)
434
435AC_MSG_CHECKING(whether tape_doc should compute values as it prints the tape contents)
436AC_ARG_ENABLE(tapedoc_values,
437              [
438                AS_HELP_STRING([--disable-tapedoc-values],
439                               [should the tape_doc routine compute the values as it interprets and prints the tape contents [default=enabled]])],
440  [
441  tapedoc_values=no
442  ],
443  [
444  tapedoc_values=yes
445  ])
446AC_MSG_RESULT($tapedoc_values)
447
448if test x$tapedoc_values == xyes; then
449AC_DEFINE(ADOLC_TAPE_DOC_VALUES,1,[ADOL-C tape_doc routine computes values])
450fi
451
452###########################################################################
453#                      COIN_PATCH_LIBTOOL_CYGWIN                          #
454###########################################################################
455
456# Patches to libtool for cygwin. Lots for cl, a few for GCC.
457# For cl:
458# - cygpath is not correctly quoted in fix_srcfile_path
459# - paths generated for .lib files is not run through cygpath -w
460
461#
462# REQUIRED FOR COMPILATION WITH CYGWIN !!!
463#
464 
465
466AC_DEFUN([AC_COIN_PATCH_LIBTOOL_CYGWIN],
467[ case "$CXX" in
468    clang* | */clang*)
469        # do nothing but don't want to accidentally match the 'cl' patterns below
470        ;;
471    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
472      AC_MSG_NOTICE(Applying patches to libtool for cl compiler)
473      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
474          -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
475          -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
476          -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
477          -e 's%lib /OUT:%lib -OUT:%' \
478          -e "s%cygpath -w%$CYGPATH_W%" \
479          -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\`lib -nologo -list \\$f_ex_an_ar_oldlib | xargs echo '"$mydos2unix"'\\`; echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$f_ex_an_ar_oldlib; done%' \
480          -e 's/$AR t/lib -nologo -list/' \
481          -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
482          -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
483          -e 's%old_archive_cmds="lib -OUT:\\$oldlib\\$oldobjs\\$old_deplibs"%old_archive_cmds="if test -r \\$oldlib; then bla=\\"\\$oldlib\\"; else bla=; fi; lib -OUT:\\$oldlib \\\\\\$bla\\$oldobjs\\$old_deplibs"%' \
484      libtool > conftest.bla
485
486      mv conftest.bla libtool
487      chmod 755 libtool
488      ;;
489    *)
490      AC_MSG_NOTICE(Applying patches to libtool for GNU compiler)
491      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
492          -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
493          -e 's|libext="lib"|libext="a"|' \
494      libtool > conftest.bla
495
496      mv conftest.bla libtool
497      chmod 755 libtool
498      ;;
499  esac ]) # COIN_PATCH_LIBTOOL_CYGWIN
500 
501
502# output
503AC_CONFIG_FILES(Makefile
504                ADOL-C/Makefile
505                ADOL-C/include/Makefile
506                ADOL-C/include/adolc/Makefile
507                ADOL-C/include/adolc/internal/adolc_settings.h
508                ADOL-C/include/adolc/drivers/Makefile
509                ADOL-C/include/adolc/internal/Makefile
510                ADOL-C/include/adolc/lie/Makefile
511                ADOL-C/include/adolc/sparse/Makefile
512                ADOL-C/include/adolc/tapedoc/Makefile
513                ADOL-C/src/Makefile
514                ADOL-C/src/drivers/Makefile
515                ADOL-C/src/lie/Makefile
516                ADOL-C/src/sparse/Makefile
517                ADOL-C/src/tapedoc/Makefile
518                ADOL-C/doc/version.tex
519                ADOL-C/examples/Makefile
520                ADOL-C/examples/additional_examples/Makefile
521                ADOL-C/examples/additional_examples/cuda/Makefile
522                ADOL-C/examples/additional_examples/clock/Makefile
523                ADOL-C/examples/additional_examples/checkpointing/Makefile
524                ADOL-C/examples/additional_examples/ext_diff_func/Makefile
525                ADOL-C/examples/additional_examples/fixpoint_exam/Makefile
526                ADOL-C/examples/additional_examples/hessmat/Makefile
527                ADOL-C/examples/additional_examples/lie/Makefile
528                ADOL-C/examples/additional_examples/lufact/Makefile
529                ADOL-C/examples/additional_examples/openmp_exam/Makefile
530                ADOL-C/examples/additional_examples/scal/Makefile
531                ADOL-C/examples/additional_examples/speelpenning/Makefile
532                ADOL-C/examples/additional_examples/taylor/Makefile
533                ADOL-C/examples/additional_examples/detexam/Makefile
534                ADOL-C/examples/additional_examples/helm/Makefile
535                ADOL-C/examples/additional_examples/lighthouse/Makefile
536                ADOL-C/examples/additional_examples/ode/Makefile
537                ADOL-C/examples/additional_examples/sparse/Makefile
538                ADOL-C/examples/additional_examples/tapesave/Makefile
539                ADOL-C/examples/additional_examples/pow/Makefile
540                ADOL-C/examples/additional_examples/timing/Makefile
541                ADOL-C/examples/additional_examples/param/Makefile
542                ADOL-C/test/Makefile
543                MSVisualStudio/v14/sparse/config.h
544                MSVisualStudio/v14/nosparse/config.h
545                MSVisualStudio/v14/x64/sparse/config.h
546                MSVisualStudio/v14/x64/nosparse/config.h
547                adolc.spec
548                adolclib.pc
549)
550
551AC_OUTPUT
552
553#call libtool for cygwin
554AC_COIN_PATCH_LIBTOOL_CYGWIN
555warn=false
556# echo configuration
557echo \
558"
559-----------------------------------------------------------------------------
560Configuration:
561
562  C compiler:                         ${CC}
563  C++ compiler:                       ${CXX}
564  Linker:                             ${LD}
565  Source code location:               `pwd`
566  Install path:                       ${prefix}
567 
568  CFLAGS:                             ${ac_adolc_cflags}
569  CXXFLAGS:                           ${ac_adolc_cxxflags}
570
571  Use Boost pool allocator:           ${using_boost_pool}
572  Use ADOL-C debug mode:              ${adolc_debug}
573  Use ADOL-C hard debug mode:         ${adolc_harddebug}
574  Zero value in adouble default ctor: ${adolc_stdczero}"
575
576if [[ "x${ac_adolc_openmpflag}" != "x" ]] ; then
577    echo \
578"  Access thread number via errno:     ${adolc_tserrno}"
579fi
580
581echo \
582"  Use ADOL-C safe extern mode:        ${adolc_safe_extern}
583  Use ADOL-C late init mode:          ${adolc_late_init}
584
585  Build sparse drivers:               ${sparse}
586  Build with adjoinable MPI support:  ${adolc_ampi_support}
587  Build with ColPack:                 ${have_colpack}"
588if test x$sparse = xyes && test x$have_colpack = xno; then
589    echo -e \
590"  \033@<:@1;31mCompressed sparse structures will not be available
591  Only sparsity patterns can be computed\033@<:@0m"
592    warn=true
593fi
594echo
595
596echo \
597"  Build documented examples:          ${docexa}
598  Build additional examples:          ${addexa}
599  tape_doc routine computes values:   ${tapedoc_values}
600
601  See ADOL-C/src/config.h for further configuration information.
602-----------------------------------------------------------------------------"
603
604# check for make install problems resulting from missing write permission
605pdir=${prefix}
606writable=true
607while test "x${pdir}" != "x/" ; do
608    if test -e ${pdir} && test ! -w ${pdir}; then
609        writable=false
610        break
611    elif test ! -e ${pdir} ; then
612        pdir=`dirname ${pdir}`
613    else
614        break
615    fi
616done
617if test "x${pdir}" == "x/" ; then
618    writable=false
619fi
620if ! ${writable} ; then
621    echo -e \
622"  \033@<:@1;31mPrefix ${prefix} not writable
623  please run ./configure --prefix=DIR
624  with a writable directory path otherwise administrator privileges
625  will be required to run \`make install'\033@<:@0m"
626    warn=true
627fi
628
629case ${prefix} in
630   ${HOME}|${HOME}/*)
631if $warn ; then
632    for (( i=5; i>0; i-- )); do
633        echo -ne "\rPlease read the above messages carefully, continuing in ${i} seconds"
634        sleep 1
635    done
636    echo -e "\rPlease read the above messages carefully                                 "
637fi
638echo \
639"
640*****************************************************************************
641
642  To successfully compile and run programs using the ADOL-C shared library do
643  the following things:
644     compiling:
645        * add \"-I${prefix}/include\" to your compiler call
646     linking:
647        * add \"-L${libdir} -l$adolclib\" to your linker call
648        * extend your linker call by \"-Wl,--rpath -Wl,${libdir}\"
649          (if you wish to skip the point \"executing\")
650     executing (do one of the following things):
651        * add ${libdir} to your LD_LIBRARY_PATH variable
652        * ask your system administrator for adding ${libdir} to
653          the global file containing library search paths (/etc/ld.so.conf)
654
655     (or use the static library by replacing
656        \"-L${libdir} -l$adolclib\" with
657        \"${libdir}/lib$adolclib.a\" when linking)
658
659  See README for instructions on how to change to a nonlocal installation!
660
661*****************************************************************************
662"
663;;
664esac
665if test "x$enable_static" != "xno" ; then
666echo \
667" Linking a user program with a static ADOL-C library will always result
668  in a segmentation fault. Please always use the shared library.
669*****************************************************************************
670"
671fi
Note: See TracBrowser for help on using the repository browser.