]> granicus.if.org Git - apache/blob - support/config.m4
Correct referenced OpenSSL version now that 0.9.8m
[apache] / support / config.m4
1 htpasswd_LTFLAGS=""
2 htdigest_LTFLAGS=""
3 rotatelogs_LTFLAGS=""
4 logresolve_LTFLAGS=""
5 htdbm_LTFLAGS=""
6 ab_LTFLAGS=""
7 checkgid_LTFLAGS=""
8 htcacheclean_LTFLAGS=""
9 httxt2dbm_LTFLAGS=""
10 fcgistarter_LTFLAGS=""
11
12 AC_ARG_ENABLE(static-support,APACHE_HELP_STRING(--enable-static-support,Build a statically linked version of the support binaries),[
13 if test "$enableval" = "yes" ; then
14   APR_ADDTO(htpasswd_LTFLAGS, [-static])
15   APR_ADDTO(htdigest_LTFLAGS, [-static])
16   APR_ADDTO(rotatelogs_LTFLAGS, [-static])
17   APR_ADDTO(logresolve_LTFLAGS, [-static])
18   APR_ADDTO(htdbm_LTFLAGS, [-static])
19   APR_ADDTO(ab_LTFLAGS, [-static])
20   APR_ADDTO(checkgid_LTFLAGS, [-static])
21   APR_ADDTO(htcacheclean_LTFLAGS, [-static])
22   APR_ADDTO(httxt2dbm_LTFLAGS, [-static])
23   APR_ADDTO(fcgistarter_LTFLAGS, [-static])
24 fi
25 ])
26
27 AC_ARG_ENABLE(static-htpasswd,APACHE_HELP_STRING(--enable-static-htpasswd,Build a statically linked version of htpasswd),[
28 if test "$enableval" = "yes" ; then
29   APR_ADDTO(htpasswd_LTFLAGS, [-static])
30 else
31   APR_REMOVEFROM(htpasswd_LTFLAGS, [-static])
32 fi
33 ])
34 APACHE_SUBST(htpasswd_LTFLAGS)
35
36 AC_ARG_ENABLE(static-htdigest,APACHE_HELP_STRING(--enable-static-htdigest,Build a statically linked version of htdigest),[
37 if test "$enableval" = "yes" ; then
38   APR_ADDTO(htdigest_LTFLAGS, [-static])
39 else
40   APR_REMOVEFROM(htdigest_LTFLAGS, [-static])
41 fi
42 ])
43 APACHE_SUBST(htdigest_LTFLAGS)
44
45 AC_ARG_ENABLE(static-rotatelogs,APACHE_HELP_STRING(--enable-static-rotatelogs,Build a statically linked version of rotatelogs),[
46 if test "$enableval" = "yes" ; then
47   APR_ADDTO(rotatelogs_LTFLAGS, [-static])
48 else
49   APR_REMOVEFROM(rotatelogs_LTFLAGS, [-static])
50 fi
51 ])
52 APACHE_SUBST(rotatelogs_LTFLAGS)
53
54 AC_ARG_ENABLE(static-logresolve,APACHE_HELP_STRING(--enable-static-logresolve,Build a statically linked version of logresolve),[
55 if test "$enableval" = "yes" ; then
56   APR_ADDTO(logresolve_LTFLAGS, [-static])
57 else
58   APR_REMOVEFROM(logresolve_LTFLAGS, [-static])
59 fi
60 ])
61 APACHE_SUBST(logresolve_LTFLAGS)
62
63 AC_ARG_ENABLE(static-htdbm,APACHE_HELP_STRING(--enable-static-htdbm,Build a statically linked version of htdbm),[
64 if test "$enableval" = "yes" ; then
65   APR_ADDTO(htdbm_LTFLAGS, [-static])
66 else
67   APR_REMOVEFROM(htdbm_LTFLAGS, [-static])
68 fi
69 ])
70 APACHE_SUBST(htdbm_LTFLAGS)
71
72 AC_ARG_ENABLE(static-ab,APACHE_HELP_STRING(--enable-static-ab,Build a statically linked version of ab),[
73 if test "$enableval" = "yes" ; then
74   APR_ADDTO(ab_LTFLAGS, [-static])
75 else
76   APR_REMOVEFROM(ab_LTFLAGS, [-static])
77 fi
78 ])
79 APACHE_SUBST(ab_LTFLAGS)
80
81 AC_ARG_ENABLE(static-checkgid,APACHE_HELP_STRING(--enable-static-checkgid,Build a statically linked version of checkgid),[
82 if test "$enableval" = "yes" ; then
83   APR_ADDTO(checkgid_LTFLAGS, [-static])
84 else
85   APR_REMOVEFROM(checkgid_LTFLAGS, [-static])
86 fi
87 ])
88 APACHE_SUBST(checkgid_LTFLAGS)
89
90 AC_ARG_ENABLE(static-htcacheclean,APACHE_HELP_STRING(--enable-static-htcacheclean,Build a statically linked version of htcacheclean),[
91 if test "$enableval" = "yes" ; then
92   APR_ADDTO(htcacheclean_LTFLAGS, [-static])
93 else
94   APR_REMOVEFROM(htcacheclean_LTFLAGS, [-static])
95 fi
96 ])
97 APACHE_SUBST(htcacheclean_LTFLAGS)
98
99 AC_ARG_ENABLE(static-httxt2dbm,APACHE_HELP_STRING(--enable-static-httxt2dbm,Build a statically linked version of httxt2dbm),[
100 if test "$enableval" = "yes" ; then
101   APR_ADDTO(httxt2dbm_LTFLAGS, [-static])
102 else
103   APR_REMOVEFROM(httxt2dbm, [-static])
104 fi
105 ])
106 APACHE_SUBST(httxt2dbm_LTFLAGS)
107
108 AC_ARG_ENABLE(static-fcgistarter,APACHE_HELP_STRING(--enable-static-fcgistarter,Build a statically linked version of fcgistarter),[
109 if test "$enableval" = "yes" ; then
110   APR_ADDTO(fcgistarter_LTFLAGS, [-static])
111 else
112   APR_REMOVEFROM(fcgistarter, [-static])
113 fi
114 ])
115 APACHE_SUBST(fcgistarter_LTFLAGS)
116
117 case $host in
118     *aix*)
119         # this works in any locale, unlike the default command below, which
120         # fails in a non-English locale if the hard limit is unlimited
121         # since the display of the limit will translate "unlimited", but
122         # ulimit only accepts English "unlimited" on input
123         APACHECTL_ULIMIT="ulimit -S -n unlimited"
124         ;;
125     *alpha*-dec-osf*)
126         # Tru64: -H is for setting, not retrieving
127         APACHECTL_ULIMIT="ulimit -S -n \`ulimit -h -n\`"
128         ;;
129     *)
130         if TMP_ULIMIT=`ulimit -H -n` && ulimit -S -n $TMP_ULIMIT >/dev/null 2>&1; then
131             APACHECTL_ULIMIT="ulimit -S -n \`ulimit -H -n\`"
132         else
133             APACHECTL_ULIMIT=""
134         fi
135         ;;
136 esac
137 APACHE_SUBST(APACHECTL_ULIMIT)