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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [libgloss/] [fr30/] [configure.in] - Blame information for rev 1767

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

Line No. Rev Author Line
1 56 joel
dnl Process this file with autoconf to produce a configure script.
2
AC_PREREQ(2.5)dnl
3
AC_INIT(crt0.s)
4
 
5
AC_CANONICAL_SYSTEM
6
AC_ARG_PROGRAM
7
 
8
if test "$srcdir" = "." ; then
9
  mdir=`echo "${with_multisubdir}/" \
10
    | sed -e 's,\([[^/]][[^/]]*\),..,g' -e 's,^/$,,'`
11
  AC_CONFIG_AUX_DIR(${mdir}../../..)
12
else
13
  AC_CONFIG_AUX_DIR(${srcdir}/../..)
14
fi
15
 
16
AC_PROG_INSTALL
17
 
18
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
19
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
20
# are probably using a cross compiler, which will not be able to fully
21
# link an executable.  This should really be fixed in autoconf
22
# itself.
23
 
24
AC_DEFUN(LIB_AC_PROG_CC,
25
[AC_BEFORE([$0], [AC_PROG_CPP])dnl
26
AC_CHECK_PROG(CC, gcc, gcc)
27
if test -z "$CC"; then
28
  AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
29
  test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
30
fi
31
 
32
AC_PROG_CC_GNU
33
 
34
if test $ac_cv_prog_gcc = yes; then
35
  GCC=yes
36
dnl Check whether -g works, even if CFLAGS is set, in case the package
37
dnl plays around with CFLAGS (such as to build both debugging and
38
dnl normal versions of a library), tasteless as that idea is.
39
  ac_test_CFLAGS="${CFLAGS+set}"
40
  ac_save_CFLAGS="$CFLAGS"
41
  CFLAGS=
42
  AC_PROG_CC_G
43
  if test "$ac_test_CFLAGS" = set; then
44
    CFLAGS="$ac_save_CFLAGS"
45
  elif test $ac_cv_prog_cc_g = yes; then
46
    CFLAGS="-g -O2"
47
  else
48
    CFLAGS="-O2"
49
  fi
50
else
51
  GCC=
52
  test "${CFLAGS+set}" = set || CFLAGS="-g"
53
fi
54
])
55
 
56
LIB_AC_PROG_CC
57
AS=${AS-as}
58
AC_SUBST(AS)
59
AR=${AR-ar}
60
AC_SUBST(AR)
61
LD=${LD-ld}
62
AC_SUBST(LD)
63
AC_PROG_RANLIB
64
 
65
host_makefile_frag=${srcdir}/../config/default.mh
66
 
67
dnl We have to assign the same value to other variables because autoconf
68
dnl doesn't provide a mechanism to substitute a replacement keyword with
69
dnl arbitrary data or pathnames.
70
dnl
71
host_makefile_frag_path=$host_makefile_frag
72
AC_SUBST(host_makefile_frag_path)
73
AC_SUBST_FILE(host_makefile_frag)
74
 
75
AC_OUTPUT(Makefile)

powered by: WebSVN 2.1.0

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