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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [configure.ac] - Diff between revs 569 and 625

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 569 Rev 625
Line 26... Line 26...
# Process this file with autoconf to produce a configure script.
# Process this file with autoconf to produce a configure script.
 
 
 
 
# Use a full version number (x.y.z, possibly with "rcn" as a suffix) when
# Use a full version number (x.y.z, possibly with "rcn" as a suffix) when
# preparing a release, otherwise use a the date version (yyyy-mm-dd).
# preparing a release, otherwise use a the date version (yyyy-mm-dd).
AC_INIT([or1ksim], [2011-04-28], [openrisc@opencores.org])
AC_INIT([or1ksim], [2011-08-15], [openrisc@opencores.org])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_MACRO_DIR([m4])
 
 
# Generically use extensions such as _GNU_SOURCE if available.
# Generically use extensions such as _GNU_SOURCE if available.
AC_USE_SYSTEM_EXTENSIONS
AC_USE_SYSTEM_EXTENSIONS
 
 
Line 42... Line 42...
 
 
AC_CANONICAL_TARGET([])
AC_CANONICAL_TARGET([])
AC_PROG_LIBTOOL
AC_PROG_LIBTOOL
AM_INIT_AUTOMAKE
AM_INIT_AUTOMAKE
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
 
 
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_HEADERS([config.h])
 
 
AC_REVISION([$Id: configure.ac 569 2011-07-08 15:28:35Z olof $ using automake version] AC_ACVERSION)
AC_REVISION([$Id: configure.ac 625 2011-08-15 11:44:46Z jeremybennett $ using automake version] AC_ACVERSION)
 
 
# make sure we are using a recent autoconf version
# make sure we are using a recent autoconf version
AC_PREREQ(2.59)
AC_PREREQ(2.59)
 
 
# yuck.
# yuck.
Line 72... Line 73...
 
 
AC_SUBST(CPU_ARCH)
AC_SUBST(CPU_ARCH)
 
 
# Set the CFLAGS we want. We put the user flags last, so that if the user
# Set the CFLAGS we want. We put the user flags last, so that if the user
# changes the optimization level, that will take precedence.
# changes the optimization level, that will take precedence.
CFLAGS="-g -Wall -Werror -O2 -D$ARCH_ISA $CFLAGS"
# CFLAGS="-g -Wall -Werror -O2 -D$ARCH_ISA $CFLAGS"
 
# 15-Aug-11: Jeremy Bennett. TODO temporarily remove -Werror to get round
 
#            GCC 4.6 issues.
 
CFLAGS="-g -Wall -O2 -D$ARCH_ISA $CFLAGS"
 
 
AM_PROG_AS
AM_PROG_AS
 
 
AC_PROG_CC
AC_PROG_CC
AM_PROG_CC_C_O
AM_PROG_CC_C_O
Line 113... Line 117...
                                  #else
                                  #else
                                  char *strndup (const char *s,
                                  char *strndup (const char *s,
                                                 size_t      n);
                                                 size_t      n);
                                  #endif]],                      \
                                  #endif]],                      \
                                [[const char *s = "test";
                                [[const char *s = "test";
                                  char       *t;
                                  (void) strndup (s, 3);]])], \
                                  t = strndup (s, 3);]])], \
 
               [AC_DEFINE(HAVE_STRNDUP, 1, \
               [AC_DEFINE(HAVE_STRNDUP, 1, \
                          "Whether the strndup function is available") \
                          "Whether the strndup function is available") \
                AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)])
                AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)])
 
 
AC_MSG_CHECKING(for strcasecmp)
AC_MSG_CHECKING(for strcasecmp)
Line 128... Line 131...
                                  int strcasecmp (const char *s1,
                                  int strcasecmp (const char *s1,
                                                  const char *s2);
                                                  const char *s2);
                                  #endif]],                       \
                                  #endif]],                       \
                                [[const char *s = "test";
                                [[const char *s = "test";
                                  const char *t = "TEST";
                                  const char *t = "TEST";
                                  int         res;
                                  (void) strcasecmp (s, t);]])], \
                                  res = strcasecmp (s, t);]])], \
 
               [AC_DEFINE(HAVE_STRCASECMP, 1, \
               [AC_DEFINE(HAVE_STRCASECMP, 1, \
                          "Whether the strcasecmp function is available") \
                          "Whether the strcasecmp function is available") \
                AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)])
                AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)])
 
 
AC_MSG_CHECKING(for isblank)
AC_MSG_CHECKING(for isblank)

powered by: WebSVN 2.1.0

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