Alexandre Julliard : configure:
Escape newlines in DEPENDENCIES when using an old autoconf version.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Sep 25 09:46:31 CDT 2006
Module: wine
Branch: master
Commit: 1333ac8d87288062c8b46f29b5ac60948c64f4bc
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=1333ac8d87288062c8b46f29b5ac60948c64f4bc
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Sep 20 21:46:49 2006 +0200
configure: Escape newlines in DEPENDENCIES when using an old autoconf version.
---
configure.ac | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 0c1322a..1acebdf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1457,7 +1457,19 @@ esac
dnl **** Generate output files ****
-AC_SUBST(DEPENDENCIES,"### Dependencies:
+dnl autoconf versions before 2.59d need backslashes to escape newlines in subst variables
+AC_SUBST(DEPENDENCIES,m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]), [2.59d]), -1,
+["### Dependencies:\\
+\\
+.INIT: Makefile\\
+.BEGIN: Makefile\\
+Makefile: dummy\\
+ -\$(MAKEDEP) -C\$(SRCDIR) -S\$(TOPSRCDIR) -T\$(TOPOBJDIR) \$(EXTRAINCL) \$(DEPEND_SRCS)\\
+\\
+\$(ALL_OBJS): \$(IDL_SRCS:.idl=.h)\\
+\$(LEX_SRCS:.l=.yy.o): \$(LEX_SRCS:.l=.yy.c)\\
+\$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)"],
+["### Dependencies:
.INIT: Makefile
.BEGIN: Makefile
@@ -1466,7 +1478,7 @@ Makefile: dummy
\$(ALL_OBJS): \$(IDL_SRCS:.idl=.h)
\$(LEX_SRCS:.l=.yy.o): \$(LEX_SRCS:.l=.yy.c)
-\$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)")
+\$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)"]))
AH_TOP([#define __WINE_CONFIG_H])
More information about the wine-cvs
mailing list