diff options
author | Richard Henderson <rth@redhat.com> | 2002-01-22 22:32:35 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2002-01-22 22:32:35 +0000 |
commit | c11ed3f475ddc1b9e3d15a715f13d0ebe0b1b4c3 (patch) | |
tree | f6152fb6f13055e6eba37617bf22799918d485ba /libiberty | |
parent | 41e4aaba7a7236dac62166993a781ee9bda286a1 (diff) | |
download | gdb-c11ed3f475ddc1b9e3d15a715f13d0ebe0b1b4c3.tar.gz |
* configure.in (variable detection): Use arrays of unspecified
size instead of plain integers.
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rwxr-xr-x | libiberty/configure | 2 | ||||
-rw-r--r-- | libiberty/configure.in | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index cb53fb61827..59f48d45976 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2002-01-22 Momchil Velikov <velco@fadata.bg> + + * configure.in (variable detection): Use arrays of unspecified + size instead of plain integers. + 2002-01-18 DJ Delorie <dj@redhat.com> * Makefile.in (TESTLIB): New. This library is for future diff --git a/libiberty/configure b/libiberty/configure index be1fa94a5f1..a406d28db62 100755 --- a/libiberty/configure +++ b/libiberty/configure @@ -2803,7 +2803,7 @@ else #include "confdefs.h" int *p; int main() { -extern int $v; p = &$v; +extern int $v []; p = &$v; ; return 0; } EOF if { (eval echo configure:2810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then diff --git a/libiberty/configure.in b/libiberty/configure.in index 0160edfc596..eed222d35d1 100644 --- a/libiberty/configure.in +++ b/libiberty/configure.in @@ -365,7 +365,7 @@ if test -z "${setobjs}"; then for v in $vars; do AC_MSG_CHECKING([for $v]) AC_CACHE_VAL(libiberty_cv_var_$v, - [AC_TRY_LINK([int *p;], [extern int $v; p = &$v;], + [AC_TRY_LINK([int *p;], [extern int $v []; p = &$v;], [eval "libiberty_cv_var_$v=yes"], [eval "libiberty_cv_var_$v=no"])]) if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then |