forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rudiments-0.51-buildsystem.patch
86 lines (79 loc) · 3 KB
/
rudiments-0.51-buildsystem.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
diff --git a/config.mk.in b/config.mk.in
index ae29f27..c0b7e3d 100644
--- a/config.mk.in
+++ b/config.mk.in
@@ -9,7 +9,7 @@ includedir = @includedir@
libdir = @libdir@
mandir = @mandir@
datadir = @datadir@
-docdir = ${datadir}/doc/rudiments
+docdir = @docdir@
# command separator
AND = ;
@@ -25,7 +25,7 @@
CXX = @CXX@
COMPILE = -c
OUT = -o
-BASECPPFLAGS = @WALL@ @WERROR@ @WNOLONGDOUBLE@ @WNOFORMAT@ @WNOOVERLOADEDVIRTUAL@ @CPPFLAGS@ @PTHREADINCLUDES@ @SSLINCLUDES@ @PCREINCLUDES@
+BASECPPFLAGS = @WALL@ @WNOLONGDOUBLE@ @WNOFORMAT@ @WNOOVERLOADEDVIRTUAL@ @CPPFLAGS@ @PTHREADINCLUDES@ @SSLINCLUDES@ @PCREINCLUDES@
EXPORTSCPPFLAGS =
EXTRACPPFLAGS = @EXTRACPPFLAGS@
CXXFLAGS = @CXXFLAGS@ @PIPE@
diff --git a/configure.ac b/configure.ac
index d82ea0e..290a80b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,7 +32,7 @@ AC_ARG_WITH(pthread-prefix,
PTHREADPATH="")
AC_ARG_ENABLE(ssl,
[ --disable-ssl Disable SSL support],
- ENABLE_RUDIMENTS_SSL="no",
+ ENABLE_RUDIMENTS_SSL="$enableval",
ENABLE_RUDIMENTS_SSL="yes")
AC_ARG_WITH(ssl-includes,
[ --with-ssl-includes SSL includes],
@@ -44,7 +44,7 @@ AC_ARG_WITH(ssl-libs,
SSLLIBS="")
AC_ARG_ENABLE(pcre,
[ --disable-pcre Don't use PCRE for regular expressions],
- ENABLE_RUDIMENTS_PCRE="no",
+ ENABLE_RUDIMENTS_PCRE="$enableval",
ENABLE_RUDIMENTS_PCRE="yes")
AC_ARG_WITH(pcre-includes,
[ --with-pcre-includes PCRE includes],
@@ -60,7 +60,7 @@ AC_ARG_ENABLE(built-in-regex,
USE_BUILT_IN_REGULAREXPRESSION="0")
AC_ARG_ENABLE(threads,
[ --disable-threads Disable thread support],
- ENABLE_RUDIMENTS_THREADS="no"; INCLUDE_THREAD="0",
+ ENABLE_RUDIMENTS_THREADS="$enableval"; INCLUDE_THREAD="0",
ENABLE_RUDIMENTS_THREADS="yes")
dnl options to disable building various classes
@@ -4034,6 +4034,10 @@ if ( test "`echo $datadir | cut -c1`" = "/" )
then
datadir='${DESTDIR}'"$datadir"
fi
+if ( test "`echo $docdir | cut -c1`" = "/" )
+then
+ docdir='${DESTDIR}'"$docdir"
+fi
dnl Output files.
diff --git a/src/Makefile.in b/src/Makefile.in
index a224d83..3b990fb 100644
@@ -2,7 +2,7 @@
include ../config.mk
-CPPFLAGS = $(WERROR) $(BASECPPFLAGS) $(EXPORTSCPPFLAGS) $(INC)../ $(INC)../include $(EXTRACPPFLAGS)
+CPPFLAGS = $(BASECPPFLAGS) $(EXPORTSCPPFLAGS) $(INC)../ $(INC)../include $(EXTRACPPFLAGS)
LIBS = $(SOCKETLIBS) $(PTHREADLIB) $(SSLLIBS) $(PCRELIBS) $(NANOSLEEPLIB) $(CLOCKNANOSLEEPLIB) $(SHMOPENLIB) $(CRYPTLIB) $(INETATONLIB) $(NETAPI32LIB) $(BELIB) $(GNULIB) $(CRTLIB) $(DLLIB) $(DEBUGLIB)
SRCS = @SRCS@
--- a/acsite.m4 2014-05-04 01:44:03.265919456 +0400
+++ b/acsite.m4 2014-05-04 01:44:34.008920936 +0400
@@ -279,7 +250,7 @@
dnl Sometimes -Wall includes -Wunused-variables and -Wunused-parameters
dnl which we don't care about. Disable it if it does.
OLDCPPFLAGS=$CPPFLAGS
- CPPFLAGS="$WALL $WERROR $CPPFLAGS"
+ CPPFLAGS="$WALL $CPPFLAGS"
AC_MSG_CHECKING(whether -Wall includes -Wunused-*)
AC_TRY_COMPILE([void f(int a) { return; }],[f(1);],AC_MSG_RESULT(no),WALL=""; AC_MSG_RESULT(yes))
CPPFLAGS=$OLDCPPFLAGS