source: rtems/cpukit/score/cpu/unix/configure.ac @ 7dcc3fe

4.104.114.84.95
Last change on this file since 7dcc3fe was 7dcc3fe, checked in by Ralf Corsepius <ralf.corsepius@…>, on 08/11/03 at 14:20:43

2003-08-11 Ralf Corsepius <corsepiu@…>

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