1dnl This is the newlib/doc configure.in file.
2dnl Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.5)
5AC_INIT(makedoc.c)
6
7dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
8AC_CONFIG_AUX_DIR(../..)
9
10NEWLIB_CONFIGURE(..)
11
12# Put a plausible default for CC_FOR_BUILD in Makefile.
13if 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
19fi
20AC_SUBST(CC_FOR_BUILD)
21
22# Also set EXEEXT_FOR_BUILD.
23if test "x$cross_compiling" = "xno"; then
24  EXEEXT_FOR_BUILD='$(EXEEXT)'
25else
26  AC_CACHE_CHECK([for build system executable suffix], newlib_cv_build_exeext,
27    [cat > ac_c_test.c << 'EOF'
28int main() {
29/* Nothing needed here */
30}
31EOF
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}
38fi
39AC_SUBST(EXEEXT_FOR_BUILD)
40
41AC_OUTPUT(Makefile)
42