OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [binutils-2.20.1/] [binutils/] [configure.in] - Diff between revs 816 and 818

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 816 Rev 818
dnl Process this file with autoconf to produce a configure script.
dnl Process this file with autoconf to produce a configure script.
dnl
dnl
AC_PREREQ(2.59)
AC_PREREQ(2.59)
AC_INIT
AC_INIT
AC_CONFIG_SRCDIR(ar.c)
AC_CONFIG_SRCDIR(ar.c)
AC_CANONICAL_TARGET
AC_CANONICAL_TARGET
AC_ISC_POSIX
AC_ISC_POSIX
changequote(,)dnl
changequote(,)dnl
BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
changequote([,])dnl
changequote([,])dnl
AM_INIT_AUTOMAKE(binutils, ${BFD_VERSION})
AM_INIT_AUTOMAKE(binutils, ${BFD_VERSION})
AC_PROG_CC
AC_PROG_CC
AC_GNU_SOURCE
AC_GNU_SOURCE
AC_USE_SYSTEM_EXTENSIONS
AC_USE_SYSTEM_EXTENSIONS
AC_PLUGINS
AC_PLUGINS
case "${target}" in
case "${target}" in
changequote(,)dnl
changequote(,)dnl
  sparc-*-solaris*|i[3-7]86-*-solaris*)
  sparc-*-solaris*|i[3-7]86-*-solaris*)
changequote([,])dnl
changequote([,])dnl
    # See comment in bfd/configure.in for the reason for this test.
    # See comment in bfd/configure.in for the reason for this test.
    # PR 9992/binutils: We have to duplicate the behaviour of bfd's
    # PR 9992/binutils: We have to duplicate the behaviour of bfd's
    # configure script so that the utilities in this directory agree
    # configure script so that the utilities in this directory agree
    # on the size of structures used to describe files.
    # on the size of structures used to describe files.
    if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
    if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
      if test "$plugins" = "no"; then
      if test "$plugins" = "no"; then
        enable_largefile="no"
        enable_largefile="no"
      fi
      fi
    fi
    fi
    ;;
    ;;
esac
esac
AC_SYS_LARGEFILE
AC_SYS_LARGEFILE
LT_INIT
LT_INIT
AC_ARG_ENABLE(targets,
AC_ARG_ENABLE(targets,
[  --enable-targets        alternative target configurations],
[  --enable-targets        alternative target configurations],
[case "${enableval}" in
[case "${enableval}" in
  yes | "") AC_MSG_ERROR(enable-targets option must specify target names or 'all')
  yes | "") AC_MSG_ERROR(enable-targets option must specify target names or 'all')
            ;;
            ;;
  no)       enable_targets= ;;
  no)       enable_targets= ;;
  *)        enable_targets=$enableval ;;
  *)        enable_targets=$enableval ;;
esac])dnl
esac])dnl
AM_BINUTILS_WARNINGS
AM_BINUTILS_WARNINGS
AC_CONFIG_HEADERS(config.h:config.in)
AC_CONFIG_HEADERS(config.h:config.in)
if test -z "$target" ; then
if test -z "$target" ; then
    AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
    AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
fi
fi
if test -z "$host" ; then
if test -z "$host" ; then
    AC_MSG_ERROR(Unrecognized host system type; please check config.sub.)
    AC_MSG_ERROR(Unrecognized host system type; please check config.sub.)
fi
fi
AC_PROG_YACC
AC_PROG_YACC
AM_PROG_LEX
AM_PROG_LEX
ALL_LINGUAS="da es fi fr id ja ro ru rw sk sv tr uk vi zh_CN zh_TW"
ALL_LINGUAS="da es fi fr id ja ro ru rw sk sv tr uk vi zh_CN zh_TW"
ZW_GNU_GETTEXT_SISTER_DIR
ZW_GNU_GETTEXT_SISTER_DIR
AM_PO_SUBDIRS
AM_PO_SUBDIRS
AM_MAINTAINER_MODE
AM_MAINTAINER_MODE
AM_CONDITIONAL(GENINSRC_NEVER, false)
AM_CONDITIONAL(GENINSRC_NEVER, false)
AC_EXEEXT
AC_EXEEXT
if test -n "$EXEEXT"; then
if test -n "$EXEEXT"; then
  AC_DEFINE(HAVE_EXECUTABLE_SUFFIX, 1,
  AC_DEFINE(HAVE_EXECUTABLE_SUFFIX, 1,
            [Does the platform use an executable suffix?])
            [Does the platform use an executable suffix?])
fi
fi
AC_DEFINE_UNQUOTED(EXECUTABLE_SUFFIX, "${EXEEXT}",
AC_DEFINE_UNQUOTED(EXECUTABLE_SUFFIX, "${EXEEXT}",
                   [Suffix used for executables, if any.])
                   [Suffix used for executables, if any.])
# host-specific stuff:
# host-specific stuff:
HDEFINES=
HDEFINES=
. ${srcdir}/../bfd/configure.host
. ${srcdir}/../bfd/configure.host
AC_SUBST(HDEFINES)
AC_SUBST(HDEFINES)
AR=${AR-ar}
AR=${AR-ar}
AC_SUBST(AR)
AC_SUBST(AR)
AC_PROG_RANLIB
AC_PROG_RANLIB
AC_PROG_INSTALL
AC_PROG_INSTALL
BFD_CC_FOR_BUILD
BFD_CC_FOR_BUILD
DEMANGLER_NAME=c++filt
DEMANGLER_NAME=c++filt
case "${host}" in
case "${host}" in
  *-*-go32* | *-*-msdos*)
  *-*-go32* | *-*-msdos*)
    DEMANGLER_NAME=cxxfilt
    DEMANGLER_NAME=cxxfilt
esac
esac
AC_SUBST(DEMANGLER_NAME)
AC_SUBST(DEMANGLER_NAME)
AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h)
AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h)
AC_HEADER_SYS_WAIT
AC_HEADER_SYS_WAIT
AC_FUNC_ALLOCA
AC_FUNC_ALLOCA
AC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll)
AC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll)
AC_CHECK_FUNC([mkstemp],
AC_CHECK_FUNC([mkstemp],
              AC_DEFINE([HAVE_MKSTEMP], 1,
              AC_DEFINE([HAVE_MKSTEMP], 1,
              [Define to 1 if you have the `mkstemp' function.]))
              [Define to 1 if you have the `mkstemp' function.]))
AC_CHECK_FUNC([mkdtemp],
AC_CHECK_FUNC([mkdtemp],
              AC_DEFINE([HAVE_MKDTEMP], 1,
              AC_DEFINE([HAVE_MKDTEMP], 1,
              [Define to 1 if you have the `mkdtemp' function.]))
              [Define to 1 if you have the `mkdtemp' function.]))
# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
# needs to be defined for it
# needs to be defined for it
AC_MSG_CHECKING([for fopen64])
AC_MSG_CHECKING([for fopen64])
AC_CACHE_VAL(bu_cv_have_fopen64,
AC_CACHE_VAL(bu_cv_have_fopen64,
[AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], [FILE *f = fopen64 ("/tmp/foo","r");])],
[AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], [FILE *f = fopen64 ("/tmp/foo","r");])],
bu_cv_have_fopen64=yes,
bu_cv_have_fopen64=yes,
[saved_CPPFLAGS=$CPPFLAGS
[saved_CPPFLAGS=$CPPFLAGS
 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], [FILE *f = fopen64 ("/tmp/foo","r");])],
 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], [FILE *f = fopen64 ("/tmp/foo","r");])],
 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE",
 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE",
 bu_cv_have_fopen64=no)
 bu_cv_have_fopen64=no)
 CPPFLAGS=$saved_CPPFLAGS])])
 CPPFLAGS=$saved_CPPFLAGS])])
AC_MSG_RESULT($bu_cv_have_fopen64)
AC_MSG_RESULT($bu_cv_have_fopen64)
if test "$bu_cv_have_fopen64" != no; then
if test "$bu_cv_have_fopen64" != no; then
  AC_DEFINE([HAVE_FOPEN64], 1,
  AC_DEFINE([HAVE_FOPEN64], 1,
            [Is fopen64 available?])
            [Is fopen64 available?])
fi
fi
AC_MSG_CHECKING([for stat64])
AC_MSG_CHECKING([for stat64])
AC_CACHE_VAL(bu_cv_have_stat64,
AC_CACHE_VAL(bu_cv_have_stat64,
[AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], [struct stat64 st; stat64 ("/tmp/foo", &st);])],
[AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], [struct stat64 st; stat64 ("/tmp/foo", &st);])],
bu_cv_have_stat64=yes,
bu_cv_have_stat64=yes,
[saved_CPPFLAGS=$CPPFLAGS
[saved_CPPFLAGS=$CPPFLAGS
 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], [struct stat64 st; stat64 ("/tmp/foo", &st);])],
 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], [struct stat64 st; stat64 ("/tmp/foo", &st);])],
 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE",
 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE",
 bu_cv_have_stat64=no)
 bu_cv_have_stat64=no)
 CPPFLAGS=$saved_CPPFLAGS])])
 CPPFLAGS=$saved_CPPFLAGS])])
AC_MSG_RESULT($bu_cv_have_stat64)
AC_MSG_RESULT($bu_cv_have_stat64)
if test "$bu_cv_have_stat64" != no; then
if test "$bu_cv_have_stat64" != no; then
  AC_DEFINE([HAVE_STAT64], 1,
  AC_DEFINE([HAVE_STAT64], 1,
            [Is stat64 available?])
            [Is stat64 available?])
fi
fi
if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
   || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
   || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
  AC_DEFINE([_LARGEFILE64_SOURCE], 1,
  AC_DEFINE([_LARGEFILE64_SOURCE], 1,
            [Enable LFS])
            [Enable LFS])
  CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
  CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
fi
fi
# Some systems have frexp only in -lm, not in -lc.
# Some systems have frexp only in -lm, not in -lc.
AC_SEARCH_LIBS(frexp, m)
AC_SEARCH_LIBS(frexp, m)
AC_MSG_CHECKING(for time_t in time.h)
AC_MSG_CHECKING(for time_t in time.h)
AC_CACHE_VAL(bu_cv_decl_time_t_time_h,
AC_CACHE_VAL(bu_cv_decl_time_t_time_h,
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], [time_t i;])],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], [time_t i;])],
bu_cv_decl_time_t_time_h=yes, bu_cv_decl_time_t_time_h=no)])
bu_cv_decl_time_t_time_h=yes, bu_cv_decl_time_t_time_h=no)])
AC_MSG_RESULT($bu_cv_decl_time_t_time_h)
AC_MSG_RESULT($bu_cv_decl_time_t_time_h)
if test $bu_cv_decl_time_t_time_h = yes; then
if test $bu_cv_decl_time_t_time_h = yes; then
  AC_DEFINE([HAVE_TIME_T_IN_TIME_H], 1,
  AC_DEFINE([HAVE_TIME_T_IN_TIME_H], 1,
            [Is the type time_t defined in ?])
            [Is the type time_t defined in ?])
fi
fi
AC_MSG_CHECKING(for time_t in sys/types.h)
AC_MSG_CHECKING(for time_t in sys/types.h)
AC_CACHE_VAL(bu_cv_decl_time_t_types_h,
AC_CACHE_VAL(bu_cv_decl_time_t_types_h,
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], [time_t i;])],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], [time_t i;])],
bu_cv_decl_time_t_types_h=yes, bu_cv_decl_time_t_types_h=no)])
bu_cv_decl_time_t_types_h=yes, bu_cv_decl_time_t_types_h=no)])
AC_MSG_RESULT($bu_cv_decl_time_t_types_h)
AC_MSG_RESULT($bu_cv_decl_time_t_types_h)
if test $bu_cv_decl_time_t_types_h = yes; then
if test $bu_cv_decl_time_t_types_h = yes; then
  AC_DEFINE([HAVE_TIME_T_IN_TYPES_H], 1,
  AC_DEFINE([HAVE_TIME_T_IN_TYPES_H], 1,
            [Is the type time_t defined in ?])
            [Is the type time_t defined in ?])
fi
fi
AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
AC_CACHE_VAL(bu_cv_decl_getopt_unistd_h,
AC_CACHE_VAL(bu_cv_decl_getopt_unistd_h,
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], [extern int getopt (int, char *const*, const char *);])],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], [extern int getopt (int, char *const*, const char *);])],
bu_cv_decl_getopt_unistd_h=yes, bu_cv_decl_getopt_unistd_h=no)])
bu_cv_decl_getopt_unistd_h=yes, bu_cv_decl_getopt_unistd_h=no)])
AC_MSG_RESULT($bu_cv_decl_getopt_unistd_h)
AC_MSG_RESULT($bu_cv_decl_getopt_unistd_h)
if test $bu_cv_decl_getopt_unistd_h = yes; then
if test $bu_cv_decl_getopt_unistd_h = yes; then
  AC_DEFINE([HAVE_DECL_GETOPT], 1,
  AC_DEFINE([HAVE_DECL_GETOPT], 1,
            [Is the prototype for getopt in  in the expected format?])
            [Is the prototype for getopt in  in the expected format?])
fi
fi
# Under Next 3.2  apparently does not define struct utimbuf
# Under Next 3.2  apparently does not define struct utimbuf
# by default.
# by default.
AC_MSG_CHECKING([for utime.h])
AC_MSG_CHECKING([for utime.h])
AC_CACHE_VAL(bu_cv_header_utime_h,
AC_CACHE_VAL(bu_cv_header_utime_h,
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include 
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include 
#ifdef HAVE_TIME_H
#ifdef HAVE_TIME_H
#include 
#include 
#endif
#endif
#include ],
#include ],
[struct utimbuf s;])],
[struct utimbuf s;])],
bu_cv_header_utime_h=yes, bu_cv_header_utime_h=no)])
bu_cv_header_utime_h=yes, bu_cv_header_utime_h=no)])
AC_MSG_RESULT($bu_cv_header_utime_h)
AC_MSG_RESULT($bu_cv_header_utime_h)
if test $bu_cv_header_utime_h = yes; then
if test $bu_cv_header_utime_h = yes; then
  AC_DEFINE(HAVE_GOOD_UTIME_H, 1, [Does  define struct utimbuf?])
  AC_DEFINE(HAVE_GOOD_UTIME_H, 1, [Does  define struct utimbuf?])
fi
fi
AC_CHECK_DECLS([fprintf, stpcpy, strstr, sbrk, getenv, environ, getc_unlocked,
AC_CHECK_DECLS([fprintf, stpcpy, strstr, sbrk, getenv, environ, getc_unlocked,
                snprintf, vsnprintf])
                snprintf, vsnprintf])
# Link in zlib if we can.  This allows us to read compressed debug
# Link in zlib if we can.  This allows us to read compressed debug
# sections.  This is used only by readelf.c (objdump uses bfd for
# sections.  This is used only by readelf.c (objdump uses bfd for
# reading compressed sections).
# reading compressed sections).
AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
BFD_BINARY_FOPEN
BFD_BINARY_FOPEN
# target-specific stuff:
# target-specific stuff:
# Canonicalize the secondary target names.
# Canonicalize the secondary target names.
if test -n "$enable_targets"; then
if test -n "$enable_targets"; then
    for targ in `echo $enable_targets | sed 's/,/ /g'`
    for targ in `echo $enable_targets | sed 's/,/ /g'`
    do
    do
        result=`$ac_config_sub $targ 2>/dev/null`
        result=`$ac_config_sub $targ 2>/dev/null`
        if test -n "$result"; then
        if test -n "$result"; then
            canon_targets="$canon_targets $result"
            canon_targets="$canon_targets $result"
        else
        else
            # Allow targets that config.sub doesn't recognize, like "all".
            # Allow targets that config.sub doesn't recognize, like "all".
            canon_targets="$canon_targets $targ"
            canon_targets="$canon_targets $targ"
        fi
        fi
    done
    done
fi
fi
AC_CHECK_HEADER(iconv.h)
AC_CHECK_HEADER(iconv.h)
AM_ICONV
AM_ICONV
all_targets=false
all_targets=false
BUILD_NLMCONV=
BUILD_NLMCONV=
NLMCONV_DEFS=
NLMCONV_DEFS=
BUILD_SRCONV=
BUILD_SRCONV=
BUILD_DLLTOOL=
BUILD_DLLTOOL=
DLLTOOL_DEFS=
DLLTOOL_DEFS=
DLLTOOL_DEFAULT=
DLLTOOL_DEFAULT=
BUILD_WINDRES=
BUILD_WINDRES=
BUILD_WINDMC=
BUILD_WINDMC=
BUILD_DLLWRAP=
BUILD_DLLWRAP=
BUILD_MISC=
BUILD_MISC=
BUILD_INSTALL_MISC=
BUILD_INSTALL_MISC=
OBJDUMP_DEFS=
OBJDUMP_DEFS=
for targ in $target $canon_targets
for targ in $target $canon_targets
do
do
    if test "x$targ" = "xall"; then
    if test "x$targ" = "xall"; then
        all_targets=true
        all_targets=true
        BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
        BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
        BUILD_SRCONV='$(SRCONV_PROG)'
        BUILD_SRCONV='$(SRCONV_PROG)'
        NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
        NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
        BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
        BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
        BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
        BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
        BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
        BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
        BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
        BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
        if test -z "$DLLTOOL_DEFAULT"; then
        if test -z "$DLLTOOL_DEFAULT"; then
          DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
          DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
        fi
        fi
        DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
        DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
        BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
        BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
    else
    else
        case $targ in
        case $targ in
changequote(,)dnl
changequote(,)dnl
        i[3-7]86*-*-netware*)
        i[3-7]86*-*-netware*)
changequote([,])dnl
changequote([,])dnl
          BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
          BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
          NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
          NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
          ;;
          ;;
        alpha*-*-netware*)
        alpha*-*-netware*)
          BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
          BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
          NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
          NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
          ;;
          ;;
        powerpc*-*-netware*)
        powerpc*-*-netware*)
          BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
          BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
          NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
          NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
          ;;
          ;;
        sparc*-*-netware*)
        sparc*-*-netware*)
          BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
          BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
          NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
          NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
          ;;
          ;;
        esac
        esac
        case $targ in
        case $targ in
        *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
        *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
        esac
        esac
        case $targ in
        case $targ in
        arm-epoc-pe*)
        arm-epoc-pe*)
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          if test -z "$DLLTOOL_DEFAULT"; then
          if test -z "$DLLTOOL_DEFAULT"; then
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
          fi
          fi
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          ;;
          ;;
        arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
        arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          if test -z "$DLLTOOL_DEFAULT"; then
          if test -z "$DLLTOOL_DEFAULT"; then
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
          fi
          fi
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          ;;
          ;;
        arm-*-pe*)
        arm-*-pe*)
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          if test -z "$DLLTOOL_DEFAULT"; then
          if test -z "$DLLTOOL_DEFAULT"; then
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
          fi
          fi
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          ;;
          ;;
        thumb-*-pe*)
        thumb-*-pe*)
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          if test -z "$DLLTOOL_DEFAULT"; then
          if test -z "$DLLTOOL_DEFAULT"; then
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
          fi
          fi
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          ;;
          ;;
        x86_64-*-mingw*)
        x86_64-*-mingw*)
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          if test -z "$DLLTOOL_DEFAULT"; then
          if test -z "$DLLTOOL_DEFAULT"; then
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
          fi
          fi
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
          BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
          ;;
          ;;
changequote(,)dnl
changequote(,)dnl
        i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
        i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
changequote([,])dnl
changequote([,])dnl
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          if test -z "$DLLTOOL_DEFAULT"; then
          if test -z "$DLLTOOL_DEFAULT"; then
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
          fi
          fi
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
          BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
          ;;
          ;;
changequote(,)dnl
changequote(,)dnl
        i[3-7]86-*-interix)
        i[3-7]86-*-interix)
changequote([,])dnl
changequote([,])dnl
          BUILD_DLLTOOL='$(DLLTOOL_PROG)'
          BUILD_DLLTOOL='$(DLLTOOL_PROG)'
          if test -z "$DLLTOOL_DEFAULT"; then
          if test -z "$DLLTOOL_DEFAULT"; then
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
          fi
          fi
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
          ;;
          ;;
changequote(,)dnl
changequote(,)dnl
        powerpc*-aix5.[01])
        powerpc*-aix5.[01])
changequote([,])dnl
changequote([,])dnl
          ;;
          ;;
changequote(,)dnl
changequote(,)dnl
        powerpc*-aix[5-9].*)
        powerpc*-aix[5-9].*)
changequote([,])dnl
changequote([,])dnl
          OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
          OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
          ;;
          ;;
        powerpc*-*-pe* | powerpc*-*-cygwin*)
        powerpc*-*-pe* | powerpc*-*-cygwin*)
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          if test -z "$DLLTOOL_DEFAULT"; then
          if test -z "$DLLTOOL_DEFAULT"; then
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
          fi
          fi
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          ;;
          ;;
        powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
        powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
          BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
          BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
          ;;
          ;;
        sh*-*-pe)
        sh*-*-pe)
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          if test -z "$DLLTOOL_DEFAULT"; then
          if test -z "$DLLTOOL_DEFAULT"; then
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
          fi
          fi
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          ;;
          ;;
        spu-*-*)
        spu-*-*)
          BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
          BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
          ;;
          ;;
        mips*-*-pe)
        mips*-*-pe)
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          if test -z "$DLLTOOL_DEFAULT"; then
          if test -z "$DLLTOOL_DEFAULT"; then
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
          fi
          fi
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          ;;
          ;;
        mcore-*-pe)
        mcore-*-pe)
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          if test -z "$DLLTOOL_DEFAULT"; then
          if test -z "$DLLTOOL_DEFAULT"; then
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
          fi
          fi
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          ;;
          ;;
        mcore-*-elf)
        mcore-*-elf)
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          if test -z "$DLLTOOL_DEFAULT"; then
          if test -z "$DLLTOOL_DEFAULT"; then
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
          fi
          fi
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
          ;;
          ;;
        mep-*)
        mep-*)
          OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
          OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
          ;;
          ;;
        esac
        esac
    fi
    fi
done
done
DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
if test "${with_windres+set}" = set; then
if test "${with_windres+set}" = set; then
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
fi
fi
if test "${with_windmc+set}" = set; then
if test "${with_windmc+set}" = set; then
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
fi
fi
AC_SUBST(NLMCONV_DEFS)
AC_SUBST(NLMCONV_DEFS)
AC_SUBST(BUILD_NLMCONV)
AC_SUBST(BUILD_NLMCONV)
AC_SUBST(BUILD_SRCONV)
AC_SUBST(BUILD_SRCONV)
AC_SUBST(BUILD_DLLTOOL)
AC_SUBST(BUILD_DLLTOOL)
AC_SUBST(DLLTOOL_DEFS)
AC_SUBST(DLLTOOL_DEFS)
AC_SUBST(BUILD_WINDRES)
AC_SUBST(BUILD_WINDRES)
AC_SUBST(BUILD_WINDMC)
AC_SUBST(BUILD_WINDMC)
AC_SUBST(BUILD_DLLWRAP)
AC_SUBST(BUILD_DLLWRAP)
AC_SUBST(BUILD_MISC)
AC_SUBST(BUILD_MISC)
AC_SUBST(BUILD_INSTALL_MISC)
AC_SUBST(BUILD_INSTALL_MISC)
AC_SUBST(OBJDUMP_DEFS)
AC_SUBST(OBJDUMP_DEFS)
AC_DEFINE_UNQUOTED(TARGET, "${target}", [Configured target name.])
AC_DEFINE_UNQUOTED(TARGET, "${target}", [Configured target name.])
targ=$target
targ=$target
. $srcdir/../bfd/config.bfd
. $srcdir/../bfd/config.bfd
if test "x$targ_underscore" = "xyes"; then
if test "x$targ_underscore" = "xyes"; then
    UNDERSCORE=1
    UNDERSCORE=1
else
else
    UNDERSCORE=0
    UNDERSCORE=0
fi
fi
AC_DEFINE_UNQUOTED(TARGET_PREPENDS_UNDERSCORE, $UNDERSCORE,
AC_DEFINE_UNQUOTED(TARGET_PREPENDS_UNDERSCORE, $UNDERSCORE,
 [Define to 1 if user symbol names have a leading underscore, 0 if not.])
 [Define to 1 if user symbol names have a leading underscore, 0 if not.])
# Emulation
# Emulation
for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
do
do
  # Canonicalize the secondary target names.
  # Canonicalize the secondary target names.
 result=`$ac_config_sub $targ_alias 2>/dev/null`
 result=`$ac_config_sub $targ_alias 2>/dev/null`
 if test -n "$result"; then
 if test -n "$result"; then
   targ=$result
   targ=$result
 else
 else
   targ=$targ_alias
   targ=$targ_alias
 fi
 fi
 . ${srcdir}/configure.tgt
 . ${srcdir}/configure.tgt
  EMULATION=$targ_emul
  EMULATION=$targ_emul
  EMULATION_VECTOR=$targ_emul_vector
  EMULATION_VECTOR=$targ_emul_vector
done
done
AC_SUBST(EMULATION)
AC_SUBST(EMULATION)
AC_SUBST(EMULATION_VECTOR)
AC_SUBST(EMULATION_VECTOR)
# Required for html and install-html
# Required for html and install-html
AC_SUBST(datarootdir)
AC_SUBST(datarootdir)
AC_SUBST(docdir)
AC_SUBST(docdir)
AC_SUBST(htmldir)
AC_SUBST(htmldir)
AC_SUBST(pdfdir)
AC_SUBST(pdfdir)
AC_CONFIG_FILES(Makefile doc/Makefile po/Makefile.in:po/Make-in)
AC_CONFIG_FILES(Makefile doc/Makefile po/Makefile.in:po/Make-in)
AC_OUTPUT
AC_OUTPUT
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.