882
890
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
883
891
ac_top_srcdir=$ac_top_builddir$srcdir ;;
885
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
887
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
888
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
889
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
890
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
894
# Do not use `cd foo && pwd` to compute absolute paths, because
895
# the directories may not exist.
897
.) ac_abs_builddir="$ac_dir";;
900
.) ac_abs_builddir=`pwd`;;
901
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
902
*) ac_abs_builddir=`pwd`/"$ac_dir";;
905
case $ac_abs_builddir in
906
.) ac_abs_top_builddir=${ac_top_builddir}.;;
908
case ${ac_top_builddir}. in
909
.) ac_abs_top_builddir=$ac_abs_builddir;;
910
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
911
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
914
case $ac_abs_builddir in
915
.) ac_abs_srcdir=$ac_srcdir;;
918
.) ac_abs_srcdir=$ac_abs_builddir;;
919
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
920
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
923
case $ac_abs_builddir in
924
.) ac_abs_top_srcdir=$ac_top_srcdir;;
926
case $ac_top_srcdir in
927
.) ac_abs_top_srcdir=$ac_abs_builddir;;
928
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
929
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
893
934
# Check for guested configure; otherwise get Cygnus style configure.
1509
1550
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1553
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1554
# We used to keeping the `.' as first argument, in order to
1555
# allow $(mkdir_p) to be used without argument. As in
1556
# $(mkdir_p) $(somedir)
1557
# where $(somedir) is conditionally defined. However this is wrong
1559
# 1. if the package is installed by a user who cannot write `.'
1560
# make install will fail,
1561
# 2. the above comment should most certainly read
1562
# $(mkdir_p) $(DESTDIR)$(somedir)
1563
# so it does not work when $(somedir) is undefined and
1564
# $(DESTDIR) is not.
1565
# To support the latter case, we have to write
1566
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1567
# so the `.' trick is pointless.
1568
mkdir_p='mkdir -p --'
1570
# On NextStep and OpenStep, the `mkdir' command does not
1571
# recognize any option. It will interpret all options as
1572
# directories to create, and then abort because `.' already
1574
for d in ./-p ./--version;
1576
test -d $d && rmdir $d
1578
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1579
if test -f "$ac_aux_dir/mkinstalldirs"; then
1580
mkdir_p='$(mkinstalldirs)'
1582
mkdir_p='$(install_sh) -d'
1512
1586
for ac_prog in gawk mawk nawk awk
1514
1588
# Extract the first word of "$ac_prog", so it can be a program name with args.
2686
2821
# using a relative directory.
2687
2822
cp "$am_depcomp" conftest.dir
2688
2823
cd conftest.dir
2824
# We will build objects and dependencies in a subdirectory because
2825
# it helps to detect inapplicable dependency modes. For instance
2826
# both Tru64's cc and ICC support -MD to output dependencies as a
2827
# side effect of compilation, but ICC will put the dependencies in
2828
# the current directory while Tru64 will put them in the object
2690
2832
am_cv_CC_dependencies_compiler_type=none
2691
2833
if test "$am_compiler_list" = ""; then
2692
2834
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2694
2836
for depmode in $am_compiler_list; do
2837
# Setup a source with many dependencies, because some compilers
2838
# like to wrap large dependency lists on column 80 (with \), and
2839
# we should not choose a depcomp mode which is confused by this.
2695
2841
# We need to recreate these files for each test, as the compiler may
2696
2842
# overwrite some of them when testing with obscure command lines.
2697
2843
# This happens at least with the AIX C compiler.
2698
echo '#include "conftest.h"' > conftest.c
2699
echo 'int i;' > conftest.h
2700
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2845
for i in 1 2 3 4 5 6; do
2846
echo '#include "conftst'$i'.h"' >> sub/conftest.c
2847
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2848
# Solaris 8's {/usr,}/bin/sh.
2849
touch sub/conftst$i.h
2851
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2702
2853
case $depmode in
2715
2866
# mode. It turns out that the SunPro C++ compiler does not properly
2716
2867
# handle `-M -o', and we need to detect this.
2717
2868
if depmode=$depmode \
2718
source=conftest.c object=conftest.o \
2719
depfile=conftest.Po tmpdepfile=conftest.TPo \
2720
$SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2721
grep conftest.h conftest.Po > /dev/null 2>&1 &&
2869
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2870
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2871
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2872
>/dev/null 2>conftest.err &&
2873
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2874
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2722
2875
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2723
am_cv_CC_dependencies_compiler_type=$depmode
2876
# icc doesn't choke on unknown options, it will just issue warnings
2877
# or remarks (even with -Werror). So we grep stderr for any message
2878
# that says an option was ignored or not supported.
2879
# When given -MP, icc 7.0 and 7.1 complain thusly:
2880
# icc: Command line warning: ignoring option '-M'; no argument required
2881
# The diagnosis changed in icc 8.0:
2882
# icc: Command line remark: option '-MP' not supported
2883
if (grep 'ignoring option' conftest.err ||
2884
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2885
am_cv_CC_dependencies_compiler_type=$depmode
3094
3288
# using a relative directory.
3095
3289
cp "$am_depcomp" conftest.dir
3096
3290
cd conftest.dir
3291
# We will build objects and dependencies in a subdirectory because
3292
# it helps to detect inapplicable dependency modes. For instance
3293
# both Tru64's cc and ICC support -MD to output dependencies as a
3294
# side effect of compilation, but ICC will put the dependencies in
3295
# the current directory while Tru64 will put them in the object
3098
3299
am_cv_CXX_dependencies_compiler_type=none
3099
3300
if test "$am_compiler_list" = ""; then
3100
3301
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3102
3303
for depmode in $am_compiler_list; do
3304
# Setup a source with many dependencies, because some compilers
3305
# like to wrap large dependency lists on column 80 (with \), and
3306
# we should not choose a depcomp mode which is confused by this.
3103
3308
# We need to recreate these files for each test, as the compiler may
3104
3309
# overwrite some of them when testing with obscure command lines.
3105
3310
# This happens at least with the AIX C compiler.
3106
echo '#include "conftest.h"' > conftest.c
3107
echo 'int i;' > conftest.h
3108
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3312
for i in 1 2 3 4 5 6; do
3313
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3314
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3315
# Solaris 8's {/usr,}/bin/sh.
3316
touch sub/conftst$i.h
3318
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3110
3320
case $depmode in
3123
3333
# mode. It turns out that the SunPro C++ compiler does not properly
3124
3334
# handle `-M -o', and we need to detect this.
3125
3335
if depmode=$depmode \
3126
source=conftest.c object=conftest.o \
3127
depfile=conftest.Po tmpdepfile=conftest.TPo \
3128
$SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
3129
grep conftest.h conftest.Po > /dev/null 2>&1 &&
3336
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3337
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3338
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3339
>/dev/null 2>conftest.err &&
3340
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3341
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3130
3342
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3131
am_cv_CXX_dependencies_compiler_type=$depmode
3343
# icc doesn't choke on unknown options, it will just issue warnings
3344
# or remarks (even with -Werror). So we grep stderr for any message
3345
# that says an option was ignored or not supported.
3346
# When given -MP, icc 7.0 and 7.1 complain thusly:
3347
# icc: Command line warning: ignoring option '-M'; no argument required
3348
# The diagnosis changed in icc 8.0:
3349
# icc: Command line remark: option '-MP' not supported
3350
if (grep 'ignoring option' conftest.err ||
3351
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3352
am_cv_CXX_dependencies_compiler_type=$depmode
3629
# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
3630
if test "${with_sdl_prefix+set}" = set; then
3631
withval="$with_sdl_prefix"
3632
sdl_prefix="$withval"
3637
# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
3638
if test "${with_sdl_exec_prefix+set}" = set; then
3639
withval="$with_sdl_exec_prefix"
3640
sdl_exec_prefix="$withval"
3644
# Check whether --enable-sdltest or --disable-sdltest was given.
3645
if test "${enable_sdltest+set}" = set; then
3646
enableval="$enable_sdltest"
3652
if test x$sdl_exec_prefix != x ; then
3653
sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
3654
if test x${SDL_CONFIG+set} != xset ; then
3655
SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
3658
if test x$sdl_prefix != x ; then
3659
sdl_args="$sdl_args --prefix=$sdl_prefix"
3660
if test x${SDL_CONFIG+set} != xset ; then
3661
SDL_CONFIG=$sdl_prefix/bin/sdl-config
3666
PATH="$prefix/bin:$prefix/usr/bin:$PATH"
3667
# Extract the first word of "sdl-config", so it can be a program name with args.
3668
set dummy sdl-config; ac_word=$2
3669
echo "$as_me:$LINENO: checking for $ac_word" >&5
3670
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3671
if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
3672
echo $ECHO_N "(cached) $ECHO_C" >&6
3676
ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
3679
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683
test -z "$as_dir" && as_dir=.
3684
for ac_exec_ext in '' $ac_executable_extensions; do
3685
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3686
ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3687
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3693
test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
3697
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
3699
if test -n "$SDL_CONFIG"; then
3700
echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
3701
echo "${ECHO_T}$SDL_CONFIG" >&6
3703
echo "$as_me:$LINENO: result: no" >&5
3704
echo "${ECHO_T}no" >&6
3707
min_sdl_version=0.11.0
3708
echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
3709
echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
3711
if test "$SDL_CONFIG" = "no" ; then
3714
SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
3715
SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
3717
sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
3718
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3719
sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
3720
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3721
sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
3722
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3723
if test "x$enable_sdltest" = "xyes" ; then
3724
ac_save_CFLAGS="$CFLAGS"
3725
ac_save_LIBS="$LIBS"
3726
CFLAGS="$CFLAGS $SDL_CFLAGS"
3727
LIBS="$LIBS $SDL_LIBS"
3729
if test "$cross_compiling" = yes; then
3730
echo $ac_n "cross compiling; assumed OK... $ac_c"
3732
cat >conftest.$ac_ext <<_ACEOF
3733
#line $LINENO "configure"
3736
cat confdefs.h >>conftest.$ac_ext
3737
cat >>conftest.$ac_ext <<_ACEOF
3738
/* end confdefs.h. */
3746
my_strdup (char *str)
3752
new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
3753
strcpy (new_str, str);
3761
int main (int argc, char *argv[])
3763
int major, minor, micro;
3766
/* This hangs on some systems (?)
3767
system ("touch conf.sdltest");
3769
{ FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
3771
/* HP/UX 9 (%@#!) writes to sscanf strings */
3772
tmp_version = my_strdup("$min_sdl_version");
3773
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
3774
printf("%s, bad version string\n", "$min_sdl_version");
3778
if (($sdl_major_version > major) ||
3779
(($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
3780
(($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
3786
printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
3787
printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
3788
printf("*** best to upgrade to the required version.\n");
3789
printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
3790
printf("*** to point to the correct copy of sdl-config, and remove the file\n");
3791
printf("*** config.cache before re-running configure\n");
3798
rm -f conftest$ac_exeext
3799
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3800
(eval $ac_link) 2>&5
3802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3804
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808
(exit $ac_status); }; }; then
3811
echo "$as_me: program exited with status $ac_status" >&5
3812
echo "$as_me: failed program was:" >&5
3813
sed 's/^/| /' conftest.$ac_ext >&5
3818
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3820
CFLAGS="$ac_save_CFLAGS"
3821
LIBS="$ac_save_LIBS"
3824
if test "x$no_sdl" = x ; then
3825
echo "$as_me:$LINENO: result: yes" >&5
3826
echo "${ECHO_T}yes" >&6
3829
echo "$as_me:$LINENO: result: no" >&5
3830
echo "${ECHO_T}no" >&6
3831
if test "$SDL_CONFIG" = "no" ; then
3832
echo "*** The sdl-config script installed by SDL could not be found"
3833
echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
3834
echo "*** your path, or set the SDL_CONFIG environment variable to the"
3835
echo "*** full path to sdl-config."
3837
if test -f conf.sdltest ; then
3840
echo "*** Could not run SDL test program, checking why..."
3841
CFLAGS="$CFLAGS $SDL_CFLAGS"
3842
LIBS="$LIBS $SDL_LIBS"
3843
cat >conftest.$ac_ext <<_ACEOF
3844
#line $LINENO "configure"
3847
cat confdefs.h >>conftest.$ac_ext
3848
cat >>conftest.$ac_ext <<_ACEOF
3849
/* end confdefs.h. */
3854
int main(int argc, char *argv[])
3857
#define main K_and_R_C_main
3867
rm -f conftest.$ac_objext conftest$ac_exeext
3868
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3869
(eval $ac_link) 2>&5
3871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872
(exit $ac_status); } &&
3873
{ ac_try='test -s conftest$ac_exeext'
3874
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878
(exit $ac_status); }; }; then
3879
echo "*** The test program compiled, but did not run. This usually means"
3880
echo "*** that the run-time linker is not finding SDL or finding the wrong"
3881
echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
3882
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3883
echo "*** to the installed location Also, make sure you have run ldconfig if that"
3884
echo "*** is required on your system"
3886
echo "*** If you have an old version installed, it is best to remove it, although"
3887
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3889
echo "$as_me: failed program was:" >&5
3890
sed 's/^/| /' conftest.$ac_ext >&5
3892
echo "*** The test program failed to compile or link. See the file config.log for the"
3893
echo "*** exact error that occured. This usually means SDL was incorrectly installed"
3894
echo "*** or that you have moved SDL since it was installed. In the latter case, you"
3895
echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
3897
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3898
CFLAGS="$ac_save_CFLAGS"
3899
LIBS="$ac_save_LIBS"
3911
3866
LDFLAGS_save="${LDFLAGS} ${SDL_LIBS}"
3912
3867
LDFLAGS="${LDFLAGS} ${SDL_LIBS}"
4674
4639
s,@AUTOMAKE@,$AUTOMAKE,;t t
4675
4640
s,@AUTOHEADER@,$AUTOHEADER,;t t
4676
4641
s,@MAKEINFO@,$MAKEINFO,;t t
4677
s,@AMTAR@,$AMTAR,;t t
4678
4642
s,@install_sh@,$install_sh,;t t
4679
4643
s,@STRIP@,$STRIP,;t t
4680
4644
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4681
4645
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4646
s,@mkdir_p@,$mkdir_p,;t t
4682
4647
s,@AWK@,$AWK,;t t
4683
4648
s,@SET_MAKE@,$SET_MAKE,;t t
4649
s,@am__leading_dot@,$am__leading_dot,;t t
4650
s,@AMTAR@,$AMTAR,;t t
4651
s,@am__tar@,$am__tar,;t t
4652
s,@am__untar@,$am__untar,;t t
4684
4653
s,@CC@,$CC,;t t
4685
4654
s,@CFLAGS@,$CFLAGS,;t t
4686
4655
s,@LDFLAGS@,$LDFLAGS,;t t
4764
4730
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4765
4731
case $ac_file in
4766
4732
- | *:- | *:-:* ) # input from stdin
4768
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4769
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4734
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4735
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4770
4736
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4771
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4737
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4772
4738
* ) ac_file_in=$ac_file.in ;;
4775
4741
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4776
4742
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4777
4743
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4778
X"$ac_file" : 'X\(//\)[^/]' \| \
4779
X"$ac_file" : 'X\(//\)$' \| \
4780
X"$ac_file" : 'X\(/\)' \| \
4781
. : '\(.\)' 2>/dev/null ||
4744
X"$ac_file" : 'X\(//\)[^/]' \| \
4745
X"$ac_file" : 'X\(//\)$' \| \
4746
X"$ac_file" : 'X\(/\)' \| \
4747
. : '\(.\)' 2>/dev/null ||
4782
4748
echo X"$ac_file" |
4783
4749
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4784
4750
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4835
4801
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4836
4802
ac_top_srcdir=$ac_top_builddir$srcdir ;;
4838
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4840
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4841
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4842
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4843
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4805
# Do not use `cd foo && pwd` to compute absolute paths, because
4806
# the directories may not exist.
4808
.) ac_abs_builddir="$ac_dir";;
4811
.) ac_abs_builddir=`pwd`;;
4812
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4813
*) ac_abs_builddir=`pwd`/"$ac_dir";;
4816
case $ac_abs_builddir in
4817
.) ac_abs_top_builddir=${ac_top_builddir}.;;
4819
case ${ac_top_builddir}. in
4820
.) ac_abs_top_builddir=$ac_abs_builddir;;
4821
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4822
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4825
case $ac_abs_builddir in
4826
.) ac_abs_srcdir=$ac_srcdir;;
4829
.) ac_abs_srcdir=$ac_abs_builddir;;
4830
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4831
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4834
case $ac_abs_builddir in
4835
.) ac_abs_top_srcdir=$ac_top_srcdir;;
4837
case $ac_top_srcdir in
4838
.) ac_abs_top_srcdir=$ac_abs_builddir;;
4839
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4840
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4846
4845
case $INSTALL in
5165
5175
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5166
5176
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5167
5177
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5168
X"$ac_dest" : 'X\(//\)[^/]' \| \
5169
X"$ac_dest" : 'X\(//\)$' \| \
5170
X"$ac_dest" : 'X\(/\)' \| \
5171
. : '\(.\)' 2>/dev/null ||
5178
X"$ac_dest" : 'X\(//\)[^/]' \| \
5179
X"$ac_dest" : 'X\(//\)$' \| \
5180
X"$ac_dest" : 'X\(/\)' \| \
5181
. : '\(.\)' 2>/dev/null ||
5172
5182
echo X"$ac_dest" |
5173
5183
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5174
5184
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5175
5185
/^X\(\/\/\)$/{ s//\1/; q; }
5176
5186
/^X\(\/\).*/{ s//\1/; q; }
5188
{ if $as_mkdir_p; then
5193
while test ! -d "$as_dir"; do
5194
as_dirs="$as_dir $as_dirs"
5195
as_dir=`(dirname "$as_dir") 2>/dev/null ||
5196
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5197
X"$as_dir" : 'X\(//\)[^/]' \| \
5198
X"$as_dir" : 'X\(//\)$' \| \
5199
X"$as_dir" : 'X\(/\)' \| \
5200
. : '\(.\)' 2>/dev/null ||
5202
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5203
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5204
/^X\(\/\/\)$/{ s//\1/; q; }
5205
/^X\(\/\).*/{ s//\1/; q; }
5208
test ! -n "$as_dirs" || mkdir $as_dirs
5209
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5210
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5211
{ (exit 1); exit 1; }; }; }
5180
5215
if test "$ac_dir" != .; then
5200
5235
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5201
5236
ac_top_srcdir=$ac_top_builddir$srcdir ;;
5203
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5205
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5206
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5207
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5208
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5239
# Do not use `cd foo && pwd` to compute absolute paths, because
5240
# the directories may not exist.
5242
.) ac_abs_builddir="$ac_dir";;
5245
.) ac_abs_builddir=`pwd`;;
5246
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5247
*) ac_abs_builddir=`pwd`/"$ac_dir";;
5250
case $ac_abs_builddir in
5251
.) ac_abs_top_builddir=${ac_top_builddir}.;;
5253
case ${ac_top_builddir}. in
5254
.) ac_abs_top_builddir=$ac_abs_builddir;;
5255
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5256
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5259
case $ac_abs_builddir in
5260
.) ac_abs_srcdir=$ac_srcdir;;
5263
.) ac_abs_srcdir=$ac_abs_builddir;;
5264
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5265
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5268
case $ac_abs_builddir in
5269
.) ac_abs_top_srcdir=$ac_top_srcdir;;
5271
case $ac_top_srcdir in
5272
.) ac_abs_top_srcdir=$ac_abs_builddir;;
5273
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5274
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5211
5279
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5239
grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
5240
# Extract the definition of DEP_FILES from the Makefile without
5242
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5307
# Extract the definition of DEPDIR, am__include, and am__quote
5308
# from the Makefile without running `make'.
5309
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5243
5310
test -z "$DEPDIR" && continue
5311
am__include=`sed -n 's/^am__include = //p' < "$mf"`
5312
test -z "am__include" && continue
5313
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5244
5314
# When using ansi2knr, U may be empty or an underscore; expand it
5245
U=`sed -n -e '/^U = / s///p' < "$mf"`
5246
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5247
# We invoke sed twice because it is the simplest approach to
5248
# changing $(DEPDIR) to its actual value in the expansion.
5249
for file in `sed -n -e '
5250
/^DEP_FILES = .*\\\\$/ {
5259
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5315
U=`sed -n 's/^U = //p' < "$mf"`
5316
# Find all dependency output files, they are included files with
5317
# $(DEPDIR) in their names. We invoke sed twice because it is the
5318
# simplest approach to changing $(DEPDIR) to its actual value in the
5320
for file in `sed -n "
5321
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5260
5322
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5261
5323
# Make sure the directory exists.
5262
5324
test -f "$dirpart/$file" && continue
5263
5325
fdir=`(dirname "$file") 2>/dev/null ||
5264
5326
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5265
X"$file" : 'X\(//\)[^/]' \| \
5266
X"$file" : 'X\(//\)$' \| \
5267
X"$file" : 'X\(/\)' \| \
5268
. : '\(.\)' 2>/dev/null ||
5327
X"$file" : 'X\(//\)[^/]' \| \
5328
X"$file" : 'X\(//\)$' \| \
5329
X"$file" : 'X\(/\)' \| \
5330
. : '\(.\)' 2>/dev/null ||
5269
5331
echo X"$file" |
5270
5332
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5271
5333
/^X\(\/\/\)[^/].*/{ s//\1/; q; }