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