Changeset 461f40 in git
- Timestamp:
- Jan 30, 2012, 6:59:18 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 41d31d33c92e8a93df58457734616fabacdcb346
- Parents:
- 429497fb0084f0e2cc1130d07779709b94af3a27
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-01-30 18:59:18+01:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-03 17:53:50+01:00
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r429497 r461f40 98 98 #ac_configure_args="$ac_configure_args --with-external-config_h=../Singular/omSingularConfig.h" 99 99 100 AC_ARG_ENABLE(omalloc, AS_HELP_STRING([-- enable-omalloc], [use omalloc forthe factory]),101 [if test "x$enableval" = "xyes"; then102 enable_omalloc=yes103 fi], enable_omalloc=no)100 AC_ARG_ENABLE(omalloc, AS_HELP_STRING([--disable-omalloc], [do NOT use omalloc within the factory]), 101 [if test "x$enableval" = "xyes"; then 102 ENABLE_OMALLOC=yes 103 fi], ENABLE_OMALLOC=add) 104 104 105 AC_MSG_CHECKING(whether to use omalloc in factory) 106 if test "$enable_omalloc" = yes; then 105 ENABLE_OMALLOC_ARG="--with-omalloc-dir=$ac_abs_top_srcdir --with-omalloc-extra-dir=$ac_abs_top_builddir --enable-omalloc-trust" 107 106 108 AC_MSG_RESULT(yes) 109 ac_configure_args="$ac_configure_args --with-omalloc-dir=$ac_abs_top_srcdir --with-omalloc-extra-dir=$ac_abs_top_builddir --enable-omalloc-trust" 110 else 111 AC_MSG_RESULT(no) 107 if test "x$ENABLE_OMALLOC" = xadd; then 108 ENABLE_OMALLOC=yes 109 ENABLE_OMALLOC_ARG="--enable-omalloc $ENABLE_OMALLOC_ARG" 112 110 fi 113 111 114 AC_CONFIG_SUBDIRS(omalloc)115 112 116 if test x$ENABLE_FACTORY = xyes; then 117 AC_CONFIG_SUBDIRS(factory) 113 114 115 if test "x$ENABLE_FACTORY" = xyes; then 116 AC_MSG_CHECKING(whether to use omalloc in factory) 117 if test "x$ENABLE_OMALLOC" = xyes; then 118 AC_MSG_RESULT(yes) 119 ac_configure_args="$ac_configure_args $ENABLE_OMALLOC_ARG" 120 else 121 AC_MSG_RESULT(no) 122 fi 118 123 fi 119 124 120 AC_CONFIG_SUBDIRS(libpolys) 125 AC_CONFIG_SUBDIRS([omalloc]) 126 127 if test "x$ENABLE_FACTORY" = xyes; then 128 AC_CONFIG_SUBDIRS([factory]) 129 fi 130 131 AC_CONFIG_SUBDIRS([libpolys]) 121 132 AC_CONFIG_FILES([Makefile]) 122 133 AC_CONFIG_FILES([findexec/Makefile]) -
factory/Makefile.am
r429497 r461f40 9 9 AM_CPPFLAGS = -I${builddir}/include -I${srcdir}/include ${GMP_CFLAGS} ${NTL_CFLAGS} ${OMALLOC_CFLAGS} 10 10 11 AM_LDFLAGS = -L${builddir} -L${builddir}/libfac 11 AM_LDFLAGS = -L${builddir} -L${builddir}/libfac ${OMALLOC_LDFLAGS} 12 12 13 13 lib_LTLIBRARIES = libfactory.la libfactory_g.la … … 337 337 TESTSSOURCES = test.cc 338 338 339 if ENABLE_OMALLOC 340 OMALLOC_R_LDADD = -lomalloc 341 OMALLOC_G_LDADD = -lomalloc_g 342 endif 343 339 344 test_s_g_SOURCES = $(TESTSSOURCES) 340 345 test_s_g_CFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long -fomit-frame-pointer 341 346 #ftmpl_inst.o 342 test_s_g_LDADD = -L${builddir} -lfactory_g $(GMP_LIBS) $(NTL_LIBS) 347 test_s_g_LDADD = -L${builddir} -lfactory_g $(GMP_LIBS) $(NTL_LIBS) $(OMALLOC_G_LDADD) 343 348 344 349 test_s_r_SOURCES = $(TESTSSOURCES) 345 350 test_s_r_CFLAGS = -O3 -fomit-frame-pointer 346 351 #ftmpl_inst.o 347 test_s_r_LDADD = -lfactory $(GMP_LIBS) $(NTL_LIBS) 352 test_s_r_LDADD = -lfactory $(GMP_LIBS) $(NTL_LIBS) $(OMALLOC_R_LDADD) 348 353 349 354 test_s_r_LDFLAGS = -static ${AM_LDFLAGS} … … 353 358 test_d_g_CFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long -fomit-frame-pointer 354 359 #ftmpl_inst.o 355 test_d_g_LDADD = -L${builddir} -lfactory_g $(GMP_LIBS) $(NTL_LIBS) 360 test_d_g_LDADD = -L${builddir} -lfactory_g $(GMP_LIBS) $(NTL_LIBS) $(OMALLOC_G_LDADD) 356 361 357 362 test_d_r_SOURCES = $(TESTSSOURCES) 358 363 test_d_r_CFLAGS = -O3 -fomit-frame-pointer 359 364 #ftmpl_inst.o 360 test_d_r_LDADD = -L${builddir} -lfactory $(GMP_LIBS) $(NTL_LIBS) 361 365 test_d_r_LDADD = -L${builddir} -lfactory $(GMP_LIBS) $(NTL_LIBS) $(OMALLOC_R_LDADD) 366 367 -
factory/configure.ac
r429497 r461f40 51 51 AC_ARG_ENABLE(omalloc, AS_HELP_STRING([--enable-omalloc],[build for use with omalloc]), 52 52 [if test "x$enableval" = "xyes"; then 53 enable_omalloc=yes54 fi], enable_omalloc=no)53 ENABLE_OMALLOC=yes 54 fi], ENABLE_OMALLOC=no) 55 55 56 56 AC_ARG_ENABLE(omalloc_trust, AS_HELP_STRING([--enable-omalloc-trust],[do not check the omalloc header]), … … 60 60 61 61 AC_ARG_WITH(omalloc_dir,[AS_HELP_STRING([--with-omalloc-dir=PTH],[location of omalloc])], with_omalloc_dir="$withval", with_omalloc_dir="") 62 63 62 AC_ARG_WITH(omalloc_extra_dir,[AS_HELP_STRING([--with-omalloc-extra-dir=PTH],[optional extra location of omalloc])], with_omalloc_extra_dir="$withval", with_omalloc_extra_dir="") 64 63 … … 360 359 361 360 AH_TEMPLATE([HAVE_OMALLOC], [define if build with OMALLOC]) 362 AC_MSG_CHECKING(whether to use omalloc) 363 if test "$enable_omalloc" = yes; then 364 361 AC_MSG_CHECKING([whether to use omalloc/omalloc.h]) 362 if test "x$ENABLE_OMALLOC" = xyes; then 365 363 AC_MSG_RESULT(yes) 366 CPPFLAGS_save="$CPPFLAGS"364 367 365 if test "x$with_omalloc_dir" != "x"; then 368 366 OMALLOC_CFLAGS="-I${with_omalloc_dir}" 367 OMALLOC_LDFLAGS="-L${with_omalloc_dir}/omalloc" 369 368 fi 370 369 if test "x$with_omalloc_extra_dir" != "x"; then 371 370 OMALLOC_CFLAGS="$OMALLOC_CFLAGS -I${with_omalloc_extra_dir}" 371 OMALLOC_LDFLAGS="$OMALLOC_LDFLAGS -L${with_omalloc_extra_dir}/omalloc" 372 372 fi 373 if test $omalloc_trust = no; then 374 AC_CHECK_HEADERS(omalloc/omalloc.h) 375 if test "$ac_cv_header_omalloc_omalloc_h" != yes; then 376 AC_MSG_ERROR([You asked for omalloc, but it was not found]) 377 fi 373 374 CPPFLAGS_save="$CPPFLAGS" 375 # adding $with_omalloc_dir and $with_omalloc_extra_dir to header search path 376 CPPFLAGS="$CPPFLAGS ${OMALLOC_CFLAGS}" 377 if test "x$omalloc_trust" = xno; then 378 AC_CHECK_HEADERS([omalloc/omalloc.h],,AC_MSG_ERROR([You asked for omalloc but it cannot be found with your default header search path])) 378 379 else 379 AC_MSG_NOTICE(trusting the omalloc locations given) 380 AC_MSG_RESULT() 380 AC_CHECK_HEADERS([omalloc/omalloc.h],,AC_MSG_WARN([trusting the omalloc locations given: ${OMALLOC_CFLAGS}])) 381 381 fi 382 AC_DEFINE(HAVE_OMALLOC,1, [omalloc support]) 382 CPPFLAGS="$CPPFLAGS_save" 383 384 AC_DEFINE(HAVE_OMALLOC, 1, [omalloc support]) 385 383 386 AC_SUBST(OMALLOC_CFLAGS) 387 AC_SUBST(OMALLOC_LDFLAGS) 384 388 else 385 389 AC_MSG_RESULT(no) 386 390 fi 391 392 AM_CONDITIONAL([ENABLE_OMALLOC],[test "x$ENABLE_OMALLOC" = xyes]) 387 393 388 394 -
m4/options.m4
r429497 r461f40 3 3 AC_MSG_CHECKING(whether arithmetical rings should be enabled) 4 4 5 AC_ARG_ENABLE(arith-rings, 6 [ --disable-arith-rings Disable arithmetical rings 7 ], 5 AC_ARG_ENABLE(arith-rings, AS_HELP_STRING([--disable-arith-rings], [Disable arithmetical rings]), 8 6 [if test $enableval = yes; then 9 7 ENABLE_RINGS="yes" … … 25 23 AC_MSG_CHECKING(whether factory should be enabled) 26 24 27 AC_ARG_ENABLE(factory, 28 [ --disable-factory Disable factory 29 ], 25 AC_ARG_ENABLE(factory, AS_HELP_STRING([--disable-factory], [Disable factory]), 30 26 [if test $enableval = yes; then 31 27 ENABLE_FACTORY="yes" … … 55 51 AC_MSG_CHECKING(whether non-commutative subsystem should be enabled) 56 52 57 AC_ARG_ENABLE(plural, 58 [ --disable-plural Disable non-commutative subsystem 59 ], 53 AC_ARG_ENABLE(plural, AS_HELP_STRING([--disable-plural], [Disable non-commutative subsystem]), 60 54 [if test $enableval = yes; then 61 55 ENABLE_PLURAL="yes"
Note: See TracChangeset
for help on using the changeset viewer.