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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [zlib/] [configure.ac] - Diff between revs 745 and 783

Only display areas with differences | Details | Blame | View Log

Rev 745 Rev 783
dnl Process this with autoconf to create configure
dnl Process this with autoconf to create configure
AC_PREREQ(2.64)
AC_PREREQ(2.64)
AC_INIT
AC_INIT
AC_CONFIG_SRCDIR([zlib.h])
AC_CONFIG_SRCDIR([zlib.h])
AM_ENABLE_MULTILIB(, ..)
AM_ENABLE_MULTILIB(, ..)
AC_CANONICAL_SYSTEM
AC_CANONICAL_SYSTEM
# This works around an automake problem.
# This works around an automake problem.
mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
AC_SUBST(mkinstalldirs)
AC_SUBST(mkinstalldirs)
AM_INIT_AUTOMAKE(zlib, 1.1.4)
AM_INIT_AUTOMAKE(zlib, 1.1.4)
AM_MAINTAINER_MODE
AM_MAINTAINER_MODE
dnl We use these options to decide which functions to include.
dnl We use these options to decide which functions to include.
AC_ARG_WITH(target-subdir,
AC_ARG_WITH(target-subdir,
[  --with-target-subdir=SUBDIR
[  --with-target-subdir=SUBDIR
                          configuring in a subdirectory])
                          configuring in a subdirectory])
if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
   COMPPATH=.
   COMPPATH=.
else
else
   COMPPATH=..
   COMPPATH=..
fi
fi
AC_SUBST(COMPPATH)
AC_SUBST(COMPPATH)
AC_ARG_WITH(cross-host,
AC_ARG_WITH(cross-host,
[  --with-cross-host=HOST  configuring with a cross compiler])
[  --with-cross-host=HOST  configuring with a cross compiler])
dnl Default to --enable-multilib
dnl Default to --enable-multilib
AC_ARG_ENABLE(multilib,
AC_ARG_ENABLE(multilib,
[  --enable-multilib       build many library versions (default)],
[  --enable-multilib       build many library versions (default)],
[case "${enableval}" in
[case "${enableval}" in
  yes) multilib=yes ;;
  yes) multilib=yes ;;
  no)  multilib=no ;;
  no)  multilib=no ;;
  *)   AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
  *)   AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
 esac], [test -z "$with_target_subdir" && multilib=no || multilib=yes])dnl
 esac], [test -z "$with_target_subdir" && multilib=no || multilib=yes])dnl
AC_ARG_WITH(system-zlib,
AC_ARG_WITH(system-zlib,
[  --with-system-zlib      use installed libz])
[  --with-system-zlib      use installed libz])
# Make sure we don't test executables when making cross-tools.
# Make sure we don't test executables when making cross-tools.
GCC_NO_EXECUTABLES
GCC_NO_EXECUTABLES
# The same as in boehm-gc and libstdc++. Have to borrow it from there.
# The same as in boehm-gc and libstdc++. Have to borrow it from there.
# We must force CC to /not/ be precious variables; otherwise
# We must force CC to /not/ be precious variables; otherwise
# the wrong, non-multilib-adjusted value will be used in multilibs.
# the wrong, non-multilib-adjusted value will be used in multilibs.
# As a side effect, we have to subst CFLAGS ourselves.
# As a side effect, we have to subst CFLAGS ourselves.
m4_rename([_AC_ARG_VAR_PRECIOUS],[real_PRECIOUS])
m4_rename([_AC_ARG_VAR_PRECIOUS],[real_PRECIOUS])
m4_define([_AC_ARG_VAR_PRECIOUS],[])
m4_define([_AC_ARG_VAR_PRECIOUS],[])
AC_PROG_CC
AC_PROG_CC
m4_rename_force([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
m4_rename_force([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
AC_SUBST(CFLAGS)
AC_SUBST(CFLAGS)
AC_PROG_LIBTOOL
AC_PROG_LIBTOOL
# Find CPP now so that any conditional tests below won't do it and
# Find CPP now so that any conditional tests below won't do it and
# thereby make the resulting definitions conditional.
# thereby make the resulting definitions conditional.
AC_PROG_CPP
AC_PROG_CPP
if test -n "$with_cross_host"; then
if test -n "$with_cross_host"; then
   # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
   # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
   # may not work correctly, because the compiler may not be able to
   # may not work correctly, because the compiler may not be able to
   # link executables.
   # link executables.
   # We assume newlib.  This lets us hard-code the functions we know
   # We assume newlib.  This lets us hard-code the functions we know
   # we'll have.
   # we'll have.
   AC_DEFINE(HAVE_MEMCPY)
   AC_DEFINE(HAVE_MEMCPY)
   AC_DEFINE(HAVE_STRERROR)
   AC_DEFINE(HAVE_STRERROR)
   # We ignore --with-system-zlib in this case.
   # We ignore --with-system-zlib in this case.
   target_all=libzgcj.la
   target_all=libzgcj.la
else
else
   AC_FUNC_MMAP
   AC_FUNC_MMAP
   AC_CHECK_FUNCS(memcpy strerror)
   AC_CHECK_FUNCS(memcpy strerror)
   if test "$with_system_zlib" = yes; then
   if test "$with_system_zlib" = yes; then
      AC_CHECK_LIB(z, deflate, target_all=, target_all=libzgcj.la)
      AC_CHECK_LIB(z, deflate, target_all=, target_all=libzgcj.la)
   else
   else
      target_all=libzgcj.la
      target_all=libzgcj.la
   fi
   fi
fi
fi
AC_SUBST(target_all)
AC_SUBST(target_all)
AC_CHECK_HEADERS(unistd.h)
AC_CHECK_HEADERS(unistd.h)
if test -n "$with_cross_host" &&
if test -n "$with_cross_host" &&
   test x"$with_cross_host" != x"no"; then
   test x"$with_cross_host" != x"no"; then
  toolexecdir='$(exec_prefix)/$(target_alias)'
  toolexecdir='$(exec_prefix)/$(target_alias)'
  toolexeclibdir='$(toolexecdir)/lib'
  toolexeclibdir='$(toolexecdir)/lib'
else
else
  toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  toolexeclibdir='$(libdir)'
  toolexeclibdir='$(libdir)'
fi
fi
if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
  multiosdir=/`$CC -print-multi-os-directory`
  multiosdir=/`$CC -print-multi-os-directory`
  case $multiosdir in
  case $multiosdir in
    /.) multiosdir= ;; # Avoid trailing /.
    /.) multiosdir= ;; # Avoid trailing /.
  esac
  esac
else
else
  multiosdir=
  multiosdir=
fi
fi
toolexeclibdir=${toolexeclibdir}${multiosdir}
toolexeclibdir=${toolexeclibdir}${multiosdir}
AC_SUBST(toolexecdir)
AC_SUBST(toolexecdir)
AC_SUBST(toolexeclibdir)
AC_SUBST(toolexeclibdir)
AM_CONDITIONAL(TARGET_LIBRARY, test -n "$with_target_subdir")
AM_CONDITIONAL(TARGET_LIBRARY, test -n "$with_target_subdir")
if test "${multilib}" = "yes"; then
if test "${multilib}" = "yes"; then
  multilib_arg="--enable-multilib"
  multilib_arg="--enable-multilib"
else
else
  multilib_arg=
  multilib_arg=
fi
fi
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
AC_OUTPUT
 
 

powered by: WebSVN 2.1.0

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