]> git.pld-linux.org Git - packages/apache-mod_mono.git/blame - apache-mod_mono-apu-config.patch
- %attr(750,http,http) %dir %{_httpdir}/mono
[packages/apache-mod_mono.git] / apache-mod_mono-apu-config.patch
CommitLineData
96ccbdb1
MK
1diff -Nuard mod_mono-1.0.orig/configure.in mod_mono-1.0/configure.in
2--- mod_mono-1.0.orig/configure.in 2004-06-29 18:01:53.000000000 +0200
3+++ mod_mono-1.0/configure.in 2004-07-05 22:41:23.299809912 +0200
4@@ -52,6 +52,29 @@
5 ],
6 AC_MSG_RESULT(not specified))
7
8+AC_MSG_CHECKING(for --with-apu-config)
9+AC_ARG_WITH(apu-config,
10+[ --with-apu-config=PATH Path to apu-config (apache 2.0). You may use
11+ this option when apr-config is not in the same
12+ directory as apxs and the output of
13+ 'apu-config --includes' is different from
14+ 'apxs -q INCLUDEDIR'.
15+],
16+[
17+ if test -x "$withval"
18+ then
19+ AC_MSG_RESULT([$withval executable, good])
20+ APUCONFIG=$withval
21+ else
22+ if test "xno" = "x$withval" ; then
23+ AC_MSG_RESULT([no])
24+ else
25+ AC_MSG_ERROR([$withval not found or not executable])
26+ fi
27+ fi
28+],
29+AC_MSG_RESULT(not specified))
30+
31 # if no apxs found yet, check /usr/local/apache/sbin
32 # since it's the default Apache location
33 if test -z "$APXS"; then
34@@ -76,6 +99,9 @@
35 if test -z "$APRCONFIG" ; then
36 APRCONFIG=`dirname ${APXS}`/apr-config
37 fi
38+ if test -z "$APUCONFIG" ; then
39+ APUCONFIG=`dirname ${APXS}`/apu-config
40+ fi
41 fi
42
43 if test -z "$APRCONFIG"; then
44@@ -89,6 +115,17 @@
45 fi
46 fi
47
48+if test -z "$APUCONFIG"; then
49+ AC_MSG_CHECKING(for apu-config in /usr/local/apache/sbin)
50+ if test -x /usr/local/apache/sbin/apu-config; then
51+ APUCONFIG=/usr/local/apache/sbin/apu-config
52+ AC_MSG_RESULT([found, we'll use this. Use --with-apu-config to specify another.])
53+ else
54+ AC_MSG_RESULT(no)
55+ APUCONFIG=""
56+ fi
57+fi
58+
59 if test -z "$APXS"; then
60 AC_MSG_CHECKING(for apxs2 in /usr/local/apache2/bin)
61 if test -x /usr/local/apache/bin/apxs2; then
62@@ -120,6 +157,17 @@
63 fi
64 fi
65
66+if test -z "$APUCONFIG"; then
67+ AC_MSG_CHECKING(for apu-config in /usr/local/apache2/bin)
68+ if test -x /usr/local/apache2/bin/apu-config; then
69+ APUCONFIG=/usr/local/apache2/bin/apu-config
70+ AC_MSG_RESULT([found, we'll use this. Use --with-apu-config to specify another.])
71+ else
72+ AC_MSG_RESULT(no)
73+ APUCONFIG=""
74+ fi
75+fi
76+
77 if test -z "$APXS"; then
78 AC_MSG_CHECKING(for apxs2 in /usr/sbin)
79 if test -x /usr/sbin/apxs2; then
80@@ -151,6 +199,17 @@
81 fi
82 fi
83
84+if test -z "$APUCONFIG"; then
85+ AC_MSG_CHECKING(for apu-config in /usr/sbin)
86+ if test -x /usr/sbin/apu-config; then
87+ APUCONFIG=/usr/sbin/apu-config
88+ AC_MSG_RESULT([found, we'll use this. Use --with-apu-config to specify another.])
89+ else
90+ AC_MSG_RESULT(no)
91+ APUCONFIG=""
92+ fi
93+fi
94+
95 # last resort
96 if test -z "$APXS"; then
97 AC_PATH_PROG(APXS, apxs2)
98@@ -168,6 +227,10 @@
99 AC_PATH_PROG(APRCONFIG, apr-config)
100 fi
101
102+if test -z "$APUCONFIG"; then
103+ AC_PATH_PROG(APUCONFIG, apr-config)
104+fi
105+
106 # determine LIBEXEC
107 AC_MSG_CHECKING(for Apache libexec directory)
108 APXS_LIBEXECDIR=`${APXS} -q LIBEXECDIR`
109@@ -205,8 +268,8 @@
110 fi
111
112 # Try apr-config
113-if test "$APACHE_VER" = "retry" -a -x "$APRCONFIG"; then
114- CFLAGS="$CFLAGS `$APRCONFIG --includes`"
115+if test "$APACHE_VER" = "retry" -a -x "$APRCONFIG" -a -x "$APUCONFIG"; then
116+ CFLAGS="$CFLAGS `$APRCONFIG --includes` `$APUCONFIG --includes`"
117 AC_TRY_COMPILE([
118 #include <apr.h>
119 ], [
120@@ -324,6 +387,7 @@
121 echo " * apxs = $APXS"
122 test "$APACHE_VER" = "2.0" -a -x "$APRCONFIG" && \
123 echo " * apr-config = $APRCONFIG"
124+echo " * apu-config = $APUCONFIG"
125 echo " * mono prefix = $MONO_PREFIX"
126 echo " * Build old module: $enable_old_module"
127 echo ""
This page took 0.500454 seconds and 4 git commands to generate.