source: rtems/cpukit/libmisc/configure.ac @ 5a8a05b

4.104.114.84.95
Last change on this file since 5a8a05b was 5a8a05b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 24, 2003 at 12:05:44 PM

2002-01-24 Ralf Corsepius <corsepiu@…>

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