6976
6976
rm -f confinc confmf
6979
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
6980
# Free Software Foundation, Inc.
6982
# This file is free software; the Free Software Foundation
6983
# gives unlimited permission to copy and/or distribute it,
6984
# with or without modifications, as long as this notice is preserved.
6990
# Like AC_PROG_CC_C_O, but changed for automake.
6991
AC_DEFUN([AM_PROG_CC_C_O],
6992
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
6993
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6994
AC_REQUIRE_AUX_FILE([compile])dnl
6995
# FIXME: we rely on the cache variable name because
6996
# there is no other way.
6998
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
6999
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
7000
# Losing compiler, so override with the script.
7001
# FIXME: It is wrong to rewrite CC.
7002
# But if we don't then we get into trouble of one sort or another.
7003
# A longer-term fix would be to have automake use am__CC in this case,
7004
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7005
CC="$am_aux_dir/compile $CC"
7007
dnl Make sure AC_PROG_CC is never called again, or it will override our
7009
m4_define([AC_PROG_CC],
7010
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
6979
7013
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
6981
7015
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005