Changeset d11524 in git for m4/cpu-check.m4


Ignore:
Timestamp:
Apr 14, 2011, 12:54:46 PM (13 years ago)
Author:
Mohamed Barakat <mohamed.barakat@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
72015634c9aa4b237c52f66b5528b431f59c3c5c
Parents:
691dbab4f58d7c8d1f15856e249e5d8a0be23d2d
git-author:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-04-14 12:54:46+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:12:34+01:00
Message:
- merge libpolys/{misc,reporter,resources}/configure.ac into libpolys/configure.ac
- seperate some of the checks in separate m4 files
File:
1 moved

Legend:

Unmodified
Added
Removed
  • m4/cpu-check.m4

    r691dba rd11524  
    1 #                                               -*- Autoconf -*-
    2 # Process this file with autoconf to produce a configure script.
     1# Check the cpu type
    32
    4 AC_PREREQ([2.65])
    5 AC_INIT([misc], [3.1.2.sw])
    6 AM_INIT_AUTOMAKE
    7 AC_CONFIG_SRCDIR([mylimits.h])
    8 AC_CONFIG_HEADERS([config.h])
     3dnl SING_CHECK_CPU
     4dnl
     5dnl check the cpu and define EXEC_EXT and SI_CPU*
    96
    10 # Checks for programs.
    11 AC_PROG_CC
    12 AC_PROG_CXX
    13 AC_PROG_LN_S
    14 AC_PROG_INSTALL
    15 AC_PROG_RANLIB
    16 AM_PROG_CC_C_O
    17 
    18 # Checks for libraries.
    19 
    20 # Checks for header files.
    21 AC_CHECK_HEADERS([limits.h])
    22 
    23 # Checks for typedefs, structures, and compiler characteristics.
    24 AC_C_INLINE
    25 
     7AC_DEFUN([SING_CHECK_CPU],
     8[
    269# Checks for library functions.
    2710AC_MSG_CHECKING(CPU for singular)
    2811
    29 # check for cpu properties:
    30 AC_CHECK_SIZEOF(long,4)
    31 
    32 # UNAME and PATH
     12# CPUUNAME and PATH
    3313ac_cv_singcpuname=`uname -m`
    3414AC_MSG_RESULT($ac_cv_singcpuname)
     
    8666fi
    8767
    88 AC_CONFIG_FILES([Makefile])
    89 AC_OUTPUT
     68# UNAME and PATH
     69AC_MSG_CHECKING(uname for Singular)
     70
     71#ac_cv_singuname=`singuname.sh`
     72AC_MSG_RESULT($ac_cv_singuname)
     73if test "$ac_cv_singuname" = unknown; then
     74  AC_MSG_WARN(Unknown architecture: Check singuname.sh)
     75  ac_cv_singuname="unknown"
     76fi
     77AC_DEFINE_UNQUOTED(S_UNAME, "$ac_cv_singuname", Singular's own uname\, believe it or not)
     78
     79])
Note: See TracChangeset for help on using the changeset viewer.