]>
Commit | Line | Data |
---|---|---|
c906108c | 1 | dnl Process this file with autoconf to produce a configure script. |
c906108c SS |
2 | AC_INIT(Makefile.in) |
3 | ||
936df756 | 4 | AC_PROG_CC |
c906108c SS |
5 | |
6 | # Put a useful copy of CPP_FOR_TARGET in Makefile. | |
7 | # This is only used to build the target values header files. These files are | |
8 | # shipped with distributions so CPP_FOR_TARGET only needs to work in | |
9 | # developer's trees. This value is borrowed from ../../Makefile.in. | |
10 | CPP_FOR_TARGET="\` \ | |
11 | if test -f \$\${rootme}/../../gcc/Makefile ; then \ | |
12 | if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \ | |
13 | echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \ | |
14 | else \ | |
15 | echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \ | |
16 | fi; \ | |
17 | else \ | |
18 | if test '\$(host_canonical)' = '\$(target_canonical)' ; then \ | |
19 | echo \$(CC); \ | |
20 | else \ | |
21 | t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \ | |
22 | fi; \ | |
23 | fi\` -E" | |
24 | AC_SUBST(CPP_FOR_TARGET) | |
25 | ||
26 | # Set TARGET_SUBDIR, needed by CPP_FOR_TARGET. | |
27 | if test x"${host}" = x"${target}" ; then | |
28 | TARGET_SUBDIR="." | |
29 | else | |
30 | TARGET_SUBDIR=${target_alias} | |
31 | fi | |
32 | AC_SUBST(TARGET_SUBDIR) | |
33 | ||
936df756 | 34 | AC_OUTPUT(Makefile) |