8 htcacheclean_LTFLAGS=""
10 fcgistarter_LTFLAGS=""
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])
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])
31 APR_REMOVEFROM(htpasswd_LTFLAGS, [-static])
34 APACHE_SUBST(htpasswd_LTFLAGS)
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])
40 APR_REMOVEFROM(htdigest_LTFLAGS, [-static])
43 APACHE_SUBST(htdigest_LTFLAGS)
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])
49 APR_REMOVEFROM(rotatelogs_LTFLAGS, [-static])
52 APACHE_SUBST(rotatelogs_LTFLAGS)
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])
58 APR_REMOVEFROM(logresolve_LTFLAGS, [-static])
61 APACHE_SUBST(logresolve_LTFLAGS)
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])
67 APR_REMOVEFROM(htdbm_LTFLAGS, [-static])
70 APACHE_SUBST(htdbm_LTFLAGS)
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])
76 APR_REMOVEFROM(ab_LTFLAGS, [-static])
79 APACHE_SUBST(ab_LTFLAGS)
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])
85 APR_REMOVEFROM(checkgid_LTFLAGS, [-static])
88 APACHE_SUBST(checkgid_LTFLAGS)
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])
94 APR_REMOVEFROM(htcacheclean_LTFLAGS, [-static])
97 APACHE_SUBST(htcacheclean_LTFLAGS)
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])
103 APR_REMOVEFROM(httxt2dbm, [-static])
106 APACHE_SUBST(httxt2dbm_LTFLAGS)
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])
112 APR_REMOVEFROM(fcgistarter, [-static])
115 APACHE_SUBST(fcgistarter_LTFLAGS)
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"
126 # Tru64: -H is for setting, not retrieving
127 APACHECTL_ULIMIT="ulimit -S -n \`ulimit -h -n\`"
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\`"
137 APACHE_SUBST(APACHECTL_ULIMIT)