source: trunk/configure.ac @ 410

Last change on this file since 410 was 410, checked in by kulshres, 8 years ago

Preprocessor SPARSE=1 should be defined in config.h instead of Makefile.am

See http://bugs.debian.org/700937

Reported-by: Barak A. Perlmutter <barak@…>
Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

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