Changeset 84c376 in git
- Timestamp:
- May 4, 2011, 8:10:55 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- e25a9942ffbe09b3e9cd1348617f1c1886c896bd
- Parents:
- 2271fcf77152d68ee4d4f31ac7125d4183f54bcf
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-05-04 20:10:55+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:36+01:00
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/configure.ac
r2271fcf r84c376 5 5 AC_CONFIG_HEADER([config.h misc/auxiliary.h]) 6 6 AM_INIT_AUTOMAKE 7 8 dnl Check if build env is sane 9 AM_SANITY_CHECK 7 10 8 11 LT_INIT(dlopen disable-static) … … 23 26 AC_FUNC_VPRINTF 24 27 AC_FUNC_MALLOC 25 AC_CHECK_FUNC([vsnprintf], [AC_DEFINE([HAVE_VSNPRINTF], [1], 26 [Define if vsnprintf exists.])]) 28 AC_CHECK_FUNC([vsnprintf], [AC_DEFINE([HAVE_VSNPRINTF], [1], [Define if vsnprintf exists.])]) 27 29 28 30 # Checks for header files. 29 31 AC_HEADER_STDC 32 AC_STDC_HEADERS 30 33 AC_CHECK_HEADERS([stdlib.h string.h unistd.h pwd.h sys/param.h limits.h float.h]) 31 34 … … 49 52 esac 50 53 54 dnl INCLUDES="" 55 dnl dnl OS specific flags and options 56 dnl case "$host" in 57 dnl *-*-freebsd*) 58 dnl LIBS="$LIBS -L/usr/local/lib -lc" 59 dnl CFLAGS="$CFLAGS -I/usr/local/include" 60 dnl INCLUDES="$INCLUDES -I/usr/local/include" 61 dnl ;; 62 dnl esac 63 dnl AC_SUBST(INCLUDES) 64 51 65 SING_CHECK_P_PROCS 52 66 -
libpolys/tests/Makefile.am
r2271fcf r84c376 24 24 25 25 26 if ENABLE_P_PROCS_DYNAMIC 27 ### TODO -> ${LD_LIBS} ??? instead of -ldl, 28 ### add it to AM_LDFLAGS? 29 # '-ldl' wouldn't work on FreeBSD!!!??? 30 USEPPROCSDYNAMICLD = -ldl 31 USEPPROCSDYNAMICLDFLAGS = -rdynamic 32 else 33 USEPPROCSDYNAMICLD = 34 USEPPROCSDYNAMICLDFLAGS = 35 endif 36 37 polys_test_LDFLAGS = ${AM_LDFLAGS} $(USEPPROCSDYNAMICLDFLAGS) 26 polys_test_LDFLAGS = ${AM_LDFLAGS} ${USEPPROCSDYNAMICLDFLAGS} 38 27 rings_test_LDFLAGS = $(polys_test_LDFLAGS) 39 28 40 29 coeffs_test_LDADD = -lcoeffs_g ${GMP_LIBS} -lresources_g -lreporter_g -lmisc_g -lomalloc_debug 41 polys_test_LDADD = -lpolys_g $ (USEPPROCSDYNAMICLD)$(coeffs_test_LDADD)30 polys_test_LDADD = -lpolys_g ${USEPPROCSDYNAMICLD} $(coeffs_test_LDADD) 42 31 rings_test_LDADD = $(polys_test_LDADD) 43 32 … … 47 36 48 37 49 # How to generate the test simple_test_runner 50 ###### $^ needs GNU make : use gmake! 38 # How to generate *_runner.cpp 51 39 simple_test_runner.cpp: simple_test.h 52 ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer $^40 ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer simple_test.h 53 41 54 42 coeffs_test_runner.cpp: coeffs_test.h 55 ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer $^43 ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer coeffs_test.h 56 44 57 45 polys_test_runner.cpp: polys_test.h 58 ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer $^46 ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer polys_test.h 59 47 60 48 rings_test_runner.cpp: rings_test.h 61 ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer $^49 ${srcdir}/cxxtestgen.pl --no-eh -o $@ --error-printer rings_test.h -
m4/p-procs.m4
r2271fcf r84c376 21 21 AC_DEFUN([SING_CHECK_P_PROCS], 22 22 [ 23 USEPPROCSDYNAMICLDFLAGS="" 24 USEPPROCSDYNAMICLD="" 25 23 26 AC_ARG_ENABLE(p-procs-static, 24 27 [ --enable-p-procs-static Enable statically compiled p_Procs-modules … … 48 51 AC_MSG_ERROR([--enable-pprocs-dynamic requested but your system appears not to support dynamic modules properly]) 49 52 fi 53 54 AC_CHECK_FUNC(dlopen,,[AC_CHECK_LIB(dl,dlopen,USEPPROCSDYNAMICLD="-ldl", [ 55 AC_MSG_WARN(Could not use dlopen) 56 ]) ]) 57 50 58 elif test x$NO_P_PROCS_DYNAMIC_GIVEN = xyes -a x$NO_P_PROCS_STATIC_GIVEN = xyes; then 51 59 SING_SYSTEM_SUPPORTS_DYNAMIC_MODULES … … 54 62 ENABLE_P_PROCS_DYNAMIC="yes" 55 63 ENABLE_P_PROCS_STATIC="no" 64 USEPPROCSDYNAMICLDFLAGS="-rdynamic" 65 AC_CHECK_FUNC(dlopen,,[AC_CHECK_LIB(dl,dlopen,USEPPROCSDYNAMICLD="-ldl", [ 66 AC_MSG_WARN(Could not use dlopen) 67 ]) ]) 56 68 elif test $SUPPORTS_DYNAMIC_MODULES = no; then 57 69 AC_MSG_NOTICE([Enabling static modules and disabling dynamic modules]) … … 67 79 fi 68 80 81 AC_SUBST(USEPPROCSDYNAMICLDFLAGS) 82 AC_SUBST(USEPPROCSDYNAMICLD) 83 69 84 AM_CONDITIONAL([ENABLE_P_PROCS_DYNAMIC],[test x$ENABLE_P_PROCS_DYNAMIC = xyes]) 70 85 AM_CONDITIONAL([ENABLE_P_PROCS_STATIC],[test x$ENABLE_P_PROCS_STATIC = xyes])
Note: See TracChangeset
for help on using the changeset viewer.