Deleted Added
sdiff udiff text old ( 182007 ) new ( 200576 )
full compact
1# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4# 2005 Free Software Foundation, Inc.
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
14# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15
16# serial 47 AC_PROG_LIBTOOL
17
18
19# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
20# -----------------------------------------------------------
21# If this macro is not defined by Autoconf, define it here.

--- 6148 unchanged lines hidden (view full) ---

6170 fi
6171 done
6172done
6173])
6174SED=$lt_cv_path_SED
6175AC_MSG_RESULT([$SED])
6176])
6177
6178# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
6179#
6180# This file is free software; the Free Software Foundation
6181# gives unlimited permission to copy and/or distribute it,
6182# with or without modifications, as long as this notice is preserved.
6183
6184# AM_AUTOMAKE_VERSION(VERSION)
6185# ----------------------------
6186# Automake X.Y traces this macro to ensure aclocal.m4 has been
6187# generated from the m4 files accompanying Automake X.Y.
6188AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6189
6190# AM_SET_CURRENT_AUTOMAKE_VERSION
6191# -------------------------------
6192# Call AM_AUTOMAKE_VERSION so it can be traced.
6193# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6194AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6195 [AM_AUTOMAKE_VERSION([1.9.6])])
6196
6197# AM_AUX_DIR_EXPAND -*- Autoconf -*-
6198
6199# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6200#
6201# This file is free software; the Free Software Foundation
6202# gives unlimited permission to copy and/or distribute it,
6203# with or without modifications, as long as this notice is preserved.

--- 40 unchanged lines hidden (view full) ---

6244[dnl Rely on autoconf to set up CDPATH properly.
6245AC_PREREQ([2.50])dnl
6246# expand $ac_aux_dir to an absolute path
6247am_aux_dir=`cd $ac_aux_dir && pwd`
6248])
6249
6250# AM_CONDITIONAL -*- Autoconf -*-
6251
6252# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6253# Free Software Foundation, Inc.
6254#
6255# This file is free software; the Free Software Foundation
6256# gives unlimited permission to copy and/or distribute it,
6257# with or without modifications, as long as this notice is preserved.
6258
6259# serial 7
6260
6261# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6262# -------------------------------------
6263# Define a conditional.
6264AC_DEFUN([AM_CONDITIONAL],
6265[AC_PREREQ(2.52)dnl
6266 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
6267 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6268AC_SUBST([$1_TRUE])
6269AC_SUBST([$1_FALSE])
6270if $2; then
6271 $1_TRUE=
6272 $1_FALSE='#'
6273else
6274 $1_TRUE='#'
6275 $1_FALSE=
6276fi
6277AC_CONFIG_COMMANDS_PRE(
6278[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6279 AC_MSG_ERROR([[conditional "$1" was never defined.
6280Usually this means the macro was only invoked conditionally.]])
6281fi])])
6282
6283
6284# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6285# Free Software Foundation, Inc.
6286#
6287# This file is free software; the Free Software Foundation
6288# gives unlimited permission to copy and/or distribute it,
6289# with or without modifications, as long as this notice is preserved.
6290
6291# serial 8
6292
6293# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6294# written in clear, in which case automake, when reading aclocal.m4,
6295# will think it sees a *use*, and therefore will trigger all it's
6296# C support machinery. Also note that it means that autoscan, seeing
6297# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6298
6299

--- 11 unchanged lines hidden (view full) ---

6311[AC_REQUIRE([AM_SET_DEPDIR])dnl
6312AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
6313AC_REQUIRE([AM_MAKE_INCLUDE])dnl
6314AC_REQUIRE([AM_DEP_TRACK])dnl
6315
6316ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6317 [$1], CXX, [depcc="$CXX" am_compiler_list=],
6318 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6319 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6320 [depcc="$$1" am_compiler_list=])
6321
6322AC_CACHE_CHECK([dependency style of $depcc],
6323 [am_cv_$1_dependencies_compiler_type],
6324[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6325 # We make a subdir and do the tests there. Otherwise we can end up
6326 # making bogus files that we don't know about and never remove. For

--- 12 unchanged lines hidden (view full) ---

6339 # the current directory while Tru64 will put them in the object
6340 # directory.
6341 mkdir sub
6342
6343 am_cv_$1_dependencies_compiler_type=none
6344 if test "$am_compiler_list" = ""; then
6345 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
6346 fi
6347 for depmode in $am_compiler_list; do
6348 # Setup a source with many dependencies, because some compilers
6349 # like to wrap large dependency lists on column 80 (with \), and
6350 # we should not choose a depcomp mode which is confused by this.
6351 #
6352 # We need to recreate these files for each test, as the compiler may
6353 # overwrite some of them when testing with obscure command lines.
6354 # This happens at least with the AIX C compiler.
6355 : > sub/conftest.c
6356 for i in 1 2 3 4 5 6; do
6357 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6358 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6359 # Solaris 8's {/usr,}/bin/sh.
6360 touch sub/conftst$i.h
6361 done
6362 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6363
6364 case $depmode in
6365 nosideeffect)
6366 # after this tag, mechanisms are not by side-effect, so they'll
6367 # only be used when explicitly requested
6368 if test "x$enable_dependency_tracking" = xyes; then
6369 continue
6370 else
6371 break
6372 fi
6373 ;;
6374 none) break ;;
6375 esac
6376 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6377 # mode. It turns out that the SunPro C++ compiler does not properly
6378 # handle `-M -o', and we need to detect this.
6379 if depmode=$depmode \
6380 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6381 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6382 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6383 >/dev/null 2>conftest.err &&
6384 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6385 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6386 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6387 # icc doesn't choke on unknown options, it will just issue warnings
6388 # or remarks (even with -Werror). So we grep stderr for any message
6389 # that says an option was ignored or not supported.
6390 # When given -MP, icc 7.0 and 7.1 complain thusly:
6391 # icc: Command line warning: ignoring option '-M'; no argument required
6392 # The diagnosis changed in icc 8.0:
6393 # icc: Command line remark: option '-MP' not supported

--- 34 unchanged lines hidden (view full) ---

6428[AC_ARG_ENABLE(dependency-tracking,
6429[ --disable-dependency-tracking speeds up one-time build
6430 --enable-dependency-tracking do not reject slow dependency extractors])
6431if test "x$enable_dependency_tracking" != xno; then
6432 am_depcomp="$ac_aux_dir/depcomp"
6433 AMDEPBACKSLASH='\'
6434fi
6435AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6436AC_SUBST([AMDEPBACKSLASH])
6437])
6438
6439# Generate code to set up dependency tracking. -*- Autoconf -*-
6440
6441# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6442# Free Software Foundation, Inc.
6443#
6444# This file is free software; the Free Software Foundation
6445# gives unlimited permission to copy and/or distribute it,
6446# with or without modifications, as long as this notice is preserved.
6447
6448#serial 3
6449
6450# _AM_OUTPUT_DEPENDENCY_COMMANDS
6451# ------------------------------
6452AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6453[for mf in $CONFIG_FILES; do
6454 # Strip MF so we end up with the name of the file.
6455 mf=`echo "$mf" | sed -e 's/:.*$//'`
6456 # Check whether this is an Automake generated Makefile or not.
6457 # We used to match only the files named `Makefile.in', but
6458 # some people rename them; so instead we look at the file content.
6459 # Grep'ing the first line is not enough: some people post-process
6460 # each Makefile.in and add a new line on top of each file to say so.
6461 # So let's grep whole file.
6462 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6463 dirpart=`AS_DIRNAME("$mf")`
6464 else
6465 continue
6466 fi
6467 # Extract the definition of DEPDIR, am__include, and am__quote
6468 # from the Makefile without running `make'.
6469 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6470 test -z "$DEPDIR" && continue
6471 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6472 test -z "am__include" && continue
6473 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6474 # When using ansi2knr, U may be empty or an underscore; expand it
6475 U=`sed -n 's/^U = //p' < "$mf"`
6476 # Find all dependency output files, they are included files with
6477 # $(DEPDIR) in their names. We invoke sed twice because it is the
6478 # simplest approach to changing $(DEPDIR) to its actual value in the
6479 # expansion.
6480 for file in `sed -n "
6481 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6482 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6483 # Make sure the directory exists.
6484 test -f "$dirpart/$file" && continue
6485 fdir=`AS_DIRNAME(["$file"])`
6486 AS_MKDIR_P([$dirpart/$fdir])
6487 # echo "creating $dirpart/$file"
6488 echo '# dummy' > "$dirpart/$file"
6489 done
6490done
6491])# _AM_OUTPUT_DEPENDENCY_COMMANDS
6492
6493
6494# AM_OUTPUT_DEPENDENCY_COMMANDS
6495# -----------------------------
6496# This macro should only be invoked once -- use via AC_REQUIRE.
6497#
6498# This code is only required when automatic dependency tracking

--- 14 unchanged lines hidden (view full) ---

6513
6514# serial 8
6515
6516# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
6517AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6518
6519# Do all the work for Automake. -*- Autoconf -*-
6520
6521# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6522# Free Software Foundation, Inc.
6523#
6524# This file is free software; the Free Software Foundation
6525# gives unlimited permission to copy and/or distribute it,
6526# with or without modifications, as long as this notice is preserved.
6527
6528# serial 12
6529
6530# This macro actually does too much. Some checks are only needed if
6531# your package does certain things. But this isn't really a big deal.
6532
6533# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6534# AM_INIT_AUTOMAKE([OPTIONS])
6535# -----------------------------------------------
6536# The call with PACKAGE and VERSION arguments is the old style
6537# call (pre autoconf-2.50), which is being phased out. PACKAGE
6538# and VERSION should now be passed to AC_INIT and removed from
6539# the call to AM_INIT_AUTOMAKE.
6540# We support both call styles for the transition. After
6541# the next Automake release, Autoconf can make the AC_INIT
6542# arguments mandatory, and then we can depend on a new Autoconf
6543# release and drop the old call support.
6544AC_DEFUN([AM_INIT_AUTOMAKE],
6545[AC_PREREQ([2.58])dnl
6546dnl Autoconf wants to disallow AM_ names. We explicitly allow
6547dnl the ones we care about.
6548m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6549AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6550AC_REQUIRE([AC_PROG_INSTALL])dnl
6551# test to see if srcdir already configured
6552if test "`cd $srcdir && pwd`" != "`pwd`" &&
6553 test -f $srcdir/config.status; then
6554 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6555fi
6556
6557# test whether we have cygpath
6558if test -z "$CYGPATH_W"; then
6559 if (cygpath --version) >/dev/null 2>/dev/null; then
6560 CYGPATH_W='cygpath -w'
6561 else
6562 CYGPATH_W=echo
6563 fi
6564fi
6565AC_SUBST([CYGPATH_W])
6566
6567# Define the identity of the package.
6568dnl Distinguish between old-style and new-style calls.
6569m4_ifval([$2],
6570[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
6571 AC_SUBST([PACKAGE], [$1])dnl
6572 AC_SUBST([VERSION], [$2])],
6573[_AM_SET_OPTIONS([$1])dnl
6574 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6575 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6576
6577_AM_IF_OPTION([no-define],,
6578[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
6579 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
6580
6581# Some tools Automake needs.
6582AC_REQUIRE([AM_SANITY_CHECK])dnl
6583AC_REQUIRE([AC_ARG_PROGRAM])dnl
6584AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
6585AM_MISSING_PROG(AUTOCONF, autoconf)
6586AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6587AM_MISSING_PROG(AUTOHEADER, autoheader)
6588AM_MISSING_PROG(MAKEINFO, makeinfo)
6589AM_PROG_INSTALL_SH
6590AM_PROG_INSTALL_STRIP
6591AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6592# We need awk for the "check" target. The system "awk" is bad on
6593# some platforms.
6594AC_REQUIRE([AC_PROG_AWK])dnl
6595AC_REQUIRE([AC_PROG_MAKE_SET])dnl
6596AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6597_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
6598 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
6599 [_AM_PROG_TAR([v7])])])
6600_AM_IF_OPTION([no-dependencies],,
6601[AC_PROVIDE_IFELSE([AC_PROG_CC],
6602 [_AM_DEPENDENCIES(CC)],
6603 [define([AC_PROG_CC],
6604 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
6605AC_PROVIDE_IFELSE([AC_PROG_CXX],
6606 [_AM_DEPENDENCIES(CXX)],
6607 [define([AC_PROG_CXX],
6608 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
6609])
6610])
6611
6612
6613# When config.status generates a header, we must update the stamp-h file.
6614# This file resides in the same directory as the config header
6615# that is generated. The stamp files are numbered to have different names.
6616
6617# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
6618# loop where config.status creates the headers, so we can generate
6619# our stamp files there.
6620AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
6621[# Compute $1's index in $config_headers.
6622_am_stamp_count=1
6623for _am_header in $config_headers :; do
6624 case $_am_header in
6625 $1 | $1:* )
6626 break ;;
6627 * )
6628 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6629 esac
6630done
6631echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
6632
6633# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6634#
6635# This file is free software; the Free Software Foundation
6636# gives unlimited permission to copy and/or distribute it,
6637# with or without modifications, as long as this notice is preserved.
6638
6639# AM_PROG_INSTALL_SH
6640# ------------------
6641# Define $install_sh.
6642AC_DEFUN([AM_PROG_INSTALL_SH],
6643[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6644install_sh=${install_sh-"$am_aux_dir/install-sh"}
6645AC_SUBST(install_sh)])
6646
6647# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
6648#
6649# This file is free software; the Free Software Foundation
6650# gives unlimited permission to copy and/or distribute it,
6651# with or without modifications, as long as this notice is preserved.
6652

--- 9 unchanged lines hidden (view full) ---

6662else
6663 am__leading_dot=_
6664fi
6665rmdir .tst 2>/dev/null
6666AC_SUBST([am__leading_dot])])
6667
6668# Check to see how 'make' treats includes. -*- Autoconf -*-
6669
6670# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
6671#
6672# This file is free software; the Free Software Foundation
6673# gives unlimited permission to copy and/or distribute it,
6674# with or without modifications, as long as this notice is preserved.
6675
6676# serial 3
6677
6678# AM_MAKE_INCLUDE()
6679# -----------------
6680# Check to see how make treats includes.
6681AC_DEFUN([AM_MAKE_INCLUDE],
6682[am_make=${MAKE-make}
6683cat > confinc << 'END'
6684am__doit:
6685 @echo done
6686.PHONY: am__doit
6687END
6688# If we don't find an include directive, just comment out the code.
6689AC_MSG_CHECKING([for style of include used by $am_make])
6690am__include="#"
6691am__quote=
6692_am_result=none
6693# First try GNU make style include.
6694echo "include confinc" > confmf
6695# We grep out `Entering directory' and `Leaving directory'
6696# messages which can occur if `w' ends up in MAKEFLAGS.
6697# In particular we don't look at `^make:' because GNU make might
6698# be invoked under some other name (usually "gmake"), in which
6699# case it prints its new name instead of `make'.
6700if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6701 am__include=include
6702 am__quote=
6703 _am_result=GNU
6704fi
6705# Now try BSD make style include.
6706if test "$am__include" = "#"; then
6707 echo '.include "confinc"' > confmf
6708 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6709 am__include=.include
6710 am__quote="\""
6711 _am_result=BSD
6712 fi
6713fi
6714AC_SUBST([am__include])
6715AC_SUBST([am__quote])
6716AC_MSG_RESULT([$_am_result])
6717rm -f confinc confmf
6718])
6719
6720# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
6721
6722# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
6723# Free Software Foundation, Inc.
6724#
6725# This file is free software; the Free Software Foundation
6726# gives unlimited permission to copy and/or distribute it,
6727# with or without modifications, as long as this notice is preserved.
6728
6729# serial 4
6730
6731# AM_MISSING_PROG(NAME, PROGRAM)
6732# ------------------------------
6733AC_DEFUN([AM_MISSING_PROG],
6734[AC_REQUIRE([AM_MISSING_HAS_RUN])
6735$1=${$1-"${am_missing_run}$2"}
6736AC_SUBST($1)])
6737
6738
6739# AM_MISSING_HAS_RUN
6740# ------------------
6741# Define MISSING if not defined so far and test if it supports --run.
6742# If it does, set am_missing_run to use it, otherwise, to nothing.
6743AC_DEFUN([AM_MISSING_HAS_RUN],
6744[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6745test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6746# Use eval to expand $SHELL
6747if eval "$MISSING --run true"; then
6748 am_missing_run="$MISSING --run "
6749else
6750 am_missing_run=
6751 AC_MSG_WARN([`missing' script is too old or missing])
6752fi
6753])
6754
6755# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
6756#
6757# This file is free software; the Free Software Foundation
6758# gives unlimited permission to copy and/or distribute it,
6759# with or without modifications, as long as this notice is preserved.
6760
6761# AM_PROG_MKDIR_P
6762# ---------------
6763# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
6764#
6765# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
6766# created by `make install' are always world readable, even if the
6767# installer happens to have an overly restrictive umask (e.g. 077).
6768# This was a mistake. There are at least two reasons why we must not
6769# use `-m 0755':
6770# - it causes special bits like SGID to be ignored,
6771# - it may be too restrictive (some setups expect 775 directories).
6772#
6773# Do not use -m 0755 and let people choose whatever they expect by
6774# setting umask.
6775#
6776# We cannot accept any implementation of `mkdir' that recognizes `-p'.
6777# Some implementations (such as Solaris 8's) are not thread-safe: if a
6778# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
6779# concurrently, both version can detect that a/ is missing, but only
6780# one can create it and the other will error out. Consequently we
6781# restrict ourselves to GNU make (using the --version option ensures
6782# this.)
6783AC_DEFUN([AM_PROG_MKDIR_P],
6784[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6785 # We used to keeping the `.' as first argument, in order to
6786 # allow $(mkdir_p) to be used without argument. As in
6787 # $(mkdir_p) $(somedir)
6788 # where $(somedir) is conditionally defined. However this is wrong
6789 # for two reasons:
6790 # 1. if the package is installed by a user who cannot write `.'
6791 # make install will fail,
6792 # 2. the above comment should most certainly read
6793 # $(mkdir_p) $(DESTDIR)$(somedir)
6794 # so it does not work when $(somedir) is undefined and
6795 # $(DESTDIR) is not.
6796 # To support the latter case, we have to write
6797 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6798 # so the `.' trick is pointless.
6799 mkdir_p='mkdir -p --'
6800else
6801 # On NextStep and OpenStep, the `mkdir' command does not
6802 # recognize any option. It will interpret all options as
6803 # directories to create, and then abort because `.' already
6804 # exists.
6805 for d in ./-p ./--version;
6806 do
6807 test -d $d && rmdir $d
6808 done
6809 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6810 if test -f "$ac_aux_dir/mkinstalldirs"; then
6811 mkdir_p='$(mkinstalldirs)'
6812 else
6813 mkdir_p='$(install_sh) -d'
6814 fi
6815fi
6816AC_SUBST([mkdir_p])])
6817
6818# Helper functions for option handling. -*- Autoconf -*-
6819
6820# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
6821#
6822# This file is free software; the Free Software Foundation
6823# gives unlimited permission to copy and/or distribute it,
6824# with or without modifications, as long as this notice is preserved.
6825
6826# serial 3
6827
6828# _AM_MANGLE_OPTION(NAME)
6829# -----------------------
6830AC_DEFUN([_AM_MANGLE_OPTION],
6831[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
6832
6833# _AM_SET_OPTION(NAME)
6834# ------------------------------
6835# Set option NAME. Presently that only means defining a flag for this option.
6836AC_DEFUN([_AM_SET_OPTION],
6837[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
6838
6839# _AM_SET_OPTIONS(OPTIONS)
6840# ----------------------------------
6841# OPTIONS is a space-separated list of Automake options.
6842AC_DEFUN([_AM_SET_OPTIONS],
6843[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
6844
6845# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
6846# -------------------------------------------
6847# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
6848AC_DEFUN([_AM_IF_OPTION],
6849[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
6850
6851# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005
6852# Free Software Foundation, Inc.
6853#
6854# This file is free software; the Free Software Foundation
6855# gives unlimited permission to copy and/or distribute it,
6856# with or without modifications, as long as this notice is preserved.
6857
6858# serial 4
6859
6860AC_DEFUN([AM_C_PROTOTYPES],
6861[AC_REQUIRE([AC_C_PROTOTYPES])
6862if test "$ac_cv_prog_cc_stdc" != no; then
6863 U= ANSI2KNR=
6864else
6865 U=_ ANSI2KNR=./ansi2knr
6866fi
6867# Ensure some checks needed by ansi2knr itself.
6868AC_REQUIRE([AC_HEADER_STDC])
6869AC_CHECK_HEADERS(string.h)
6870AC_SUBST(U)dnl
6871AC_SUBST(ANSI2KNR)dnl
6872])
6873
6874AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
6875
6876# Check to make sure that the build environment is sane. -*- Autoconf -*-
6877
6878# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
6879# Free Software Foundation, Inc.
6880#
6881# This file is free software; the Free Software Foundation
6882# gives unlimited permission to copy and/or distribute it,
6883# with or without modifications, as long as this notice is preserved.
6884
6885# serial 4
6886
6887# AM_SANITY_CHECK
6888# ---------------
6889AC_DEFUN([AM_SANITY_CHECK],
6890[AC_MSG_CHECKING([whether build environment is sane])
6891# Just in case
6892sleep 1
6893echo timestamp > conftest.file
6894# Do `set' in a subshell so we don't clobber the current shell's
6895# arguments. Must try -L first in case configure is actually a
6896# symlink; some systems play weird games with the mod time of symlinks
6897# (eg FreeBSD returns the mod time of the symlink's containing
6898# directory).
6899if (
6900 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6901 if test "$[*]" = "X"; then
6902 # -L didn't work.
6903 set X `ls -t $srcdir/configure conftest.file`
6904 fi
6905 rm -f conftest.file
6906 if test "$[*]" != "X $srcdir/configure conftest.file" \
6907 && test "$[*]" != "X conftest.file $srcdir/configure"; then
6908
6909 # If neither matched, then we have a broken ls. This can happen
6910 # if, for instance, CONFIG_SHELL is bash and it inherits a
6911 # broken ls alias from the environment. This has actually

--- 33 unchanged lines hidden (view full) ---

6945# Installed binaries are usually stripped using `strip' when the user
6946# run `make install-strip'. However `strip' might not be the right
6947# tool to use in cross-compilation environments, therefore Automake
6948# will honor the `STRIP' environment variable to overrule this program.
6949dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
6950if test "$cross_compiling" != no; then
6951 AC_CHECK_TOOL([STRIP], [strip], :)
6952fi
6953INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6954AC_SUBST([INSTALL_STRIP_PROGRAM])])
6955
6956# Check how to create a tarball. -*- Autoconf -*-
6957
6958# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
6959#
6960# This file is free software; the Free Software Foundation
6961# gives unlimited permission to copy and/or distribute it,
6962# with or without modifications, as long as this notice is preserved.
6963

--- 92 unchanged lines hidden ---