source: trunk/libs/newlib/src/libgloss/sparc/configure.in @ 444

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

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

File size: 2.4 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.
12dnl Process this file with autoconf to produce a configure script.
13AC_PREREQ(2.59)
14AC_INIT(sparc-stub.c)
15
16if test "${enable_shared}" = "yes" ; then
17    echo "Shared libraries not supported for cross compiling, ignored"
18fi
19
20if test "$srcdir" = "." ; then
21  if test "${with_target_subdir}" != "." ; then
22    libgloss_topdir="${with_multisrctop}../../.."
23  else
24    libgloss_topdir="${with_multisrctop}../.."
25  fi
26else
27  libgloss_topdir="${srcdir}/../.."
28fi
29
30AC_CONFIG_AUX_DIR($libgloss_topdir)
31
32AC_PROG_INSTALL
33
34AC_CANONICAL_SYSTEM
35
36LIB_AC_PROG_CC
37AS=${AS-as}
38AC_SUBST(AS)
39AR=${AR-ar}
40AC_SUBST(AR)
41LD=${LD-ld}
42AC_SUBST(LD)
43AC_PROG_RANLIB
44LIB_AM_PROG_AS
45
46case ${target_cpu} in
47sparclite*) CPU=SLITE ;;
48sparclet*) CPU=SPLET ;;
49sparc64*) CPU=SPARC64 ;;
50sparc86x*) CPU=SLITE ;;
51*) CPU=SPARC ;;
52esac
53AC_SUBST(CPU)
54
55case ${target_cpu} in
56sparc64*) CYGMONLDSCRIPTTEMPL=${srcdir}/cygmon-sparc64-ld.src ;;
57sparclet-*-aout*) CYGMONLDSCRIPTTEMPL-${srcdir}/cygmon.ld.src; AC_CONFIG_SUBDIRS(libsys) ;;
58*) CYGMONLDSCRIPTTEMPL=${srcdir}/cygmon.ld.src
59esac
60
61host_makefile_frag=${srcdir}/../config/default.mh
62target_makefile_frag=${srcdir}/../config/default.mt
63
64dnl We have to assign the same value to other variables because autoconf
65dnl doesn't provide a mechanism to substitute a replacement keyword with
66dnl arbitrary data or pathnames.
67dnl
68host_makefile_frag_path=$host_makefile_frag
69AC_SUBST(host_makefile_frag_path)
70AC_SUBST_FILE(host_makefile_frag)
71target_makefile_frag_path=$target_makefile_frag
72AC_SUBST(target_makefile_frag_path)
73AC_SUBST_FILE(target_makefile_frag)
74AC_SUBST(CYGMONLDSCRIPTTEMPL)
75
76AC_OUTPUT(Makefile,
77. ${libgloss_topdir}/config-ml.in,
78srcdir=${srcdir}
79target=${target}
80with_multisubdir=${with_multisubdir}
81ac_configure_args="${ac_configure_args} --enable-multilib"
82CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
83libgloss_topdir=${libgloss_topdir}
84)
85
Note: See TracBrowser for help on using the repository browser.