1 dnl This is the newlib/doc configure.in file.
2 dnl Process this file with autoconf to produce a configure script.
7 dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
8 AC_CONFIG_AUX_DIR(../..)
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
20 AC_SUBST(CC_FOR_BUILD)
22 # Also set EXEEXT_FOR_BUILD.
23 if test "x$cross_compiling" = "xno"; then
24 EXEEXT_FOR_BUILD='$(EXEEXT)'
26 AC_CACHE_CHECK([for build system executable suffix], newlib_cv_build_exeext,
27 [cat > ac_c_test.c << 'EOF'
29 /* Nothing needed here */
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//`
35 test x"${newlib_cv_build_exeext}" = x && newlib_cv_build_exeext=no])
37 test x"${newlib_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${newlib_cv_build_exeext}
39 AC_SUBST(EXEEXT_FOR_BUILD)