Commit c4823266 authored by Alexandre Julliard's avatar Alexandre Julliard

configure: Make some shell variables global.

parent bedf4757
...@@ -210,25 +210,24 @@ wine_fn_append_rule () ...@@ -210,25 +210,24 @@ wine_fn_append_rule ()
wine_fn_has_flag () wine_fn_has_flag ()
{ {
expr ",$[2]," : ".*,$[1],.*" >/dev/null expr ",$ac_flags," : ".*,$[1],.*" >/dev/null
} }
wine_fn_depend_rules () wine_fn_depend_rules ()
{ {
ac_dir=$[1] ac_alldeps=$[1]
ac_alldeps=$[2]
ac_makedep="\$(MAKEDEP)" ac_makedep="\$(MAKEDEP)"
ac_input=Make.vars.in:$ac_dir/Makefile.in ac_input=Make.vars.in:$ac_dir/Makefile.in
if test $ac_dir != tools if test $ac_dir != tools
then then
dnl makedep is in tools so tools makefile cannot depend on it dnl makedep is in tools so tools makefile cannot depend on it
ac_alldeps="$[2] $ac_makedep" ac_alldeps="$[1] $ac_makedep"
else else
ac_alldeps="$[2] include/config.h" ac_alldeps="$[1] include/config.h"
fi fi
case $[2] in case $[1] in
*.in) ac_input=$ac_input:$[2] ;; *.in) ac_input=$ac_input:$[1] ;;
*) ac_makedep="$[2] $ac_makedep" ;; *) ac_makedep="$[1] $ac_makedep" ;;
esac esac
wine_fn_append_rule \ wine_fn_append_rule \
...@@ -242,12 +241,9 @@ $ac_dir/depend: $ac_makedep dummy ...@@ -242,12 +241,9 @@ $ac_dir/depend: $ac_makedep dummy
wine_fn_pot_rules () wine_fn_pot_rules ()
{ {
ac_dir=$[1]
ac_flags=$[2]
test "x$with_gettextpo" = xyes || return test "x$with_gettextpo" = xyes || return
if wine_fn_has_flag mc $ac_flags if wine_fn_has_flag mc
then then
wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
wine_fn_append_rule \ wine_fn_append_rule \
...@@ -255,7 +251,7 @@ wine_fn_pot_rules () ...@@ -255,7 +251,7 @@ wine_fn_pot_rules ()
@cd $ac_dir && \$(MAKE) msg.pot @cd $ac_dir && \$(MAKE) msg.pot
$ac_dir/msg.pot: tools/wmc include" $ac_dir/msg.pot: tools/wmc include"
fi fi
if wine_fn_has_flag po $ac_flags if wine_fn_has_flag po
then then
wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
wine_fn_append_rule \ wine_fn_append_rule \
...@@ -267,10 +263,9 @@ $ac_dir/rsrc.pot: tools/wrc include" ...@@ -267,10 +263,9 @@ $ac_dir/rsrc.pot: tools/wrc include"
wine_fn_all_rules () wine_fn_all_rules ()
{ {
ac_dir=$[1] ac_rules=$[1]
ac_rules=$[2]
wine_fn_depend_rules $ac_dir ${ac_rules:-Make.rules} wine_fn_depend_rules ${ac_rules:-Make.rules}
wine_fn_append_rule \ wine_fn_append_rule \
"all: $ac_dir "all: $ac_dir
.PHONY: $ac_dir .PHONY: $ac_dir
...@@ -280,10 +275,7 @@ $ac_dir: $ac_dir/Makefile dummy ...@@ -280,10 +275,7 @@ $ac_dir: $ac_dir/Makefile dummy
wine_fn_install_rules () wine_fn_install_rules ()
{ {
ac_dir=$[1] wine_fn_has_flag install-lib || wine_fn_has_flag install-dev || return
ac_flags=$[2]
wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
wine_fn_append_rule \ wine_fn_append_rule \
".PHONY: $ac_dir/install $ac_dir/uninstall ".PHONY: $ac_dir/install $ac_dir/uninstall
...@@ -294,7 +286,7 @@ $ac_dir/uninstall:: $ac_dir/Makefile ...@@ -294,7 +286,7 @@ $ac_dir/uninstall:: $ac_dir/Makefile
install:: $ac_dir/install install:: $ac_dir/install
__uninstall__: $ac_dir/uninstall" __uninstall__: $ac_dir/uninstall"
if wine_fn_has_flag install-lib $ac_flags if wine_fn_has_flag install-lib
then then
wine_fn_append_rule \ wine_fn_append_rule \
".PHONY: $ac_dir/install-lib ".PHONY: $ac_dir/install-lib
...@@ -303,7 +295,7 @@ $ac_dir/install-lib:: $ac_dir ...@@ -303,7 +295,7 @@ $ac_dir/install-lib:: $ac_dir
install-lib:: $ac_dir/install-lib" install-lib:: $ac_dir/install-lib"
fi fi
if wine_fn_has_flag install-dev $ac_flags if wine_fn_has_flag install-dev
then then
wine_fn_append_rule \ wine_fn_append_rule \
".PHONY: $ac_dir/install-dev ".PHONY: $ac_dir/install-dev
...@@ -315,12 +307,9 @@ install-dev:: $ac_dir/install-dev" ...@@ -315,12 +307,9 @@ install-dev:: $ac_dir/install-dev"
wine_fn_clean_rules () wine_fn_clean_rules ()
{ {
ac_dir=$[1]
ac_flags=$[2]
shift; shift
ac_clean=$[@] ac_clean=$[@]
if wine_fn_has_flag clean $ac_flags if wine_fn_has_flag clean
then then
wine_fn_append_rule \ wine_fn_append_rule \
"__clean__: $ac_dir/clean "__clean__: $ac_dir/clean
...@@ -337,8 +326,6 @@ $ac_dir/clean: $ac_dir/Makefile ...@@ -337,8 +326,6 @@ $ac_dir/clean: $ac_dir/Makefile
wine_fn_disabled_rules () wine_fn_disabled_rules ()
{ {
ac_dir=$[1]
shift
ac_clean=$[@] ac_clean=$[@]
wine_fn_append_rule \ wine_fn_append_rule \
...@@ -352,10 +339,10 @@ wine_fn_config_makefile () ...@@ -352,10 +339,10 @@ wine_fn_config_makefile ()
ac_enable=$[2] ac_enable=$[2]
ac_flags=$[3] ac_flags=$[3]
AS_VAR_IF([$ac_enable],[no],[wine_fn_disabled_rules $ac_dir; return]) AS_VAR_IF([$ac_enable],[no],[wine_fn_disabled_rules; return])
wine_fn_all_rules $ac_dir wine_fn_all_rules
wine_fn_install_rules $ac_dir $ac_flags wine_fn_install_rules
wine_fn_clean_rules $ac_dir $ac_flags wine_fn_clean_rules
} }
wine_fn_config_lib () wine_fn_config_lib ()
...@@ -364,8 +351,8 @@ wine_fn_config_lib () ...@@ -364,8 +351,8 @@ wine_fn_config_lib ()
ac_flags=$[2] ac_flags=$[2]
ac_dir=dlls/$ac_name ac_dir=dlls/$ac_name
wine_fn_all_rules $ac_dir dlls/Makeimplib.rules wine_fn_all_rules dlls/Makeimplib.rules
wine_fn_clean_rules $ac_dir $ac_flags wine_fn_clean_rules
wine_fn_append_rule \ wine_fn_append_rule \
".PHONY: $ac_dir/install $ac_dir/uninstall ".PHONY: $ac_dir/install $ac_dir/uninstall
...@@ -398,23 +385,23 @@ wine_fn_config_dll () ...@@ -398,23 +385,23 @@ wine_fn_config_dll ()
esac esac
ac_clean= ac_clean=
wine_fn_has_flag implib $ac_flags && ac_clean="$ac_clean $ac_file.$IMPLIBEXT" wine_fn_has_flag implib && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
wine_fn_has_flag mc $ac_flags && ac_clean="$ac_clean $ac_dir/msg.pot" wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
wine_fn_has_flag po $ac_flags && ac_clean="$ac_clean $ac_dir/rsrc.pot" wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
AS_VAR_IF([$ac_enable],[no], AS_VAR_IF([$ac_enable],[no],
dnl enable_win16 is special in that it disables import libs too dnl enable_win16 is special in that it disables import libs too
[if wine_fn_has_flag implib $ac_flags && test "$ac_enable" != enable_win16 [if wine_fn_has_flag implib && test "$ac_enable" != enable_win16
then then
wine_fn_depend_rules $ac_dir dlls/Makedll.rules wine_fn_depend_rules dlls/Makedll.rules
wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean wine_fn_clean_rules $ac_clean
else else
wine_fn_disabled_rules $ac_dir $ac_clean wine_fn_disabled_rules $ac_clean
return return
fi], fi],
[wine_fn_all_rules $ac_dir dlls/Makedll.rules [wine_fn_all_rules dlls/Makedll.rules
wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean wine_fn_clean_rules $ac_clean
wine_fn_append_rule \ wine_fn_append_rule \
"$ac_dir: __builddeps__ "$ac_dir: __builddeps__
manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
...@@ -438,9 +425,9 @@ $ac_dir/uninstall:: ...@@ -438,9 +425,9 @@ $ac_dir/uninstall::
\$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll" \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
fi fi
wine_fn_pot_rules $ac_dir $ac_flags]) wine_fn_pot_rules])
if wine_fn_has_flag staticimplib $ac_flags if wine_fn_has_flag staticimplib
then then
wine_fn_append_rule \ wine_fn_append_rule \
"__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
...@@ -474,7 +461,7 @@ $ac_file.cross.a: $ac_dir/Makefile dummy ...@@ -474,7 +461,7 @@ $ac_file.cross.a: $ac_dir/Makefile dummy
@cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a" @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
fi fi
elif wine_fn_has_flag implib $ac_flags elif wine_fn_has_flag implib
then then
wine_fn_append_rule \ wine_fn_append_rule \
"__builddeps__: $ac_file.$IMPLIBEXT "__builddeps__: $ac_file.$IMPLIBEXT
...@@ -530,19 +517,19 @@ wine_fn_config_program () ...@@ -530,19 +517,19 @@ wine_fn_config_program ()
esac esac
ac_clean= ac_clean=
wine_fn_has_flag mc $ac_flags && ac_clean="$ac_clean $ac_dir/msg.pot" wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
wine_fn_has_flag po $ac_flags && ac_clean="$ac_clean $ac_dir/rsrc.pot" wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
wine_fn_has_flag manpage $ac_flags && ac_clean="$ac_clean $ac_dir/$ac_name.man" wine_fn_has_flag manpage && ac_clean="$ac_clean $ac_dir/$ac_name.man"
test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program" test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
AS_VAR_IF([$ac_enable],[no],[wine_fn_disabled_rules $ac_dir $ac_clean; return]) AS_VAR_IF([$ac_enable],[no],[wine_fn_disabled_rules $ac_clean; return])
wine_fn_all_rules $ac_dir programs/Makeprog.rules wine_fn_all_rules programs/Makeprog.rules
wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean wine_fn_clean_rules $ac_clean
wine_fn_append_rule "$ac_dir: __builddeps__" wine_fn_append_rule "$ac_dir: __builddeps__"
wine_fn_pot_rules $ac_dir $ac_flags wine_fn_pot_rules
wine_fn_has_flag install $ac_flags || return wine_fn_has_flag install || return
wine_fn_append_rule \ wine_fn_append_rule \
".PHONY: $ac_dir/install $ac_dir/uninstall ".PHONY: $ac_dir/install $ac_dir/uninstall
install install-lib:: $ac_dir/install install install-lib:: $ac_dir/install
...@@ -557,7 +544,7 @@ __uninstall__: $ac_dir/uninstall" ...@@ -557,7 +544,7 @@ __uninstall__: $ac_dir/uninstall"
$ac_dir/uninstall:: $ac_dir/uninstall::
\$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program" \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
if test -z "$with_wine64" && wine_fn_has_flag installbin $ac_flags if test -z "$with_wine64" && wine_fn_has_flag installbin
then then
wine_fn_append_rule \ wine_fn_append_rule \
"$ac_dir/install:: __tooldeps__ \$(DESTDIR)\$(bindir) "$ac_dir/install:: __tooldeps__ \$(DESTDIR)\$(bindir)
...@@ -573,7 +560,7 @@ $ac_dir/uninstall:: ...@@ -573,7 +560,7 @@ $ac_dir/uninstall::
\$(RM) \$(DESTDIR)\$(bindir)/$ac_program" \$(RM) \$(DESTDIR)\$(bindir)/$ac_program"
fi fi
if test -z "$with_wine64" && wine_fn_has_flag manpage $ac_flags if test -z "$with_wine64" && wine_fn_has_flag manpage
then then
wine_fn_append_rule \ wine_fn_append_rule \
"$ac_dir/install:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext) "$ac_dir/install:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
...@@ -594,11 +581,11 @@ wine_fn_config_test () ...@@ -594,11 +581,11 @@ wine_fn_config_test ()
test -n "$DLLEXT" || ac_clean=$ac_dir/${ac_name}.exe test -n "$DLLEXT" || ac_clean=$ac_dir/${ac_name}.exe
ac_clean="$ac_clean $ac_dir/testlist.c" ac_clean="$ac_clean $ac_dir/testlist.c"
AS_VAR_IF([enable_tests],[no],[wine_fn_disabled_rules $ac_dir $ac_clean; return]) AS_VAR_IF([enable_tests],[no],[wine_fn_disabled_rules $ac_clean; return])
wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
wine_fn_all_rules $ac_dir Maketest.rules wine_fn_all_rules Maketest.rules
wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean wine_fn_clean_rules $ac_clean
wine_fn_append_rule \ wine_fn_append_rule \
"$ac_dir: programs/winetest/Makefile __builddeps__ "$ac_dir: programs/winetest/Makefile __builddeps__
...@@ -626,9 +613,9 @@ wine_fn_config_tool () ...@@ -626,9 +613,9 @@ wine_fn_config_tool ()
ac_flags=$[2] ac_flags=$[2]
AS_VAR_IF([enable_tools],[no],[return]) AS_VAR_IF([enable_tools],[no],[return])
wine_fn_all_rules $ac_dir wine_fn_all_rules
wine_fn_install_rules $ac_dir $ac_flags wine_fn_install_rules
wine_fn_clean_rules $ac_dir $ac_flags wine_fn_clean_rules
wine_fn_append_rule "__tooldeps__: $ac_dir" wine_fn_append_rule "__tooldeps__: $ac_dir"
wine_fn_append_rule "$ac_dir: libs/port" wine_fn_append_rule "$ac_dir: libs/port"
......
...@@ -16124,24 +16124,23 @@ wine_fn_append_rule () ...@@ -16124,24 +16124,23 @@ wine_fn_append_rule ()
wine_fn_has_flag () wine_fn_has_flag ()
{ {
expr ",$2," : ".*,$1,.*" >/dev/null expr ",$ac_flags," : ".*,$1,.*" >/dev/null
} }
wine_fn_depend_rules () wine_fn_depend_rules ()
{ {
ac_dir=$1 ac_alldeps=$1
ac_alldeps=$2
ac_makedep="\$(MAKEDEP)" ac_makedep="\$(MAKEDEP)"
ac_input=Make.vars.in:$ac_dir/Makefile.in ac_input=Make.vars.in:$ac_dir/Makefile.in
if test $ac_dir != tools if test $ac_dir != tools
then then
ac_alldeps="$2 $ac_makedep" ac_alldeps="$1 $ac_makedep"
else else
ac_alldeps="$2 include/config.h" ac_alldeps="$1 include/config.h"
fi fi
case $2 in case $1 in
*.in) ac_input=$ac_input:$2 ;; *.in) ac_input=$ac_input:$1 ;;
*) ac_makedep="$2 $ac_makedep" ;; *) ac_makedep="$1 $ac_makedep" ;;
esac esac
wine_fn_append_rule \ wine_fn_append_rule \
...@@ -16155,12 +16154,9 @@ $ac_dir/depend: $ac_makedep dummy ...@@ -16155,12 +16154,9 @@ $ac_dir/depend: $ac_makedep dummy
wine_fn_pot_rules () wine_fn_pot_rules ()
{ {
ac_dir=$1
ac_flags=$2
test "x$with_gettextpo" = xyes || return test "x$with_gettextpo" = xyes || return
if wine_fn_has_flag mc $ac_flags if wine_fn_has_flag mc
then then
wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
wine_fn_append_rule \ wine_fn_append_rule \
...@@ -16168,7 +16164,7 @@ wine_fn_pot_rules () ...@@ -16168,7 +16164,7 @@ wine_fn_pot_rules ()
@cd $ac_dir && \$(MAKE) msg.pot @cd $ac_dir && \$(MAKE) msg.pot
$ac_dir/msg.pot: tools/wmc include" $ac_dir/msg.pot: tools/wmc include"
fi fi
if wine_fn_has_flag po $ac_flags if wine_fn_has_flag po
then then
wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
wine_fn_append_rule \ wine_fn_append_rule \
...@@ -16180,10 +16176,9 @@ $ac_dir/rsrc.pot: tools/wrc include" ...@@ -16180,10 +16176,9 @@ $ac_dir/rsrc.pot: tools/wrc include"
wine_fn_all_rules () wine_fn_all_rules ()
{ {
ac_dir=$1 ac_rules=$1
ac_rules=$2
wine_fn_depend_rules $ac_dir ${ac_rules:-Make.rules} wine_fn_depend_rules ${ac_rules:-Make.rules}
wine_fn_append_rule \ wine_fn_append_rule \
"all: $ac_dir "all: $ac_dir
.PHONY: $ac_dir .PHONY: $ac_dir
...@@ -16193,10 +16188,7 @@ $ac_dir: $ac_dir/Makefile dummy ...@@ -16193,10 +16188,7 @@ $ac_dir: $ac_dir/Makefile dummy
wine_fn_install_rules () wine_fn_install_rules ()
{ {
ac_dir=$1 wine_fn_has_flag install-lib || wine_fn_has_flag install-dev || return
ac_flags=$2
wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
wine_fn_append_rule \ wine_fn_append_rule \
".PHONY: $ac_dir/install $ac_dir/uninstall ".PHONY: $ac_dir/install $ac_dir/uninstall
...@@ -16207,7 +16199,7 @@ $ac_dir/uninstall:: $ac_dir/Makefile ...@@ -16207,7 +16199,7 @@ $ac_dir/uninstall:: $ac_dir/Makefile
install:: $ac_dir/install install:: $ac_dir/install
__uninstall__: $ac_dir/uninstall" __uninstall__: $ac_dir/uninstall"
if wine_fn_has_flag install-lib $ac_flags if wine_fn_has_flag install-lib
then then
wine_fn_append_rule \ wine_fn_append_rule \
".PHONY: $ac_dir/install-lib ".PHONY: $ac_dir/install-lib
...@@ -16216,7 +16208,7 @@ $ac_dir/install-lib:: $ac_dir ...@@ -16216,7 +16208,7 @@ $ac_dir/install-lib:: $ac_dir
install-lib:: $ac_dir/install-lib" install-lib:: $ac_dir/install-lib"
fi fi
if wine_fn_has_flag install-dev $ac_flags if wine_fn_has_flag install-dev
then then
wine_fn_append_rule \ wine_fn_append_rule \
".PHONY: $ac_dir/install-dev ".PHONY: $ac_dir/install-dev
...@@ -16228,12 +16220,9 @@ install-dev:: $ac_dir/install-dev" ...@@ -16228,12 +16220,9 @@ install-dev:: $ac_dir/install-dev"
wine_fn_clean_rules () wine_fn_clean_rules ()
{ {
ac_dir=$1
ac_flags=$2
shift; shift
ac_clean=$@ ac_clean=$@
if wine_fn_has_flag clean $ac_flags if wine_fn_has_flag clean
then then
wine_fn_append_rule \ wine_fn_append_rule \
"__clean__: $ac_dir/clean "__clean__: $ac_dir/clean
...@@ -16250,8 +16239,6 @@ $ac_dir/clean: $ac_dir/Makefile ...@@ -16250,8 +16239,6 @@ $ac_dir/clean: $ac_dir/Makefile
wine_fn_disabled_rules () wine_fn_disabled_rules ()
{ {
ac_dir=$1
shift
ac_clean=$@ ac_clean=$@
wine_fn_append_rule \ wine_fn_append_rule \
...@@ -16266,11 +16253,11 @@ wine_fn_config_makefile () ...@@ -16266,11 +16253,11 @@ wine_fn_config_makefile ()
ac_flags=$3 ac_flags=$3
if eval test \"x\$"$ac_enable"\" = x"no"; then : if eval test \"x\$"$ac_enable"\" = x"no"; then :
wine_fn_disabled_rules $ac_dir; return wine_fn_disabled_rules; return
fi fi
wine_fn_all_rules $ac_dir wine_fn_all_rules
wine_fn_install_rules $ac_dir $ac_flags wine_fn_install_rules
wine_fn_clean_rules $ac_dir $ac_flags wine_fn_clean_rules
} }
wine_fn_config_lib () wine_fn_config_lib ()
...@@ -16279,8 +16266,8 @@ wine_fn_config_lib () ...@@ -16279,8 +16266,8 @@ wine_fn_config_lib ()
ac_flags=$2 ac_flags=$2
ac_dir=dlls/$ac_name ac_dir=dlls/$ac_name
wine_fn_all_rules $ac_dir dlls/Makeimplib.rules wine_fn_all_rules dlls/Makeimplib.rules
wine_fn_clean_rules $ac_dir $ac_flags wine_fn_clean_rules
wine_fn_append_rule \ wine_fn_append_rule \
".PHONY: $ac_dir/install $ac_dir/uninstall ".PHONY: $ac_dir/install $ac_dir/uninstall
...@@ -16313,22 +16300,22 @@ wine_fn_config_dll () ...@@ -16313,22 +16300,22 @@ wine_fn_config_dll ()
esac esac
ac_clean= ac_clean=
wine_fn_has_flag implib $ac_flags && ac_clean="$ac_clean $ac_file.$IMPLIBEXT" wine_fn_has_flag implib && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
wine_fn_has_flag mc $ac_flags && ac_clean="$ac_clean $ac_dir/msg.pot" wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
wine_fn_has_flag po $ac_flags && ac_clean="$ac_clean $ac_dir/rsrc.pot" wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
if eval test \"x\$"$ac_enable"\" = x"no"; then : if eval test \"x\$"$ac_enable"\" = x"no"; then :
if wine_fn_has_flag implib $ac_flags && test "$ac_enable" != enable_win16 if wine_fn_has_flag implib && test "$ac_enable" != enable_win16
then then
wine_fn_depend_rules $ac_dir dlls/Makedll.rules wine_fn_depend_rules dlls/Makedll.rules
wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean wine_fn_clean_rules $ac_clean
else else
wine_fn_disabled_rules $ac_dir $ac_clean wine_fn_disabled_rules $ac_clean
return return
fi fi
else else
wine_fn_all_rules $ac_dir dlls/Makedll.rules wine_fn_all_rules dlls/Makedll.rules
wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean wine_fn_clean_rules $ac_clean
wine_fn_append_rule \ wine_fn_append_rule \
"$ac_dir: __builddeps__ "$ac_dir: __builddeps__
manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
...@@ -16352,10 +16339,10 @@ $ac_dir/uninstall:: ...@@ -16352,10 +16339,10 @@ $ac_dir/uninstall::
\$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll" \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
fi fi
wine_fn_pot_rules $ac_dir $ac_flags wine_fn_pot_rules
fi fi
if wine_fn_has_flag staticimplib $ac_flags if wine_fn_has_flag staticimplib
then then
wine_fn_append_rule \ wine_fn_append_rule \
"__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
...@@ -16389,7 +16376,7 @@ $ac_file.cross.a: $ac_dir/Makefile dummy ...@@ -16389,7 +16376,7 @@ $ac_file.cross.a: $ac_dir/Makefile dummy
@cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a" @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
fi fi
elif wine_fn_has_flag implib $ac_flags elif wine_fn_has_flag implib
then then
wine_fn_append_rule \ wine_fn_append_rule \
"__builddeps__: $ac_file.$IMPLIBEXT "__builddeps__: $ac_file.$IMPLIBEXT
...@@ -16445,21 +16432,21 @@ wine_fn_config_program () ...@@ -16445,21 +16432,21 @@ wine_fn_config_program ()
esac esac
ac_clean= ac_clean=
wine_fn_has_flag mc $ac_flags && ac_clean="$ac_clean $ac_dir/msg.pot" wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
wine_fn_has_flag po $ac_flags && ac_clean="$ac_clean $ac_dir/rsrc.pot" wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
wine_fn_has_flag manpage $ac_flags && ac_clean="$ac_clean $ac_dir/$ac_name.man" wine_fn_has_flag manpage && ac_clean="$ac_clean $ac_dir/$ac_name.man"
test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program" test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
if eval test \"x\$"$ac_enable"\" = x"no"; then : if eval test \"x\$"$ac_enable"\" = x"no"; then :
wine_fn_disabled_rules $ac_dir $ac_clean; return wine_fn_disabled_rules $ac_clean; return
fi fi
wine_fn_all_rules $ac_dir programs/Makeprog.rules wine_fn_all_rules programs/Makeprog.rules
wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean wine_fn_clean_rules $ac_clean
wine_fn_append_rule "$ac_dir: __builddeps__" wine_fn_append_rule "$ac_dir: __builddeps__"
wine_fn_pot_rules $ac_dir $ac_flags wine_fn_pot_rules
wine_fn_has_flag install $ac_flags || return wine_fn_has_flag install || return
wine_fn_append_rule \ wine_fn_append_rule \
".PHONY: $ac_dir/install $ac_dir/uninstall ".PHONY: $ac_dir/install $ac_dir/uninstall
install install-lib:: $ac_dir/install install install-lib:: $ac_dir/install
...@@ -16474,7 +16461,7 @@ __uninstall__: $ac_dir/uninstall" ...@@ -16474,7 +16461,7 @@ __uninstall__: $ac_dir/uninstall"
$ac_dir/uninstall:: $ac_dir/uninstall::
\$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program" \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
if test -z "$with_wine64" && wine_fn_has_flag installbin $ac_flags if test -z "$with_wine64" && wine_fn_has_flag installbin
then then
wine_fn_append_rule \ wine_fn_append_rule \
"$ac_dir/install:: __tooldeps__ \$(DESTDIR)\$(bindir) "$ac_dir/install:: __tooldeps__ \$(DESTDIR)\$(bindir)
...@@ -16490,7 +16477,7 @@ $ac_dir/uninstall:: ...@@ -16490,7 +16477,7 @@ $ac_dir/uninstall::
\$(RM) \$(DESTDIR)\$(bindir)/$ac_program" \$(RM) \$(DESTDIR)\$(bindir)/$ac_program"
fi fi
if test -z "$with_wine64" && wine_fn_has_flag manpage $ac_flags if test -z "$with_wine64" && wine_fn_has_flag manpage
then then
wine_fn_append_rule \ wine_fn_append_rule \
"$ac_dir/install:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext) "$ac_dir/install:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
...@@ -16512,12 +16499,12 @@ wine_fn_config_test () ...@@ -16512,12 +16499,12 @@ wine_fn_config_test ()
ac_clean="$ac_clean $ac_dir/testlist.c" ac_clean="$ac_clean $ac_dir/testlist.c"
if test "x$enable_tests" = xno; then : if test "x$enable_tests" = xno; then :
wine_fn_disabled_rules $ac_dir $ac_clean; return wine_fn_disabled_rules $ac_clean; return
fi fi
wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
wine_fn_all_rules $ac_dir Maketest.rules wine_fn_all_rules Maketest.rules
wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean wine_fn_clean_rules $ac_clean
wine_fn_append_rule \ wine_fn_append_rule \
"$ac_dir: programs/winetest/Makefile __builddeps__ "$ac_dir: programs/winetest/Makefile __builddeps__
...@@ -16547,9 +16534,9 @@ wine_fn_config_tool () ...@@ -16547,9 +16534,9 @@ wine_fn_config_tool ()
return return
fi fi
wine_fn_all_rules $ac_dir wine_fn_all_rules
wine_fn_install_rules $ac_dir $ac_flags wine_fn_install_rules
wine_fn_clean_rules $ac_dir $ac_flags wine_fn_clean_rules
wine_fn_append_rule "__tooldeps__: $ac_dir" wine_fn_append_rule "__tooldeps__: $ac_dir"
wine_fn_append_rule "$ac_dir: libs/port" wine_fn_append_rule "$ac_dir: libs/port"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment