aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2015-07-28 09:57:32 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2015-07-28 09:57:32 +0200
commitd6f1bafa2c05241b89c0303a9f6a2af89f51c39c (patch)
tree03edb273e3c0f3a9a21a70204f9130b6199a0d2d /bfd/configure
parent671c4e31fb12f1bee30d3bb5f8ad95f17d8d4663 (diff)
downloadgdb-d6f1bafa2c05241b89c0303a9f6a2af89f51c39c.zip
gdb-d6f1bafa2c05241b89c0303a9f6a2af89f51c39c.tar.gz
gdb-d6f1bafa2c05241b89c0303a9f6a2af89f51c39c.tar.bz2
Check for asprintf and vasprintf during configure stage.
This should fix some build errors seen on AIX, MinGW, and possibly other non-GNU systems too due to missing asprintf(). bfd/ * configure.in: Add asprintf and vasprintf to AC_CHECK_DECLS. * config.in, configure: Regenerate.
Diffstat (limited to 'bfd/configure')
-rwxr-xr-xbfd/configure22
1 files changed, 22 insertions, 0 deletions
diff --git a/bfd/configure b/bfd/configure
index 1ea612b..a17e936 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -13819,6 +13819,28 @@ cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_STRSTR $ac_have_decl
_ACEOF
+ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
+if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_ASPRINTF $ac_have_decl
+_ACEOF
+
+ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
+if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_VASPRINTF $ac_have_decl
+_ACEOF
+
ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
ac_have_decl=1