Changeset 708 for trunk/configure


Ignore:
Timestamp:
Jul 12, 2016 4:18:44 AM (3 years ago)
Author:
kulshres
Message:

Merge branch 'master' of 'gitclone' into 'svn'

The following changes have been merged:

commit e2291bde44a282a133894b0db350aeb0b92a87db
Author: Mladen Banovic <mladenbanovic2705@…>
Date: Fri Jul 8 10:15:51 2016 +0200

Add methods getNumLiveVar and getNumDir in adtl.h, change counter type in FOR_I_EQ_0_LT_NUMDIR macro to size_t (instead of int). Update chunk size of BOOST pool in adouble_tl.cpp according to adouble::numDir.

commit 2ffb294465b973bfd4bf1f73d84478f8233c0d2f
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 23 12:32:14 2016 +0200

implement missing ref_eq_mult_p und ref_eq_min_p in ho_rev.c

somehow these were left out when parameters were being implemented.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 8cf0e5c1bd36f1dcf3be72cd67de631b2e1d0ee6
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 23 12:31:04 2016 +0200

make sure the result is the last locint written in trace for each operation

since we're trying to generate ascii traces in the future, we'll need this
convention that the last location is the result, and previous locations
are arguments. This has been the case for almost all operations anyway
except for a few new one's that I wrote without keeping this in mind.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 9ae0ff220f37463f2ed85cafc8a626c24e472f2f
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Tue Jun 21 14:16:27 2016 +0200

on some compilers newer boost interferes with AC_FUNC_MALLOC test

so do AC_FUNC_MALLOC and AC_FUNC_REALLOC as usual and check for boost
library later.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit b746f620772cc8cce53e8f350adc6281279caf72
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Jun 20 15:32:22 2016 +0200

make Klaus Röbenack's name UTF-8 instead of ISO-8859-1

These are the only places where we're not simple ASCII or UTF-8 already

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 1171aa3961b5eb46a5d2ee64751c02a393a8a6f5
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Fri Jun 17 10:42:39 2016 +0200

correct short_ref document about include file

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 2c6b2aac2ef04431ece2c6ff80e574aa2e58814b
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Fri Jun 17 10:40:34 2016 +0200

correct error message to new semantics

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 506cde73451740bf0a15eff7d4abb158ee719ab0
Author: mflehmig <martin.flehmig@…>
Date: Fri Jun 17 10:14:26 2016 +0200

Fixed include of ADOL-C header.

ADOL-C header was included in old fashion (without adolc directory) for this example.

commit 2a023d3281d3d6d9824bad724a5768e3ee2fff94
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 16 13:50:39 2016 +0200

Try to use boost::pool for allocating advals in traceless vector mode

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 80f1e2019ac1faab96fe06f3e9da47efcc1bcd23
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon May 23 15:13:22 2016 +0200

correct a reference in doc and rebuild

commit d7ab5283afe58bacb2e8739d72ede4e17f4c8081
Author: Mladen Banovic <mladenbanovic2705@…>
Date: Fri May 20 16:42:13 2016 +0200

Update section 7 of adolc-manual related to the Traceless forward differentiation.

commit bedb8e36f959c5272e4610fe504acc83208e5e9d
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Tue May 17 16:09:36 2016 +0200

macro name correction

commit 92ff596a0331776901df7f172ca347572e3daafd
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Tue May 17 15:56:17 2016 +0200

Add a warning about using static build of ADOL-C

static build of ADOL-C does not call constructors
for internal global objects, thereby causing
segmentation faults.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r696 r708  
    651651HAVE_LIBCOLPACK_FALSE
    652652HAVE_LIBCOLPACK_TRUE
     653USE_BOOST_POOL
     654BOOST_SYSTEM_LIB
     655BOOST_LDFLAGS
     656BOOST_CPPFLAGS
    653657ADVBRANCH
    654658REAL_TYPE
     
    660664ADOLC_VERSION
    661665ac_aux_dir
    662 BOOST_SYSTEM_LIB
    663 BOOST_LDFLAGS
    664 BOOST_CPPFLAGS
    665666_lib
    666667saveCXX
     
    811812with_mpicc
    812813with_mpicxx
    813 with_boost
    814 with_boost_libdir
    815 with_boost_system
    816814enable_use_calloc
    817815enable_atrig_erf
     
    825823enable_tserrno
    826824with_openmp_flag
     825with_boost
     826with_boost_libdir
     827with_boost_system
    827828enable_sparse
    828829with_colpack
     
    15381539  --with-mpicc=MPICC      name of the MPI C++ compiler to use (default mpicc)
    15391540  --with-mpicxx=MPICXX    name of the MPI C++ compiler to use (default mpicxx)
     1541  --with-openmp-flag=FLAG use FLAG to enable OpenMP at compile time
     1542                          [default=none]
    15401543  --with-boost[=ARG]      use Boost library from a standard location
    15411544                          (ARG=yes), from the specified location (ARG=<path>),
     
    15511554                          to specify a certain library for the linker e.g.
    15521555                          --with-boost-system=boost_system-gcc-mt
    1553   --with-openmp-flag=FLAG use FLAG to enable OpenMP at compile time
    1554                           [default=none]
    15551556
    15561557  --with-colpack=DIR      path to the colpack library and headers
     
    1638916390
    1639016391
     16392if test "x$enable_static" != "xno" ; then
     16393   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Linking a user program with static ADOL-C library will always result in a segmentation fault" >&5
     16394$as_echo "$as_me: WARNING: Linking a user program with static ADOL-C library will always result in a segmentation fault" >&2;}
     16395fi
     16396
    1639116397
    1639216398
     
    1705117057fi
    1705217058done
     17059
     17060
     17061# substitutions
     17062
     17063
     17064# ADOL-C configuration
     17065
     17066$as_echo "#define ADOLC_VERSION 2" >>confdefs.h
     17067
     17068
     17069$as_echo "#define ADOLC_SUBVERSION 6" >>confdefs.h
     17070
     17071
     17072$as_echo "#define ADOLC_PATCHLEVEL 2" >>confdefs.h
     17073
     17074ADOLC_VERSION=2
     17075ADOLC_SUBVERSION=6
     17076ADOLC_PATCHLEVEL=2
     17077
     17078
     17079
     17080
     17081# Checks for library functions
     17082for ac_header in stdlib.h
     17083do :
     17084  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
     17085if test "x$ac_cv_header_stdlib_h" = xyes; then :
     17086  cat >>confdefs.h <<_ACEOF
     17087#define HAVE_STDLIB_H 1
     17088_ACEOF
     17089
     17090fi
     17091
     17092done
     17093
     17094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
     17095$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
     17096if ${ac_cv_func_malloc_0_nonnull+:} false; then :
     17097  $as_echo_n "(cached) " >&6
     17098else
     17099  if test "$cross_compiling" = yes; then :
     17100  ac_cv_func_malloc_0_nonnull=no
     17101else
     17102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17103/* end confdefs.h.  */
     17104#if defined STDC_HEADERS || defined HAVE_STDLIB_H
     17105# include <stdlib.h>
     17106#else
     17107char *malloc ();
     17108#endif
     17109
     17110int
     17111main ()
     17112{
     17113return ! malloc (0);
     17114  ;
     17115  return 0;
     17116}
     17117_ACEOF
     17118if ac_fn_c_try_run "$LINENO"; then :
     17119  ac_cv_func_malloc_0_nonnull=yes
     17120else
     17121  ac_cv_func_malloc_0_nonnull=no
     17122fi
     17123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     17124  conftest.$ac_objext conftest.beam conftest.$ac_ext
     17125fi
     17126
     17127fi
     17128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
     17129$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
     17130if test $ac_cv_func_malloc_0_nonnull = yes; then :
     17131
     17132$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
     17133
     17134else
     17135  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
     17136
     17137   case " $LIBOBJS " in
     17138  *" malloc.$ac_objext "* ) ;;
     17139  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
     17140 ;;
     17141esac
     17142
     17143
     17144$as_echo "#define malloc rpl_malloc" >>confdefs.h
     17145
     17146fi
     17147
     17148
     17149for ac_header in stdlib.h
     17150do :
     17151  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
     17152if test "x$ac_cv_header_stdlib_h" = xyes; then :
     17153  cat >>confdefs.h <<_ACEOF
     17154#define HAVE_STDLIB_H 1
     17155_ACEOF
     17156
     17157fi
     17158
     17159done
     17160
     17161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
     17162$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
     17163if ${ac_cv_func_realloc_0_nonnull+:} false; then :
     17164  $as_echo_n "(cached) " >&6
     17165else
     17166  if test "$cross_compiling" = yes; then :
     17167  ac_cv_func_realloc_0_nonnull=no
     17168else
     17169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17170/* end confdefs.h.  */
     17171#if defined STDC_HEADERS || defined HAVE_STDLIB_H
     17172# include <stdlib.h>
     17173#else
     17174char *realloc ();
     17175#endif
     17176
     17177int
     17178main ()
     17179{
     17180return ! realloc (0, 0);
     17181  ;
     17182  return 0;
     17183}
     17184_ACEOF
     17185if ac_fn_c_try_run "$LINENO"; then :
     17186  ac_cv_func_realloc_0_nonnull=yes
     17187else
     17188  ac_cv_func_realloc_0_nonnull=no
     17189fi
     17190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     17191  conftest.$ac_objext conftest.beam conftest.$ac_ext
     17192fi
     17193
     17194fi
     17195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
     17196$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
     17197if test $ac_cv_func_realloc_0_nonnull = yes; then :
     17198
     17199$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
     17200
     17201else
     17202  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
     17203
     17204   case " $LIBOBJS " in
     17205  *" realloc.$ac_objext "* ) ;;
     17206  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
     17207 ;;
     17208esac
     17209
     17210
     17211$as_echo "#define realloc rpl_realloc" >>confdefs.h
     17212
     17213fi
     17214
     17215
     17216if test x$ac_cv_func_malloc_0_nonnull != xyes ; then
     17217
     17218cat >>confdefs.h <<_ACEOF
     17219#define calloc rpl_calloc
     17220_ACEOF
     17221
     17222fi
     17223
     17224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use calloc or malloc for memory allocation" >&5
     17225$as_echo_n "checking whether to use calloc or malloc for memory allocation... " >&6; }
     17226# Check whether --enable-use-calloc was given.
     17227if test "${enable_use_calloc+set}" = set; then :
     17228  enableval=$enable_use_calloc; use_calloc=$enableval
     17229else
     17230  use_calloc=yes
     17231fi
     17232
     17233
     17234if test x$use_calloc = xyes ; then
     17235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: calloc" >&5
     17236$as_echo "calloc" >&6; }
     17237
     17238$as_echo "#define ADOLC_USE_CALLOC 1" >>confdefs.h
     17239
     17240else
     17241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc" >&5
     17242$as_echo "malloc" >&6; }
     17243fi
     17244
     17245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable atrig/erf functions" >&5
     17246$as_echo_n "checking whether to enable atrig/erf functions... " >&6; }
     17247# Check whether --enable-atrig-erf was given.
     17248if test "${enable_atrig_erf+set}" = set; then :
     17249  enableval=$enable_atrig_erf; use_atrig_erf=$enableval
     17250else
     17251  use_atrig_erf=no
     17252fi
     17253
     17254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_atrig_erf" >&5
     17255$as_echo "$use_atrig_erf" >&6; }
     17256
     17257if test x$use_atrig_erf = xyes ; then
     17258  ATRIG_ERF="#define ATRIG_ERF 1"
     17259else
     17260  ATRIG_ERF="#undef ATRIG_ERF"
     17261fi
     17262
     17263
     17264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use 32-bit or 64-bit locations" >&5
     17265$as_echo_n "checking whether to use 32-bit or 64-bit locations... " >&6; }
     17266# Check whether --enable-ulong was given.
     17267if test "${enable_ulong+set}" = set; then :
     17268  enableval=$enable_ulong; use_ulong=$enableval
     17269else
     17270  use_ulong=no
     17271fi
     17272
     17273
     17274if test x$use_ulong = xyes -a 0$ac_cv_sizeof_void_p -ge 8 ; then
     17275  UINT_TYPE=uint64_t
     17276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: 64-bit" >&5
     17277$as_echo "64-bit" >&6; }
     17278else
     17279  UINT_TYPE=uint32_t
     17280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5
     17281$as_echo "32-bit" >&6; }
     17282fi
     17283
     17284
     17285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use single or double precision" >&5
     17286$as_echo_n "checking whether to use single or double precision... " >&6; }
     17287# Check whether --enable-double was given.
     17288if test "${enable_double+set}" = set; then :
     17289  enableval=$enable_double; use_double=$enableval
     17290else
     17291  use_double=yes
     17292fi
     17293
     17294
     17295if test x$use_double = xno ; then
     17296  REAL_TYPE=float
     17297  echo
     17298  echo -n "using ${REAL_TYPE} is not well tested, please report bugs if you find any..."
     17299else
     17300  REAL_TYPE=double
     17301fi
     17302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REAL_TYPE" >&5
     17303$as_echo "$REAL_TYPE" >&6; }
     17304
     17305
     17306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable advanced branching operations" >&5
     17307$as_echo_n "checking whether to enable advanced branching operations... " >&6; }
     17308# Check whether --enable-advanced-branching was given.
     17309if test "${enable_advanced_branching+set}" = set; then :
     17310  enableval=$enable_advanced_branching; use_advbranch=$enableval
     17311else
     17312  use_advbranch=no
     17313fi
     17314
     17315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_advbranch" >&5
     17316$as_echo "$use_advbranch" >&6; }
     17317
     17318if test x$use_advbranch = xyes ; then
     17319  ADVBRANCH="#define ADOLC_ADVANCED_BRANCHING 1"
     17320else
     17321  ADVBRANCH="#undef ADOLC_ADVANCED_BRANCHING"
     17322fi
     17323
     17324
     17325
     17326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ADOL-C debug mode" >&5
     17327$as_echo_n "checking whether to use ADOL-C debug mode... " >&6; }
     17328# Check whether --enable-debug was given.
     17329if test "${enable_debug+set}" = set; then :
     17330  enableval=$enable_debug;
     17331  adolc_debug=$enableval
     17332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $adolc_debug" >&5
     17333$as_echo "$adolc_debug" >&6; }
     17334
     17335else
     17336
     17337   adolc_debug=no
     17338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     17339$as_echo "no" >&6; }
     17340
     17341fi
     17342
     17343
     17344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ADOL-C hard debug mode" >&5
     17345$as_echo_n "checking whether to use ADOL-C hard debug mode... " >&6; }
     17346# Check whether --enable-harddebug was given.
     17347if test "${enable_harddebug+set}" = set; then :
     17348  enableval=$enable_harddebug;
     17349   adolc_harddebug=$enableval
     17350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $adolc_harddebug" >&5
     17351$as_echo "$adolc_harddebug" >&6; }
     17352
     17353else
     17354
     17355   adolc_harddebug=no
     17356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     17357$as_echo "no" >&6; }
     17358
     17359fi
     17360
     17361
     17362if test x$adolc_harddebug == xyes ; then
     17363adolc_debug=yes
     17364
     17365$as_echo "#define ADOLC_HARDDEBUG 1" >>confdefs.h
     17366
     17367fi
     17368
     17369if test x$adolc_debug == xyes ; then
     17370
     17371$as_echo "#define ADOLC_DEBUG 1" >>confdefs.h
     17372
     17373fi
     17374
     17375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the default adouble constructor should initialize the value to 0" >&5
     17376$as_echo_n "checking whether the default adouble constructor should initialize the value to 0... " >&6; }
     17377# Check whether --enable-stdczero was given.
     17378if test "${enable_stdczero+set}" = set; then :
     17379  enableval=$enable_stdczero;
     17380  adolc_stdczero=no
     17381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     17382$as_echo "no" >&6; }
     17383
     17384else
     17385
     17386  adolc_stdczero=yes
     17387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     17388$as_echo "yes" >&6; }
     17389
     17390fi
     17391
     17392
     17393if test x$adolc_stdczero == xyes; then
     17394
     17395$as_echo "#define ADOLC_ADOUBLE_STDCZERO 1" >>confdefs.h
     17396
     17397fi
     17398
     17399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the adouble variables have a late initialize option for functions like malloc/realloc" >&5
     17400$as_echo_n "checking whether the adouble variables have a late initialize option for functions like malloc/realloc... " >&6; }
     17401# Check whether --enable-lateinit was given.
     17402if test "${enable_lateinit+set}" = set; then :
     17403  enableval=$enable_lateinit;
     17404  adolc_late_init=yes
     17405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     17406$as_echo "yes" >&6; }
     17407
     17408else
     17409
     17410  adolc_late_init=no
     17411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     17412$as_echo "no" >&6; }
     17413
     17414fi
     17415
     17416
     17417if test x$adolc_late_init == xyes; then
     17418
     17419$as_echo "#define ADOLC_ADOUBLE_LATEINIT 1" >>confdefs.h
     17420
     17421fi
     17422
     17423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether errno is thread save" >&5
     17424$as_echo_n "checking whether errno is thread save... " >&6; }
     17425# Check whether --enable-tserrno was given.
     17426if test "${enable_tserrno+set}" = set; then :
     17427  enableval=$enable_tserrno;
     17428  adolc_tserrno=$enableval
     17429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $adolc_tserrno" >&5
     17430$as_echo "$adolc_tserrno" >&6; }
     17431
     17432else
     17433
     17434  adolc_tserrno=no
     17435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     17436$as_echo "no" >&6; }
     17437
     17438fi
     17439
     17440
     17441if test x$adolc_tserrno == xyes ; then
     17442
     17443$as_echo "#define ADOLC_THREADSAVE_ERRNO 1" >>confdefs.h
     17444
     17445fi
     17446
     17447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which flag to use to enable OpenMP" >&5
     17448$as_echo_n "checking which flag to use to enable OpenMP... " >&6; }
     17449
     17450# Check whether --with-openmp-flag was given.
     17451if test "${with_openmp_flag+set}" = set; then :
     17452  withval=$with_openmp_flag; ac_adolc_openmpflag=$withval
     17453             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_adolc_openmpflag" >&5
     17454$as_echo "$ac_adolc_openmpflag" >&6; }
     17455else
     17456  ac_adolc_openmpflag=""
     17457             { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
     17458$as_echo "none" >&6; }
     17459fi
    1705317460
    1705417461
     
    1760518012if 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
    1760618013    using_boost_pool=yes
     18014    USE_BOOST_POOL="#define USE_BOOST_POOL 1"
    1760718015else
    1760818016    using_boost_pool=no
    17609 fi
    17610 
    17611 # substitutions
    17612 
    17613 
    17614 # ADOL-C configuration
    17615 
    17616 $as_echo "#define ADOLC_VERSION 2" >>confdefs.h
    17617 
    17618 
    17619 $as_echo "#define ADOLC_SUBVERSION 6" >>confdefs.h
    17620 
    17621 
    17622 $as_echo "#define ADOLC_PATCHLEVEL 2" >>confdefs.h
    17623 
    17624 ADOLC_VERSION=2
    17625 ADOLC_SUBVERSION=6
    17626 ADOLC_PATCHLEVEL=2
    17627 
    17628 
    17629 
    17630 
    17631 # Checks for library functions
    17632 for ac_header in stdlib.h
    17633 do :
    17634   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
    17635 if test "x$ac_cv_header_stdlib_h" = xyes; then :
    17636   cat >>confdefs.h <<_ACEOF
    17637 #define HAVE_STDLIB_H 1
    17638 _ACEOF
    17639 
    17640 fi
    17641 
    17642 done
    17643 
    17644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
    17645 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
    17646 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
    17647   $as_echo_n "(cached) " >&6
    17648 else
    17649   if test "$cross_compiling" = yes; then :
    17650   ac_cv_func_malloc_0_nonnull=no
    17651 else
    17652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    17653 /* end confdefs.h.  */
    17654 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
    17655 # include <stdlib.h>
    17656 #else
    17657 char *malloc ();
    17658 #endif
    17659 
    17660 int
    17661 main ()
    17662 {
    17663 return ! malloc (0);
    17664   ;
    17665   return 0;
    17666 }
    17667 _ACEOF
    17668 if ac_fn_c_try_run "$LINENO"; then :
    17669   ac_cv_func_malloc_0_nonnull=yes
    17670 else
    17671   ac_cv_func_malloc_0_nonnull=no
    17672 fi
    17673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
    17674   conftest.$ac_objext conftest.beam conftest.$ac_ext
    17675 fi
    17676 
    17677 fi
    17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
    17679 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
    17680 if test $ac_cv_func_malloc_0_nonnull = yes; then :
    17681 
    17682 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
    17683 
    17684 else
    17685   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
    17686 
    17687    case " $LIBOBJS " in
    17688   *" malloc.$ac_objext "* ) ;;
    17689   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
    17690  ;;
    17691 esac
    17692 
    17693 
    17694 $as_echo "#define malloc rpl_malloc" >>confdefs.h
    17695 
    17696 fi
    17697 
    17698 
    17699 for ac_header in stdlib.h
    17700 do :
    17701   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
    17702 if test "x$ac_cv_header_stdlib_h" = xyes; then :
    17703   cat >>confdefs.h <<_ACEOF
    17704 #define HAVE_STDLIB_H 1
    17705 _ACEOF
    17706 
    17707 fi
    17708 
    17709 done
    17710 
    17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
    17712 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
    17713 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
    17714   $as_echo_n "(cached) " >&6
    17715 else
    17716   if test "$cross_compiling" = yes; then :
    17717   ac_cv_func_realloc_0_nonnull=no
    17718 else
    17719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    17720 /* end confdefs.h.  */
    17721 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
    17722 # include <stdlib.h>
    17723 #else
    17724 char *realloc ();
    17725 #endif
    17726 
    17727 int
    17728 main ()
    17729 {
    17730 return ! realloc (0, 0);
    17731   ;
    17732   return 0;
    17733 }
    17734 _ACEOF
    17735 if ac_fn_c_try_run "$LINENO"; then :
    17736   ac_cv_func_realloc_0_nonnull=yes
    17737 else
    17738   ac_cv_func_realloc_0_nonnull=no
    17739 fi
    17740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
    17741   conftest.$ac_objext conftest.beam conftest.$ac_ext
    17742 fi
    17743 
    17744 fi
    17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
    17746 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
    17747 if test $ac_cv_func_realloc_0_nonnull = yes; then :
    17748 
    17749 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
    17750 
    17751 else
    17752   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
    17753 
    17754    case " $LIBOBJS " in
    17755   *" realloc.$ac_objext "* ) ;;
    17756   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
    17757  ;;
    17758 esac
    17759 
    17760 
    17761 $as_echo "#define realloc rpl_realloc" >>confdefs.h
    17762 
    17763 fi
    17764 
    17765 
    17766 if test x$ac_cv_func_malloc_0_nonnull != xyes ; then
    17767 
    17768 cat >>confdefs.h <<_ACEOF
    17769 #define calloc rpl_calloc
    17770 _ACEOF
    17771 
    17772 fi
    17773 
    17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use calloc or malloc for memory allocation" >&5
    17775 $as_echo_n "checking whether to use calloc or malloc for memory allocation... " >&6; }
    17776 # Check whether --enable-use-calloc was given.
    17777 if test "${enable_use_calloc+set}" = set; then :
    17778   enableval=$enable_use_calloc; use_calloc=$enableval
    17779 else
    17780   use_calloc=yes
    17781 fi
    17782 
    17783 
    17784 if test x$use_calloc = xyes ; then
    17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: calloc" >&5
    17786 $as_echo "calloc" >&6; }
    17787 
    17788 $as_echo "#define ADOLC_USE_CALLOC 1" >>confdefs.h
    17789 
    17790 else
    17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc" >&5
    17792 $as_echo "malloc" >&6; }
    17793 fi
    17794 
    17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable atrig/erf functions" >&5
    17796 $as_echo_n "checking whether to enable atrig/erf functions... " >&6; }
    17797 # Check whether --enable-atrig-erf was given.
    17798 if test "${enable_atrig_erf+set}" = set; then :
    17799   enableval=$enable_atrig_erf; use_atrig_erf=$enableval
    17800 else
    17801   use_atrig_erf=no
    17802 fi
    17803 
    17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_atrig_erf" >&5
    17805 $as_echo "$use_atrig_erf" >&6; }
    17806 
    17807 if test x$use_atrig_erf = xyes ; then
    17808   ATRIG_ERF="#define ATRIG_ERF 1"
    17809 else
    17810   ATRIG_ERF="#undef ATRIG_ERF"
    17811 fi
    17812 
    17813 
    17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use 32-bit or 64-bit locations" >&5
    17815 $as_echo_n "checking whether to use 32-bit or 64-bit locations... " >&6; }
    17816 # Check whether --enable-ulong was given.
    17817 if test "${enable_ulong+set}" = set; then :
    17818   enableval=$enable_ulong; use_ulong=$enableval
    17819 else
    17820   use_ulong=no
    17821 fi
    17822 
    17823 
    17824 if test x$use_ulong = xyes -a 0$ac_cv_sizeof_void_p -ge 8 ; then
    17825   UINT_TYPE=uint64_t
    17826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: 64-bit" >&5
    17827 $as_echo "64-bit" >&6; }
    17828 else
    17829   UINT_TYPE=uint32_t
    17830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5
    17831 $as_echo "32-bit" >&6; }
    17832 fi
    17833 
    17834 
    17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use single or double precision" >&5
    17836 $as_echo_n "checking whether to use single or double precision... " >&6; }
    17837 # Check whether --enable-double was given.
    17838 if test "${enable_double+set}" = set; then :
    17839   enableval=$enable_double; use_double=$enableval
    17840 else
    17841   use_double=yes
    17842 fi
    17843 
    17844 
    17845 if test x$use_double = xno ; then
    17846   REAL_TYPE=float
    17847   echo
    17848   echo -n "using ${REAL_TYPE} is not well tested, please report bugs if you find any..."
    17849 else
    17850   REAL_TYPE=double
    17851 fi
    17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REAL_TYPE" >&5
    17853 $as_echo "$REAL_TYPE" >&6; }
    17854 
    17855 
    17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable advanced branching operations" >&5
    17857 $as_echo_n "checking whether to enable advanced branching operations... " >&6; }
    17858 # Check whether --enable-advanced-branching was given.
    17859 if test "${enable_advanced_branching+set}" = set; then :
    17860   enableval=$enable_advanced_branching; use_advbranch=$enableval
    17861 else
    17862   use_advbranch=no
    17863 fi
    17864 
    17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_advbranch" >&5
    17866 $as_echo "$use_advbranch" >&6; }
    17867 
    17868 if test x$use_advbranch = xyes ; then
    17869   ADVBRANCH="#define ADOLC_ADVANCED_BRANCHING 1"
    17870 else
    17871   ADVBRANCH="#undef ADOLC_ADVANCED_BRANCHING"
    17872 fi
    17873 
    17874 
    17875 
    17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ADOL-C debug mode" >&5
    17877 $as_echo_n "checking whether to use ADOL-C debug mode... " >&6; }
    17878 # Check whether --enable-debug was given.
    17879 if test "${enable_debug+set}" = set; then :
    17880   enableval=$enable_debug;
    17881   adolc_debug=$enableval
    17882    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $adolc_debug" >&5
    17883 $as_echo "$adolc_debug" >&6; }
    17884 
    17885 else
    17886 
    17887    adolc_debug=no
    17888    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    17889 $as_echo "no" >&6; }
    17890 
    17891 fi
    17892 
    17893 
    17894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ADOL-C hard debug mode" >&5
    17895 $as_echo_n "checking whether to use ADOL-C hard debug mode... " >&6; }
    17896 # Check whether --enable-harddebug was given.
    17897 if test "${enable_harddebug+set}" = set; then :
    17898   enableval=$enable_harddebug;
    17899    adolc_harddebug=$enableval
    17900    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $adolc_harddebug" >&5
    17901 $as_echo "$adolc_harddebug" >&6; }
    17902 
    17903 else
    17904 
    17905    adolc_harddebug=no
    17906    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    17907 $as_echo "no" >&6; }
    17908 
    17909 fi
    17910 
    17911 
    17912 if test x$adolc_harddebug == xyes ; then
    17913 adolc_debug=yes
    17914 
    17915 $as_echo "#define ADOLC_HARDDEBUG 1" >>confdefs.h
    17916 
    17917 fi
    17918 
    17919 if test x$adolc_debug == xyes ; then
    17920 
    17921 $as_echo "#define ADOLC_DEBUG 1" >>confdefs.h
    17922 
    17923 fi
    17924 
    17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the default adouble constructor should initialize the value to 0" >&5
    17926 $as_echo_n "checking whether the default adouble constructor should initialize the value to 0... " >&6; }
    17927 # Check whether --enable-stdczero was given.
    17928 if test "${enable_stdczero+set}" = set; then :
    17929   enableval=$enable_stdczero;
    17930   adolc_stdczero=no
    17931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    17932 $as_echo "no" >&6; }
    17933 
    17934 else
    17935 
    17936   adolc_stdczero=yes
    17937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
    17938 $as_echo "yes" >&6; }
    17939 
    17940 fi
    17941 
    17942 
    17943 if test x$adolc_stdczero == xyes; then
    17944 
    17945 $as_echo "#define ADOLC_ADOUBLE_STDCZERO 1" >>confdefs.h
    17946 
    17947 fi
    17948 
    17949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the adouble variables have a late initialize option for functions like malloc/realloc" >&5
    17950 $as_echo_n "checking whether the adouble variables have a late initialize option for functions like malloc/realloc... " >&6; }
    17951 # Check whether --enable-lateinit was given.
    17952 if test "${enable_lateinit+set}" = set; then :
    17953   enableval=$enable_lateinit;
    17954   adolc_late_init=yes
    17955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
    17956 $as_echo "yes" >&6; }
    17957 
    17958 else
    17959 
    17960   adolc_late_init=no
    17961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    17962 $as_echo "no" >&6; }
    17963 
    17964 fi
    17965 
    17966 
    17967 if test x$adolc_late_init == xyes; then
    17968 
    17969 $as_echo "#define ADOLC_ADOUBLE_LATEINIT 1" >>confdefs.h
    17970 
    17971 fi
    17972 
    17973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether errno is thread save" >&5
    17974 $as_echo_n "checking whether errno is thread save... " >&6; }
    17975 # Check whether --enable-tserrno was given.
    17976 if test "${enable_tserrno+set}" = set; then :
    17977   enableval=$enable_tserrno;
    17978   adolc_tserrno=$enableval
    17979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $adolc_tserrno" >&5
    17980 $as_echo "$adolc_tserrno" >&6; }
    17981 
    17982 else
    17983 
    17984   adolc_tserrno=no
    17985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    17986 $as_echo "no" >&6; }
    17987 
    17988 fi
    17989 
    17990 
    17991 if test x$adolc_tserrno == xyes ; then
    17992 
    17993 $as_echo "#define ADOLC_THREADSAVE_ERRNO 1" >>confdefs.h
    17994 
    17995 fi
    17996 
    17997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flag to use to enable OpenMP" >&5
    17998 $as_echo_n "checking which flag to use to enable OpenMP... " >&6; }
    17999 
    18000 # Check whether --with-openmp-flag was given.
    18001 if test "${with_openmp_flag+set}" = set; then :
    18002   withval=$with_openmp_flag; ac_adolc_openmpflag=$withval
    18003              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_adolc_openmpflag" >&5
    18004 $as_echo "$ac_adolc_openmpflag" >&6; }
    18005 else
    18006   ac_adolc_openmpflag=""
    18007              { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
    18008 $as_echo "none" >&6; }
     18017    USE_BOOST_POOL="#define USE_BOOST_POOL 0"
    1800918018fi
    1801018019
     
    2134521354;;
    2134621355esac
     21356if test "x$enable_static" != "xno" ; then
     21357echo \
     21358" Linking a user program with a static ADOL-C library will always result
     21359  in a segmentation fault. Please always use the shared library.
     21360*****************************************************************************
     21361"
     21362fi
Note: See TracChangeset for help on using the changeset viewer.