summaryrefslogtreecommitdiff
path: root/m4/minuso.m4
blob: a28db55c9ba42228596b63c790fefd2e78cc46cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
dnl Like AC_PROG_CC_C_O, but changed for automake.

AC_DEFUN([AM_PROG_CC_C_O],[
AC_REQUIRE([AC_PROG_CC_C_O])
dnl FIXME: we rely on the cache variable name because
dnl there is no other way.
set dummy $CC; ac_cc="`echo [$]2 |
changequote(, )dnl
		       sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
changequote([, ])dnl
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
   # Losing compiler, so override with the script.
   CC="\$(top_srcdir)/compile $CC"
fi
])