Changeset 316 for trunk/configure.ac


Ignore:
Timestamp:
Apr 10, 2012 10:36:09 AM (8 years ago)
Author:
kulshres
Message:

tweaks in configure

to check for fmin/fmax and get rid of some redundancies

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r296 r316  
    5151   _lib=lib
    5252fi
    53 libdir='${prefix}/${_lib}'
     53libdir='${exec_prefix}/${_lib}'
    5454AC_SUBST(_lib)
    5555AC_SUBST(libdir)
     
    7070AC_FUNC_MALLOC
    7171AC_FUNC_REALLOC
    72 AC_CHECK_FUNCS([floor ftime pow sqrt strchr strtol])
     72
     73# Checks for libraries and fuctions
     74AC_SEARCH_LIBS([pow], [m])
     75AC_CHECK_FUNCS([floor fmax fmin ftime pow sqrt strchr strtol trunc])
    7376
    7477# substitutions
    7578AC_SUBST(ac_aux_dir)
    76 
    77 # Checks for libraries
    78 AC_CHECK_LIB([m], [pow])
    7979
    8080# ADOL-C configuration
     
    164164             AC_MSG_RESULT(no)])
    165165
    166 test "x${ac_pwd}" = x && ac_pwd=`pwd`
    167 abs_srcdir=`readlink -f ${ac_pwd}/${srcdir}`
    168166AC_ARG_WITH(colpack,
    169167        [
    170168AS_HELP_STRING([--with-colpack=DIR],[path to the colpack library and headers [default=${srcdir}/ThirdParty/ColPack]])],
    171                 [
     169[
    172170colpack=$withval
    173171COLPACK_CFLAGS="$ac_adolc_openmpflag -I$colpack/include"
Note: See TracChangeset for help on using the changeset viewer.