blob: 5694013d4eb34be55db2cef9f10cae9a536110c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#=========================================================================
# configure.ac for riscv libgloss and crt0
#=========================================================================
#-------------------------------------------------------------------------
# Setup
#-------------------------------------------------------------------------
AC_INIT([crt0.S])
AC_CONFIG_SRCDIR([crt0.S])
AC_CONFIG_AUX_DIR([${srcdir}/../..])
#-------------------------------------------------------------------------
# Checks for programs
#-------------------------------------------------------------------------
LIB_AC_PROG_CC
AC_CHECK_TOOL([AR],[ar])
AC_CHECK_TOOL([RANLIB],[ranlib])
AC_PROG_INSTALL
#-------------------------------------------------------------------------
# Output
#-------------------------------------------------------------------------
if test "$srcdir" = "." ; then
if test "${with_target_subdir}" != "." ; then
libgloss_topdir="${srcdir}/${with_multisrctop}../../.."
else
libgloss_topdir="${srcdir}/${with_multisrctop}../.."
fi
else
libgloss_topdir="${srcdir}/../.."
fi
AC_CONFIG_AUX_DIR($libgloss_topdir)
AC_CONFIG_FILES(Makefile,
. ${libgloss_topdir}/config-ml.in,
srcdir=${srcdir}
target=${target}
with_multisubdir=${with_multisubdir}
ac_configure_args="${ac_configure_args} --enable-multilib"
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
libgloss_topdir=${libgloss_topdir}
)
AC_OUTPUT
|