1# generated automatically by aclocal 1.14.1 -*- Autoconf -*- 2 3# Copyright (C) 1996-2013 Free Software Foundation, Inc. 4 5# This file is free software; the Free Software Foundation 6# gives unlimited permission to copy and/or distribute it, 7# with or without modifications, as long as this notice is preserved. 8 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12# PARTICULAR PURPOSE. 13 14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) 15# Copyright (C) 1999-2013 Free Software Foundation, Inc. 16# 17# This file is free software; the Free Software Foundation 18# gives unlimited permission to copy and/or distribute it, 19# with or without modifications, as long as this notice is preserved. 20 21# _AM_PROG_CC_C_O 22# --------------- 23# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 24# to automatically call this. 25AC_DEFUN([_AM_PROG_CC_C_O], 26[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 27AC_REQUIRE_AUX_FILE([compile])dnl 28AC_LANG_PUSH([C])dnl 29AC_CACHE_CHECK( 30 [whether $CC understands -c and -o together], 31 [am_cv_prog_cc_c_o], 32 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 33 # Make sure it works both with $CC and with simple cc. 34 # Following AC_PROG_CC_C_O, we do the test twice because some 35 # compilers refuse to overwrite an existing .o file with -o, 36 # though they will create one. 37 am_cv_prog_cc_c_o=yes 38 for am_i in 1 2; do 39 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 40 && test -f conftest2.$ac_objext; then 41 : OK 42 else 43 am_cv_prog_cc_c_o=no 44 break 45 fi 46 done 47 rm -f core conftest* 48 unset am_i]) 49if test "$am_cv_prog_cc_c_o" != yes; then 50 # Losing compiler, so override with the script. 51 # FIXME: It is wrong to rewrite CC. 52 # But if we don't then we get into trouble of one sort or another. 53 # A longer-term fix would be to have automake use am__CC in this case, 54 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 55 CC="$am_aux_dir/compile $CC" 56fi 57AC_LANG_POP([C])]) 58 59# For backward compatibility. 60AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 61 62