Changeset f86531 in git
- Timestamp:
- Sep 26, 2011, 3:03:12 PM (12 years ago)
- 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
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
ra8516a rf86531 15 15 AM_SANITY_CHECK 16 16 17 # 18 # - Check for CC and CXX but be careful about CFLAGS. 19 # 20 21 test "${CFLAGS+set}" = set || cflags_expl_set=no 22 AC_PROG_CC 23 test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no 24 AC_PROG_CXX 25 if test "x$GCC" != xyes && test "x$GXX" != xyes; then 26 AC_MSG_WARN(you better use gcc to compile Factory) 27 else 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 36 fi 37 17 38 LT_INIT([shared]) 18 19 AC_PROG_CC 20 AC_PROG_CXX 39 40 41 AC_PROG_CPP 42 AC_PROG_CXXCPP 21 43 AM_PROG_CC_C_O 22 44 AC_PROG_LN_S … … 24 46 # AC_PROG_RANLIB 25 47 48 26 49 # Checks for libraries. 27 50 LB_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)])) … … 48 71 SING_CHECK_FACTORY 49 72 73 74 # CFLAGS 75 if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then 76 CFLAGS="" 77 fi 78 79 # CXXFLAGS 80 if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then 81 CXXFLAGS="" 82 fi 83 50 84 ### the following is needed due to the use of om_sing_opt_show_mem in misc_ip.cc... 51 85 #ac_configure_args="$ac_configure_args --with-external-config_h=../Singular/omSingularConfig.h" -
factory/configure.ac
ra8516a rf86531 91 91 else 92 92 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' 94 94 (instead of the configure default \`-g -O')]) 95 95 fi 96 96 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' 98 98 (instead of the configure default \`-g -O')]) 99 99 fi … … 281 281 # CFLAGS 282 282 if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then 283 CFLAGS=" -O2 -fomit-frame-pointer"283 CFLAGS="" 284 284 fi 285 285 286 286 # CXXFLAGS 287 287 if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then 288 CXXFLAGS=" -O2 -fomit-frame-pointer"288 CXXFLAGS="" 289 289 290 290 AC_LANG_SAVE … … 293 293 AC_MSG_CHECKING(whether gcc accepts -fno-rtti) 294 294 tmp_flags=${CXXFLAGS} 295 CXXFLAGS="${CXXFLAGS} -fno-rtti"295 CXXFLAGS="${CXXFLAGS}" 296 296 AC_CACHE_VAL(ac_cv_cxx_have_rtti, 297 297 AC_TRY_COMPILE(,,ac_cv_cxx_have_rtti=yes,ac_cv_cxx_have_rtti=no) … … 300 300 CXXFLAGS=$tmp_flags 301 301 if test "${ac_cv_cxx_have_rtti}" = yes; then 302 CXXFLAGS="$CXXFLAGS -fno-rtti"302 CXXFLAGS="$CXXFLAGS" 303 303 fi 304 304 -
libpolys/configure.ac
ra8516a rf86531 10 10 AM_SANITY_CHECK 11 11 12 # 13 # - Check for CC and CXX but be careful about CFLAGS. 14 # 15 test "${CFLAGS+set}" = set || cflags_expl_set=no 16 AC_PROG_CC 17 test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no 18 AC_PROG_CXX 19 if test "x$GCC" != xyes && test "x$GXX" != xyes; then 20 AC_MSG_WARN(you better use gcc to compile Factory) 21 else 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 30 fi 31 12 32 # Turn off shared libraries during beta-testing, since they 13 33 # make the build process take too long. … … 15 35 # LT_INIT(dlopen disable-static) # doesn't work on PowerPc! 16 36 17 # Checks for programs. 18 AC_PROG_CXX 19 AC_PROG_CC 37 AM_PROG_CC_C_O 20 38 AC_PROG_LN_S 21 39 AC_PROG_INSTALL 22 AM_PROG_CC_C_O23 40 24 41 # Checks for libraries. … … 73 90 SING_CHECK_PLURAL 74 91 92 # CFLAGS 93 if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then 94 CFLAGS="" 95 fi 96 97 # CXXFLAGS 98 if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then 99 CXXFLAGS="" 100 fi 101 75 102 if test "x$prefix" != xNONE; then 76 103 PREFIX="$prefix" -
m4/ntl-check.m4
ra8516a rf86531 117 117 AM_CONDITIONAL(SING_HAVE_NTL, test "x$HAVE_NTL" = "xyes") 118 118 119 # TODO: The following seems to set CXXFLAGS even if it was not defined previously!!!! 119 120 CXXFLAGS=${BACKUP_CXXFLAGS} 120 121 LIBS=${BACKUP_LIBS}
Note: See TracChangeset
for help on using the changeset viewer.