source: trunk/libs/newlib/src/libgloss/m68k/configure.in @ 474

Last change on this file since 474 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 2.6 KB
Line 
1# Copyright (c) 1995, 1996 Cygnus Support
2#
3# The authors hereby grant permission to use, copy, modify, distribute,
4# and license this software and its documentation for any purpose, provided
5# that existing copyright notices are retained in all copies and that this
6# notice is included verbatim in any distributions. No written agreement,
7# license, or royalty fee is required for any of the authorized uses.
8# Modifications to this software may be copyrighted by their authors
9# and need not follow the licensing terms described here, provided that
10# the new terms are clearly indicated on the first page of each file where
11# they apply.
12#
13# process this file with autoconf to produce a configure script.
14AC_PREREQ(2.59)
15AC_INIT(crt0.S)
16
17if test "${enable_shared}" = "yes" ; then
18    echo "Shared libraries not supported for cross compiling, ignored"
19fi
20
21if test "$srcdir" = "." ; then
22  if test "${with_target_subdir}" != "." ; then
23    libgloss_topdir="${with_multisrctop}../../.."
24  else
25    libgloss_topdir="${with_multisrctop}../.."
26  fi
27else
28  libgloss_topdir="${srcdir}/../.."
29fi
30
31AC_CONFIG_AUX_DIR($libgloss_topdir)
32AC_CANONICAL_SYSTEM
33AC_ARG_PROGRAM
34
35AC_PROG_INSTALL
36
37LIB_AC_PROG_CC
38
39AS=${AS-as}
40AC_SUBST(AS)
41AR=${AR-ar}
42AC_SUBST(AR)
43LD=${LD-ld}
44AC_SUBST(LD)
45AC_PROG_RANLIB
46LIB_AM_PROG_AS
47
48AC_MSG_CHECKING([target cpu family])
49DO=m68k
50dnl Temporarily modify LDFLAGS so that link tests will succeed without
51dnl a C library.  Note that we may not have a C librabry yet and that
52dnl autoconf automatically adds script to check whether we can create
53dnl an executable or not.
54dnl
55saved_LDFLAGS="$LDFLAGS"
56LDFLAGS="-nostdlib -e main"
57AC_PREPROC_IFELSE([#ifndef __mcoldfire__
58                #error we are not coldfire
59                #endif],
60               DO="cf",)
61AC_PREPROC_IFELSE([#ifndef __mfido__
62                #error we are not fido
63                #endif],
64               DO="fido",)
65LDFLAGS=$saved_LDFLAGS
66AC_MSG_RESULT($DO)
67AC_SUBST(DO)
68     
69host_makefile_frag=${srcdir}/../config/default.mh
70target_makefile_frag=${srcdir}/../config/default.mt
71
72dnl We have to assign the same value to other variables because autoconf
73dnl doesn't provide a mechanism to substitute a replacement keyword with
74dnl arbitrary data or pathnames.
75dnl
76host_makefile_frag_path=$host_makefile_frag
77AC_SUBST(host_makefile_frag_path)
78AC_SUBST_FILE(host_makefile_frag)
79target_makefile_frag_path=$target_makefile_frag
80AC_SUBST(target_makefile_frag_path)
81AC_SUBST_FILE(target_makefile_frag)
82
83AC_CONFIG_FILES(Makefile,
84. ${libgloss_topdir}/config-ml.in,
85srcdir=${srcdir}
86target=${target}
87with_multisubdir=${with_multisubdir}
88ac_configure_args="${ac_configure_args} --enable-multilib"
89CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
90libgloss_topdir=${libgloss_topdir}
91)
92AC_OUTPUT
93
Note: See TracBrowser for help on using the repository browser.