source: rtems/cpukit/score/cpu/unix/configure.ac @ 53021d4

4.104.114.84.95
Last change on this file since 53021d4 was 53021d4, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 11, 2002 at 5:08:38 PM

2002-12-11 Ralf Corsepius <corsepiu@…>

  • configure.ac: Require autoconf-2.57 + automake-1.7.2.
  • Makefile.am: Eliminate C_O_FILES, S_O_FILES, libscorecpu_a_OBJECTS.
  • Property mode set to 100644
File size: 1.9 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id$
4
5AC_PREREQ(2.57)
6AC_INIT([rtems-cpukit-score-cpu-unix],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com])
7AC_CONFIG_SRCDIR([cpu.c])
8RTEMS_TOP(../../../..)
9AC_CONFIG_AUX_DIR(../../../..)
10
11RTEMS_CANONICAL_TARGET_CPU
12
13AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.7.2])
14AM_MAINTAINER_MODE
15
16RTEMS_ENV_RTEMSCPU
17
18RTEMS_CHECK_CPU
19RTEMS_CANONICAL_HOST
20
21RTEMS_PROG_CC_FOR_TARGET
22RTEMS_CANONICALIZE_TOOLS
23AC_PROG_RANLIB
24
25RTEMS_CHECK_NEWLIB
26RTEMS_CHECK_MULTIPROCESSING
27
28# The only use of System V IPC is the UNIX port when multiprocessing.
29AS_IF([test "$HAS_MP" = "yes"],
30  [RTEMS_CHECK_SYSV_UNIX])
31
32## The code fragment below had been used in tools/cpu/unix/gensize.c.
33## FIXME:
34## * The pad very likely is not necessary.
35AC_CHECK_SIZEOF([CPU_CONTEXT],[],[
36#include <stdio.h>
37#include <setjmp.h>
38
39typedef struct {
40  jmp_buf     regs;
41  int         isr_level;
42  int         pad[4]; /* just in case */
43} CPU_CONTEXT;
44])
45
46AC_CONFIG_HEADERS([rtems/score/unixsize-tmp.h],[
47echo "/* automatically generated -- DO NOT EDIT!! */" >$tmp/config.h
48echo                                                  >>$tmp/config.h
49echo "#ifndef __rtems_score_unixsize_h"               >>$tmp/config.h
50echo "#define __rtems_score_unixsize_h"               >>$tmp/config.h
51echo                                                  >>$tmp/config.h
52sed -e '/.*PACKAGE.*/d' rtems/score/unixsize-tmp.h >> $tmp/config.h
53echo                                                  >>$tmp/config.h
54echo "#endif"                                         >>$tmp/config.h
55AS_IF([cmp -s rtems/score/unixsize.h $tmp/config.h 2>/dev/null],
56  [AC_MSG_NOTICE([rtems/score/unixsize.h is unchanged])
57   rm -f $tmp/config.h],
58  [AC_MSG_NOTICE([creating rtems/score/unixsize.h])
59   rm -f rtems/score/unixsize.h
60   mv $tmp/config.h rtems/score/unixsize.h])
61])
62
63# Explicitly list all Makefiles here
64AC_CONFIG_FILES([Makefile])
65AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.