1407
1420
--disable-option-checking ignore unrecognized --enable/--with options
1408
1421
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409
1422
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1410
--disable-dependency-tracking speeds up one-time build
1411
--enable-dependency-tracking do not reject slow dependency extractors
1423
--enable-silent-rules less verbose build output (undo: "make V=1")
1424
--disable-silent-rules verbose build output (undo: "make V=0")
1425
--enable-dependency-tracking
1426
do not reject slow dependency extractors
1427
--disable-dependency-tracking
1428
speeds up one-time build
1412
1429
--enable-ttf-font-dir=DIR
1413
1430
directory containing GNU FreeFont TTF fonts
1455
1472
PCRE_LIBS linker flags for PCRE, overriding pkg-config
1456
1473
GLEW_CFLAGS C compiler flags for GLEW, overriding pkg-config
1457
1474
GLEW_LIBS linker flags for GLEW, overriding pkg-config
1475
SDL2_CFLAGS C compiler flags for SDL2, overriding pkg-config
1476
SDL2_LIBS linker flags for SDL2, overriding pkg-config
1458
1477
SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1459
1478
SDL_LIBS linker flags for SDL, overriding pkg-config
1479
PNG_CFLAGS C compiler flags for PNG, overriding pkg-config
1480
PNG_LIBS linker flags for PNG, overriding pkg-config
1461
1482
Use these variables to override the choices made by `configure' or to help
1462
1483
it to find libraries and programs with nonstandard names/locations.
2626
2643
case $srcdir in
2627
2644
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2628
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2645
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2631
# Do `set' in a subshell so we don't clobber the current shell's
2648
# Do 'set' in a subshell so we don't clobber the current shell's
2632
2649
# arguments. Must try -L first in case configure is actually a
2633
2650
# symlink; some systems play weird games with the mod time of symlinks
2634
2651
# (eg FreeBSD returns the mod time of the symlink's containing
2637
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2638
if test "$*" = "X"; then
2640
set X `ls -t "$srcdir/configure" conftest.file`
2643
if test "$*" != "X $srcdir/configure conftest.file" \
2644
&& test "$*" != "X conftest.file $srcdir/configure"; then
2646
# If neither matched, then we have a broken ls. This can happen
2647
# if, for instance, CONFIG_SHELL is bash and it inherits a
2648
# broken ls alias from the environment. This has actually
2649
# happened. Such a system could not be considered "sane".
2650
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2651
alias in your environment" "$LINENO" 5
2655
for am_try in 1 2; do
2656
echo "timestamp, slept: $am_has_slept" > conftest.file
2657
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2658
if test "$*" = "X"; then
2660
set X `ls -t "$srcdir/configure" conftest.file`
2662
if test "$*" != "X $srcdir/configure conftest.file" \
2663
&& test "$*" != "X conftest.file $srcdir/configure"; then
2665
# If neither matched, then we have a broken ls. This can happen
2666
# if, for instance, CONFIG_SHELL is bash and it inherits a
2667
# broken ls alias from the environment. This has actually
2668
# happened. Such a system could not be considered "sane".
2669
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2670
alias in your environment" "$LINENO" 5
2672
if test "$2" = conftest.file || test $am_try -eq 2; then
2654
2679
test "$2" = conftest.file
2686
2721
# Use eval to expand $SHELL
2687
if eval "$MISSING --run true"; then
2688
am_missing_run="$MISSING --run "
2722
if eval "$MISSING --is-lightweight"; then
2723
am_missing_run="$MISSING "
2690
2725
am_missing_run=
2691
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2692
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2726
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2727
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2695
2730
if test x"${install_sh}" != xset; then
2704
# Installed binaries are usually stripped using `strip' when the user
2705
# run `make install-strip'. However `strip' might not be the right
2739
# Installed binaries are usually stripped using 'strip' when the user
2740
# run "make install-strip". However 'strip' might not be the right
2706
2741
# tool to use in cross-compilation environments, therefore Automake
2707
# will honor the `STRIP' environment variable to overrule this program.
2742
# will honor the 'STRIP' environment variable to overrule this program.
2708
2743
if test "$cross_compiling" != no; then
2709
2744
if test -n "$ac_tool_prefix"; then
2710
2745
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2932
2961
rmdir .tst 2>/dev/null
2963
# Check whether --enable-silent-rules was given.
2964
if test "${enable_silent_rules+set}" = set; then :
2965
enableval=$enable_silent_rules;
2968
case $enable_silent_rules in # (((
2969
yes) AM_DEFAULT_VERBOSITY=0;;
2970
no) AM_DEFAULT_VERBOSITY=1;;
2971
*) AM_DEFAULT_VERBOSITY=1;;
2973
am_make=${MAKE-make}
2974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2975
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2976
if ${am_cv_make_support_nested_variables+:} false; then :
2977
$as_echo_n "(cached) " >&6
2979
if $as_echo 'TRUE=$(BAR$(V))
2985
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2986
am_cv_make_support_nested_variables=yes
2988
am_cv_make_support_nested_variables=no
2991
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2992
$as_echo "$am_cv_make_support_nested_variables" >&6; }
2993
if test $am_cv_make_support_nested_variables = yes; then
2995
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2997
AM_V=$AM_DEFAULT_VERBOSITY
2998
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2934
3002
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2935
3003
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2936
3004
# is not polluted with repeated "-I."
2982
3050
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3052
# For better backward compatibility. To be removed once Automake 1.9.x
3053
# dies out for good. For more background, see:
3054
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3055
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3056
mkdir_p='$(MKDIR_P)'
2984
3058
# We need awk for the "check" target. The system "awk" is bad on
2985
3059
# some platforms.
2986
3060
# Always define AMTAR for backward compatibility. Yes, it's still used
2987
3061
# in the wild :-( We should find a proper way to deprecate it ...
2988
3062
AMTAR='$${TAR-tar}'
3065
# We'll loop over all known methods to create a tar archive until one works.
3066
_am_tools='gnutar pax cpio none'
2990
3068
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3075
# POSIX will say in a future version that running "rm -f" with no argument
3076
# is OK; and we want to be able to make that assumption in our Makefile
3077
# recipes. So use an aggressive probe to check that the usage we want is
3078
# actually supported "in the wild" to an acceptable degree.
3079
# See automake bug#10828.
3080
# To make any issue more visible, cause the running configure to be aborted
3081
# by default if the 'rm' program in use doesn't match our expectations; the
3082
# user can still override this though.
3083
if rm -f && rm -fr && rm -rf; then : OK; else
3087
Your 'rm' program seems unable to run without file operands specified
3088
on the command line, even when the '-f' option is present. This is contrary
3089
to the behaviour of most rm programs out there, and not conforming with
3090
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3092
Please tell bug-automake@gnu.org about your system, including the value
3093
of your $PATH and any error possibly output before this message. This
3094
can help us improve future automake versions.
3097
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3098
echo 'Configuration will proceed anyway, since you have set the' >&2
3099
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3103
Aborting the configuration process, to ensure you take notice of the issue.
3105
You can download and install GNU coreutils to get an 'rm' implementation
3106
that behaves properly: <http://www.gnu.org/software/coreutils/>.
3108
If you want to complete the configuration process using your problematic
3109
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3110
to "yes", and re-run configure.
3113
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2997
3118
# Make sure we can run config.sub.
2998
3119
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2999
3120
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3684
3805
: > sub/conftest.c
3685
3806
for i in 1 2 3 4 5 6; do
3686
3807
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3687
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3688
# Solaris 8's {/usr,}/bin/sh.
3689
touch sub/conftst$i.h
3808
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3809
# Solaris 10 /bin/sh.
3810
echo '/* dummy */' > sub/conftst$i.h
3691
3812
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3693
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3814
# We check with '-c' and '-o' for the sake of the "dashmstdout"
3694
3815
# mode. It turns out that the SunPro C++ compiler does not properly
3695
# handle `-M -o', and we need to detect this. Also, some Intel
3696
# versions had trouble with output in subdirs
3816
# handle '-M -o', and we need to detect this. Also, some Intel
3817
# versions had trouble with output in subdirs.
3697
3818
am__obj=sub/conftest.${OBJEXT-o}
3698
3819
am__minus_obj="-o $am__obj"
3699
3820
case $depmode in
3713
3834
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3714
# This compiler won't grok `-c -o', but also, the minuso test has
3835
# This compiler won't grok '-c -o', but also, the minuso test has
3715
3836
# not run yet. These depmodes are late enough in the game, and
3716
3837
# so weak that their functioning should not be impacted.
3717
3838
am__obj=conftest.${OBJEXT-o}
4733
4855
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4734
4856
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859
ac_cpp='$CPP $CPPFLAGS'
4860
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4861
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4862
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4864
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4865
if ${am_cv_prog_cc_c_o+:} false; then :
4866
$as_echo_n "(cached) " >&6
4868
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869
/* end confdefs.h. */
4879
# Make sure it works both with $CC and with simple cc.
4880
# Following AC_PROG_CC_C_O, we do the test twice because some
4881
# compilers refuse to overwrite an existing .o file with -o,
4882
# though they will create one.
4883
am_cv_prog_cc_c_o=yes
4885
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4886
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889
(exit $ac_status); } \
4890
&& test -f conftest2.$ac_objext; then
4893
am_cv_prog_cc_c_o=no
4897
rm -f core conftest*
4900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4901
$as_echo "$am_cv_prog_cc_c_o" >&6; }
4902
if test "$am_cv_prog_cc_c_o" != yes; then
4903
# Losing compiler, so override with the script.
4904
# FIXME: It is wrong to rewrite CC.
4905
# But if we don't then we get into trouble of one sort or another.
4906
# A longer-term fix would be to have automake use am__CC in this case,
4907
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4908
CC="$am_aux_dir/compile $CC"
4911
ac_cpp='$CPP $CPPFLAGS'
4912
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4736
4917
depcc="$CC" am_compiler_list=
4738
4919
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4780
4961
: > sub/conftest.c
4781
4962
for i in 1 2 3 4 5 6; do
4782
4963
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4783
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4784
# Solaris 8's {/usr,}/bin/sh.
4785
touch sub/conftst$i.h
4964
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4965
# Solaris 10 /bin/sh.
4966
echo '/* dummy */' > sub/conftst$i.h
4787
4968
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4789
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4970
# We check with '-c' and '-o' for the sake of the "dashmstdout"
4790
4971
# mode. It turns out that the SunPro C++ compiler does not properly
4791
# handle `-M -o', and we need to detect this. Also, some Intel
4792
# versions had trouble with output in subdirs
4972
# handle '-M -o', and we need to detect this. Also, some Intel
4973
# versions had trouble with output in subdirs.
4793
4974
am__obj=sub/conftest.${OBJEXT-o}
4794
4975
am__minus_obj="-o $am__obj"
4795
4976
case $depmode in
4809
4990
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4810
# This compiler won't grok `-c -o', but also, the minuso test has
4991
# This compiler won't grok '-c -o', but also, the minuso test has
4811
4992
# not run yet. These depmodes are late enough in the game, and
4812
4993
# so weak that their functioning should not be impacted.
4813
4994
am__obj=conftest.${OBJEXT-o}
6693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL2" >&5
6694
$as_echo_n "checking for SDL2... " >&6; }
6696
if test -n "$PKG_CONFIG"; then
6697
if test -n "$SDL2_CFLAGS"; then
6698
pkg_cv_SDL2_CFLAGS="$SDL2_CFLAGS"
6700
if test -n "$PKG_CONFIG" && \
6701
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 SDL2_image\""; } >&5
6702
($PKG_CONFIG --exists --print-errors "sdl2 SDL2_image") 2>&5
6704
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6705
test $ac_status = 0; }; then
6706
pkg_cv_SDL2_CFLAGS=`$PKG_CONFIG --cflags "sdl2 SDL2_image" 2>/dev/null`
6714
if test -n "$PKG_CONFIG"; then
6715
if test -n "$SDL2_LIBS"; then
6716
pkg_cv_SDL2_LIBS="$SDL2_LIBS"
6718
if test -n "$PKG_CONFIG" && \
6719
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 SDL2_image\""; } >&5
6720
($PKG_CONFIG --exists --print-errors "sdl2 SDL2_image") 2>&5
6722
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6723
test $ac_status = 0; }; then
6724
pkg_cv_SDL2_LIBS=`$PKG_CONFIG --libs "sdl2 SDL2_image" 2>/dev/null`
6735
if test $pkg_failed = yes; then
6737
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6738
_pkg_short_errors_supported=yes
6740
_pkg_short_errors_supported=no
6742
if test $_pkg_short_errors_supported = yes; then
6743
SDL2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl2 SDL2_image"`
6745
SDL2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl2 SDL2_image"`
6747
# Put the nasty error message in config.log where it belongs
6748
echo "$SDL2_PKG_ERRORS" >&5
6750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751
$as_echo "no" >&6; }
6753
elif test $pkg_failed = untried; then
6756
SDL2_CFLAGS=$pkg_cv_SDL2_CFLAGS
6757
SDL2_LIBS=$pkg_cv_SDL2_LIBS
6758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6759
$as_echo "yes" >&6; }
6763
# use SDL 2 if available, otherwise use SDL 1.2
6764
if test "x$have_sdl2" = xno; then
6765
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL 2.0 libraries not found. Trying SDL 1.2. Please note SDL 1.2 support is deprecated" >&5
6766
$as_echo "$as_me: WARNING: SDL 2.0 libraries not found. Trying SDL 1.2. Please note SDL 1.2 support is deprecated" >&2;}
6511
6769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
6512
6770
$as_echo_n "checking for SDL... " >&6; }
6596
6854
$as_echo "yes" >&6; }
6600
CPPFLAGS="${CPPFLAGS} ${FT2_CFLAGS} ${PCRE_CFLAGS} ${GLEW_CFLAGS} ${SDL_CFLAGS}"
6601
LIBS="${LIBS} ${FT2_LIBS} ${PCRE_LIBS} ${GLEW_LIBS} ${SDL_LIBS}"
6861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
6862
$as_echo_n "checking for PNG... " >&6; }
6864
if test -n "$PKG_CONFIG"; then
6865
if test -n "$PNG_CFLAGS"; then
6866
pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
6868
if test -n "$PKG_CONFIG" && \
6869
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2\""; } >&5
6870
($PKG_CONFIG --exists --print-errors "libpng >= 1.2") 2>&5
6872
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6873
test $ac_status = 0; }; then
6874
pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.2" 2>/dev/null`
6882
if test -n "$PKG_CONFIG"; then
6883
if test -n "$PNG_LIBS"; then
6884
pkg_cv_PNG_LIBS="$PNG_LIBS"
6886
if test -n "$PKG_CONFIG" && \
6887
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2\""; } >&5
6888
($PKG_CONFIG --exists --print-errors "libpng >= 1.2") 2>&5
6890
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6891
test $ac_status = 0; }; then
6892
pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.2" 2>/dev/null`
6903
if test $pkg_failed = yes; then
6905
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6906
_pkg_short_errors_supported=yes
6908
_pkg_short_errors_supported=no
6910
if test $_pkg_short_errors_supported = yes; then
6911
PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng >= 1.2"`
6913
PNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng >= 1.2"`
6915
# Put the nasty error message in config.log where it belongs
6916
echo "$PNG_PKG_ERRORS" >&5
6918
as_fn_error $? "Package requirements (libpng >= 1.2) were not met:
6922
Consider adjusting the PKG_CONFIG_PATH environment variable if you
6923
installed software in a non-standard prefix.
6925
Alternatively, you may set the environment variables PNG_CFLAGS
6926
and PNG_LIBS to avoid the need to call pkg-config.
6927
See the pkg-config man page for more details.
6929
elif test $pkg_failed = untried; then
6930
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6931
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6932
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6933
is in your PATH or set the PKG_CONFIG environment variable to the full
6936
Alternatively, you may set the environment variables PNG_CFLAGS
6937
and PNG_LIBS to avoid the need to call pkg-config.
6938
See the pkg-config man page for more details.
6940
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6941
See \`config.log' for more details" "$LINENO" 5; }
6943
PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
6944
PNG_LIBS=$pkg_cv_PNG_LIBS
6945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6946
$as_echo "yes" >&6; }
6950
CPPFLAGS="${CPPFLAGS} ${FT2_CFLAGS} ${PCRE_CFLAGS} ${GLEW_CFLAGS} ${SDL2_CFLAGS} ${SDL_CFLAGS} ${PNG_CFLAGS}"
6951
LIBS="${LIBS} ${FT2_LIBS} ${PCRE_LIBS} ${GLEW_LIBS} ${SDL2_LIBS} ${SDL_LIBS} ${PNG_LIBS}"
6603
6953
for ac_func in IMG_LoadPNG_RW
8659
9017
# Strip MF so we end up with the name of the file.
8660
9018
mf=`echo "$mf" | sed -e 's/:.*$//'`
8661
9019
# Check whether this is an Automake generated Makefile or not.
8662
# We used to match only the files named `Makefile.in', but
9020
# We used to match only the files named 'Makefile.in', but
8663
9021
# some people rename them; so instead we look at the file content.
8664
9022
# Grep'ing the first line is not enough: some people post-process
8665
9023
# each Makefile.in and add a new line on top of each file to say so.
8695
9053
# Extract the definition of DEPDIR, am__include, and am__quote
8696
# from the Makefile without running `make'.
9054
# from the Makefile without running 'make'.
8697
9055
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8698
9056
test -z "$DEPDIR" && continue
8699
9057
am__include=`sed -n 's/^am__include = //p' < "$mf"`
8700
test -z "am__include" && continue
9058
test -z "$am__include" && continue
8701
9059
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8702
# When using ansi2knr, U may be empty or an underscore; expand it
8703
U=`sed -n 's/^U = //p' < "$mf"`
8704
9060
# Find all dependency output files, they are included files with
8705
9061
# $(DEPDIR) in their names. We invoke sed twice because it is the
8706
9062
# simplest approach to changing $(DEPDIR) to its actual value in the
8708
9064
for file in `sed -n "
8709
9065
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8710
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9066
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8711
9067
# Make sure the directory exists.
8712
9068
test -f "$dirpart/$file" && continue
8713
9069
fdir=`$as_dirname -- "$file" ||