Merge branch 'branch-1.13.2' into maint
[platform/upstream/automake.git] / m4 / minuso.m4
1 ##                                                          -*- Autoconf -*-
2 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
3 #
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # AM_PROG_CC_C_O
9 # --------------
10 # Basically a no-op now, completely superseded by the AC_PROG_CC
11 # adjusted by Automake.  Kept for backward-compatibility.
12 AC_DEFUN([AM_PROG_CC_C_O],
13 [AC_REQUIRE([AC_PROG_CC])dnl
14 dnl Make sure AC_PROG_CC is never called again, or it will override our
15 dnl setting of CC.
16 m4_define([AC_PROG_CC],
17           [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
18 # For better backward-compatibility.  Users are advised to stop
19 # relying on this cache variable and C preprocessor symbol ASAP.
20 eval ac_cv_prog_cc_${am__cc}_c_o=\$am_cv_prog_cc_${am__cc}_c_o
21 if eval test \"\$ac_cv_prog_cc_${am__cc}_c_o\" != yes; then
22   AC_DEFINE([NO_MINUS_C_MINUS_O], [1],
23             [Define to 1 if your C compiler doesn't accept -c and -o together.])
24 fi
25 ])