OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [libgloss/] [or32/] [configure.in] - Blame information for rev 180

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

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

powered by: WebSVN 2.1.0

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