forked from Imagelibrary/rtems
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
35 lines
704 B
Plaintext
35 lines
704 B
Plaintext
dnl
|
|
dnl Check for target gcc
|
|
dnl
|
|
|
|
AC_DEFUN([RTEMS_PROG_CC],
|
|
[
|
|
AC_BEFORE([$0], [AC_PROG_CPP])dnl
|
|
AC_BEFORE([$0], [AC_PROG_CC])dnl
|
|
AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
|
|
|
|
case "$host" in
|
|
*-*-rtems*) ac_cv_exeext=.exe;;
|
|
esac
|
|
|
|
RTEMS_CHECK_TOOL(CC,gcc)
|
|
test -z "$CC" && \
|
|
AC_MSG_ERROR([no acceptable cc found in \$PATH])
|
|
AC_PROG_CC
|
|
AC_PROG_CPP
|
|
])
|
|
|
|
AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET],
|
|
[
|
|
dnl check target cc
|
|
RTEMS_PROG_CC
|
|
|
|
AS_IF([test x"$GCC" = xyes],[
|
|
AS_IF([test "${enable_cpukit_root+set}"],[
|
|
GCCSPECS="-B\$(CPUKIT_ROOT)/lib/"])
|
|
AS_IF([test "${enable_project_root+set}"],[
|
|
GCCSPECS="$GCCSPECS -B\$(PROJECT_ROOT)/lib/"])
|
|
GCCSPECS="${GCCSPECS} -specs bsp_specs -qrtems"])
|
|
AC_SUBST(GCCSPECS)
|
|
])
|