Last change
on this file since 503 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
1.4 KB
|
Rev | Line | |
---|
[444] | 1 | dnl Process this file with autoconf to produce a configure script. |
---|
| 2 | AC_PREREQ(2.59) |
---|
| 3 | AC_INIT(crt0.S) |
---|
| 4 | |
---|
| 5 | if test "$srcdir" = "." ; then |
---|
| 6 | if test "${with_target_subdir}" != "." ; then |
---|
| 7 | libgloss_topdir="${srcdir}/${with_multisrctop}../../.." |
---|
| 8 | else |
---|
| 9 | libgloss_topdir="${srcdir}/${with_multisrctop}../.." |
---|
| 10 | fi |
---|
| 11 | else |
---|
| 12 | libgloss_topdir="${srcdir}/../.." |
---|
| 13 | fi |
---|
| 14 | AC_CONFIG_AUX_DIR($libgloss_topdir) |
---|
| 15 | |
---|
| 16 | AC_CANONICAL_SYSTEM |
---|
| 17 | AC_ARG_PROGRAM |
---|
| 18 | |
---|
| 19 | AC_PROG_INSTALL |
---|
| 20 | |
---|
| 21 | LIB_AC_PROG_CC |
---|
| 22 | AS=${AS-as} |
---|
| 23 | AC_SUBST(AS) |
---|
| 24 | AR=${AR-ar} |
---|
| 25 | AC_SUBST(AR) |
---|
| 26 | LD=${LD-ld} |
---|
| 27 | AC_SUBST(LD) |
---|
| 28 | AC_PROG_RANLIB |
---|
| 29 | LIB_AM_PROG_AS |
---|
| 30 | |
---|
| 31 | case "${target}" in |
---|
| 32 | *-*-elf) |
---|
| 33 | objtype=elf- |
---|
| 34 | ;; |
---|
| 35 | esac |
---|
| 36 | |
---|
| 37 | AC_SUBST(objtype) |
---|
| 38 | |
---|
| 39 | host_makefile_frag=${srcdir}/../config/default.mh |
---|
| 40 | |
---|
| 41 | dnl We have to assign the same value to other variables because autoconf |
---|
| 42 | dnl doesn't provide a mechanism to substitute a replacement keyword with |
---|
| 43 | dnl arbitrary data or pathnames. |
---|
| 44 | dnl |
---|
| 45 | host_makefile_frag_path=$host_makefile_frag |
---|
| 46 | AC_SUBST(host_makefile_frag_path) |
---|
| 47 | AC_SUBST_FILE(host_makefile_frag) |
---|
| 48 | |
---|
| 49 | # Configure cpu init plug-ins |
---|
| 50 | if test -d "${srcdir}/cpu-init"; then |
---|
| 51 | subdirs="${subdirs} cpu-init" |
---|
| 52 | AC_CONFIG_SUBDIRS(cpu-init) |
---|
| 53 | AC_SUBST(subdirs) |
---|
| 54 | fi |
---|
| 55 | |
---|
| 56 | AC_CONFIG_FILES(Makefile, |
---|
| 57 | . ${libgloss_topdir}/config-ml.in, |
---|
| 58 | srcdir=${srcdir} |
---|
| 59 | target=${target} |
---|
| 60 | with_multisubdir=${with_multisubdir} |
---|
| 61 | ac_configure_args="${ac_configure_args} --enable-multilib" |
---|
| 62 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 63 | libgloss_topdir=${libgloss_topdir} |
---|
| 64 | ) |
---|
| 65 | AC_OUTPUT |
---|
Note: See
TracBrowser
for help on using the repository browser.