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