Changeset 1895 for trunk/m4/yat_gsl.m4


Ignore:
Timestamp:
Apr 15, 2009, 9:11:59 PM (14 years ago)
Author:
Peter
Message:

fixes #386. Add test that gsl header files are available. Add 'GSL_CONFIG --cflags' to CPPFLAGS (unless it's a default path) to make the test work also when header files are installed in non-standard location. The flag is stored and used downstream.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/m4/yat_gsl.m4

    r1894 r1895  
    3333  AX_PATH_GSL([$1],,[yat_gsl_status="no"])
    3434
     35  AS_IF([test "x$yat_gsl_status" = "xok"],
     36        [YAT_CHECK_GSL_HEADER([gsl/gsl_version.h],,
     37                              [yat_gsl_status="no-header"])
     38        ])
     39
    3540  # check if failure was due to too old gsl
    3641  AS_IF([test "x$yat_gsl_status" = "xno" && \
     
    5055
    5156]) # YAT_CHECK_GSL
     57
     58AC_DEFUN([YAT_CHECK_GSL_HEADER],
     59[
     60  save_CPPFLAGS=$CPPFLAGS
     61  YAT_CPP_ADD_FLAG([$CPPFLAGS],[`$GSL_CONFIG --cflags`])
     62  AC_CHECK_HEADER([$1], [$2], [$3])
     63]) # YAT_CHECK_GSL_HEADER
Note: See TracChangeset for help on using the changeset viewer.