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

4.104.114.84.95
Last change on this file since d3b09bf4 was d3b09bf4, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/29/04 at 12:59:18

2004-03-29 Ralf Corsepius <ralf_corsepius@…>

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