1 dnl Process this file with autoconf to produce a configure script.
5 # This is intended for use by the target specific directories, and by us.
6 SIM_AC_COMMON(cconfig.h)
8 # Put a useful copy of CPP_FOR_TARGET in Makefile.
9 # This is only used to build the target values header files. These files are
10 # shipped with distributions so CPP_FOR_TARGET only needs to work in
11 # developer's trees. This value is borrowed from ../../Makefile.in.
13 if test -f \$\${rootme}/../../gcc/Makefile ; then \
14 if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \
15 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \
17 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \
20 if test '\$(host_canonical)' = '\$(target_canonical)' ; then \
23 t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \
26 AC_SUBST(CPP_FOR_TARGET)
28 # Set TARGET_SUBDIR, needed by CPP_FOR_TARGET.
29 if test x"${host}" = x"${target}" ; then
32 TARGET_SUBDIR=${target_alias}
34 AC_SUBST(TARGET_SUBDIR)
36 # These aren't all needed yet, but will be eventually.
37 AC_CHECK_HEADERS(stdlib.h string.h strings.h time.h sys/times.h)
40 [case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac])