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

Subversion Repositories or1k

[/] [or1k/] [tags/] [start/] [gdb-5.0/] [opcodes/] [aclocal.m4] - Diff between revs 579 and 1765

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

Rev 579 Rev 1765
dnl aclocal.m4 generated automatically by aclocal 1.4
dnl aclocal.m4 generated automatically by aclocal 1.4
 
 
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl with or without modifications, as long as this notice is preserved.
 
 
dnl This program is distributed in the hope that it will be useful,
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
dnl PARTICULAR PURPOSE.
dnl PARTICULAR PURPOSE.
 
 
sinclude(../bfd/acinclude.m4)
sinclude(../bfd/acinclude.m4)
 
 
# Do all the work for Automake.  This macro actually does too much --
# Do all the work for Automake.  This macro actually does too much --
# some checks are only needed if your package does certain things.
# some checks are only needed if your package does certain things.
# But this isn't really a big deal.
# But this isn't really a big deal.
 
 
# serial 1
# serial 1
 
 
dnl Usage:
dnl Usage:
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
 
 
AC_DEFUN(AM_INIT_AUTOMAKE,
AC_DEFUN(AM_INIT_AUTOMAKE,
[AC_REQUIRE([AC_PROG_INSTALL])
[AC_REQUIRE([AC_PROG_INSTALL])
PACKAGE=[$1]
PACKAGE=[$1]
AC_SUBST(PACKAGE)
AC_SUBST(PACKAGE)
VERSION=[$2]
VERSION=[$2]
AC_SUBST(VERSION)
AC_SUBST(VERSION)
dnl test to see if srcdir already configured
dnl test to see if srcdir already configured
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
fi
fi
ifelse([$3],,
ifelse([$3],,
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
AC_REQUIRE([AM_SANITY_CHECK])
AC_REQUIRE([AM_SANITY_CHECK])
AC_REQUIRE([AC_ARG_PROGRAM])
AC_REQUIRE([AC_ARG_PROGRAM])
dnl FIXME This is truly gross.
dnl FIXME This is truly gross.
missing_dir=`cd $ac_aux_dir && pwd`
missing_dir=`cd $ac_aux_dir && pwd`
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
AC_REQUIRE([AC_PROG_MAKE_SET])])
AC_REQUIRE([AC_PROG_MAKE_SET])])
 
 
#
#
# Check to make sure that the build environment is sane.
# Check to make sure that the build environment is sane.
#
#
 
 
AC_DEFUN(AM_SANITY_CHECK,
AC_DEFUN(AM_SANITY_CHECK,
[AC_MSG_CHECKING([whether build environment is sane])
[AC_MSG_CHECKING([whether build environment is sane])
# Just in case
# Just in case
sleep 1
sleep 1
echo timestamp > conftestfile
echo timestamp > conftestfile
# Do `set' in a subshell so we don't clobber the current shell's
# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
# directory).
if (
if (
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
   if test "[$]*" = "X"; then
   if test "[$]*" = "X"; then
      # -L didn't work.
      # -L didn't work.
      set X `ls -t $srcdir/configure conftestfile`
      set X `ls -t $srcdir/configure conftestfile`
   fi
   fi
   if test "[$]*" != "X $srcdir/configure conftestfile" \
   if test "[$]*" != "X $srcdir/configure conftestfile" \
      && test "[$]*" != "X conftestfile $srcdir/configure"; then
      && test "[$]*" != "X conftestfile $srcdir/configure"; then
 
 
      # If neither matched, then we have a broken ls.  This can happen
      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
      # happened.  Such a system could not be considered "sane".
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
alias in your environment])
alias in your environment])
   fi
   fi
 
 
   test "[$]2" = conftestfile
   test "[$]2" = conftestfile
   )
   )
then
then
   # Ok.
   # Ok.
   :
   :
else
else
   AC_MSG_ERROR([newly created file is older than distributed files!
   AC_MSG_ERROR([newly created file is older than distributed files!
Check your system clock])
Check your system clock])
fi
fi
rm -f conftest*
rm -f conftest*
AC_MSG_RESULT(yes)])
AC_MSG_RESULT(yes)])
 
 
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
dnl The program must properly implement --version.
dnl The program must properly implement --version.
AC_DEFUN(AM_MISSING_PROG,
AC_DEFUN(AM_MISSING_PROG,
[AC_MSG_CHECKING(for working $2)
[AC_MSG_CHECKING(for working $2)
# Run test in a subshell; some versions of sh will print an error if
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf.  Sigh.
# Redirect stdin to placate older versions of autoconf.  Sigh.
if ($2 --version) < /dev/null > /dev/null 2>&1; then
if ($2 --version) < /dev/null > /dev/null 2>&1; then
   $1=$2
   $1=$2
   AC_MSG_RESULT(found)
   AC_MSG_RESULT(found)
else
else
   $1="$3/missing $2"
   $1="$3/missing $2"
   AC_MSG_RESULT(missing)
   AC_MSG_RESULT(missing)
fi
fi
AC_SUBST($1)])
AC_SUBST($1)])
 
 
 
 
# serial 40 AC_PROG_LIBTOOL
# serial 40 AC_PROG_LIBTOOL
AC_DEFUN(AC_PROG_LIBTOOL,
AC_DEFUN(AC_PROG_LIBTOOL,
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
 
 
# Save cache, so that ltconfig can load it
# Save cache, so that ltconfig can load it
AC_CACHE_SAVE
AC_CACHE_SAVE
 
 
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
|| AC_MSG_ERROR([libtool configure failed])
|| AC_MSG_ERROR([libtool configure failed])
 
 
# Reload cache, that may have been modified by ltconfig
# Reload cache, that may have been modified by ltconfig
AC_CACHE_LOAD
AC_CACHE_LOAD
 
 
# This can be used to rebuild libtool when needed
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
 
 
# Always use our own libtool.
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
AC_SUBST(LIBTOOL)dnl
AC_SUBST(LIBTOOL)dnl
 
 
# Redirect the config.log output again, so that the ltconfig log is not
# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
# clobbered by the next message.
exec 5>>./config.log
exec 5>>./config.log
])
])
 
 
AC_DEFUN(AC_LIBTOOL_SETUP,
AC_DEFUN(AC_LIBTOOL_SETUP,
[AC_PREREQ(2.13)dnl
[AC_PREREQ(2.13)dnl
AC_REQUIRE([AC_ENABLE_SHARED])dnl
AC_REQUIRE([AC_ENABLE_SHARED])dnl
AC_REQUIRE([AC_ENABLE_STATIC])dnl
AC_REQUIRE([AC_ENABLE_STATIC])dnl
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
AC_REQUIRE([AC_PROG_RANLIB])dnl
AC_REQUIRE([AC_PROG_RANLIB])dnl
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_PROG_LD])dnl
AC_REQUIRE([AC_PROG_LD])dnl
AC_REQUIRE([AC_PROG_NM])dnl
AC_REQUIRE([AC_PROG_NM])dnl
AC_REQUIRE([AC_PROG_LN_S])dnl
AC_REQUIRE([AC_PROG_LN_S])dnl
dnl
dnl
 
 
case "$target" in
case "$target" in
NONE) lt_target="$host" ;;
NONE) lt_target="$host" ;;
*) lt_target="$target" ;;
*) lt_target="$target" ;;
esac
esac
 
 
# Check for any special flags to pass to ltconfig.
# Check for any special flags to pass to ltconfig.
libtool_flags="--cache-file=$cache_file"
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
[libtool_flags="$libtool_flags --enable-dlopen"])
[libtool_flags="$libtool_flags --enable-dlopen"])
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
[libtool_flags="$libtool_flags --enable-win32-dll"])
[libtool_flags="$libtool_flags --enable-win32-dll"])
AC_ARG_ENABLE(libtool-lock,
AC_ARG_ENABLE(libtool-lock,
  [  --disable-libtool-lock  avoid locking (might break parallel builds)])
  [  --disable-libtool-lock  avoid locking (might break parallel builds)])
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
 
 
# Some flags need to be propagated to the compiler or linker for good
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
# libtool support.
case "$lt_target" in
case "$lt_target" in
*-*-irix6*)
*-*-irix6*)
  # Find out which ABI we are using.
  # Find out which ABI we are using.
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  if AC_TRY_EVAL(ac_compile); then
  if AC_TRY_EVAL(ac_compile); then
    case "`/usr/bin/file conftest.o`" in
    case "`/usr/bin/file conftest.o`" in
    *32-bit*)
    *32-bit*)
      LD="${LD-ld} -32"
      LD="${LD-ld} -32"
      ;;
      ;;
    *N32*)
    *N32*)
      LD="${LD-ld} -n32"
      LD="${LD-ld} -n32"
      ;;
      ;;
    *64-bit*)
    *64-bit*)
      LD="${LD-ld} -64"
      LD="${LD-ld} -64"
      ;;
      ;;
    esac
    esac
  fi
  fi
  rm -rf conftest*
  rm -rf conftest*
  ;;
  ;;
 
 
*-*-sco3.2v5*)
*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  CFLAGS="$CFLAGS -belf"
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
    [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
    [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
    CFLAGS="$SAVE_CFLAGS"
  fi
  fi
  ;;
  ;;
 
 
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
[*-*-cygwin* | *-*-mingw*)
[*-*-cygwin* | *-*-mingw*)
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  AC_CHECK_TOOL(AS, as, false)
  AC_CHECK_TOOL(AS, as, false)
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
  ;;
  ;;
])
])
esac
esac
])
])
 
 
# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
 
 
# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
 
 
# AC_ENABLE_SHARED - implement the --enable-shared flag
# AC_ENABLE_SHARED - implement the --enable-shared flag
# Usage: AC_ENABLE_SHARED[(DEFAULT)]
# Usage: AC_ENABLE_SHARED[(DEFAULT)]
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
#   `yes'.
#   `yes'.
AC_DEFUN(AC_ENABLE_SHARED, [dnl
AC_DEFUN(AC_ENABLE_SHARED, [dnl
define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
AC_ARG_ENABLE(shared,
AC_ARG_ENABLE(shared,
changequote(<<, >>)dnl
changequote(<<, >>)dnl
<<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
<<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
changequote([, ])dnl
changequote([, ])dnl
[p=${PACKAGE-default}
[p=${PACKAGE-default}
case "$enableval" in
case "$enableval" in
yes) enable_shared=yes ;;
yes) enable_shared=yes ;;
no) enable_shared=no ;;
no) enable_shared=no ;;
*)
*)
  enable_shared=no
  enable_shared=no
  # Look at the argument we got.  We use all the common list separators.
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
    if test "X$pkg" = "X$p"; then
      enable_shared=yes
      enable_shared=yes
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
  ;;
  ;;
esac],
esac],
enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
])
])
 
 
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_ENABLE_SHARED(no)])
AC_ENABLE_SHARED(no)])
 
 
# AC_ENABLE_STATIC - implement the --enable-static flag
# AC_ENABLE_STATIC - implement the --enable-static flag
# Usage: AC_ENABLE_STATIC[(DEFAULT)]
# Usage: AC_ENABLE_STATIC[(DEFAULT)]
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
#   `yes'.
#   `yes'.
AC_DEFUN(AC_ENABLE_STATIC, [dnl
AC_DEFUN(AC_ENABLE_STATIC, [dnl
define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
AC_ARG_ENABLE(static,
AC_ARG_ENABLE(static,
changequote(<<, >>)dnl
changequote(<<, >>)dnl
<<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
<<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
changequote([, ])dnl
changequote([, ])dnl
[p=${PACKAGE-default}
[p=${PACKAGE-default}
case "$enableval" in
case "$enableval" in
yes) enable_static=yes ;;
yes) enable_static=yes ;;
no) enable_static=no ;;
no) enable_static=no ;;
*)
*)
  enable_static=no
  enable_static=no
  # Look at the argument we got.  We use all the common list separators.
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
    if test "X$pkg" = "X$p"; then
      enable_static=yes
      enable_static=yes
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
  ;;
  ;;
esac],
esac],
enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
])
])
 
 
# AC_DISABLE_STATIC - set the default static flag to --disable-static
# AC_DISABLE_STATIC - set the default static flag to --disable-static
AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_ENABLE_STATIC(no)])
AC_ENABLE_STATIC(no)])
 
 
 
 
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
#   `yes'.
#   `yes'.
AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
AC_ARG_ENABLE(fast-install,
AC_ARG_ENABLE(fast-install,
changequote(<<, >>)dnl
changequote(<<, >>)dnl
<<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
<<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
changequote([, ])dnl
changequote([, ])dnl
[p=${PACKAGE-default}
[p=${PACKAGE-default}
case "$enableval" in
case "$enableval" in
yes) enable_fast_install=yes ;;
yes) enable_fast_install=yes ;;
no) enable_fast_install=no ;;
no) enable_fast_install=no ;;
*)
*)
  enable_fast_install=no
  enable_fast_install=no
  # Look at the argument we got.  We use all the common list separators.
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
    if test "X$pkg" = "X$p"; then
      enable_fast_install=yes
      enable_fast_install=yes
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
  ;;
  ;;
esac],
esac],
enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
])
])
 
 
# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_ENABLE_FAST_INSTALL(no)])
AC_ENABLE_FAST_INSTALL(no)])
 
 
# AC_PROG_LD - find the path to the GNU or non-GNU linker
# AC_PROG_LD - find the path to the GNU or non-GNU linker
AC_DEFUN(AC_PROG_LD,
AC_DEFUN(AC_PROG_LD,
[AC_ARG_WITH(gnu-ld,
[AC_ARG_WITH(gnu-ld,
[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
ac_prog=ld
ac_prog=ld
if test "$ac_cv_prog_gcc" = yes; then
if test "$ac_cv_prog_gcc" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  # Check if gcc -print-prog-name=ld gives a path.
  AC_MSG_CHECKING([for ld used by GCC])
  AC_MSG_CHECKING([for ld used by GCC])
  ac_prog=`($CC -print-prog-name=ld) 2>&5`
  ac_prog=`($CC -print-prog-name=ld) 2>&5`
  case "$ac_prog" in
  case "$ac_prog" in
    # Accept absolute paths.
    # Accept absolute paths.
changequote(,)dnl
changequote(,)dnl
    [\\/]* | [A-Za-z]:[\\/]*)
    [\\/]* | [A-Za-z]:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      re_direlt='/[^/][^/]*/\.\./'
changequote([,])dnl
changequote([,])dnl
      # Canonicalize the path of ld
      # Canonicalize the path of ld
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
      done
      done
      test -z "$LD" && LD="$ac_prog"
      test -z "$LD" && LD="$ac_prog"
      ;;
      ;;
  "")
  "")
    # If it fails, then pretend we aren't using GCC.
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ac_prog=ld
    ;;
    ;;
  *)
  *)
    # If it is relative, then search for the first ld in PATH.
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    with_gnu_ld=unknown
    ;;
    ;;
  esac
  esac
elif test "$with_gnu_ld" = yes; then
elif test "$with_gnu_ld" = yes; then
  AC_MSG_CHECKING([for GNU ld])
  AC_MSG_CHECKING([for GNU ld])
else
else
  AC_MSG_CHECKING([for non-GNU ld])
  AC_MSG_CHECKING([for non-GNU ld])
fi
fi
AC_CACHE_VAL(ac_cv_path_LD,
AC_CACHE_VAL(ac_cv_path_LD,
[if test -z "$LD"; then
[if test -z "$LD"; then
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  for ac_dir in $PATH; do
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      ac_cv_path_LD="$ac_dir/$ac_prog"
      ac_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some GNU ld's only accept -v.
      # but apparently some GNU ld's only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
        test "$with_gnu_ld" != no && break
        test "$with_gnu_ld" != no && break
      else
      else
        test "$with_gnu_ld" != yes && break
        test "$with_gnu_ld" != yes && break
      fi
      fi
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
else
else
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
fi])
fi])
LD="$ac_cv_path_LD"
LD="$ac_cv_path_LD"
if test -n "$LD"; then
if test -n "$LD"; then
  AC_MSG_RESULT($LD)
  AC_MSG_RESULT($LD)
else
else
  AC_MSG_RESULT(no)
  AC_MSG_RESULT(no)
fi
fi
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
AC_PROG_LD_GNU
AC_PROG_LD_GNU
])
])
 
 
AC_DEFUN(AC_PROG_LD_GNU,
AC_DEFUN(AC_PROG_LD_GNU,
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  ac_cv_prog_gnu_ld=yes
  ac_cv_prog_gnu_ld=yes
else
else
  ac_cv_prog_gnu_ld=no
  ac_cv_prog_gnu_ld=no
fi])
fi])
])
])
 
 
# AC_PROG_NM - find the path to a BSD-compatible name lister
# AC_PROG_NM - find the path to a BSD-compatible name lister
AC_DEFUN(AC_PROG_NM,
AC_DEFUN(AC_PROG_NM,
[AC_MSG_CHECKING([for BSD-compatible nm])
[AC_MSG_CHECKING([for BSD-compatible nm])
AC_CACHE_VAL(ac_cv_path_NM,
AC_CACHE_VAL(ac_cv_path_NM,
[if test -n "$NM"; then
[if test -n "$NM"; then
  # Let the user override the test.
  # Let the user override the test.
  ac_cv_path_NM="$NM"
  ac_cv_path_NM="$NM"
else
else
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
      # Check to see if the nm accepts a BSD-compat flag.
      # Check to see if the nm accepts a BSD-compat flag.
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
      #   nm: unknown option "B" ignored
      #   nm: unknown option "B" ignored
      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
        ac_cv_path_NM="$ac_dir/nm -B"
        ac_cv_path_NM="$ac_dir/nm -B"
        break
        break
      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
        ac_cv_path_NM="$ac_dir/nm -p"
        ac_cv_path_NM="$ac_dir/nm -p"
        break
        break
      else
      else
        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
        continue # so that we can try to find one that supports BSD flags
        continue # so that we can try to find one that supports BSD flags
      fi
      fi
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
fi])
fi])
NM="$ac_cv_path_NM"
NM="$ac_cv_path_NM"
AC_MSG_RESULT([$NM])
AC_MSG_RESULT([$NM])
])
])
 
 
# AC_CHECK_LIBM - check for math library
# AC_CHECK_LIBM - check for math library
AC_DEFUN(AC_CHECK_LIBM,
AC_DEFUN(AC_CHECK_LIBM,
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
LIBM=
LIBM=
case "$lt_target" in
case "$lt_target" in
*-*-beos* | *-*-cygwin*)
*-*-beos* | *-*-cygwin*)
  # These system don't have libm
  # These system don't have libm
  ;;
  ;;
*-ncr-sysv4.3*)
*-ncr-sysv4.3*)
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
  AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
  ;;
  ;;
*)
*)
  AC_CHECK_LIB(m, main, LIBM="-lm")
  AC_CHECK_LIB(m, main, LIBM="-lm")
  ;;
  ;;
esac
esac
])
])
 
 
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl convenience library, adds --enable-ltdl-convenience to
# the libltdl convenience library, adds --enable-ltdl-convenience to
# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
# '${top_builddir}/' (note the single quotes!) if your package is not
# '${top_builddir}/' (note the single quotes!) if your package is not
# flat, and, if you're not using automake, define top_builddir as
# flat, and, if you're not using automake, define top_builddir as
# appropriate in the Makefiles.
# appropriate in the Makefiles.
AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  case "$enable_ltdl_convenience" in
  case "$enable_ltdl_convenience" in
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  "") enable_ltdl_convenience=yes
  "") enable_ltdl_convenience=yes
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  esac
  esac
  LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
  LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
  INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
  INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
])
])
 
 
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl installable library, and adds --enable-ltdl-install to
# the libltdl installable library, and adds --enable-ltdl-install to
# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
# '${top_builddir}/' (note the single quotes!) if your package is not
# '${top_builddir}/' (note the single quotes!) if your package is not
# flat, and, if you're not using automake, define top_builddir as
# flat, and, if you're not using automake, define top_builddir as
# appropriate in the Makefiles.
# appropriate in the Makefiles.
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  AC_CHECK_LIB(ltdl, main,
  AC_CHECK_LIB(ltdl, main,
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  [if test x"$enable_ltdl_install" = xno; then
  [if test x"$enable_ltdl_install" = xno; then
     AC_MSG_WARN([libltdl not installed, but installation disabled])
     AC_MSG_WARN([libltdl not installed, but installation disabled])
   else
   else
     enable_ltdl_install=yes
     enable_ltdl_install=yes
   fi
   fi
  ])
  ])
  if test x"$enable_ltdl_install" = x"yes"; then
  if test x"$enable_ltdl_install" = x"yes"; then
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
    LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
    LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
    INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
    INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
  else
  else
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
    LIBLTDL="-lltdl"
    LIBLTDL="-lltdl"
    INCLTDL=
    INCLTDL=
  fi
  fi
])
])
 
 
dnl old names
dnl old names
AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
 
 
dnl This is just to silence aclocal about the macro not being used
dnl This is just to silence aclocal about the macro not being used
ifelse([AC_DISABLE_FAST_INSTALL])dnl
ifelse([AC_DISABLE_FAST_INSTALL])dnl
 
 
# Like AC_CONFIG_HEADER, but automatically create stamp file.
# Like AC_CONFIG_HEADER, but automatically create stamp file.
 
 
AC_DEFUN(AM_CONFIG_HEADER,
AC_DEFUN(AM_CONFIG_HEADER,
[AC_PREREQ([2.12])
[AC_PREREQ([2.12])
AC_CONFIG_HEADER([$1])
AC_CONFIG_HEADER([$1])
dnl When config.status generates a header, we must update the stamp-h file.
dnl When config.status generates a header, we must update the stamp-h file.
dnl This file resides in the same directory as the config header
dnl This file resides in the same directory as the config header
dnl that is generated.  We must strip everything past the first ":",
dnl that is generated.  We must strip everything past the first ":",
dnl and everything past the last "/".
dnl and everything past the last "/".
AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
<<am_indx=1
<<am_indx=1
for am_file in <<$1>>; do
for am_file in <<$1>>; do
  case " <<$>>CONFIG_HEADERS " in
  case " <<$>>CONFIG_HEADERS " in
  *" <<$>>am_file "*<<)>>
  *" <<$>>am_file "*<<)>>
    echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
    echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
    ;;
    ;;
  esac
  esac
  am_indx=`expr "<<$>>am_indx" + 1`
  am_indx=`expr "<<$>>am_indx" + 1`
done<<>>dnl>>)
done<<>>dnl>>)
changequote([,]))])
changequote([,]))])
 
 
# Add --enable-maintainer-mode option to configure.
# Add --enable-maintainer-mode option to configure.
# From Jim Meyering
# From Jim Meyering
 
 
# serial 1
# serial 1
 
 
AC_DEFUN(AM_MAINTAINER_MODE,
AC_DEFUN(AM_MAINTAINER_MODE,
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  dnl maintainer-mode is disabled by default
  dnl maintainer-mode is disabled by default
  AC_ARG_ENABLE(maintainer-mode,
  AC_ARG_ENABLE(maintainer-mode,
[  --enable-maintainer-mode enable make rules and dependencies not useful
[  --enable-maintainer-mode enable make rules and dependencies not useful
                          (and sometimes confusing) to the casual installer],
                          (and sometimes confusing) to the casual installer],
      USE_MAINTAINER_MODE=$enableval,
      USE_MAINTAINER_MODE=$enableval,
      USE_MAINTAINER_MODE=no)
      USE_MAINTAINER_MODE=no)
  AC_MSG_RESULT($USE_MAINTAINER_MODE)
  AC_MSG_RESULT($USE_MAINTAINER_MODE)
  AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
  AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
  MAINT=$MAINTAINER_MODE_TRUE
  MAINT=$MAINTAINER_MODE_TRUE
  AC_SUBST(MAINT)dnl
  AC_SUBST(MAINT)dnl
]
]
)
)
 
 
# Define a conditional.
# Define a conditional.
 
 
AC_DEFUN(AM_CONDITIONAL,
AC_DEFUN(AM_CONDITIONAL,
[AC_SUBST($1_TRUE)
[AC_SUBST($1_TRUE)
AC_SUBST($1_FALSE)
AC_SUBST($1_FALSE)
if $2; then
if $2; then
  $1_TRUE=
  $1_TRUE=
  $1_FALSE='#'
  $1_FALSE='#'
else
else
  $1_TRUE='#'
  $1_TRUE='#'
  $1_FALSE=
  $1_FALSE=
fi])
fi])
 
 
# This file is derived from `gettext.m4'.  The difference is that the
# This file is derived from `gettext.m4'.  The difference is that the
# included macros assume Cygnus-style source and build trees.
# included macros assume Cygnus-style source and build trees.
 
 
# Macro to add for using GNU gettext.
# Macro to add for using GNU gettext.
# Ulrich Drepper <drepper@cygnus.com>, 1995.
# Ulrich Drepper <drepper@cygnus.com>, 1995.
#
#
# This file file be copied and used freely without restrictions.  It can
# This file file be copied and used freely without restrictions.  It can
# be used in projects which are not available under the GNU Public License
# be used in projects which are not available under the GNU Public License
# but which still want to provide support for the GNU gettext functionality.
# but which still want to provide support for the GNU gettext functionality.
# Please note that the actual code is *not* freely available.
# Please note that the actual code is *not* freely available.
 
 
# serial 3
# serial 3
 
 
AC_DEFUN(CY_WITH_NLS,
AC_DEFUN(CY_WITH_NLS,
  [AC_MSG_CHECKING([whether NLS is requested])
  [AC_MSG_CHECKING([whether NLS is requested])
    dnl Default is enabled NLS
    dnl Default is enabled NLS
    AC_ARG_ENABLE(nls,
    AC_ARG_ENABLE(nls,
      [  --disable-nls           do not use Native Language Support],
      [  --disable-nls           do not use Native Language Support],
      USE_NLS=$enableval, USE_NLS=yes)
      USE_NLS=$enableval, USE_NLS=yes)
    AC_MSG_RESULT($USE_NLS)
    AC_MSG_RESULT($USE_NLS)
    AC_SUBST(USE_NLS)
    AC_SUBST(USE_NLS)
 
 
    USE_INCLUDED_LIBINTL=no
    USE_INCLUDED_LIBINTL=no
 
 
    dnl If we use NLS figure out what method
    dnl If we use NLS figure out what method
    if test "$USE_NLS" = "yes"; then
    if test "$USE_NLS" = "yes"; then
      AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if NLS is requested])
      AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if NLS is requested])
      AC_MSG_CHECKING([whether included gettext is requested])
      AC_MSG_CHECKING([whether included gettext is requested])
      AC_ARG_WITH(included-gettext,
      AC_ARG_WITH(included-gettext,
        [  --with-included-gettext use the GNU gettext library included here],
        [  --with-included-gettext use the GNU gettext library included here],
        nls_cv_force_use_gnu_gettext=$withval,
        nls_cv_force_use_gnu_gettext=$withval,
        nls_cv_force_use_gnu_gettext=no)
        nls_cv_force_use_gnu_gettext=no)
      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
 
 
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
        dnl User does not insist on using GNU NLS library.  Figure out what
        dnl User does not insist on using GNU NLS library.  Figure out what
        dnl to use.  If gettext or catgets are available (in this order) we
        dnl to use.  If gettext or catgets are available (in this order) we
        dnl use this.  Else we have to fall back to GNU NLS library.
        dnl use this.  Else we have to fall back to GNU NLS library.
        dnl catgets is only used if permitted by option --with-catgets.
        dnl catgets is only used if permitted by option --with-catgets.
        nls_cv_header_intl=
        nls_cv_header_intl=
        nls_cv_header_libgt=
        nls_cv_header_libgt=
        CATOBJEXT=NONE
        CATOBJEXT=NONE
 
 
        AC_CHECK_HEADER(libintl.h,
        AC_CHECK_HEADER(libintl.h,
          [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
          [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
            [AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
            [AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
               gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)])
               gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)])
 
 
           if test "$gt_cv_func_gettext_libc" != "yes"; then
           if test "$gt_cv_func_gettext_libc" != "yes"; then
             AC_CHECK_LIB(intl, bindtextdomain,
             AC_CHECK_LIB(intl, bindtextdomain,
               [AC_CACHE_CHECK([for gettext in libintl],
               [AC_CACHE_CHECK([for gettext in libintl],
                 gt_cv_func_gettext_libintl,
                 gt_cv_func_gettext_libintl,
                 [AC_TRY_LINK([], [return (int) gettext ("")],
                 [AC_TRY_LINK([], [return (int) gettext ("")],
                 gt_cv_func_gettext_libintl=yes,
                 gt_cv_func_gettext_libintl=yes,
                 gt_cv_func_gettext_libintl=no)])])
                 gt_cv_func_gettext_libintl=no)])])
           fi
           fi
 
 
           if test "$gt_cv_func_gettext_libc" = "yes" \
           if test "$gt_cv_func_gettext_libc" = "yes" \
              || test "$gt_cv_func_gettext_libintl" = "yes"; then
              || test "$gt_cv_func_gettext_libintl" = "yes"; then
              AC_DEFINE(HAVE_GETTEXT, 1,
              AC_DEFINE(HAVE_GETTEXT, 1,
                        [Define as 1 if you have gettext and don't want to use GNU gettext.])
                        [Define as 1 if you have gettext and don't want to use GNU gettext.])
              AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
              AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
                [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
                [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
              if test "$MSGFMT" != "no"; then
              if test "$MSGFMT" != "no"; then
                AC_CHECK_FUNCS(dcgettext)
                AC_CHECK_FUNCS(dcgettext)
                AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
                AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
                AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
                AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
                  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
                  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
                AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
                AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
                               return _nl_msg_cat_cntr],
                               return _nl_msg_cat_cntr],
                  [CATOBJEXT=.gmo
                  [CATOBJEXT=.gmo
                   DATADIRNAME=share],
                   DATADIRNAME=share],
                  [CATOBJEXT=.mo
                  [CATOBJEXT=.mo
                   DATADIRNAME=lib])
                   DATADIRNAME=lib])
                INSTOBJEXT=.mo
                INSTOBJEXT=.mo
              fi
              fi
            fi
            fi
        ])
        ])
 
 
        dnl In the standard gettext, we would now check for catgets.
        dnl In the standard gettext, we would now check for catgets.
        dnl However, we never want to use catgets for our releases.
        dnl However, we never want to use catgets for our releases.
 
 
        if test "$CATOBJEXT" = "NONE"; then
        if test "$CATOBJEXT" = "NONE"; then
          dnl Neither gettext nor catgets in included in the C library.
          dnl Neither gettext nor catgets in included in the C library.
          dnl Fall back on GNU gettext library.
          dnl Fall back on GNU gettext library.
          nls_cv_use_gnu_gettext=yes
          nls_cv_use_gnu_gettext=yes
        fi
        fi
      fi
      fi
 
 
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
        dnl Mark actions used to generate GNU NLS library.
        dnl Mark actions used to generate GNU NLS library.
        INTLOBJS="\$(GETTOBJS)"
        INTLOBJS="\$(GETTOBJS)"
        AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
        AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
        AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
        AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
        AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
        AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
        AC_SUBST(MSGFMT)
        AC_SUBST(MSGFMT)
        USE_INCLUDED_LIBINTL=yes
        USE_INCLUDED_LIBINTL=yes
        CATOBJEXT=.gmo
        CATOBJEXT=.gmo
        INSTOBJEXT=.mo
        INSTOBJEXT=.mo
        DATADIRNAME=share
        DATADIRNAME=share
        INTLDEPS='$(top_builddir)/../intl/libintl.a'
        INTLDEPS='$(top_builddir)/../intl/libintl.a'
        INTLLIBS=$INTLDEPS
        INTLLIBS=$INTLDEPS
        LIBS=`echo $LIBS | sed -e 's/-lintl//'`
        LIBS=`echo $LIBS | sed -e 's/-lintl//'`
        nls_cv_header_intl=libintl.h
        nls_cv_header_intl=libintl.h
        nls_cv_header_libgt=libgettext.h
        nls_cv_header_libgt=libgettext.h
      fi
      fi
 
 
      dnl Test whether we really found GNU xgettext.
      dnl Test whether we really found GNU xgettext.
      if test "$XGETTEXT" != ":"; then
      if test "$XGETTEXT" != ":"; then
        dnl If it is no GNU xgettext we define it as : so that the
        dnl If it is no GNU xgettext we define it as : so that the
        dnl Makefiles still can work.
        dnl Makefiles still can work.
        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
          : ;
          : ;
        else
        else
          AC_MSG_RESULT(
          AC_MSG_RESULT(
            [found xgettext programs is not GNU xgettext; ignore it])
            [found xgettext programs is not GNU xgettext; ignore it])
          XGETTEXT=":"
          XGETTEXT=":"
        fi
        fi
      fi
      fi
 
 
      # We need to process the po/ directory.
      # We need to process the po/ directory.
      POSUB=po
      POSUB=po
    else
    else
      DATADIRNAME=share
      DATADIRNAME=share
      nls_cv_header_intl=libintl.h
      nls_cv_header_intl=libintl.h
      nls_cv_header_libgt=libgettext.h
      nls_cv_header_libgt=libgettext.h
    fi
    fi
 
 
    # If this is used in GNU gettext we have to set USE_NLS to `yes'
    # If this is used in GNU gettext we have to set USE_NLS to `yes'
    # because some of the sources are only built for this goal.
    # because some of the sources are only built for this goal.
    if test "$PACKAGE" = gettext; then
    if test "$PACKAGE" = gettext; then
      USE_NLS=yes
      USE_NLS=yes
      USE_INCLUDED_LIBINTL=yes
      USE_INCLUDED_LIBINTL=yes
    fi
    fi
 
 
    dnl These rules are solely for the distribution goal.  While doing this
    dnl These rules are solely for the distribution goal.  While doing this
    dnl we only have to keep exactly one list of the available catalogs
    dnl we only have to keep exactly one list of the available catalogs
    dnl in configure.in.
    dnl in configure.in.
    for lang in $ALL_LINGUAS; do
    for lang in $ALL_LINGUAS; do
      GMOFILES="$GMOFILES $lang.gmo"
      GMOFILES="$GMOFILES $lang.gmo"
      POFILES="$POFILES $lang.po"
      POFILES="$POFILES $lang.po"
    done
    done
 
 
    dnl Make all variables we use known to autoconf.
    dnl Make all variables we use known to autoconf.
    AC_SUBST(USE_INCLUDED_LIBINTL)
    AC_SUBST(USE_INCLUDED_LIBINTL)
    AC_SUBST(CATALOGS)
    AC_SUBST(CATALOGS)
    AC_SUBST(CATOBJEXT)
    AC_SUBST(CATOBJEXT)
    AC_SUBST(DATADIRNAME)
    AC_SUBST(DATADIRNAME)
    AC_SUBST(GMOFILES)
    AC_SUBST(GMOFILES)
    AC_SUBST(INSTOBJEXT)
    AC_SUBST(INSTOBJEXT)
    AC_SUBST(INTLDEPS)
    AC_SUBST(INTLDEPS)
    AC_SUBST(INTLLIBS)
    AC_SUBST(INTLLIBS)
    AC_SUBST(INTLOBJS)
    AC_SUBST(INTLOBJS)
    AC_SUBST(POFILES)
    AC_SUBST(POFILES)
    AC_SUBST(POSUB)
    AC_SUBST(POSUB)
  ])
  ])
 
 
AC_DEFUN(CY_GNU_GETTEXT,
AC_DEFUN(CY_GNU_GETTEXT,
  [AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  [AC_REQUIRE([AC_PROG_MAKE_SET])dnl
   AC_REQUIRE([AC_PROG_CC])dnl
   AC_REQUIRE([AC_PROG_CC])dnl
   AC_REQUIRE([AC_PROG_RANLIB])dnl
   AC_REQUIRE([AC_PROG_RANLIB])dnl
   AC_REQUIRE([AC_ISC_POSIX])dnl
   AC_REQUIRE([AC_ISC_POSIX])dnl
   AC_REQUIRE([AC_HEADER_STDC])dnl
   AC_REQUIRE([AC_HEADER_STDC])dnl
   AC_REQUIRE([AC_C_CONST])dnl
   AC_REQUIRE([AC_C_CONST])dnl
   AC_REQUIRE([AC_C_INLINE])dnl
   AC_REQUIRE([AC_C_INLINE])dnl
   AC_REQUIRE([AC_TYPE_OFF_T])dnl
   AC_REQUIRE([AC_TYPE_OFF_T])dnl
   AC_REQUIRE([AC_TYPE_SIZE_T])dnl
   AC_REQUIRE([AC_TYPE_SIZE_T])dnl
   AC_REQUIRE([AC_FUNC_ALLOCA])dnl
   AC_REQUIRE([AC_FUNC_ALLOCA])dnl
   AC_REQUIRE([AC_FUNC_MMAP])dnl
   AC_REQUIRE([AC_FUNC_MMAP])dnl
 
 
   AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \
   AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \
unistd.h values.h sys/param.h])
unistd.h values.h sys/param.h])
   AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \
   AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \
__argz_count __argz_stringify __argz_next])
__argz_count __argz_stringify __argz_next])
 
 
   if test "${ac_cv_func_stpcpy+set}" != "set"; then
   if test "${ac_cv_func_stpcpy+set}" != "set"; then
     AC_CHECK_FUNCS(stpcpy)
     AC_CHECK_FUNCS(stpcpy)
   fi
   fi
   if test "${ac_cv_func_stpcpy}" = "yes"; then
   if test "${ac_cv_func_stpcpy}" = "yes"; then
     AC_DEFINE(HAVE_STPCPY, 1, [Define if you have the stpcpy function])
     AC_DEFINE(HAVE_STPCPY, 1, [Define if you have the stpcpy function])
   fi
   fi
 
 
   AM_LC_MESSAGES
   AM_LC_MESSAGES
   CY_WITH_NLS
   CY_WITH_NLS
 
 
   if test "x$CATOBJEXT" != "x"; then
   if test "x$CATOBJEXT" != "x"; then
     if test "x$ALL_LINGUAS" = "x"; then
     if test "x$ALL_LINGUAS" = "x"; then
       LINGUAS=
       LINGUAS=
     else
     else
       AC_MSG_CHECKING(for catalogs to be installed)
       AC_MSG_CHECKING(for catalogs to be installed)
       NEW_LINGUAS=
       NEW_LINGUAS=
       for lang in ${LINGUAS=$ALL_LINGUAS}; do
       for lang in ${LINGUAS=$ALL_LINGUAS}; do
         case "$ALL_LINGUAS" in
         case "$ALL_LINGUAS" in
          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
         esac
         esac
       done
       done
       LINGUAS=$NEW_LINGUAS
       LINGUAS=$NEW_LINGUAS
       AC_MSG_RESULT($LINGUAS)
       AC_MSG_RESULT($LINGUAS)
     fi
     fi
 
 
     dnl Construct list of names of catalog files to be constructed.
     dnl Construct list of names of catalog files to be constructed.
     if test -n "$LINGUAS"; then
     if test -n "$LINGUAS"; then
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
     fi
     fi
   fi
   fi
 
 
   dnl The reference to <locale.h> in the installed <libintl.h> file
   dnl The reference to <locale.h> in the installed <libintl.h> file
   dnl must be resolved because we cannot expect the users of this
   dnl must be resolved because we cannot expect the users of this
   dnl to define HAVE_LOCALE_H.
   dnl to define HAVE_LOCALE_H.
   if test $ac_cv_header_locale_h = yes; then
   if test $ac_cv_header_locale_h = yes; then
     INCLUDE_LOCALE_H="#include <locale.h>"
     INCLUDE_LOCALE_H="#include <locale.h>"
   else
   else
     INCLUDE_LOCALE_H="\
     INCLUDE_LOCALE_H="\
/* The system does not provide the header <locale.h>.  Take care yourself.  */"
/* The system does not provide the header <locale.h>.  Take care yourself.  */"
   fi
   fi
   AC_SUBST(INCLUDE_LOCALE_H)
   AC_SUBST(INCLUDE_LOCALE_H)
 
 
   dnl Determine which catalog format we have (if any is needed)
   dnl Determine which catalog format we have (if any is needed)
   dnl For now we know about two different formats:
   dnl For now we know about two different formats:
   dnl   Linux libc-5 and the normal X/Open format
   dnl   Linux libc-5 and the normal X/Open format
   if test -f $srcdir/po2tbl.sed.in; then
   if test -f $srcdir/po2tbl.sed.in; then
      if test "$CATOBJEXT" = ".cat"; then
      if test "$CATOBJEXT" = ".cat"; then
         AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen)
         AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen)
 
 
         dnl Transform the SED scripts while copying because some dumb SEDs
         dnl Transform the SED scripts while copying because some dumb SEDs
         dnl cannot handle comments.
         dnl cannot handle comments.
         sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
         sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
      fi
      fi
      dnl po2tbl.sed is always needed.
      dnl po2tbl.sed is always needed.
      sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
      sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
         $srcdir/po2tbl.sed.in > po2tbl.sed
         $srcdir/po2tbl.sed.in > po2tbl.sed
   fi
   fi
 
 
   dnl In the intl/Makefile.in we have a special dependency which makes
   dnl In the intl/Makefile.in we have a special dependency which makes
   dnl only sense for gettext.  We comment this out for non-gettext
   dnl only sense for gettext.  We comment this out for non-gettext
   dnl packages.
   dnl packages.
   if test "$PACKAGE" = "gettext"; then
   if test "$PACKAGE" = "gettext"; then
     GT_NO="#NO#"
     GT_NO="#NO#"
     GT_YES=
     GT_YES=
   else
   else
     GT_NO=
     GT_NO=
     GT_YES="#YES#"
     GT_YES="#YES#"
   fi
   fi
   AC_SUBST(GT_NO)
   AC_SUBST(GT_NO)
   AC_SUBST(GT_YES)
   AC_SUBST(GT_YES)
 
 
   MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
   MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
   AC_SUBST(MKINSTALLDIRS)
   AC_SUBST(MKINSTALLDIRS)
 
 
   dnl *** For now the libtool support in intl/Makefile is not for real.
   dnl *** For now the libtool support in intl/Makefile is not for real.
   l=
   l=
   AC_SUBST(l)
   AC_SUBST(l)
 
 
   dnl Generate list of files to be processed by xgettext which will
   dnl Generate list of files to be processed by xgettext which will
   dnl be included in po/Makefile.  But only do this if the po directory
   dnl be included in po/Makefile.  But only do this if the po directory
   dnl exists in srcdir.
   dnl exists in srcdir.
   if test -d $srcdir/po; then
   if test -d $srcdir/po; then
      test -d po || mkdir po
      test -d po || mkdir po
      if test "x$srcdir" != "x."; then
      if test "x$srcdir" != "x."; then
         if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
         if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
            posrcprefix="$srcdir/"
            posrcprefix="$srcdir/"
         else
         else
            posrcprefix="../$srcdir/"
            posrcprefix="../$srcdir/"
         fi
         fi
      else
      else
         posrcprefix="../"
         posrcprefix="../"
      fi
      fi
      rm -f po/POTFILES
      rm -f po/POTFILES
      sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
      sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
         < $srcdir/po/POTFILES.in > po/POTFILES
         < $srcdir/po/POTFILES.in > po/POTFILES
   fi
   fi
  ])
  ])
 
 
# Search path for a program which passes the given test.
# Search path for a program which passes the given test.
# Ulrich Drepper <drepper@cygnus.com>, 1996.
# Ulrich Drepper <drepper@cygnus.com>, 1996.
#
#
# This file file be copied and used freely without restrictions.  It can
# This file file be copied and used freely without restrictions.  It can
# be used in projects which are not available under the GNU Public License
# be used in projects which are not available under the GNU Public License
# but which still want to provide support for the GNU gettext functionality.
# but which still want to provide support for the GNU gettext functionality.
# Please note that the actual code is *not* freely available.
# Please note that the actual code is *not* freely available.
 
 
# serial 1
# serial 1
 
 
dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
AC_DEFUN(AM_PATH_PROG_WITH_TEST,
AC_DEFUN(AM_PATH_PROG_WITH_TEST,
[# Extract the first word of "$2", so it can be a program name with args.
[# Extract the first word of "$2", so it can be a program name with args.
set dummy $2; ac_word=[$]2
set dummy $2; ac_word=[$]2
AC_MSG_CHECKING([for $ac_word])
AC_MSG_CHECKING([for $ac_word])
AC_CACHE_VAL(ac_cv_path_$1,
AC_CACHE_VAL(ac_cv_path_$1,
[case "[$]$1" in
[case "[$]$1" in
  /*)
  /*)
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
  ;;
  ;;
  *)
  *)
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
    if test -f $ac_dir/$ac_word; then
      if [$3]; then
      if [$3]; then
        ac_cv_path_$1="$ac_dir/$ac_word"
        ac_cv_path_$1="$ac_dir/$ac_word"
        break
        break
      fi
      fi
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
dnl If no 4th arg is given, leave the cache variable unset,
dnl If no 4th arg is given, leave the cache variable unset,
dnl so AC_PATH_PROGS will keep looking.
dnl so AC_PATH_PROGS will keep looking.
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
])dnl
])dnl
  ;;
  ;;
esac])dnl
esac])dnl
$1="$ac_cv_path_$1"
$1="$ac_cv_path_$1"
if test -n "[$]$1"; then
if test -n "[$]$1"; then
  AC_MSG_RESULT([$]$1)
  AC_MSG_RESULT([$]$1)
else
else
  AC_MSG_RESULT(no)
  AC_MSG_RESULT(no)
fi
fi
AC_SUBST($1)dnl
AC_SUBST($1)dnl
])
])
 
 
# Check whether LC_MESSAGES is available in <locale.h>.
# Check whether LC_MESSAGES is available in <locale.h>.
# Ulrich Drepper <drepper@cygnus.com>, 1995.
# Ulrich Drepper <drepper@cygnus.com>, 1995.
#
#
# This file file be copied and used freely without restrictions.  It can
# This file file be copied and used freely without restrictions.  It can
# be used in projects which are not available under the GNU Public License
# be used in projects which are not available under the GNU Public License
# but which still want to provide support for the GNU gettext functionality.
# but which still want to provide support for the GNU gettext functionality.
# Please note that the actual code is *not* freely available.
# Please note that the actual code is *not* freely available.
 
 
# serial 1
# serial 1
 
 
AC_DEFUN(AM_LC_MESSAGES,
AC_DEFUN(AM_LC_MESSAGES,
  [if test $ac_cv_header_locale_h = yes; then
  [if test $ac_cv_header_locale_h = yes; then
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
    if test $am_cv_val_LC_MESSAGES = yes; then
    if test $am_cv_val_LC_MESSAGES = yes; then
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
                [Define if your locale.h file contains LC_MESSAGES.])
                [Define if your locale.h file contains LC_MESSAGES.])
    fi
    fi
  fi])
  fi])
 
 
 
 

powered by: WebSVN 2.1.0

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