aboutsummaryrefslogtreecommitdiff
path: root/gas/configure
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-08-26 10:56:26 +0100
committerNick Clifton <nickc@redhat.com>2015-08-26 10:56:26 +0100
commit2a7f4fa91ffc8ad3ad195f7ac02a4c97bc96b791 (patch)
treefadcb2758c470416039e10e3b1ea485619de587d /gas/configure
parent7c61d651fd0e42b8f68840a3735ed7e46d4fd083 (diff)
downloadgdb-2a7f4fa91ffc8ad3ad195f7ac02a4c97bc96b791.zip
gdb-2a7f4fa91ffc8ad3ad195f7ac02a4c97bc96b791.tar.gz
gdb-2a7f4fa91ffc8ad3ad195f7ac02a4c97bc96b791.tar.bz2
Add asprintf to the list of functions whose decls are checked at configure time.
PR gas/18842 * configure.ac (AS_CHECK_DECLS): Add asprintf. * configure: Regenerate. * config.in: Regenerate.
Diffstat (limited to 'gas/configure')
-rwxr-xr-xgas/configure10
1 files changed, 10 insertions, 0 deletions
diff --git a/gas/configure b/gas/configure
index 143b940..62bf039 100755
--- a/gas/configure
+++ b/gas/configure
@@ -14311,6 +14311,16 @@ fi
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_VSNPRINTF $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