9
AC_ARG_ENABLE(static-support,APACHE_HELP_STRING(--enable-static-support,Build a statically linked version of the support binaries),[
10
if test "$enableval" = "yes" ; then
11
APR_ADDTO(htpasswd_LTFLAGS, [-static])
12
APR_ADDTO(htdigest_LTFLAGS, [-static])
13
APR_ADDTO(rotatelogs_LTFLAGS, [-static])
14
APR_ADDTO(logresolve_LTFLAGS, [-static])
15
APR_ADDTO(htdbm_LTFLAGS, [-static])
16
APR_ADDTO(ab_LTFLAGS, [-static])
17
APR_ADDTO(checkgid_LTFLAGS, [-static])
21
AC_ARG_ENABLE(static-htpasswd,APACHE_HELP_STRING(--enable-static-htpasswd,Build a statically linked version of htpasswd),[
22
if test "$enableval" = "yes" ; then
23
APR_ADDTO(htpasswd_LTFLAGS, [-static])
25
APR_REMOVEFROM(htpasswd_LTFLAGS, [-static])
28
APACHE_SUBST(htpasswd_LTFLAGS)
30
AC_ARG_ENABLE(static-htdigest,APACHE_HELP_STRING(--enable-static-htdigest,Build a statically linked version of htdigest),[
31
if test "$enableval" = "yes" ; then
32
APR_ADDTO(htdigest_LTFLAGS, [-static])
34
APR_REMOVEFROM(htdigest_LTFLAGS, [-static])
37
APACHE_SUBST(htdigest_LTFLAGS)
39
AC_ARG_ENABLE(static-rotatelogs,APACHE_HELP_STRING(--enable-static-rotatelogs,Build a statically linked version of rotatelogs),[
40
if test "$enableval" = "yes" ; then
41
APR_ADDTO(rotatelogs_LTFLAGS, [-static])
43
APR_REMOVEFROM(rotatelogs_LTFLAGS, [-static])
46
APACHE_SUBST(rotatelogs_LTFLAGS)
48
AC_ARG_ENABLE(static-logresolve,APACHE_HELP_STRING(--enable-static-logresolve,Build a statically linked version of logresolve),[
49
if test "$enableval" = "yes" ; then
50
APR_ADDTO(logresolve_LTFLAGS, [-static])
52
APR_REMOVEFROM(logresolve_LTFLAGS, [-static])
55
APACHE_SUBST(logresolve_LTFLAGS)
57
AC_ARG_ENABLE(static-htdbm,APACHE_HELP_STRING(--enable-static-htdbm,Build a statically linked version of htdbm),[
58
if test "$enableval" = "yes" ; then
59
APR_ADDTO(htdbm_LTFLAGS, [-static])
61
APR_REMOVEFROM(htdbm_LTFLAGS, [-static])
64
APACHE_SUBST(htdbm_LTFLAGS)
66
AC_ARG_ENABLE(static-ab,APACHE_HELP_STRING(--enable-static-ab,Build a statically linked version of ab),[
67
if test "$enableval" = "yes" ; then
68
APR_ADDTO(ab_LTFLAGS, [-static])
70
APR_REMOVEFROM(ab_LTFLAGS, [-static])
73
APACHE_SUBST(ab_LTFLAGS)
75
AC_ARG_ENABLE(static-checkgid,APACHE_HELP_STRING(--enable-static-checkgid,Build a statically linked version of checkgid),[
76
if test "$enableval" = "yes" ; then
77
APR_ADDTO(checkgid_LTFLAGS, [-static])
79
APR_REMOVEFROM(checkgid_LTFLAGS, [-static])
82
APACHE_SUBST(checkgid_LTFLAGS)
86
# this works in any locale, unlike the default command below, which
87
# fails in a non-English locale if the hard limit is unlimited
88
# since the display of the limit will translate "unlimited", but
89
# ulimit only accepts English "unlimited" on input
90
APACHECTL_ULIMIT="ulimit -S -n unlimited"
93
# Tru64: -H is for setting, not retrieving
94
APACHECTL_ULIMIT="ulimit -S -n \`ulimit -h -n\`"
97
if TMP_ULIMIT=`ulimit -H -n` && ulimit -S -n $TMP_ULIMIT ; then
98
APACHECTL_ULIMIT="ulimit -S -n \`ulimit -H -n\`"
104
APACHE_SUBST(APACHECTL_ULIMIT)