* configure.in: Check DECLS for free, getenv, malloc, realloc,
authorAlan Modra <amodra@gmail.com>
Mon, 18 Jun 2012 04:23:15 +0000 (04:23 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 18 Jun 2012 04:23:15 +0000 (04:23 +0000)
* configure: Regenerate.
* config.in: Likewise.

gas/ChangeLog
gas/config.in
gas/configure
gas/configure.in

index 7860d0f50398406fedf43570fe04d46aa05200e7..aca611ea6fa52b51d3f33f8d49603818baa4044e 100644 (file)
@@ -1,3 +1,9 @@
+2012-06-18  Iain Sandoe  <iain@codesourcery.com>
+
+       * configure.in: Check DECLS for free, getenv, malloc, realloc,
+       * configure: Regenerate.
+       * config.in: Likewise.
+
 2012-06-13  H.J. Lu  <hongjiu.lu@intel.com>
 
        * config/tc-i386.c (x86_address_bytes): New.
index eb6cf03bac3ee1222cd3a735b12b0143b6c89e3e..7c6e23764f2a76ca1a82c070aa4c14f75a15a9f0 100644 (file)
 /* Define to 1 if you have the <errno.h> header file. */
 #undef HAVE_ERRNO_H
 
+/* Define to 1 if you have the `free' function. */
+#undef HAVE_FREE
+
+/* Define to 1 if you have the `getenv' function. */
+#undef HAVE_GETENV
+
 /* Define to 1 if you have the <inttypes.h> header file. */
 #undef HAVE_INTTYPES_H
 
 /* Define to 1 if you have the <locale.h> header file. */
 #undef HAVE_LOCALE_H
 
+/* Define to 1 if you have the `malloc' function. */
+#undef HAVE_MALLOC
+
 /* Define to 1 if you have the <memory.h> header file. */
 #undef HAVE_MEMORY_H
 
+/* Define to 1 if you have the `realloc' function. */
+#undef HAVE_REALLOC
+
 /* Define to 1 if you have the `remove' function. */
 #undef HAVE_REMOVE
 
 /* Define to 1 if you have the <stdlib.h> header file. */
 #undef HAVE_STDLIB_H
 
+/* Define to 1 if you have the `stpcpy' function. */
+#undef HAVE_STPCPY
+
 /* Define to 1 if you have the <strings.h> header file. */
 #undef HAVE_STRINGS_H
 
 /* Define to 1 if you have the <string.h> header file. */
 #undef HAVE_STRING_H
 
+/* Define to 1 if you have the `strstr' function. */
+#undef HAVE_STRSTR
+
 /* Define if <sys/stat.h> has struct stat.st_mtim.tv_nsec */
 #undef HAVE_ST_MTIM_TV_NSEC
 
index c3586f0097032e0dc4ee4f7ef747320f4c1d8d57..c1fd3aae4fa01f4c381df74a50035130f7879dd0 100755 (executable)
@@ -13478,31 +13478,20 @@ _ACEOF
 fi
 done
 
-
-# Some systems don't have sbrk().
-for ac_func in sbrk
+for ac_func in free getenv malloc realloc sbrk setlocale stpcpy strstr
 do :
-  ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
-if test "x$ac_cv_func_sbrk" = x""yes; then :
+  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+eval as_val=\$$as_ac_var
+   if test "x$as_val" = x""yes; then :
   cat >>confdefs.h <<_ACEOF
-#define HAVE_SBRK 1
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 _ACEOF
 
 fi
 done
 
 
-for ac_func in setlocale
-do :
-  ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
-if test "x$ac_cv_func_setlocale" = x""yes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_SETLOCALE 1
-_ACEOF
-
-fi
-done
-
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
 $as_echo_n "checking for LC_MESSAGES... " >&6; }
index 1f16e70a56fbdf2706d41591213b4c7dccf4bf94..f29dc12ba1e40c3e2c54a0c4131dbd4439b8c671 100644 (file)
@@ -663,11 +663,8 @@ AC_C_INLINE
 
 # VMS doesn't have unlink.
 AC_CHECK_FUNCS(unlink remove, break)
+AC_CHECK_FUNCS(free getenv malloc realloc sbrk setlocale stpcpy strstr)
 
-# Some systems don't have sbrk().
-AC_CHECK_FUNCS(sbrk)
-
-AC_CHECK_FUNCS(setlocale)
 AM_LC_MESSAGES
 
 # do we need the math library?
This page took 0.033742 seconds and 4 git commands to generate.