X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fconfigure.in;h=20a64d501b507f928759ffe7cee7407d231de11e;hb=de88229846525b2afb4a8b85b7f60f3246d3e90d;hp=e7dab2ef53afbff8e01c6b7a512b206f9202d143;hpb=cfb8c0921c8ab3be8e5e48ec31e472742c2d4104;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/configure.in b/gas/configure.in index e7dab2ef53..20a64d501b 100644 --- a/gas/configure.in +++ b/gas/configure.in @@ -17,7 +17,7 @@ AC_CANONICAL_TARGET AC_ISC_POSIX changequote(,)dnl -BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` +BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'` changequote([,])dnl AM_INIT_AUTOMAKE(gas, ${BFD_VERSION}) @@ -58,6 +58,15 @@ AM_BINUTILS_WARNINGS # Generate a header file AC_CONFIG_HEADERS(config.h:config.in) +# PR 14072 +AH_VERBATIM([00_CONFIG_H_CHECK], +[/* Check that config.h is #included before system headers + (this works only for glibc, but that should be enough). */ +#if defined(__GLIBC__) && !defined(__CONFIG_H__) +# error config.h must be #included before system headers +#endif +#define __CONFIG_H__ 1]) + # If we are on a DOS filesystem, we must use gdb.ini rather than # .gdbinit. case "${host}" in @@ -299,9 +308,9 @@ changequote([,])dnl extra_objects="$extra_objects bfin-parse.o" fi - echo ${extra_objects} | grep -s "bfin-lex.o" + echo ${extra_objects} | grep -s "bfin-lex-wrapper.o" if test $? -ne 0 ; then - extra_objects="$extra_objects bfin-lex.o" + extra_objects="$extra_objects bfin-lex-wrapper.o" fi ;; @@ -332,9 +341,9 @@ changequote([,])dnl extra_objects="$extra_objects itbl-parse.o" fi - echo ${extra_objects} | grep -s "itbl-lex.o" + echo ${extra_objects} | grep -s "itbl-lex-wrapper.o" if test $? -ne 0 ; then - extra_objects="$extra_objects itbl-lex.o" + extra_objects="$extra_objects itbl-lex-wrapper.o" fi echo ${extra_objects} | grep -s "itbl-ops.o" @@ -353,6 +362,13 @@ changequote([,])dnl fi ;; + rl78) + echo ${extra_objects} | grep -s "rl78-parse.o" + if test $? -ne 0 ; then + extra_objects="$extra_objects rl78-parse.o" + fi + ;; + rx) echo ${extra_objects} | grep -s "rx-parse.o" if test $? -ne 0 ; then @@ -396,7 +412,7 @@ changequote([,])dnl case ${te_file} in vms) extra_objects="$extra_objects te-vms.o" ;; esac - + # From target name and format, produce a list of supported emulations. case ${generic_target}-${fmt} in @@ -618,7 +634,7 @@ AC_DEFINE_UNQUOTED(TARGET_OS, "${target_os}", [Target OS.]) AC_PROG_YACC AM_PROG_LEX -ALL_LINGUAS="fr tr es rw id ru fi" +ALL_LINGUAS="fr tr es rw id ru fi ja" ZW_GNU_GETTEXT_SISTER_DIR AM_PO_SUBDIRS @@ -626,7 +642,8 @@ AM_MAINTAINER_MODE AM_CONDITIONAL(GENINSRC_NEVER, false) AC_EXEEXT -AC_CHECK_HEADERS(string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h time.h sys/stat.h) +AC_CHECK_HEADERS(string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h) +ACX_HEADER_STRING # Put this here so that autoconf's "cross-compiling" message doesn't confuse # people who are not cross-compiling but are compiling cross-assemblers. @@ -646,9 +663,9 @@ AC_C_INLINE # VMS doesn't have unlink. AC_CHECK_FUNCS(unlink remove, break) +AC_CHECK_FUNCS(sbrk setlocale) -# Some systems don't have sbrk(). -AC_CHECK_FUNCS(sbrk) +AM_LC_MESSAGES # do we need the math library? case "${need_libm}" in @@ -710,8 +727,7 @@ GAS_CHECK_DECL_NEEDED(malloc, f, char *(*f)(), $gas_test_headers) GAS_CHECK_DECL_NEEDED(sbrk, f, char *(*f)(), $gas_test_headers) GAS_CHECK_DECL_NEEDED(strstr, f, char *(*f)(), $gas_test_headers) -AC_CHECK_DECLS([mempcpy]) -AC_CHECK_DECLS([vsnprintf]) +AC_CHECK_DECLS([free, getenv, malloc, mempcpy, realloc, stpcpy, strstr, vsnprintf]) BFD_BINARY_FOPEN