Convert to ISO C90 formatting
[binutils-gdb.git] / bfd / configure.in
index afcae656b1e1df4ba0226480d790435f93a4c5fc..565936c5525bf30407847893da463027c9a32708 100644 (file)
@@ -53,21 +53,21 @@ esac],[want_mmap=false])dnl
 
 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
 
-AC_ARG_ENABLE(error-on-warning,
-  [  --enable-error-on-warning    treat compile warnings as errors],
+AC_ARG_ENABLE(werror,
+  [  --enable-werror    treat compile warnings as errors],
   [case "${enableval}" in
      yes | y) ERROR_ON_WARNING="yes" ;;
      no | n)  ERROR_ON_WARNING="no" ;;
-     *) AC_MSG_ERROR(bad value ${enableval} for --enable-error-on-warning) ;;
+     *) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;;
    esac])
 
-# Enable -Werror by default, suppressing it only for --disable-error-on-warning
+# Enable -Werror by default, suppressing it only for --disable-werror
 # or --disable-build-warnings.
 if test "${ERROR_ON_WARNING}" != no
 then
   build_warnings="$build_warnings -Werror"
 fi
-                  
+
 AC_ARG_ENABLE(build-warnings,
 [  --enable-build-warnings Enable build-time compiler warnings if gcc is used],
 [case "${enableval}" in
@@ -106,7 +106,7 @@ bfd_default_target_size=32
 
 AC_PROG_CC
 
-ALL_LINGUAS="fr tr ja es sv da zh_CN ro"
+ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw"
 CY_GNU_GETTEXT
 
 # Permit host specific settings.
@@ -162,13 +162,16 @@ AC_HEADER_DIRENT
 AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid)
 AC_CHECK_FUNCS(strtoull)
 
+AC_CHECK_DECLS(basename, , , [#include "sysdep.h"])
+
 BFD_BINARY_FOPEN
 
-BFD_NEED_DECLARATION(strstr)
-BFD_NEED_DECLARATION(malloc)
-BFD_NEED_DECLARATION(realloc)
+BFD_NEED_DECLARATION(ffs)
 BFD_NEED_DECLARATION(free)
 BFD_NEED_DECLARATION(getenv)
+BFD_NEED_DECLARATION(malloc)
+BFD_NEED_DECLARATION(realloc)
+BFD_NEED_DECLARATION(strstr)
 
 # If we are configured native, pick a core file support file.
 COREFILE=
@@ -179,7 +182,7 @@ if test "${target}" = "${host}"; then
   alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
        COREFILE=''
        ;;
-  alpha*-*-linux-gnu*)
+  alpha*-*-linux-*)
        COREFILE=trad-core.lo
        TRAD_HEADER='"hosts/alphalinux.h"'
        ;;
@@ -264,7 +267,7 @@ changequote([,])dnl
        TRAD_HEADER='"hosts/i386mach3.h"'
        ;;
 changequote(,)dnl
-  i[3-7]86-*-linux-gnu*)
+  i[3-7]86-*-linux-*)
 changequote([,])dnl
        COREFILE=trad-core.lo
        TRAD_HEADER='"hosts/i386linux.h"'
@@ -305,7 +308,7 @@ changequote([,])dnl
        COREFILE=trad-core.lo
        TRAD_HEADER='"hosts/hp300bsd.h"'
        ;;
-  m68*-*-linux-gnu*)
+  m68*-*-linux-*)
        COREFILE=trad-core.lo
        TRAD_HEADER='"hosts/m68klinux.h"'
        ;;
@@ -391,7 +394,7 @@ changequote([,])dnl
        COREFILE=trad-core.lo
        TRAD_HEADER='"hosts/vaxult2.h"'
        ;;
-  vax-*-linux-gnu*)
+  vax-*-linux-*)
        COREFILE=trad-core.lo
        TRAD_HEADER='"hosts/vaxlinux.h"'
        ;;