]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7355: don't do the checks for rpl_realloc and rpl_malloc unless it is gcc compilin...
authorMichael Jerris <mike@jerris.com>
Mon, 9 Mar 2015 16:51:35 +0000 (16:51 +0000)
committerroot <root@ip-10-46-6-86.us-west-2.compute.internal>
Mon, 9 Mar 2015 16:51:35 +0000 (16:51 +0000)
libs/spandsp/configure.ac
libs/spandsp/m4/ax_compiler_vendor.m4

index ad5ecf148dfc167cdb0fc88e4aa1e019d0ddafb2..305c75a53321bf9470d0eb7c859a5d299d736c4b 100644 (file)
@@ -152,9 +152,12 @@ AC_ARG_ENABLE(builtin_tiff,
 
 AC_FUNC_ERROR_AT_LINE
 AC_FUNC_VPRINTF
-AC_FUNC_MALLOC
 AC_FUNC_MEMCMP
-AC_FUNC_REALLOC
+if test "${ax_cv_c_compiler_vendor}" = "gnu"
+  then
+    AC_FUNC_REALLOC
+    AC_FUNC_MALLOC
+fi
 AC_FUNC_SELECT_ARGTYPES
 
 AX_C99_FUNC_LRINT
index bab4c2cbb3cb4ecfd13748cf040ed15ae8bfed6e..a9fc1d4c498b556ff72b9bc2ce5c66e3f7b6ee1d 100644 (file)
 #   special exception to the GPL to apply to your modified version as well.
 
 AC_DEFUN([AX_COMPILER_VENDOR],
-[AC_CACHE_CHECK([for _AC_LANG compiler vendor], ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor,
+[
+AC_CACHE_CHECK([for _AC_LANG compiler vendor], ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor,
  [ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor=unknown
   # note: don't check for gcc first since some other compilers define __GNUC__
-  for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
+  for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ clang:__clang__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
     vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
     AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[
 #if !($vencpp)