797
797
rm -f confinc confmf
800
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
801
# Free Software Foundation, Inc.
803
# This file is free software; the Free Software Foundation
804
# gives unlimited permission to copy and/or distribute it,
805
# with or without modifications, as long as this notice is preserved.
811
# Like AC_PROG_CC_C_O, but changed for automake.
812
AC_DEFUN([AM_PROG_CC_C_O],
813
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
814
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
815
AC_REQUIRE_AUX_FILE([compile])dnl
816
# FIXME: we rely on the cache variable name because
817
# there is no other way.
819
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
820
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
821
if test "$am_t" != yes; then
822
# Losing compiler, so override with the script.
823
# FIXME: It is wrong to rewrite CC.
824
# But if we don't then we get into trouble of one sort or another.
825
# A longer-term fix would be to have automake use am__CC in this case,
826
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
827
CC="$am_aux_dir/compile $CC"
829
dnl Make sure AC_PROG_CC is never called again, or it will override our
831
m4_define([AC_PROG_CC],
832
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
800
835
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
802
837
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008