]>
Commit | Line | Data |
---|---|---|
03261851 | 1 | dnl Process this file with autoconf to produce a configure script. |
4e71dc1e | 2 | AC_PREREQ(2.59) |
03261851 RK |
3 | AC_INIT(crt0.S) |
4 | ||
c27382bd JJ |
5 | AC_CANONICAL_SYSTEM |
6 | AC_ARG_PROGRAM | |
03261851 RK |
7 | |
8 | if test "$srcdir" = "." ; then | |
c27382bd JJ |
9 | mdir=`echo "${with_multisubdir}/" \ |
10 | | sed -e 's,\([[^/]][[^/]]*\),..,g' -e 's,^/$,,'` | |
11 | AC_CONFIG_AUX_DIR(${mdir}../../..) | |
03261851 | 12 | else |
c27382bd | 13 | AC_CONFIG_AUX_DIR(${srcdir}/../..) |
03261851 | 14 | fi |
03261851 RK |
15 | |
16 | AC_PROG_INSTALL | |
17 | ||
775f2301 | 18 | LIB_AC_PROG_CC |
03261851 RK |
19 | AS=${AS-as} |
20 | AC_SUBST(AS) | |
21 | AR=${AR-ar} | |
22 | AC_SUBST(AR) | |
23 | LD=${LD-ld} | |
24 | AC_SUBST(LD) | |
25 | AC_PROG_RANLIB | |
4e71dc1e | 26 | LIB_AM_PROG_AS |
03261851 RK |
27 | |
28 | host_makefile_frag=${srcdir}/../config/default.mh | |
29 | ||
30 | dnl We have to assign the same value to other variables because autoconf | |
31 | dnl doesn't provide a mechanism to substitute a replacement keyword with | |
32 | dnl arbitrary data or pathnames. | |
33 | dnl | |
34 | host_makefile_frag_path=$host_makefile_frag | |
35 | AC_SUBST(host_makefile_frag_path) | |
36 | AC_SUBST_FILE(host_makefile_frag) | |
37 | ||
4e71dc1e | 38 | AC_CONFIG_FILES(Makefile, |
3a67f1e9 JJ |
39 | . ${srcdir}/../../config-ml.in, |
40 | srcdir=${srcdir} | |
41 | target=${target} | |
00a4b31a | 42 | with_multisubdir=${with_multisubdir} |
3a67f1e9 JJ |
43 | ac_configure_args="${ac_configure_args} --enable-multilib" |
44 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
45 | libgloss_topdir=${srcdir}/../.. | |
46 | ) | |
4e71dc1e | 47 | AC_OUTPUT |