Changeset 3214 for trunk/configure.ac


Ignore:
Timestamp:
May 5, 2014, 10:52:11 AM (8 years ago)
Author:
Peter
Message:

fixes #789. Change behavious of configure so that if INTERNAL_CXXFLAGS
is set e.g. via ./configure INTERNAL_CXXFLAGS=shaboom, default value
of CXXFLAGS is not set but it is left empty. Also make
INTERNAL_CXXFLAGS (and friends) precious, which means that appear in
output of ./configure --help and their value is remembered so when
./config.status --recheck is issued (typically via Make rule) the
value INTERNAL_* variable are set as in previous configuration."

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r3201 r3214  
    7979  CXXFLAGS_set_by_user=yes
    8080],[
    81   CXXFLAGS_set_by_user=no
     81  AS_IF([test "${INTERNAL_CXXFLAGS+set}" = set], [
     82    CXXFLAGS_set_by_user=yes
     83  ], [
     84    CXXFLAGS_set_by_user=no
     85  ])
    8286  # set CXXFLAGS to avoid expansion in AC_PROG_CXX
    8387  CXXFLAGS=
     
    414418# building yat, i.e., they are not needed for a user of yat and are
    415419# not propagated to yat-config or yat.m4.
     420AC_ARG_VAR([INTERNAL_CPPFLAGS],
     421           [Similar to CPPFLAGS but value is not propagated to yat-config])
     422AC_ARG_VAR([INTERNAL_CXXFLAGS],
     423           [Similar to CXXFLAGS but value is not propagated to yat-config])
     424AC_ARG_VAR([INTERNAL_LDFLAGS],
     425           [Similar to LDFLAGS but value is not propagated to yat-config])
     426
    416427AS_IF([test "${enable_debug}" = "yes"], [
    417428  AC_DEFINE([YAT_DEBUG], [1], [Define to activate yat assertioons])
Note: See TracChangeset for help on using the changeset viewer.