Changeset 3072


Ignore:
Timestamp:
Aug 28, 2013, 10:31:33 AM (8 years ago)
Author:
Peter
Message:

prefer aborting directly when error is detected rather than in the end. refs #737

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r3045 r3072  
    6262                  silent-rules subdir-objects])
    6363
    64 dnl When fatal error are detected we use macro YAT_MSG_ERROR that
    65 dnl collects all error messages and aborts configure [just] before
    66 dnl creating output files with this message below plus collected
    67 dnl messages from YAT_MSG_ERROR calls.
    68 YAT_MSG_ERROR_PREPARE([
    69         Some pre-requisites were not fulfilled, aborting configure.
    70         Please consult the 'README' file for more information about what
    71         is needed to compile yat and refer to messages below.
    72 ])
    73 
    74 
    7564# Set default programming language
    7665AC_LANG(C++)
     
    147136# of created binary, will fail.
    148137AS_IF([test x"$quiet_nan" = x"no"], [
    149   YAT_MSG_ERROR([dnl
     138  AC_MSG_FAILURE([dnl
    150139Support for quiet NAN required. yat will not work on this system!])
    151140])
     
    177166# of created binary, will fail.
    178167AS_IF([test x"${has_infinity}" = x"no"], [
    179 YAT_MSG_ERROR([dnl
     168  AC_MSG_FAILURE([dnl
    180169Support for infinity required. yat will not work on this system!])
    181170])
     
    227216gsl_version="1.8"
    228217AC_SUBST(gsl_version)
    229 YAT_CHECK_GSL([$gsl_version],[LIBS="-lgsl $LIBS"],[YAT_MSG_ERROR([dnl
     218YAT_CHECK_GSL([$gsl_version],[LIBS="-lgsl $LIBS"],[AC_MSG_FAILURE([dnl
    230219GSL $gsl_version (or newer) not found. The GNU Scientific Library
    231 (GSL) library cannot be found. Please make sure GSL is
    232 installed. Please refer to warnings above for more details])
     220(GSL) library cannot be found. Please make sure GSL is installed.])
    233221])
    234222
     
    236224boost_version=1.35
    237225AC_SUBST(boost_version)
    238 AX_BOOST_BASE(["$boost_version"], [], [YAT_MSG_ERROR([dnl
     226AX_BOOST_BASE(["$boost_version"], [], [AC_MSG_FAILURE([dnl
    239227Boost ${boost_version} (or newer) not found. Please install boost, or provide
    240228CPPFLAGS=-I/path/to/boost])
     
    254242                 [AC_MSG_RESULT([yes])],
    255243                 [AC_MSG_RESULT([no])
    256                   YAT_MSG_ERROR([Boost thread library not found. Please install library boost-thread.])
     244                  AC_MSG_FAILURE([Boost thread library not found.])
    257245                 ])
    258246])
     
    305293AS_IF([test x"$with_samtools" != x"no"], [
    306294  AC_CHECK_HEADER([zlib.h], [],
    307     [YAT_MSG_ERROR([Header file 'zlib.h' was not found])])
     295    [AC_MSG_FAILURE([header file 'zlib.h' was not found])])
    308296  AC_SEARCH_LIBS([inflateEnd], [z], [],
    309     [YAT_MSG_ERROR([Library 'libz' was not found])])
    310   YAT_CHECK_HEADER_BAM([],[YAT_MSG_ERROR([Header file 'bam.h' was not found])])
     297    [AC_MSG_FAILURE([library 'libz' was not found])])
     298  YAT_CHECK_HEADER_BAM([],[AC_MSG_FAILURE([header file 'bam.h' was not found])])
    311299  # try link against libbam
    312300  YAT_CHECK_LIBBAM([LIBS="$BAM_LIBS $LIBS"
    313301                    AC_DEFINE([HAVE_LIBBAM], [1],
    314302                              [Define to 1 if libbam is available])],
    315     [YAT_MSG_ERROR([Library 'libbam' was not found])])
     303    [AC_MSG_FAILURE([library 'libbam' was not found])])
    316304  # check if global variable bam_nt16_rev_table is available
    317305  YAT_BAM_NT16_REV_TABLE
Note: See TracChangeset for help on using the changeset viewer.