OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [newlib-1.18.0/] [libgloss/] [or32/] [configure.in] - Blame information for rev 854

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
# configure.in. Autoconf input file.
2
 
3
# Copyright (c) 1995, 1996 Cygnus Support
4
# Copyright (C) 2004, Jacob Bower
5
# Copyright (C) 2010, Embecosm Limited 
6
 
7
# Contributor Jeremy Bennett 
8
 
9
# This file is part of Newlib.
10
 
11
# The original work by Jacob Bower is provided as-is without any kind of
12
# warranty. Use it at your own risk!
13
 
14
# All subsequent work is bound by version 3 of the GPL as follows.
15
 
16
# This program is free software; you can redistribute it and/or modify it
17
# under the terms of the GNU General Public License as published by the Free
18
# Software Foundation; either version 3 of the License, or (at your option)
19
# any later version.
20
 
21
# This program is distributed in the hope that it will be useful, but WITHOUT
22
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
23
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
24
# more details.
25
 
26
# You should have received a copy of the GNU General Public License along
27
# with this program.  If not, see .
28
 
29
dnl Process this file with autoconf to produce a configure script.
30
AC_PREREQ(2.59)
31
AC_INIT(libor32.a,0.2.0)
32
AC_CONFIG_HEADER(config.h)
33
 
34
# No shared libraries allowed
35
if test "${enable_shared}" = "yes" ; then
36
    echo "Shared libraries not supported for cross compiling, ignored"
37
fi
38
 
39
# Where are the auxillary tools (confg.sub etc)?
40
if test "$srcdir" = "." ; then
41
  if test "${with_target_subdir}" != "." ; then
42
    libgloss_topdir="${srcdir}/${with_multisrctop}../../.."
43
  else
44
    libgloss_topdir="${srcdir}/${with_multisrctop}../.."
45
  fi
46
else
47
  libgloss_topdir="${srcdir}/../.."
48
fi
49
AC_CONFIG_AUX_DIR($libgloss_topdir)
50
 
51
AC_CANONICAL_TARGET
52
 
53
AC_ARG_PROGRAM
54
AC_PROG_INSTALL
55
 
56
AC_DEFINE(HAVE_GNU_LD, 1, [Using GNU ld])
57
 
58
# We always use ELF, define various useful associated things.
59
AC_DEFINE(HAVE_ELF, 1, [Using ELF format])
60
 
61
# Sort out what the symbol prefix is (we could just fix it as '_', but let the
62
# script work it out.
63
AC_CACHE_CHECK([for symbol prefix], libc_cv_symbol_prefix, [dnl
64
cat > conftest.c <<\EOF
65
foo () { }
66
EOF
67
dnl
68
libc_cv_symbol_prefix=none
69
if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/null]);
70
then
71
  libc_cv_symbol_prefix='$'
72
else
73
  if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "_foo" > /dev/null]);
74
  then
75
    libc_cv_symbol_prefix=_
76
  fi
77
fi
78
rm -f conftest* ])
79
if test $libc_cv_symbol_prefix != none; then
80
  AC_DEFINE_UNQUOTED(__SYMBOL_PREFIX, "$libc_cv_symbol_prefix", [symbol prefix])
81
else
82
  AC_DEFINE(__SYMBOL_PREFIX, "", [symbol prefix])
83
fi
84
 
85
# Standard stuff copied from libnosys. For this we'll need an aclocal.m4
86
LIB_AC_PROG_CC
87
AS=${AS-as}
88
AC_SUBST(AS)
89
AR=${AR-ar}
90
AC_SUBST(AR)
91
LD=${LD-ld}
92
AC_SUBST(LD)
93
AC_PROG_RANLIB
94
LIB_AM_PROG_AS
95
 
96
host_makefile_frag=${srcdir}/../config/default.mh
97
 
98
dnl We have to assign the same value to other variables because autoconf
99
dnl doesn't provide a mechanism to substitute a replacement keyword with
100
dnl arbitrary data or pathnames.
101
dnl
102
host_makefile_frag_path=$host_makefile_frag
103
AC_SUBST(host_makefile_frag_path)
104
AC_SUBST_FILE(host_makefile_frag)
105
 
106
AC_CONFIG_FILES(Makefile,
107
                ac_file=Makefile . ${libgloss_topdir}/config-ml.in,
108
                srcdir=${srcdir}
109
                target=${target}
110
                with_multisubdir=${with_multisubdir}
111
                ac_configure_args="${ac_configure_args} --enable-multilib"
112
                CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
113
                libgloss_topdir=${libgloss_topdir}
114
)
115
AC_OUTPUT

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.