Changeset 58543e3 in git


Ignore:
Timestamp:
Sep 12, 2016, 5:30:20 PM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
da4b3223efff0b797045aad67f6bce7fe3596550
Parents:
0816f71425281ce41a6a64263309ea59a13ade6e
Message:
create omalloc.pc for xalloc (SAGE)

see
https://git.sagemath.org/sage.git/tree/build/pkgs/singular/patches/src/xalloc.pc.patch?id=8a992952b7ec660423ca06e0aa3d3931435bf7ba
Location:
xalloc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • xalloc/Makefile.am

    r0816f7 r58543e3  
    2121CLEANFILES = $(BUILT_SOURCES)
    2222
     23prefix=@prefix@
     24exec_prefix=@exec_prefix@
     25libdir=@libdir@
     26includedir=@includedir@
     27
     28Name: omalloc
     29Description: The Singular memory manager
     30Version: @PACKAGE_VERSION@
     31URL: https://github.com/Singular/Sources/tree/spielwiese/@PACKAGE@
     32
     33# Requires:
     34# Conflicts:
     35
     36Cflags: -I${includedir}
     37Libs: -L${libdir} -lomalloc
     38# Libs.private:
     39
     40
  • xalloc/configure.ac

    r0816f7 r58543e3  
    1 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
    2 dnl File: configure.ac
    3 dnl Purpose: Process this file with autoconf to produce configure
    4 dnl Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
    5 dnl Created: 11/99
    6 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
     1ACLOCAL_AMFLAGS = -I ../m4
    72
    8 AC_INIT([xmalloc],[4.0])
     3lib_LTLIBRARIES=libomalloc.la
    94
    10 AC_CONFIG_MACRO_DIR([../m4])
    11 AC_CONFIG_AUX_DIR([../build-aux])
    12 AC_CONFIG_SRCDIR(dummy.c)
    13 #AC_CONFIG_HEADER([_config.h])
     5libomalloc_includedir=$(includedir)/omalloc
    146
    15 AC_PROG_CC
    16 AC_PROG_CXX
     7libomalloc_include_HEADERS = omalloc.h omallocClass.h
    178
    18 SING_RESET_FLAGS()
     9SOURCES=dummy.c omallocClass.cc
    1910
    20 AM_MAINTAINER_MODE([enable])
    21 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules
    22 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
    23 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
     11AM_CPPFLAGS =-I${top_srcdir}/.. -I${top_builddir}/..
    2412
    25 AM_SANITY_CHECK
     13libomalloc_la_SOURCES=$(SOURCES) $(noinst_HEADERS)
    2614
    27 # Add pre'prefixed config
    28 #AX_PREFIX_CONFIG_H([omConfig.h],[],[_config.h])
     15libomalloc_la_LDFLAGS    = -release ${PACKAGE_VERSION}
    2916
    30 # SING_CHECK_SET_ARGS()
     17libomalloc_la_CPPFLAGS  = ${AM_CPPFLAGS}
    3118
    32 #AC_SUBST(VERSION)
     19omTables_CPPFLAGS = ${AM_CPPFLAGS}
    3320
    34 CPPFLAGS="-I.. -I. $CPPFLAGS"
    35 AC_PROG_MAKE_SET
    36 AC_PROG_CC
    37 AC_PROG_CPP
     21CLEANFILES = $(BUILT_SOURCES)
    3822
    39 AC_PROG_LN_S
    40 AC_PROG_INSTALL
    41 AM_PROG_CC_C_O
    42 # AM_PROG_AR
    43 AC_C_CONST
    44 AC_C_INLINE
     23prefix=@prefix@
     24exec_prefix=@exec_prefix@
     25libdir=@libdir@
     26includedir=@includedir@
    4527
    46 LT_INIT
     28Name: omalloc
     29Description: The Singular memory manager
     30Version: @PACKAGE_VERSION@
     31URL: https://github.com/Singular/Sources/tree/spielwiese/@PACKAGE@
     32
     33# Requires:
     34# Conflicts:
     35
     36Cflags: -I${includedir}
     37Libs: -L${libdir} -lomalloc
     38# Libs.private:
    4739
    4840
    49 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
    50 dnl check for programs
    51 dnl
    52 AC_CHECK_PROG(AR, ar, ar, :)
    53 if test "$ac_cv_prog_AR" = no; then
    54   AC_MSG_ERROR(*** ar program not found)
    55 fi
    56 
    57 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
    58 dnl header file checks
    59 dnl
    60 AC_HEADER_STDC
    61 AC_CHECK_HEADERS(limits.h,,
    62   AC_MSG_ERROR(Can not compile without limits.h))
    63 
    64 AC_CHECK_HEADERS(unistd.h sys/mman.h fcntl.h /usr/include/malloc.h)
    65 
    66 AC_CHECK_FUNCS(popen mmap sbrk random)
    67 
    68 dnl llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
    69 dnl Find out more about particularity of the system
    70 dnl
    71 
    72 # sizes
    73 AC_CHECK_SIZEOF(long,4)
    74 AC_CHECK_SIZEOF(void*,4)
    75 AC_CHECK_SIZEOF(double, 8)
    76 AC_CHECK_SIZEOF(size_t, 4)
    77 
    78 if test "$ac_cv_sizeof_long" != "$ac_cv_sizeof_voidp"; then
    79   AC_MSG_ERROR(need equal sizes for long and void*)
    80 fi
    81 if test "$ac_cv_sizeof_voidp" != 4 && test "$ac_cv_sizeof_voidp" != 8; then
    82   AC_MSG_ERROR(need void* to be 4 or 8 bytes long)
    83 fi
    84 if test "$ac_cv_sizeof_double" != 4 && test "$ac_cv_sizeof_double" != 8; then
    85   AC_MSG_ERROR(need double to be 4 or 8 bytes long)
    86 fi
    87 
    88 dnl Set compiler, linker flags so that we can work with omalloc
    89 BACKUP_CFLAGS=$CFLAGS
    90 BACKUP_CXXFLAGS=$CXXFLAGS
    91 BACKUP_LDFLAGS=$LDFLAGS
    92 
    93 CFLAGS="$CFLAGS -I$srcdir"
    94 CXXFLAGS="$CXXFLAGS -I$srcdir"
    95 
    96 AC_SUBST(OM_MALLOC_HEADER)
    97 AC_SUBST(OM_MALLOC_SOURCE)
    98 
    99 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
    100 dnl wrap it up
    101 dnl
    102 AC_CONFIG_FILES([Makefile])
    103 AC_OUTPUT
    104 
Note: See TracChangeset for help on using the changeset viewer.