source: trunk/essentials/sys-devel/automake-1.8/m4/minuso.m4

Last change on this file was 3118, checked in by bird, 18 years ago

automake 1.8.5

File size: 1.5 KB
Line 
1# serial 2
2
3# AM_PROG_CC_C_O
4# --------------
5# Like AC_PROG_CC_C_O, but changed for automake.
6
7# Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
8
9# This program is free software; you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation; either version 2, or (at your option)
12# any later version.
13
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18
19# You should have received a copy of the GNU General Public License
20# along with this program; if not, write to the Free Software
21# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22# 02111-1307, USA.
23
24AC_DEFUN([AM_PROG_CC_C_O],
25[AC_REQUIRE([AC_PROG_CC_C_O])dnl
26AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
27# FIXME: we rely on the cache variable name because
28# there is no other way.
29set dummy $CC
30ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
31if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
32 # Losing compiler, so override with the script.
33 # FIXME: It is wrong to rewrite CC.
34 # But if we don't then we get into trouble of one sort or another.
35 # A longer-term fix would be to have automake use am__CC in this case,
36 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
37 CC="$am_aux_dir/compile $CC"
38fi
39])
Note: See TracBrowser for help on using the repository browser.