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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [libiberty/] [configure.ac] - Diff between revs 157 and 225

Show entire file | Details | Blame | View Log

Rev 157 Rev 225
Line 1... Line 1...
dnl Process this file with autoconf to produce a configure script
dnl Process this file with autoconf to produce a configure script
 
 
AC_PREREQ(2.59)
AC_PREREQ(2.64)
AC_INIT
AC_INIT
AC_CONFIG_SRCDIR([xmalloc.c])
AC_CONFIG_SRCDIR([xmalloc.c])
 
 
# This works around the fact that libtool configuration may change LD
# This works around the fact that libtool configuration may change LD
# for this particular configuration, but some shells, instead of
# for this particular configuration, but some shells, instead of
Line 128... Line 128...
   cross_compiling=maybe
   cross_compiling=maybe
fi
fi
 
 
GCC_NO_EXECUTABLES
GCC_NO_EXECUTABLES
AC_PROG_CC
AC_PROG_CC
 
AC_SYS_LARGEFILE
AC_PROG_CPP_WERROR
AC_PROG_CPP_WERROR
 
 
ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wc++-compat \
ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wc++-compat \
                          -Wstrict-prototypes], [ac_libiberty_warn_cflags])
                          -Wstrict-prototypes], [ac_libiberty_warn_cflags])
ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([], [ac_libiberty_warn_cflags])
ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([], [ac_libiberty_warn_cflags])
Line 185... Line 186...
  i370-*-opened*)       frag=mh-openedition ;;
  i370-*-opened*)       frag=mh-openedition ;;
  i[[34567]]86-*-windows*)      frag=mh-windows ;;
  i[[34567]]86-*-windows*)      frag=mh-windows ;;
esac
esac
 
 
if [[ -n "${frag}" ]]; then
if [[ -n "${frag}" ]]; then
  frags=${libiberty_topdir}/libiberty/config/$frag
  frag=${libiberty_topdir}/libiberty/config/$frag
else
 
  frags=
 
fi
fi
 
 
# If they didn't specify --enable-shared, don't generate shared libs.
# If they didn't specify --enable-shared, don't generate shared libs.
case "${enable_shared}" in
case "${enable_shared}" in
  yes) shared=yes ;;
  yes) shared=yes ;;
  no) shared=no ;;
  no) shared=no ;;
  "") shared=no ;;
  "") shared=no ;;
  *) shared=yes ;;
  *) shared=yes ;;
esac
esac
if [[ "${shared}" = "yes" ]]; then
if [[ "${shared}" = "yes" ]]; then
  frag=
 
  case "${host}" in
  case "${host}" in
    *-*-cygwin*)        ;;
    *-*-cygwin*)        ;;
    alpha*-*-linux*)    frag=mh-elfalphapic ;;
    alpha*-*-linux*)    PICFLAG=-fPIC ;;
    arm*-*-*)           frag=mh-armpic ;;
    arm*-*-*)           PICFLAG=-fPIC ;;
    hppa*-*-*)          frag=mh-papic ;;
    hppa*-*-*)          PICFLAG=-fPIC ;;
 
    i370-*-*)           PICFLAG=-fPIC ;;
 
    ia64-*-*)           PICFLAG=-fpic ;;
    i[[34567]]86-*-* | x86_64-*-*)
    i[[34567]]86-*-* | x86_64-*-*)
                        frag=mh-x86pic ;;
                        PICFLAG=-fpic ;;
 
    m68k-*-*)           PICFLAG=-fpic ;;
 
    mips*-*-linux*)     PICFLAG=-fPIC ;;
    powerpc*-*-aix*)    ;;
    powerpc*-*-aix*)    ;;
    powerpc*-*-*)       frag=mh-ppcpic ;;
    powerpc*-*-*)       PICFLAG=-fPIC ;;
    sparc*-*-*)         frag=mh-sparcpic ;;
    sparc*-*-*)         case "${CFLAGS}" in
    s390*-*-*)          frag=mh-s390pic ;;
                          *-fpic* ) PICFLAG=-fpic ;;
    *)                  frag=mh-${host_cpu}pic ;;
                          * ) PICFLAG=-fPIC ;;
 
                        esac ;;
 
    s390*-*-*)          PICFLAG=-fpic ;;
  esac
  esac
  if [[ -n "${frag}" ]]; then
 
    frags="${frags} ${libiberty_topdir}/config/${frag}"
 
  fi
 
fi
fi
 
AC_SUBST(PICFLAG)
 
 
echo "# Warning: this fragment is automatically generated" > temp-frag
echo "# Warning: this fragment is automatically generated" > temp-frag
 
 
for frag in ${frags}; do
if [[ -n "${frag}" ]] && [[ -f "${frag}" ]]; then
  if [[ -f ${frag} ]]; then
 
    echo "Appending ${frag} to xhost-mkfrag"
    echo "Appending ${frag} to xhost-mkfrag"
    echo "# Following fragment copied from ${frag}" >> temp-frag
    echo "# Following fragment copied from ${frag}" >> temp-frag
    cat ${frag} >> temp-frag
    cat ${frag} >> temp-frag
  fi
  fi
done
 
 
 
# record if we want to build shared libs.
# record if we want to build shared libs.
if [[ "${shared}" = "yes" ]]; then
if [[ "${shared}" = "yes" ]]; then
  echo enable_shared = yes >> temp-frag
  echo enable_shared = yes >> temp-frag
else
else
Line 252... Line 252...
libiberty_AC_DECLARE_ERRNO
libiberty_AC_DECLARE_ERRNO
 
 
# Determine the size of an int for struct fibnode.
# Determine the size of an int for struct fibnode.
AC_CHECK_SIZEOF([int])
AC_CHECK_SIZEOF([int])
 
 
 
AC_CHECK_TYPE(intptr_t, long)
AC_CHECK_TYPE(uintptr_t, unsigned long)
AC_CHECK_TYPE(uintptr_t, unsigned long)
 
 
# Look for a 64-bit type.
# Look for a 64-bit type.
AC_MSG_CHECKING([for a 64-bit type])
AC_MSG_CHECKING([for a 64-bit type])
AC_CACHE_VAL(liberty_cv_uint64,
AC_CACHE_VAL(liberty_cv_uint64,
Line 315... Line 316...
funcs="$funcs index"
funcs="$funcs index"
funcs="$funcs insque"
funcs="$funcs insque"
funcs="$funcs memchr"
funcs="$funcs memchr"
funcs="$funcs memcmp"
funcs="$funcs memcmp"
funcs="$funcs memcpy"
funcs="$funcs memcpy"
 
funcs="$funcs memmem"
funcs="$funcs memmove"
funcs="$funcs memmove"
funcs="$funcs mempcpy"
funcs="$funcs mempcpy"
funcs="$funcs memset"
funcs="$funcs memset"
funcs="$funcs mkstemps"
funcs="$funcs mkstemps"
funcs="$funcs putenv"
funcs="$funcs putenv"
Line 360... Line 362...
# These are neither executed nor required, but they help keep
# These are neither executed nor required, but they help keep
# autoheader happy without adding a bunch of text to acconfig.h.
# autoheader happy without adding a bunch of text to acconfig.h.
if test "x" = "y"; then
if test "x" = "y"; then
  AC_CHECK_FUNCS(asprintf atexit basename bcmp bcopy bsearch bzero calloc clock \
  AC_CHECK_FUNCS(asprintf atexit basename bcmp bcopy bsearch bzero calloc clock \
  getcwd getpagesize gettimeofday index insque mkstemps memchr memcmp memcpy \
  getcwd getpagesize gettimeofday index insque mkstemps memchr memcmp memcpy \
  memmove mempcpy memset putenv random rename rindex sigsetmask \
  memmem memmove mempcpy memset putenv random rename rindex sigsetmask \
  strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strndup strrchr strstr \
  strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strndup strrchr strstr \
  strtod strtol strtoul strverscmp tmpnam vasprintf vfprintf vprintf \
  strtod strtol strtoul strverscmp tmpnam vasprintf vfprintf vprintf \
  vsprintf waitpid getrusage on_exit psignal strerror strsignal \
  vsprintf waitpid getrusage on_exit psignal strerror strsignal \
  sysconf times sbrk gettimeofday ffs snprintf vsnprintf \
  sysconf times sbrk gettimeofday ffs snprintf vsnprintf \
  pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl wait3 wait4 \
  pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl wait3 wait4 \
Line 466... Line 468...
    AC_DEFINE(HAVE_STRERROR)
    AC_DEFINE(HAVE_STRERROR)
 
 
    setobjs=yes
    setobjs=yes
    ;;
    ;;
 
 
 
  *-*-msdosdjgpp)
 
    AC_LIBOBJ([vasprintf])
 
    AC_LIBOBJ([vsnprintf])
 
    AC_LIBOBJ([snprintf])
 
    AC_LIBOBJ([asprintf])
 
 
 
    for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
 
             getcwd getpagesize getrusage gettimeofday \
 
             index insque memchr memcmp memcpy memmove memset psignal \
 
             putenv random rename rindex sbrk setenv stpcpy strcasecmp \
 
             strchr strdup strerror strncasecmp strrchr strstr strtod \
 
             strtol strtoul sysconf times tmpnam vfprintf vprintf \
 
             vsprintf waitpid
 
    do
 
      n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
      AC_DEFINE_UNQUOTED($n)
 
    done
 
 
 
 
 
    setobjs=yes
 
    ;;
 
 
  esac
  esac
 
 
  # We may wish to install the target headers somewhere.
  # We may wish to install the target headers somewhere.
  AC_ARG_ENABLE(install-libiberty,
  AC_ARG_ENABLE(install-libiberty,
  [  --enable-install-libiberty       Install headers for end users],
  [  --enable-install-libiberty       Install headers for end users],
Line 545... Line 569...
    AC_DEFINE(HAVE_STRERROR)
    AC_DEFINE(HAVE_STRERROR)
 
 
    setobjs=yes
    setobjs=yes
    ;;
    ;;
 
 
  *-*-msdosdjgpp)
 
    for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
 
             getcwd getpagesize getrusage gettimeofday \
 
             index insque memchr memcmp memcpy memmove memset psignal \
 
             putenv random rename rindex sbrk setenv stpcpy strcasecmp \
 
             strchr strdup strerror strncasecmp strrchr strstr strtod \
 
             strtol strtoul sysconf times tmpnam vfprintf vprintf \
 
             vsprintf waitpid
 
    do
 
      n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
      AC_DEFINE_UNQUOTED($n)
 
    done
 
 
 
 
 
    setobjs=yes
 
    ;;
 
 
 
  esac
  esac
fi
fi
 
 
if test -z "${setobjs}"; then
if test -z "${setobjs}"; then
 
 
  case "${host}" in
  case "${host}" in
 
 
  *-*-cygwin*)
 
    # The Cygwin library actually uses a couple of files from
 
    # libiberty when it is built.  If we are building a native
 
    # Cygwin, and we run the tests, we will appear to have these
 
    # files.  However, when we go on to build winsup, we will wind up
 
    # with a library which does not have the files, since they should
 
    # have come from libiberty.
 
 
 
    # We handle this by removing the functions the winsup library
 
    # provides from our shell variables, so that they appear to be
 
    # missing.
 
 
 
    # DJ - only if we're *building* cygwin, not just building *with* cygwin
 
 
 
    if test -n "${with_target_subdir}"
 
    then
 
      funcs="`echo $funcs | sed -e 's/random//'`"
 
      AC_LIBOBJ([random])
 
      vars="`echo $vars | sed -e 's/sys_siglist//'`"
 
      checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
 
    fi
 
    ;;
 
 
 
  *-*-mingw32*)
  *-*-mingw32*)
    # Under mingw32, sys_nerr and sys_errlist exist, but they are
    # Under mingw32, sys_nerr and sys_errlist exist, but they are
    # macros, so the test below won't find them.
    # macros, so the test below won't find them.
    libiberty_cv_var_sys_nerr=yes
    libiberty_cv_var_sys_nerr=yes
    libiberty_cv_var_sys_errlist=yes
    libiberty_cv_var_sys_errlist=yes

powered by: WebSVN 2.1.0

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