source: trunk/libs/newlib/src/newlib/doc/configure.in @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

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