]>
Commit | Line | Data |
---|---|---|
3a267038 JJ |
1 | dnl This file is based on ../mcore/configure.in |
2 | dnl Process this file with autoconf to produce a configure script. | |
4e71dc1e | 3 | AC_PREREQ(2.59) |
3a267038 JJ |
4 | AC_INIT(Makefile.in) |
5 | ||
6 | if test "${enable_shared}" = "yes" ; then | |
7 | echo "Shared libraries not supported for cross compiling, ignored" | |
8 | fi | |
9 | ||
10 | if test "$srcdir" = "." ; then | |
11 | if test "${with_target_subdir}" != "." ; then | |
12 | libgloss_topdir="${srcdir}/${with_multisrctop}../../.." | |
13 | else | |
14 | libgloss_topdir="${srcdir}/${with_multisrctop}../.." | |
15 | fi | |
16 | else | |
17 | libgloss_topdir="${srcdir}/../.." | |
18 | fi | |
19 | AC_CONFIG_AUX_DIR($libgloss_topdir) | |
20 | ||
21 | AC_CANONICAL_SYSTEM | |
22 | AC_ARG_PROGRAM | |
23 | ||
24 | AC_PROG_INSTALL | |
25 | ||
3a267038 JJ |
26 | LIB_AC_PROG_CC |
27 | AS=${AS-as} | |
28 | AC_SUBST(AS) | |
29 | AR=${AR-ar} | |
30 | AC_SUBST(AR) | |
31 | LD=${LD-ld} | |
32 | AC_SUBST(LD) | |
33 | AC_PROG_RANLIB | |
4e71dc1e | 34 | LIB_AM_PROG_AS |
3a267038 JJ |
35 | |
36 | host_makefile_frag=${srcdir}/../config/default.mh | |
37 | ||
38 | dnl We have to assign the same value to other variables because autoconf | |
39 | dnl doesn't provide a mechanism to substitute a replacement keyword with | |
40 | dnl arbitrary data or pathnames. | |
41 | dnl | |
42 | host_makefile_frag_path=$host_makefile_frag | |
43 | AC_SUBST(host_makefile_frag_path) | |
44 | AC_SUBST_FILE(host_makefile_frag) | |
45 | ||
4e71dc1e | 46 | AC_CONFIG_FILES(Makefile, |
3a267038 JJ |
47 | . ${libgloss_topdir}/config-ml.in, |
48 | srcdir=${srcdir} | |
49 | target=${target} | |
00a4b31a | 50 | with_multisubdir=${with_multisubdir} |
3a267038 JJ |
51 | ac_configure_args="${ac_configure_args} --enable-multilib" |
52 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
53 | libgloss_topdir=${libgloss_topdir} | |
54 | ) | |
4e71dc1e | 55 | AC_OUTPUT |