URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [readline/] [configure.in] - Rev 294
Go to most recent revision | Compare with Previous | Blame | View Log
dnldnl Configure script for readline librarydnldnl report bugs to chet@po.cwru.edudnldnl Process this file with autoconf to produce a configure script.# Copyright (C) 1987-2005 Free Software Foundation, Inc.# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA# 02111-1307, USA.AC_REVISION([for Readline 5.1, version 2.59])AC_INIT(readline, 5.1-release, bug-readline@gnu.org)dnl make sure we are using a recent autoconf versionAC_PREREQ(2.50)AC_CONFIG_SRCDIR(readline.h)dnl GDB LOCALdnl AC_CONFIG_AUX_DIR(./support)AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..)AC_CONFIG_HEADERS(config.h)dnl update the value of RL_READLINE_VERSION in readline.h when this changesLIBVERSION=5.1AC_CANONICAL_HOSTdnl configure defaultsopt_curses=noopt_purify=nodnl arguments to configureAC_ARG_WITH(curses, AC_HELP_STRING([--with-curses], [use the curses library instead of the termcap library]), opt_curses=$withval)AC_ARG_WITH(purify, AC_HELP_STRING([--with-purify], [configure to postprocess with purify]), opt_purify=$withval)if test "$opt_curses" = "yes"; thenprefer_curses=yesfiif test "$opt_purify" = yes; thenPURIFY="purify"elsePURIFY=fidnl option parsing for optional featuresopt_multibyte=yesopt_static_libs=yesopt_shared_libs=noAC_ARG_ENABLE(multibyte, AC_HELP_STRING([--enable-multibyte], [enable multibyte characters if OS supports them]), opt_multibyte=$enableval)dnl AC_ARG_ENABLE(shared, AC_HELP_STRING([--enable-shared], [build shared libraries [[default=YES]]]), opt_shared_libs=$enableval)AC_ARG_ENABLE(static, AC_HELP_STRING([--enable-static], [build static libraries [[default=YES]]]), opt_static_libs=$enableval)if test $opt_multibyte = no; thenAC_DEFINE(NO_MULTIBYTE_SUPPORT)fidnl load up the cross-building cache file -- add more cases and cachednl files as necessarydnl Note that host and target machine are the same, and different than thednl build machine.CROSS_COMPILE=if test "x$cross_compiling" = "xyes"; thencase "${host}" in*-cygwin*)cross_cache=${srcdir}/cross-build/cygwin.cache;;*-mingw*)cross_cache=${srcdir}/cross-build/mingw.cache;;i[[3456]]86-*-beos*)cross_cache=${srcdir}/cross-build/x86-beos.cache;;*) echo "configure: cross-compiling for $host is not supported" >&2;;esacif test -n "${cross_cache}" && test -r "${cross_cache}"; thenecho "loading cross-build cache file ${cross_cache}". ${cross_cache}fiunset cross_cacheCROSS_COMPILE='-DCROSS_COMPILING'AC_SUBST(CROSS_COMPILE)fiecho ""echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"echo ""# We want these before the checks, so the checks can modify their values.test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1AC_PROG_MAKE_SETAC_PROG_CCdnl AC_AIXAC_MINIXdnl BEGIN changes for CYGNUS cross-building for Cygwindnl NOTE: Some of these changes may no longer be necessary.dnl load up the cross-building cache file -- add more cases and cachednl files as necessaryif test "x$cross_compiling" = "xyes"; thencase "${host}" in*-cygwin*)cross_cache=${srcdir}/cross-build/cygwin.cacheLOCAL_CFLAGS="$LOCAL_CFLAGS -I${srcdir}/../libtermcap";;*-mingw32*)cross_cache=${srcdir}/cross-build/mingw.cache;;*) echo "configure: cross-compiling for a non-cygwin target is not supported" >&2;;esacif test "x$cross_cache" != "x"; thenif test -r "${cross_cache}"; thenecho "loading cross-build cache file ${cross_cache}". ${cross_cache}fiunset cross_cachefifiif test -z "$CC_FOR_BUILD"; thenif test "x$cross_compiling" = "xno"; thenCC_FOR_BUILD='$(CC)'elseCC_FOR_BUILD=gccfifiAC_SUBST(CC_FOR_BUILD)dnl END changes for CYGNUS cross-building for Cygwin# If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"AC_PROG_GCC_TRADITIONALAC_PROG_INSTALLAC_CHECK_PROG(AR, ar, , ar)dnl Set default for ARFLAGS, since autoconf does not have a macro for it.dnl This allows people to set it when running configure or maketest -n "$ARFLAGS" || ARFLAGS="cr"AC_PROG_RANLIBMAKE_SHELL=/bin/shAC_SUBST(MAKE_SHELL)AC_C_CONSTAC_C_PROTOTYPESAC_C_CHAR_UNSIGNEDAC_TYPE_SIGNALAC_TYPE_SIZE_TAC_CHECK_TYPE(ssize_t, int)AC_HEADER_STDCAC_HEADER_STATAC_HEADER_DIRENTAC_CHECK_FUNCS(fcntl kill lstat)AC_CHECK_FUNCS(memmove putenv select setenv setlocale \strcasecmp strpbrk tcgetattr vsnprintf)AC_CHECK_FUNCS(isascii isxdigit)AC_CHECK_FUNCS(getpwent getpwnam getpwuid)AC_FUNC_STRCOLLAC_CHECK_HEADERS(fcntl.h unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \limits.h locale.h pwd.h memory.h termcap.h termios.h termio.h)AC_CHECK_HEADERS(sys/pte.h sys/stream.h sys/select.h sys/file.h)AC_CHECK_HEADERS(sys/ptem.h,,,[[#if HAVE_SYS_STREAM_H# include <sys/stream.h>#endif]])BASH_SYS_SIGNAL_VINTAGEBASH_SYS_REINSTALL_SIGHANDLERSBASH_FUNC_POSIX_SETJMPBASH_FUNC_LSTATBASH_FUNC_STRCOLLBASH_FUNC_CTYPE_NONASCIIBASH_CHECK_GETPW_FUNCSAC_HEADER_TIOCGWINSZBASH_TYPE_SIGHANDLERBASH_HAVE_TIOCSTATBASH_HAVE_FIONREADBASH_CHECK_SPEED_TBASH_STRUCT_WINSIZEBASH_STRUCT_DIRENT_D_INOBASH_STRUCT_DIRENT_D_FILENOdnl yuckcase "$host_os" inaix*) prefer_curses=yes ;;esacBASH_CHECK_LIB_TERMCAPif test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; thenif test "$prefer_curses" = yes; thenTERMCAP_LIB=-lcurseselseTERMCAP_LIB=-ltermcap #defaultfifiBASH_CHECK_MULTIBYTEcase "$host_cpu" in*cray*) LOCAL_CFLAGS=-DCRAY ;;*s390*) LOCAL_CFLAGS=-fsigned-char ;;esaccase "$host_os" inisc*) LOCAL_CFLAGS=-Disc386 ;;esac# shared library configuration section## Shared object configuration section. These values are generated by# ${srcdir}/support/shobj-conf#if test -f ${srcdir}/support/shobj-conf; thenAC_MSG_CHECKING(configuration for building shared libraries)eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`# case "$SHLIB_LIBS" in# *curses*|*termcap*|*termlib*) ;;# *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;;# esacAC_SUBST(SHOBJ_CC)AC_SUBST(SHOBJ_CFLAGS)AC_SUBST(SHOBJ_LD)AC_SUBST(SHOBJ_LDFLAGS)AC_SUBST(SHOBJ_XLDFLAGS)AC_SUBST(SHOBJ_LIBS)AC_SUBST(SHOBJ_STATUS)AC_SUBST(SHLIB_STATUS)AC_SUBST(SHLIB_XLDFLAGS)AC_SUBST(SHLIB_DOT)AC_SUBST(SHLIB_LIBPREF)AC_SUBST(SHLIB_LIBSUFF)AC_SUBST(SHLIB_LIBVERSION)AC_SUBST(SHLIB_DLLVERSION)AC_SUBST(SHLIB_LIBS)AC_MSG_RESULT($SHLIB_STATUS)# SHLIB_STATUS is either `supported' or `unsupported'. If it's# `unsupported', turn off any default shared library buildingif test "$SHLIB_STATUS" = 'unsupported'; thenopt_shared_libs=nofi# shared library versioning# quoted for m4 so I can use character classesSHLIB_MAJOR=[`expr "$LIBVERSION" : '\([0-9]\)\..*'`]SHLIB_MINOR=[`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`]AC_SUBST(SHLIB_MAJOR)AC_SUBST(SHLIB_MINOR)fiif test "$opt_static_libs" = "yes"; thenSTATIC_TARGET=staticSTATIC_INSTALL_TARGET=install-staticfiif test "$opt_shared_libs" = "yes"; thenSHARED_TARGET=sharedSHARED_INSTALL_TARGET=install-sharedfiAC_SUBST(STATIC_TARGET)AC_SUBST(SHARED_TARGET)AC_SUBST(STATIC_INSTALL_TARGET)AC_SUBST(SHARED_INSTALL_TARGET)case "$host_os" inmsdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file*) BUILD_DIR=`pwd` ;;esaccase "$BUILD_DIR" in*\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;*) ;;esacAC_SUBST(PURIFY)AC_SUBST(BUILD_DIR)AC_SUBST(CFLAGS)AC_SUBST(LOCAL_CFLAGS)AC_SUBST(LOCAL_LDFLAGS)AC_SUBST(LOCAL_DEFS)AC_SUBST(AR)AC_SUBST(ARFLAGS)AC_SUBST(host_cpu)AC_SUBST(host_os)AC_SUBST(LIBVERSION)AC_SUBST(TERMCAP_LIB)AC_OUTPUT([Makefile doc/Makefile examples/Makefile shlib/Makefile],[# Makefile uses this timestamp file to record whether config.h is up to date.echo > stamp-h])
Go to most recent revision | Compare with Previous | Blame | View Log
