2012-03-13 17:02:27 +01:00
|
|
|
Index: BibTool/AutoConf/makefile.in
|
|
|
|
===================================================================
|
|
|
|
--- BibTool.orig/AutoConf/makefile.in
|
|
|
|
+++ BibTool/AutoConf/makefile.in
|
2015-07-12 23:12:38 +02:00
|
|
|
@@ -218,9 +218,9 @@ NON_ANSI_DEFS = @DEFS@
|
2011-04-21 16:12:21 +02:00
|
|
|
REGEX_DIR = regex-0.12
|
|
|
|
#
|
|
|
|
|
|
|
|
-REGEX_DEF = -DREGEX -I$(REGEX_DIR) -I..
|
|
|
|
+REGEX_DEF = -DREGEX
|
|
|
|
|
|
|
|
-REGEX = regex$(OBJ)
|
|
|
|
+REGEX =
|
|
|
|
|
|
|
|
# -------------------------------------------------------
|
|
|
|
# Kpathsea Library support.
|
2012-03-13 17:02:27 +01:00
|
|
|
@@ -477,8 +477,8 @@ $(OFILES): $(MAKEFILE)
|
2011-04-21 16:12:21 +02:00
|
|
|
# __________________________________________________________________
|
|
|
|
# Targets from the GNU Regular Expression Library.
|
|
|
|
|
|
|
|
-regex$(OBJ): $(REGEX_DIR)$(DIR_SEP)regex.c $(MAKEFILE)
|
|
|
|
- $(CC) $(C_FLAGS) -I$(REGEX_DIR) -I.. $(NON_ANSI_DEFS) $(REGEX_DIR)$(DIR_SEP)regex.c $(DONT_LINK) -o $@
|
|
|
|
+#regex$(OBJ): $(REGEX_DIR)$(DIR_SEP)regex.c $(MAKEFILE)
|
|
|
|
+# $(CC) $(C_FLAGS) -I$(REGEX_DIR) -I.. $(NON_ANSI_DEFS) $(REGEX_DIR)$(DIR_SEP)regex.c $(DONT_LINK) -o $@
|
|
|
|
|
|
|
|
|
|
|
|
bibtcl:
|
2015-07-12 23:12:38 +02:00
|
|
|
@@ -512,7 +512,7 @@ Test:
|
|
|
|
(cd test; $(MAKE))
|
2011-04-21 16:12:21 +02:00
|
|
|
|
|
|
|
libbib.a: $(OLIBFILES)
|
|
|
|
- $(AR) $@ $(OLIBFILES) regex.o
|
|
|
|
+ $(AR) $@ $(OLIBFILES)
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
|
|
|
depend:
|
2012-03-13 17:02:27 +01:00
|
|
|
Index: BibTool/rewrite.c
|
|
|
|
===================================================================
|
|
|
|
--- BibTool.orig/rewrite.c
|
|
|
|
+++ BibTool/rewrite.c
|
2015-07-12 23:12:38 +02:00
|
|
|
@@ -22,7 +22,8 @@
|
2011-04-21 16:12:21 +02:00
|
|
|
#include <bibtool/rewrite.h>
|
|
|
|
|
|
|
|
#ifdef REGEX
|
|
|
|
-#include <bibtool/regex.h>
|
|
|
|
+#define __USE_GNU
|
|
|
|
+#include <regex.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct rULE
|