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