Forward compatibility: build relative-base link libraries where needed
[AROS.git] / arch / ppc-sam440 / boot / parthenope / configure.ac
blobc50307638c77a237837d3943e033eef9c8d1119f
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.59)
5 AC_INIT(parthenope, svn91, cjg)
6 AC_CONFIG_SRCDIR([src/parthenope.c])
7 AC_CONFIG_HEADER([config.h])
8 AM_INIT_AUTOMAKE
10 # Checks for programs.
11 AC_PROG_CC
12 AM_PROG_CC_C_O
14 # Checks for libraries.
16 # Checks for header files.
18 # Checks for typedefs, structures, and compiler characteristics.
19 AC_C_CONST
20 AC_C_INLINE
22 # Checks for library functions.
24 # Conditional compilation
25 AC_ARG_ENABLE(platform,
26               AC_HELP_STRING([--enable-platform=platform], 
27                              [Select for which should be built: uboot (default) or openfirmware]),
28                 [case "${enableval}" in
29                  uboot)
30                         platform=uboot
31                         ;;
32                 openfirmware)
33                         platform=openfirmware
34                         ;;
35                 *)
36                         AC_MSG_ERROR([bad value ${enableval} for --enable-platform option])
37                         ;;
38                 esac],
39                 [platform=uboot]
41 AM_CONDITIONAL(USE_UBOOT, test x"$platform" = xuboot)
42 AM_CONDITIONAL(USE_OPENFIRMWARE, test x"$platform" = xopenfirmware)
43 AC_CONFIG_FILES([Makefile
44                  src/Makefile
45                  tools/Makefile])
46 AC_OUTPUT