source: rtems/cpukit/libmisc/configure.ac @ e604ab6

4.104.114.84.95
Last change on this file since e604ab6 was d4ce70d, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/07/03 at 15:45:28

2003-07-07 Ralf Corsepius <corsepiu@…>

  • configure.ac: Remove RTEMS_BSP from RTEMS_CHECK_MULTIPROCESSING.
  • Property mode set to 100644
File size: 1.7 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-libmisc],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com])
7AC_CONFIG_SRCDIR([dumpbuf])
8RTEMS_TOP(../..)
9
10RTEMS_CANONICAL_TARGET_CPU
11
12AM_INIT_AUTOMAKE([no-define foreign 1.7.2])
13AM_MAINTAINER_MODE
14
15RTEMS_ENABLE_BARE
16
17RTEMS_ENV_RTEMSCPU
18RTEMS_CHECK_CPU
19RTEMS_CANONICAL_HOST
20
21RTEMS_PROG_CC_FOR_TARGET
22RTEMS_CANONICALIZE_TOOLS
23
24RTEMS_CHECK_MULTIPROCESSING
25
26AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes")
27
28# shell/* wants to assign file descriptors to stdio file descriptors.
29AC_MSG_CHECKING([for assignable stdio])
30AC_COMPILE_IFELSE(
31  [AC_LANG_PROGRAM(
32    [#include <stdio.h>],
33    [stdin = fopen("/tmp", "r")])],
34  [HAVE_ASSIGNABLE_STDIO=yes],
35  [HAVE_ASSIGNABLE_STDIO=no])
36AC_MSG_RESULT([$HAVE_ASSIGNABLE_STDIO])
37
38# serdbg exploits weak symbols
39AC_CACHE_CHECK([whether $CC supports function __attribute__((weak))],
40[rtems_cv_cc_attribute_weak],[
41  AS_IF([test x"$GCC" = xyes],[
42    save_CFLAGS=$CFLAGS
43    CFLAGS=-Werror])
44
45  AC_COMPILE_IFELSE([
46    AC_LANG_PROGRAM(
47    [void myfunc(char c) __attribute__ ((weak));
48     void myfunc(char c) {}],
49    [])],
50    [rtems_cv_cc_attribute_weak=yes],
51    [rtems_cv_cc_attribute_weak=no])
52
53  AS_IF([test x"$GCC" = xyes],[
54    CFLAGS=$save_CFLAGS])
55])
56
57AM_CONDITIONAL([LIBSHELL],[test x"$HAVE_ASSIGNABLE_STDIO" = x"yes"])
58AM_CONDITIONAL([LIBSERDBG],[test x"$rtems_cv_cc_attribute_weak" = x"yes"])
59
60# Explicitly list all Makefiles here
61AC_CONFIG_FILES([Makefile
62cpuuse/Makefile
63shell/Makefile
64devnull/Makefile
65dummy/Makefile
66dumpbuf/Makefile
67monitor/Makefile
68rtmonuse/Makefile
69serdbg/Makefile
70stackchk/Makefile
71capture/Makefile
72untar/Makefile
73mw-fb/Makefile
74wrapup/Makefile
75])
76AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.