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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [doc/] [configure.in] - Blame information for rev 1774

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

Line No. Rev Author Line
1 56 joel
dnl This is the newlib/doc configure.in file.
2
dnl Process this file with autoconf to produce a configure script.
3 39 lampret
 
4 56 joel
AC_PREREQ(2.5)
5
AC_INIT(makedoc.c)
6 39 lampret
 
7 56 joel
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
8
AC_CONFIG_AUX_DIR(../..)
9 39 lampret
 
10 56 joel
NEWLIB_CONFIGURE(..)
11
 
12
# Put a plausible default for CC_FOR_BUILD in Makefile.
13
if test -z "$CC_FOR_BUILD"; then
14
  if test "x$cross_compiling" = "xno"; then
15
    CC_FOR_BUILD='$(CC)'
16
  else
17
    CC_FOR_BUILD=gcc
18
  fi
19
fi
20
AC_SUBST(CC_FOR_BUILD)
21
 
22
# Also set EXEEXT_FOR_BUILD.
23
if test "x$cross_compiling" = "xno"; then
24
  EXEEXT_FOR_BUILD='$(EXEEXT)'
25
else
26
  AC_CACHE_CHECK([for build system executable suffix], newlib_cv_build_exeext,
27
    [cat > ac_c_test.c << 'EOF'
28
int main() {
29
/* Nothing needed here */
30
}
31
EOF
32
    ${CC_FOR_BUILD} -o ac_c_test am_c_test.c 1>&5 2>&5
33
    newlib_cv_build_exeext=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//`
34
    rm -f ac_c_test*
35
    test x"${newlib_cv_build_exeext}" = x && newlib_cv_build_exeext=no])
36
  EXEEXT_FOR_BUILD=""
37
  test x"${newlib_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${newlib_cv_build_exeext}
38
fi
39
AC_SUBST(EXEEXT_FOR_BUILD)
40
 
41
AC_OUTPUT(Makefile)

powered by: WebSVN 2.1.0

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