Changeset f86531 in git


Ignore:
Timestamp:
Sep 26, 2011, 3:03:12 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
d9900011c7982ae7ff57a8e17f3071a283577ad5
Parents:
a8516a07c19c38faf8e9fc83cbbe59b88b6bf783
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-09-26 15:03:12+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:13:32+01:00
Message:
CHG: set empty CFLAGS/CXXFLAGS by default!
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    ra8516a rf86531  
    1515AM_SANITY_CHECK
    1616
     17#
     18# - Check for CC and CXX but be careful about CFLAGS.
     19#
     20
     21test "${CFLAGS+set}" = set || cflags_expl_set=no
     22AC_PROG_CC
     23test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no
     24AC_PROG_CXX
     25if test "x$GCC" != xyes && test "x$GXX" != xyes; then
     26  AC_MSG_WARN(you better use gcc to compile Factory)
     27else
     28  if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
     29    AC_MSG_WARN([we use \`' as default for \`CXXFLAGS'
     30                    (instead of the configure default \`-g -O')])
     31  fi
     32  if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then
     33    AC_MSG_WARN([we use \`' as default for \`CFLAGS'
     34                    (instead of the configure default \`-g -O')])
     35  fi
     36fi
     37
    1738LT_INIT([shared])
    18 
    19 AC_PROG_CC
    20 AC_PROG_CXX
     39 
     40   
     41AC_PROG_CPP
     42AC_PROG_CXXCPP
    2143AM_PROG_CC_C_O
    2244AC_PROG_LN_S
     
    2446# AC_PROG_RANLIB
    2547
     48   
    2649# Checks for libraries.
    2750LB_CHECK_GMP(3.1.1,,AC_MSG_ERROR([Unable to find GMP on your machine: please use --with-gmp=PATH_TO_DIR_CONTAINING_LIB_AND_INCLUDE (see also ./configure --help if you do not understand what we are talking about)]))
     
    4871SING_CHECK_FACTORY
    4972
     73
     74# CFLAGS
     75if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then
     76  CFLAGS=""
     77fi
     78
     79# CXXFLAGS
     80if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
     81  CXXFLAGS=""
     82fi
     83
    5084### the following is needed due to the use of om_sing_opt_show_mem in misc_ip.cc...
    5185#ac_configure_args="$ac_configure_args --with-external-config_h=../Singular/omSingularConfig.h"
  • factory/configure.ac

    ra8516a rf86531  
    9191else
    9292  if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
    93     AC_MSG_WARN([we use \`-O2 -fomit-frame-pointer' as default for \`CXXFLAGS'
     93    AC_MSG_WARN([we use \`' as default for \`CXXFLAGS'
    9494                    (instead of the configure default \`-g -O')])
    9595  fi
    9696  if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then
    97     AC_MSG_WARN([we use \`-O2 -fomit-frame-pointer' as default for \`CFLAGS'
     97    AC_MSG_WARN([we use \`' as default for \`CFLAGS'
    9898                    (instead of the configure default \`-g -O')])
    9999  fi
     
    281281# CFLAGS
    282282if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then
    283   CFLAGS="-O2 -fomit-frame-pointer"
     283  CFLAGS=""
    284284fi
    285285
    286286# CXXFLAGS
    287287if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
    288   CXXFLAGS="-O2 -fomit-frame-pointer"
     288  CXXFLAGS=""
    289289
    290290AC_LANG_SAVE
     
    293293AC_MSG_CHECKING(whether gcc accepts -fno-rtti)
    294294tmp_flags=${CXXFLAGS}
    295 CXXFLAGS="${CXXFLAGS} -fno-rtti"
     295CXXFLAGS="${CXXFLAGS}"
    296296AC_CACHE_VAL(ac_cv_cxx_have_rtti,
    297297AC_TRY_COMPILE(,,ac_cv_cxx_have_rtti=yes,ac_cv_cxx_have_rtti=no)
     
    300300CXXFLAGS=$tmp_flags
    301301if test "${ac_cv_cxx_have_rtti}" = yes; then
    302 CXXFLAGS="$CXXFLAGS -fno-rtti"
     302CXXFLAGS="$CXXFLAGS"
    303303fi
    304304
  • libpolys/configure.ac

    ra8516a rf86531  
    1010AM_SANITY_CHECK
    1111
     12#
     13# - Check for CC and CXX but be careful about CFLAGS.
     14#
     15test "${CFLAGS+set}" = set || cflags_expl_set=no
     16AC_PROG_CC
     17test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no
     18AC_PROG_CXX
     19if test "x$GCC" != xyes && test "x$GXX" != xyes; then
     20  AC_MSG_WARN(you better use gcc to compile Factory)
     21else
     22  if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
     23    AC_MSG_WARN([we use \`' as default for \`CXXFLAGS'
     24                    (instead of the configure default \`-g -O')])
     25  fi
     26  if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then
     27    AC_MSG_WARN([we use \`' as default for \`CFLAGS'
     28                    (instead of the configure default \`-g -O')])
     29  fi
     30fi
     31
    1232# Turn off shared libraries during beta-testing, since they
    1333# make the build process take too long.
     
    1535# LT_INIT(dlopen disable-static) # doesn't work on PowerPc!
    1636
    17 # Checks for programs.
    18 AC_PROG_CXX
    19 AC_PROG_CC
     37AM_PROG_CC_C_O
    2038AC_PROG_LN_S
    2139AC_PROG_INSTALL
    22 AM_PROG_CC_C_O
    2340
    2441# Checks for libraries.
     
    7390SING_CHECK_PLURAL
    7491
     92# CFLAGS
     93if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then
     94  CFLAGS=""
     95fi
     96 
     97# CXXFLAGS
     98if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
     99  CXXFLAGS=""
     100fi
     101
    75102if test "x$prefix" != xNONE; then
    76103  PREFIX="$prefix"
  • m4/ntl-check.m4

    ra8516a rf86531  
    117117AM_CONDITIONAL(SING_HAVE_NTL, test "x$HAVE_NTL" = "xyes")
    118118
     119# TODO: The following seems to set CXXFLAGS even if it was not defined previously!!!!
    119120CXXFLAGS=${BACKUP_CXXFLAGS}
    120121LIBS=${BACKUP_LIBS}
Note: See TracChangeset for help on using the changeset viewer.