1 | # Makefile for libgloss/or1k |
---|
2 | |
---|
3 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
---|
4 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
---|
5 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
---|
6 | # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
---|
7 | # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
---|
8 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
---|
9 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
---|
10 | # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
---|
11 | # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
---|
12 | # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
---|
13 | # POSSIBILITY OF SUCH DAMAGE. */ |
---|
14 | |
---|
15 | # Process this file with autoconf to produce a configure script |
---|
16 | |
---|
17 | AC_PREREQ(2.59) |
---|
18 | AC_INIT(libor1k,0.0.1) |
---|
19 | |
---|
20 | # No shared libraries allowed |
---|
21 | if test "${enable_shared}" = "yes" ; then |
---|
22 | echo "Shared libraries not supported for cross compiling, ignored" |
---|
23 | fi |
---|
24 | |
---|
25 | # Where are the auxillary tools (confg.sub etc)? |
---|
26 | if test "$srcdir" = "." ; then |
---|
27 | if test "${with_target_subdir}" != "." ; then |
---|
28 | libgloss_topdir="${srcdir}/${with_multisrctop}../../.." |
---|
29 | else |
---|
30 | libgloss_topdir="${srcdir}/${with_multisrctop}../.." |
---|
31 | fi |
---|
32 | else |
---|
33 | libgloss_topdir="${srcdir}/../.." |
---|
34 | fi |
---|
35 | AC_CONFIG_AUX_DIR($libgloss_topdir) |
---|
36 | |
---|
37 | AC_CANONICAL_SYSTEM |
---|
38 | AC_ARG_PROGRAM |
---|
39 | |
---|
40 | AC_PROG_INSTALL |
---|
41 | |
---|
42 | AC_DEFINE(HAVE_GNU_LD, 1, [Using GNU ld]) |
---|
43 | |
---|
44 | # We always use ELF, define various useful associated things. |
---|
45 | AC_DEFINE(HAVE_ELF, 1, [Using ELF format]) |
---|
46 | |
---|
47 | # Standard stuff copied from libnosys. For this we'll need to an aclocal.m4 |
---|
48 | LIB_AC_PROG_CC |
---|
49 | AS=${AS-as} |
---|
50 | AC_SUBST(AS) |
---|
51 | AR=${AR-ar} |
---|
52 | AC_SUBST(AR) |
---|
53 | LD=${LD-ld} |
---|
54 | AC_SUBST(LD) |
---|
55 | AC_PROG_RANLIB |
---|
56 | LIB_AM_PROG_AS |
---|
57 | |
---|
58 | host_makefile_frag=${srcdir}/../config/default.mh |
---|
59 | target_makefile_frag=${srcdir}/../config/default.mt |
---|
60 | |
---|
61 | dnl We have to assign the same value to other variables because autoconf |
---|
62 | dnl doesn't provide a mechanism to substitute a replacement keyword with |
---|
63 | dnl arbitrary data or pathnames. |
---|
64 | dnl |
---|
65 | host_makefile_frag_path=$host_makefile_frag |
---|
66 | AC_SUBST(host_makefile_frag_path) |
---|
67 | AC_SUBST_FILE(host_makefile_frag) |
---|
68 | target_makefile_frag_path=$target_makefile_frag |
---|
69 | AC_SUBST(target_makefile_frag_path) |
---|
70 | AC_SUBST_FILE(target_makefile_frag) |
---|
71 | |
---|
72 | AC_CONFIG_FILES(Makefile, |
---|
73 | . ${libgloss_topdir}/config-ml.in, |
---|
74 | srcdir=${srcdir} |
---|
75 | target=${target} |
---|
76 | with_multisubdir=${with_multisubdir} |
---|
77 | ac_configure_args="${ac_configure_args} --enable-multilib" |
---|
78 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
---|
79 | libgloss_topdir=${libgloss_topdir} |
---|
80 | ) |
---|
81 | AC_OUTPUT |
---|