9114
9132
# gives unlimited permission to copy and/or distribute it,
9115
9133
# with or without modifications, as long as this notice is preserved.
9119
9137
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9120
9138
# ------------------------------
9121
9139
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9122
[# Autoconf 2.62 quotes --file arguments for eval, but not when files
9123
# are listed without --file. Let's play safe and only enable the eval
9124
# if we detect the quoting.
9125
case $CONFIG_FILES in
9126
*\'*) eval set x "$CONFIG_FILES" ;;
9127
*) set x $CONFIG_FILES ;;
9132
# Strip MF so we end up with the name of the file.
9133
mf=`echo "$mf" | sed -e 's/:.*$//'`
9134
# Check whether this is an Automake generated Makefile or not.
9135
# We used to match only the files named `Makefile.in', but
9136
# some people rename them; so instead we look at the file content.
9137
# Grep'ing the first line is not enough: some people post-process
9138
# each Makefile.in and add a new line on top of each file to say so.
9139
# Grep'ing the whole file is not good either: AIX grep has a line
9140
# limit of 2048, but all sed's we know have understand at least 4000.
9141
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9142
dirpart=`AS_DIRNAME("$mf")`
9146
# Extract the definition of DEPDIR, am__include, and am__quote
9147
# from the Makefile without running `make'.
9148
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9149
test -z "$DEPDIR" && continue
9150
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9151
test -z "am__include" && continue
9152
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9153
# When using ansi2knr, U may be empty or an underscore; expand it
9154
U=`sed -n 's/^U = //p' < "$mf"`
9155
# Find all dependency output files, they are included files with
9156
# $(DEPDIR) in their names. We invoke sed twice because it is the
9157
# simplest approach to changing $(DEPDIR) to its actual value in the
9159
for file in `sed -n "
9160
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9161
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9162
# Make sure the directory exists.
9163
test -f "$dirpart/$file" && continue
9164
fdir=`AS_DIRNAME(["$file"])`
9165
AS_MKDIR_P([$dirpart/$fdir])
9166
# echo "creating $dirpart/$file"
9167
echo '# dummy' > "$dirpart/$file"
9141
# Autoconf 2.62 quotes --file arguments for eval, but not when files
9142
# are listed without --file. Let's play safe and only enable the eval
9143
# if we detect the quoting.
9144
case $CONFIG_FILES in
9145
*\'*) eval set x "$CONFIG_FILES" ;;
9146
*) set x $CONFIG_FILES ;;
9151
# Strip MF so we end up with the name of the file.
9152
mf=`echo "$mf" | sed -e 's/:.*$//'`
9153
# Check whether this is an Automake generated Makefile or not.
9154
# We used to match only the files named `Makefile.in', but
9155
# some people rename them; so instead we look at the file content.
9156
# Grep'ing the first line is not enough: some people post-process
9157
# each Makefile.in and add a new line on top of each file to say so.
9158
# Grep'ing the whole file is not good either: AIX grep has a line
9159
# limit of 2048, but all sed's we know have understand at least 4000.
9160
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9161
dirpart=`AS_DIRNAME("$mf")`
9165
# Extract the definition of DEPDIR, am__include, and am__quote
9166
# from the Makefile without running `make'.
9167
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9168
test -z "$DEPDIR" && continue
9169
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9170
test -z "am__include" && continue
9171
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9172
# When using ansi2knr, U may be empty or an underscore; expand it
9173
U=`sed -n 's/^U = //p' < "$mf"`
9174
# Find all dependency output files, they are included files with
9175
# $(DEPDIR) in their names. We invoke sed twice because it is the
9176
# simplest approach to changing $(DEPDIR) to its actual value in the
9178
for file in `sed -n "
9179
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9180
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9181
# Make sure the directory exists.
9182
test -f "$dirpart/$file" && continue
9183
fdir=`AS_DIRNAME(["$file"])`
9184
AS_MKDIR_P([$dirpart/$fdir])
9185
# echo "creating $dirpart/$file"
9186
echo '# dummy' > "$dirpart/$file"
9170
9190
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9652
9672
dnl doesn't work.
9653
9673
AC_CACHE_CHECK([for $am_display_PYTHON script directory],
9654
9674
[am_cv_python_pythondir],
9655
[am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
9656
echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
9675
[if test "x$prefix" = xNONE
9677
am_py_prefix=$ac_default_prefix
9679
am_py_prefix=$prefix
9681
am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
9682
echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
9683
case $am_cv_python_pythondir in
9685
am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
9686
am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
9657
9690
AC_SUBST([pythondir], [$am_cv_python_pythondir])
9659
9692
dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
9669
9702
dnl doesn't work.
9670
9703
AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
9671
9704
[am_cv_python_pyexecdir],
9672
[am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
9673
echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
9705
[if test "x$exec_prefix" = xNONE
9707
am_py_exec_prefix=$am_py_prefix
9709
am_py_exec_prefix=$exec_prefix
9711
am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
9712
echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
9713
case $am_cv_python_pyexecdir in
9714
$am_py_exec_prefix*)
9715
am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
9716
am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
9674
9720
AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
9676
9722
dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
9702
9748
sys.exit(sys.hexversion < minverhex)"
9703
9749
AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
9751
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9753
# This file is free software; the Free Software Foundation
9754
# gives unlimited permission to copy and/or distribute it,
9755
# with or without modifications, as long as this notice is preserved.
9757
# AM_RUN_LOG(COMMAND)
9758
# -------------------
9759
# Run COMMAND, save the exit status in ac_status, and log it.
9760
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
9761
AC_DEFUN([AM_RUN_LOG],
9762
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
9763
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
9765
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
9766
(exit $ac_status); }])
9705
9768
# Check to make sure that the build environment is sane. -*- Autoconf -*-
9707
9770
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005