diff options
author | Alan Modra <amodra@gmail.com> | 2012-06-18 04:23:15 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-06-18 04:23:15 +0000 |
commit | a574142b3eeecca344737b380438e7a3cb6427ae (patch) | |
tree | f5067f7a366c9c4c9cda176d72c538f94984f613 /gas/configure | |
parent | 466911340d972c2ecad9f56874735a4ced97d6ff (diff) | |
download | gdb-a574142b3eeecca344737b380438e7a3cb6427ae.zip gdb-a574142b3eeecca344737b380438e7a3cb6427ae.tar.gz gdb-a574142b3eeecca344737b380438e7a3cb6427ae.tar.bz2 |
* configure.in: Check DECLS for free, getenv, malloc, realloc,
* configure: Regenerate.
* config.in: Likewise.
Diffstat (limited to 'gas/configure')
-rwxr-xr-x | gas/configure | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/gas/configure b/gas/configure index c3586f0..c1fd3aa 100755 --- a/gas/configure +++ b/gas/configure @@ -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; } |