Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git] / rt / configure
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for RT rt-4.0.22.
5 #
6 # Report bugs to <rt-bugs@bestpractical.com>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else
28   case `(set -o) 2>/dev/null` in #(
29   *posix*) :
30     set -o posix ;; #(
31   *) :
32      ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='print -r --'
49   as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51   as_echo='printf %s\n'
52   as_echo_n='printf %s'
53 else
54   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56     as_echo_n='/usr/ucb/echo -n'
57   else
58     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59     as_echo_n_body='eval
60       arg=$1;
61       case $arg in #(
62       *"$as_nl"*)
63         expr "X$arg" : "X\\(.*\\)$as_nl";
64         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65       esac;
66       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67     '
68     export as_echo_n_body
69     as_echo_n='sh -c $as_echo_n_body as_echo'
70   fi
71   export as_echo_body
72   as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order.  Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" ""        $as_nl"
91
92 # Find who we are.  Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139   # into an infinite loop, continuously re-executing ourselves.
140   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141     _as_can_reexec=no; export _as_can_reexec;
142     # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150   *v*x* | *x*v* ) as_opts=-vx ;;
151   *v* ) as_opts=-v ;;
152   *x* ) as_opts=-x ;;
153   * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160   fi
161   # We don't want this to propagate to other subprocesses.
162           { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165   emulate sh
166   NULLCMD=:
167   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168   # is contrary to our usage.  Disable this feature.
169   alias -g '\${1+\"\$@\"}'='\"\$@\"'
170   setopt NO_GLOB_SUBST
171 else
172   case \`(set -o) 2>/dev/null\` in #(
173   *posix*) :
174     set -o posix ;; #(
175   *) :
176      ;;
177 esac
178 fi
179 "
180   as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194   exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: rt-bugs@bestpractical.com about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='RT'
582 PACKAGE_TARNAME='rt'
583 PACKAGE_VERSION='rt-4.0.22'
584 PACKAGE_STRING='RT rt-4.0.22'
585 PACKAGE_BUGREPORT='rt-bugs@bestpractical.com'
586 PACKAGE_URL=''
587
588 ac_unique_file="lib/RT.pm"
589 ac_default_prefix=/opt/rt4
590 ac_subst_vars='LTLIBOBJS
591 LIBOBJS
592 RT_LOG_PATH_R
593 LOCAL_PLUGIN_PATH_R
594 LOCAL_LIB_PATH_R
595 LOCAL_LEXICON_PATH_R
596 MASON_LOCAL_HTML_PATH_R
597 LOCAL_ETC_PATH_R
598 MASON_HTML_PATH_R
599 MASON_SESSION_PATH_R
600 MASON_DATA_PATH_R
601 RT_PLUGIN_PATH_R
602 RT_LEXICON_PATH_R
603 RT_FONT_PATH_R
604 RT_MAN_PATH_R
605 RT_VAR_PATH_R
606 RT_SBIN_PATH_R
607 RT_BIN_PATH_R
608 CONFIG_FILE_PATH_R
609 RT_ETC_PATH_R
610 RT_LIB_PATH_R
611 RT_LOCAL_PATH_R
612 RT_DOC_PATH_R
613 RT_PATH_R
614 RT_LOG_PATH
615 LOCAL_PLUGIN_PATH
616 LOCAL_LIB_PATH
617 LOCAL_LEXICON_PATH
618 MASON_LOCAL_HTML_PATH
619 LOCAL_ETC_PATH
620 MASON_HTML_PATH
621 MASON_SESSION_PATH
622 MASON_DATA_PATH
623 RT_PLUGIN_PATH
624 RT_FONT_PATH
625 RT_MAN_PATH
626 RT_VAR_PATH
627 RT_SBIN_PATH
628 RT_BIN_PATH
629 CONFIG_FILE_PATH
630 RT_ETC_PATH
631 RT_LEXICON_PATH
632 RT_LIB_PATH
633 RT_LOCAL_PATH
634 RT_DOC_PATH
635 RT_PATH
636 RT_VERSION_PATCH
637 RT_VERSION_MINOR
638 RT_VERSION_MAJOR
639 RT_SSL_MAILGATE
640 RT_GPG
641 RT_GD
642 RT_GRAPHVIZ
643 RT_DEVEL_MODE
644 APACHECTL
645 RTGROUP
646 WEB_GROUP
647 WEB_USER
648 DB_RT_PASS
649 DB_RT_USER
650 DB_DATABASE
651 DB_DBA
652 DB_RT_HOST
653 DB_PORT
654 DB_HOST
655 DATABASE_ENV_PREF
656 DB_TYPE
657 LIBS_GROUP
658 LIBS_OWNER
659 BIN_OWNER
660 COMMENT_INPLACE_LAYOUT
661 rt_layout_name
662 exp_customlibdir
663 customlibdir
664 exp_customlexdir
665 customlexdir
666 exp_customhtmldir
667 customhtmldir
668 exp_customplugindir
669 customplugindir
670 exp_custometcdir
671 custometcdir
672 exp_customdir
673 customdir
674 exp_sessionstatedir
675 sessionstatedir
676 exp_masonstatedir
677 masonstatedir
678 exp_logfiledir
679 logfiledir
680 exp_localstatedir
681 exp_plugindir
682 plugindir
683 exp_manualdir
684 manualdir
685 exp_fontdir
686 fontdir
687 exp_htmldir
688 exp_datadir
689 exp_lexdir
690 lexdir
691 exp_libdir
692 exp_mandir
693 exp_sysconfdir
694 exp_sbindir
695 exp_bindir
696 exp_exec_prefix
697 exp_prefix
698 WEB_HANDLER
699 PERL
700 INSTALL_DATA
701 INSTALL_SCRIPT
702 INSTALL_PROGRAM
703 rt_version_patch
704 rt_version_minor
705 rt_version_major
706 CONFIGURE_INCANT
707 target_alias
708 host_alias
709 build_alias
710 LIBS
711 ECHO_T
712 ECHO_N
713 ECHO_C
714 DEFS
715 mandir
716 localedir
717 libdir
718 psdir
719 pdfdir
720 dvidir
721 htmldir
722 infodir
723 docdir
724 oldincludedir
725 includedir
726 localstatedir
727 sharedstatedir
728 sysconfdir
729 datadir
730 datarootdir
731 libexecdir
732 sbindir
733 bindir
734 program_transform_name
735 prefix
736 exec_prefix
737 PACKAGE_URL
738 PACKAGE_BUGREPORT
739 PACKAGE_STRING
740 PACKAGE_VERSION
741 PACKAGE_TARNAME
742 PACKAGE_NAME
743 PATH_SEPARATOR
744 SHELL'
745 ac_subst_files=''
746 ac_user_opts='
747 enable_option_checking
748 with_web_handler
749 enable_layout
750 with_bin_owner
751 with_libs_owner
752 with_libs_group
753 with_db_type
754 with_db_host
755 with_db_port
756 with_db_rt_host
757 with_db_dba
758 with_db_database
759 with_db_rt_user
760 with_db_rt_pass
761 with_web_user
762 with_web_group
763 with_rt_group
764 with_my_user_group
765 with_apachectl
766 with_devel_mode
767 enable_devel_mode
768 with_graphviz
769 enable_graphviz
770 with_gd
771 enable_gd
772 enable_gpg
773 with_ssl_mailgate
774 enable_ssl_mailgate
775 '
776       ac_precious_vars='build_alias
777 host_alias
778 target_alias
779 PERL'
780
781
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
803
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
829
830 ac_prev=
831 ac_dashdash=
832 for ac_option
833 do
834   # If the previous option needs an argument, assign it.
835   if test -n "$ac_prev"; then
836     eval $ac_prev=\$ac_option
837     ac_prev=
838     continue
839   fi
840
841   case $ac_option in
842   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843   *=)   ac_optarg= ;;
844   *)    ac_optarg=yes ;;
845   esac
846
847   # Accept the important Cygnus configure options, so we can diagnose typos.
848
849   case $ac_dashdash$ac_option in
850   --)
851     ac_dashdash=yes ;;
852
853   -bindir | --bindir | --bindi | --bind | --bin | --bi)
854     ac_prev=bindir ;;
855   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856     bindir=$ac_optarg ;;
857
858   -build | --build | --buil | --bui | --bu)
859     ac_prev=build_alias ;;
860   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861     build_alias=$ac_optarg ;;
862
863   -cache-file | --cache-file | --cache-fil | --cache-fi \
864   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865     ac_prev=cache_file ;;
866   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868     cache_file=$ac_optarg ;;
869
870   --config-cache | -C)
871     cache_file=config.cache ;;
872
873   -datadir | --datadir | --datadi | --datad)
874     ac_prev=datadir ;;
875   -datadir=* | --datadir=* | --datadi=* | --datad=*)
876     datadir=$ac_optarg ;;
877
878   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879   | --dataroo | --dataro | --datar)
880     ac_prev=datarootdir ;;
881   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883     datarootdir=$ac_optarg ;;
884
885   -disable-* | --disable-*)
886     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887     # Reject names that are not valid shell variable names.
888     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889       as_fn_error $? "invalid feature name: $ac_useropt"
890     ac_useropt_orig=$ac_useropt
891     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892     case $ac_user_opts in
893       *"
894 "enable_$ac_useropt"
895 "*) ;;
896       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897          ac_unrecognized_sep=', ';;
898     esac
899     eval enable_$ac_useropt=no ;;
900
901   -docdir | --docdir | --docdi | --doc | --do)
902     ac_prev=docdir ;;
903   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904     docdir=$ac_optarg ;;
905
906   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907     ac_prev=dvidir ;;
908   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909     dvidir=$ac_optarg ;;
910
911   -enable-* | --enable-*)
912     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913     # Reject names that are not valid shell variable names.
914     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915       as_fn_error $? "invalid feature name: $ac_useropt"
916     ac_useropt_orig=$ac_useropt
917     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918     case $ac_user_opts in
919       *"
920 "enable_$ac_useropt"
921 "*) ;;
922       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923          ac_unrecognized_sep=', ';;
924     esac
925     eval enable_$ac_useropt=\$ac_optarg ;;
926
927   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929   | --exec | --exe | --ex)
930     ac_prev=exec_prefix ;;
931   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933   | --exec=* | --exe=* | --ex=*)
934     exec_prefix=$ac_optarg ;;
935
936   -gas | --gas | --ga | --g)
937     # Obsolete; use --with-gas.
938     with_gas=yes ;;
939
940   -help | --help | --hel | --he | -h)
941     ac_init_help=long ;;
942   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943     ac_init_help=recursive ;;
944   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945     ac_init_help=short ;;
946
947   -host | --host | --hos | --ho)
948     ac_prev=host_alias ;;
949   -host=* | --host=* | --hos=* | --ho=*)
950     host_alias=$ac_optarg ;;
951
952   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953     ac_prev=htmldir ;;
954   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955   | --ht=*)
956     htmldir=$ac_optarg ;;
957
958   -includedir | --includedir | --includedi | --included | --include \
959   | --includ | --inclu | --incl | --inc)
960     ac_prev=includedir ;;
961   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962   | --includ=* | --inclu=* | --incl=* | --inc=*)
963     includedir=$ac_optarg ;;
964
965   -infodir | --infodir | --infodi | --infod | --info | --inf)
966     ac_prev=infodir ;;
967   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968     infodir=$ac_optarg ;;
969
970   -libdir | --libdir | --libdi | --libd)
971     ac_prev=libdir ;;
972   -libdir=* | --libdir=* | --libdi=* | --libd=*)
973     libdir=$ac_optarg ;;
974
975   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976   | --libexe | --libex | --libe)
977     ac_prev=libexecdir ;;
978   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979   | --libexe=* | --libex=* | --libe=*)
980     libexecdir=$ac_optarg ;;
981
982   -localedir | --localedir | --localedi | --localed | --locale)
983     ac_prev=localedir ;;
984   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985     localedir=$ac_optarg ;;
986
987   -localstatedir | --localstatedir | --localstatedi | --localstated \
988   | --localstate | --localstat | --localsta | --localst | --locals)
989     ac_prev=localstatedir ;;
990   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992     localstatedir=$ac_optarg ;;
993
994   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995     ac_prev=mandir ;;
996   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997     mandir=$ac_optarg ;;
998
999   -nfp | --nfp | --nf)
1000     # Obsolete; use --without-fp.
1001     with_fp=no ;;
1002
1003   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004   | --no-cr | --no-c | -n)
1005     no_create=yes ;;
1006
1007   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009     no_recursion=yes ;;
1010
1011   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013   | --oldin | --oldi | --old | --ol | --o)
1014     ac_prev=oldincludedir ;;
1015   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018     oldincludedir=$ac_optarg ;;
1019
1020   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021     ac_prev=prefix ;;
1022   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023     prefix=$ac_optarg ;;
1024
1025   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026   | --program-pre | --program-pr | --program-p)
1027     ac_prev=program_prefix ;;
1028   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030     program_prefix=$ac_optarg ;;
1031
1032   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033   | --program-suf | --program-su | --program-s)
1034     ac_prev=program_suffix ;;
1035   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037     program_suffix=$ac_optarg ;;
1038
1039   -program-transform-name | --program-transform-name \
1040   | --program-transform-nam | --program-transform-na \
1041   | --program-transform-n | --program-transform- \
1042   | --program-transform | --program-transfor \
1043   | --program-transfo | --program-transf \
1044   | --program-trans | --program-tran \
1045   | --progr-tra | --program-tr | --program-t)
1046     ac_prev=program_transform_name ;;
1047   -program-transform-name=* | --program-transform-name=* \
1048   | --program-transform-nam=* | --program-transform-na=* \
1049   | --program-transform-n=* | --program-transform-=* \
1050   | --program-transform=* | --program-transfor=* \
1051   | --program-transfo=* | --program-transf=* \
1052   | --program-trans=* | --program-tran=* \
1053   | --progr-tra=* | --program-tr=* | --program-t=*)
1054     program_transform_name=$ac_optarg ;;
1055
1056   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057     ac_prev=pdfdir ;;
1058   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059     pdfdir=$ac_optarg ;;
1060
1061   -psdir | --psdir | --psdi | --psd | --ps)
1062     ac_prev=psdir ;;
1063   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064     psdir=$ac_optarg ;;
1065
1066   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067   | -silent | --silent | --silen | --sile | --sil)
1068     silent=yes ;;
1069
1070   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071     ac_prev=sbindir ;;
1072   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073   | --sbi=* | --sb=*)
1074     sbindir=$ac_optarg ;;
1075
1076   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078   | --sharedst | --shareds | --shared | --share | --shar \
1079   | --sha | --sh)
1080     ac_prev=sharedstatedir ;;
1081   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084   | --sha=* | --sh=*)
1085     sharedstatedir=$ac_optarg ;;
1086
1087   -site | --site | --sit)
1088     ac_prev=site ;;
1089   -site=* | --site=* | --sit=*)
1090     site=$ac_optarg ;;
1091
1092   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093     ac_prev=srcdir ;;
1094   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095     srcdir=$ac_optarg ;;
1096
1097   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098   | --syscon | --sysco | --sysc | --sys | --sy)
1099     ac_prev=sysconfdir ;;
1100   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102     sysconfdir=$ac_optarg ;;
1103
1104   -target | --target | --targe | --targ | --tar | --ta | --t)
1105     ac_prev=target_alias ;;
1106   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107     target_alias=$ac_optarg ;;
1108
1109   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110     verbose=yes ;;
1111
1112   -version | --version | --versio | --versi | --vers | -V)
1113     ac_init_version=: ;;
1114
1115   -with-* | --with-*)
1116     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117     # Reject names that are not valid shell variable names.
1118     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119       as_fn_error $? "invalid package name: $ac_useropt"
1120     ac_useropt_orig=$ac_useropt
1121     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122     case $ac_user_opts in
1123       *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127          ac_unrecognized_sep=', ';;
1128     esac
1129     eval with_$ac_useropt=\$ac_optarg ;;
1130
1131   -without-* | --without-*)
1132     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133     # Reject names that are not valid shell variable names.
1134     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135       as_fn_error $? "invalid package name: $ac_useropt"
1136     ac_useropt_orig=$ac_useropt
1137     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138     case $ac_user_opts in
1139       *"
1140 "with_$ac_useropt"
1141 "*) ;;
1142       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143          ac_unrecognized_sep=', ';;
1144     esac
1145     eval with_$ac_useropt=no ;;
1146
1147   --x)
1148     # Obsolete; use --with-x.
1149     with_x=yes ;;
1150
1151   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152   | --x-incl | --x-inc | --x-in | --x-i)
1153     ac_prev=x_includes ;;
1154   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156     x_includes=$ac_optarg ;;
1157
1158   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160     ac_prev=x_libraries ;;
1161   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163     x_libraries=$ac_optarg ;;
1164
1165   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information"
1167     ;;
1168
1169   *=*)
1170     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171     # Reject names that are not valid shell variable names.
1172     case $ac_envvar in #(
1173       '' | [0-9]* | *[!_$as_cr_alnum]* )
1174       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175     esac
1176     eval $ac_envvar=\$ac_optarg
1177     export $ac_envvar ;;
1178
1179   *)
1180     # FIXME: should be removed in autoconf 3.0.
1181     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185     ;;
1186
1187   esac
1188 done
1189
1190 if test -n "$ac_prev"; then
1191   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192   as_fn_error $? "missing argument to $ac_option"
1193 fi
1194
1195 if test -n "$ac_unrecognized_opts"; then
1196   case $enable_option_checking in
1197     no) ;;
1198     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200   esac
1201 fi
1202
1203 # Check all directory arguments for consistency.
1204 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205                 datadir sysconfdir sharedstatedir localstatedir includedir \
1206                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207                 libdir localedir mandir
1208 do
1209   eval ac_val=\$$ac_var
1210   # Remove trailing slashes.
1211   case $ac_val in
1212     */ )
1213       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214       eval $ac_var=\$ac_val;;
1215   esac
1216   # Be sure to have absolute directory names.
1217   case $ac_val in
1218     [\\/$]* | ?:[\\/]* )  continue;;
1219     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220   esac
1221   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222 done
1223
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1230
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233   if test "x$build_alias" = x; then
1234     cross_compiling=maybe
1235   elif test "x$build_alias" != "x$host_alias"; then
1236     cross_compiling=yes
1237   fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249   as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251   as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256   ac_srcdir_defaulted=yes
1257   # Try the directory containing this script, then the parent directory.
1258   ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260          X"$as_myself" : 'X\(//\)[^/]' \| \
1261          X"$as_myself" : 'X\(//\)$' \| \
1262          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)[^/].*/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\).*/{
1277             s//\1/
1278             q
1279           }
1280           s/.*/./; q'`
1281   srcdir=$ac_confdir
1282   if test ! -r "$srcdir/$ac_unique_file"; then
1283     srcdir=..
1284   fi
1285 else
1286   ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295         pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298   srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_env_${ac_var}_value=\$${ac_var}
1309   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317   # Omit some internal or obsolete options to make the list less imposing.
1318   # This message is too long to be a string in the A/UX 3.1 sh.
1319   cat <<_ACEOF
1320 \`configure' configures RT rt-4.0.22 to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE.  See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330   -h, --help              display this help and exit
1331       --help=short        display options specific to this package
1332       --help=recursive    display the short help of all the included packages
1333   -V, --version           display version information and exit
1334   -q, --quiet, --silent   do not print \`checking ...' messages
1335       --cache-file=FILE   cache test results in FILE [disabled]
1336   -C, --config-cache      alias for \`--cache-file=config.cache'
1337   -n, --no-create         do not create output files
1338       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341   --prefix=PREFIX         install architecture-independent files in PREFIX
1342                           [$ac_default_prefix]
1343   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1344                           [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354   --bindir=DIR            user executables [EPREFIX/bin]
1355   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1356   --libexecdir=DIR        program executables [EPREFIX/libexec]
1357   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1358   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1359   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1360   --libdir=DIR            object code libraries [EPREFIX/lib]
1361   --includedir=DIR        C header files [PREFIX/include]
1362   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1363   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1364   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1365   --infodir=DIR           info documentation [DATAROOTDIR/info]
1366   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1367   --mandir=DIR            man documentation [DATAROOTDIR/man]
1368   --docdir=DIR            documentation root [DATAROOTDIR/doc/rt]
1369   --htmldir=DIR           html documentation [DOCDIR]
1370   --dvidir=DIR            dvi documentation [DOCDIR]
1371   --pdfdir=DIR            pdf documentation [DOCDIR]
1372   --psdir=DIR             ps documentation [DOCDIR]
1373 _ACEOF
1374
1375   cat <<\_ACEOF
1376 _ACEOF
1377 fi
1378
1379 if test -n "$ac_init_help"; then
1380   case $ac_init_help in
1381      short | recursive ) echo "Configuration of RT rt-4.0.22:";;
1382    esac
1383   cat <<\_ACEOF
1384
1385 Optional Features:
1386   --disable-option-checking  ignore unrecognized --enable/--with options
1387   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1388   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1389   --enable-layout=LAYOUT  Use a specific directory layout (Default: relative)
1390   --enable-devel-mode     Turn on development aids that might hurt you in
1391                           production
1392   --enable-graphviz       Turns on support for RT's GraphViz dependency charts
1393   --enable-gd             Turns on support for RT's GD pie and bar charts
1394   --enable-gpg            Turns on GNU Privacy Guard (GPG) support
1395   --enable-ssl-mailgate   Turns on support for HTTPS in rt-mailgate
1396
1397 Optional Packages:
1398   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1399   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1400   --with-web-handler=LIST comma separated list of web-handlers RT will be able
1401                           to use. Default is fastcgi. Valid values are
1402                           modperl1, modperl2, fastcgi and standalone. To
1403                           successfully run RT you need only one.
1404   --with-bin-owner=OWNER  user that will own RT binaries (default root)
1405   --with-libs-owner=OWNER user that will own RT libraries (default root)
1406   --with-libs-group=GROUP group that will own RT binaries (default bin)
1407   --with-db-type=TYPE     sort of database RT will use (default: mysql)
1408                           (mysql, Pg, Oracle and SQLite are valid)
1409   --with-db-host=HOSTNAME FQDN of database server (default: localhost)
1410   --with-db-port=PORT     port on which the database listens on
1411   --with-db-rt-host=HOSTNAME
1412                           FQDN of RT server which talks to the database server
1413                           (default: localhost)
1414   --with-db-dba=DBA       name of database administrator (default: root or
1415                           postgres)
1416   --with-db-database=DBNAME
1417                           name of the database to use (default: rt4)
1418   --with-db-rt-user=DBUSER
1419                           name of database user (default: rt_user)
1420   --with-db-rt-pass=PASSWORD
1421                           password for database user (default: rt_pass)
1422   --with-web-user=USER    user the web server runs as (default: www)
1423   --with-web-group=GROUP  group the web server runs as (default: www)
1424   --with-rt-group=GROUP   group to own all files (default: rt)
1425   --with-my-user-group    set all users and groups to current user/group
1426   --with-apachectl        instruct RT where to find your apachectl
1427
1428
1429 Some influential environment variables:
1430   PERL        Perl interpreter command
1431
1432 Use these variables to override the choices made by `configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1434
1435 Report bugs to <rt-bugs@bestpractical.com>.
1436 _ACEOF
1437 ac_status=$?
1438 fi
1439
1440 if test "$ac_init_help" = "recursive"; then
1441   # If there are subdirs, report their specific --help.
1442   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443     test -d "$ac_dir" ||
1444       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445       continue
1446     ac_builddir=.
1447
1448 case "$ac_dir" in
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *)
1451   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452   # A ".." for each directory in $ac_dir_suffix.
1453   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454   case $ac_top_builddir_sub in
1455   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457   esac ;;
1458 esac
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1463
1464 case $srcdir in
1465   .)  # We are building in place.
1466     ac_srcdir=.
1467     ac_top_srcdir=$ac_top_builddir_sub
1468     ac_abs_top_srcdir=$ac_pwd ;;
1469   [\\/]* | ?:[\\/]* )  # Absolute name.
1470     ac_srcdir=$srcdir$ac_dir_suffix;
1471     ac_top_srcdir=$srcdir
1472     ac_abs_top_srcdir=$srcdir ;;
1473   *) # Relative name.
1474     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475     ac_top_srcdir=$ac_top_build_prefix$srcdir
1476     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477 esac
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480     cd "$ac_dir" || { ac_status=$?; continue; }
1481     # Check for guested configure.
1482     if test -f "$ac_srcdir/configure.gnu"; then
1483       echo &&
1484       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485     elif test -f "$ac_srcdir/configure"; then
1486       echo &&
1487       $SHELL "$ac_srcdir/configure" --help=recursive
1488     else
1489       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490     fi || ac_status=$?
1491     cd "$ac_pwd" || { ac_status=$?; break; }
1492   done
1493 fi
1494
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1497   cat <<\_ACEOF
1498 RT configure rt-4.0.22
1499 generated by GNU Autoconf 2.69
1500
1501 Copyright (C) 2012 Free Software Foundation, Inc.
1502 This configure script is free software; the Free Software Foundation
1503 gives unlimited permission to copy, distribute and modify it.
1504 _ACEOF
1505   exit
1506 fi
1507
1508 ## ------------------------ ##
1509 ## Autoconf initialization. ##
1510 ## ------------------------ ##
1511 cat >config.log <<_ACEOF
1512 This file contains any messages produced by compilers while
1513 running configure, to aid debugging if configure makes a mistake.
1514
1515 It was created by RT $as_me rt-4.0.22, which was
1516 generated by GNU Autoconf 2.69.  Invocation command line was
1517
1518   $ $0 $@
1519
1520 _ACEOF
1521 exec 5>>config.log
1522 {
1523 cat <<_ASUNAME
1524 ## --------- ##
1525 ## Platform. ##
1526 ## --------- ##
1527
1528 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1529 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1530 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1531 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1532 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1533
1534 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1535 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1536
1537 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1538 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1539 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1540 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1541 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1542 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1543 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1544
1545 _ASUNAME
1546
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 for as_dir in $PATH
1549 do
1550   IFS=$as_save_IFS
1551   test -z "$as_dir" && as_dir=.
1552     $as_echo "PATH: $as_dir"
1553   done
1554 IFS=$as_save_IFS
1555
1556 } >&5
1557
1558 cat >&5 <<_ACEOF
1559
1560
1561 ## ----------- ##
1562 ## Core tests. ##
1563 ## ----------- ##
1564
1565 _ACEOF
1566
1567
1568 # Keep a trace of the command line.
1569 # Strip out --no-create and --no-recursion so they do not pile up.
1570 # Strip out --silent because we don't want to record it for future runs.
1571 # Also quote any args containing shell meta-characters.
1572 # Make two passes to allow for proper duplicate-argument suppression.
1573 ac_configure_args=
1574 ac_configure_args0=
1575 ac_configure_args1=
1576 ac_must_keep_next=false
1577 for ac_pass in 1 2
1578 do
1579   for ac_arg
1580   do
1581     case $ac_arg in
1582     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1583     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1584     | -silent | --silent | --silen | --sile | --sil)
1585       continue ;;
1586     *\'*)
1587       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1588     esac
1589     case $ac_pass in
1590     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1591     2)
1592       as_fn_append ac_configure_args1 " '$ac_arg'"
1593       if test $ac_must_keep_next = true; then
1594         ac_must_keep_next=false # Got value, back to normal.
1595       else
1596         case $ac_arg in
1597           *=* | --config-cache | -C | -disable-* | --disable-* \
1598           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1599           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1600           | -with-* | --with-* | -without-* | --without-* | --x)
1601             case "$ac_configure_args0 " in
1602               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1603             esac
1604             ;;
1605           -* ) ac_must_keep_next=true ;;
1606         esac
1607       fi
1608       as_fn_append ac_configure_args " '$ac_arg'"
1609       ;;
1610     esac
1611   done
1612 done
1613 { ac_configure_args0=; unset ac_configure_args0;}
1614 { ac_configure_args1=; unset ac_configure_args1;}
1615
1616 # When interrupted or exit'd, cleanup temporary files, and complete
1617 # config.log.  We remove comments because anyway the quotes in there
1618 # would cause problems or look ugly.
1619 # WARNING: Use '\'' to represent an apostrophe within the trap.
1620 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1621 trap 'exit_status=$?
1622   # Save into config.log some information that might help in debugging.
1623   {
1624     echo
1625
1626     $as_echo "## ---------------- ##
1627 ## Cache variables. ##
1628 ## ---------------- ##"
1629     echo
1630     # The following way of writing the cache mishandles newlines in values,
1631 (
1632   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1633     eval ac_val=\$$ac_var
1634     case $ac_val in #(
1635     *${as_nl}*)
1636       case $ac_var in #(
1637       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1638 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1639       esac
1640       case $ac_var in #(
1641       _ | IFS | as_nl) ;; #(
1642       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1643       *) { eval $ac_var=; unset $ac_var;} ;;
1644       esac ;;
1645     esac
1646   done
1647   (set) 2>&1 |
1648     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1649     *${as_nl}ac_space=\ *)
1650       sed -n \
1651         "s/'\''/'\''\\\\'\'''\''/g;
1652           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1653       ;; #(
1654     *)
1655       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1656       ;;
1657     esac |
1658     sort
1659 )
1660     echo
1661
1662     $as_echo "## ----------------- ##
1663 ## Output variables. ##
1664 ## ----------------- ##"
1665     echo
1666     for ac_var in $ac_subst_vars
1667     do
1668       eval ac_val=\$$ac_var
1669       case $ac_val in
1670       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1671       esac
1672       $as_echo "$ac_var='\''$ac_val'\''"
1673     done | sort
1674     echo
1675
1676     if test -n "$ac_subst_files"; then
1677       $as_echo "## ------------------- ##
1678 ## File substitutions. ##
1679 ## ------------------- ##"
1680       echo
1681       for ac_var in $ac_subst_files
1682       do
1683         eval ac_val=\$$ac_var
1684         case $ac_val in
1685         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1686         esac
1687         $as_echo "$ac_var='\''$ac_val'\''"
1688       done | sort
1689       echo
1690     fi
1691
1692     if test -s confdefs.h; then
1693       $as_echo "## ----------- ##
1694 ## confdefs.h. ##
1695 ## ----------- ##"
1696       echo
1697       cat confdefs.h
1698       echo
1699     fi
1700     test "$ac_signal" != 0 &&
1701       $as_echo "$as_me: caught signal $ac_signal"
1702     $as_echo "$as_me: exit $exit_status"
1703   } >&5
1704   rm -f core *.core core.conftest.* &&
1705     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1706     exit $exit_status
1707 ' 0
1708 for ac_signal in 1 2 13 15; do
1709   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1710 done
1711 ac_signal=0
1712
1713 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1714 rm -f -r conftest* confdefs.h
1715
1716 $as_echo "/* confdefs.h */" > confdefs.h
1717
1718 # Predefined preprocessor variables.
1719
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_NAME "$PACKAGE_NAME"
1722 _ACEOF
1723
1724 cat >>confdefs.h <<_ACEOF
1725 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1726 _ACEOF
1727
1728 cat >>confdefs.h <<_ACEOF
1729 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1730 _ACEOF
1731
1732 cat >>confdefs.h <<_ACEOF
1733 #define PACKAGE_STRING "$PACKAGE_STRING"
1734 _ACEOF
1735
1736 cat >>confdefs.h <<_ACEOF
1737 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1738 _ACEOF
1739
1740 cat >>confdefs.h <<_ACEOF
1741 #define PACKAGE_URL "$PACKAGE_URL"
1742 _ACEOF
1743
1744
1745 # Let the site file select an alternate cache file if it wants to.
1746 # Prefer an explicitly selected file to automatically selected ones.
1747 ac_site_file1=NONE
1748 ac_site_file2=NONE
1749 if test -n "$CONFIG_SITE"; then
1750   # We do not want a PATH search for config.site.
1751   case $CONFIG_SITE in #((
1752     -*)  ac_site_file1=./$CONFIG_SITE;;
1753     */*) ac_site_file1=$CONFIG_SITE;;
1754     *)   ac_site_file1=./$CONFIG_SITE;;
1755   esac
1756 elif test "x$prefix" != xNONE; then
1757   ac_site_file1=$prefix/share/config.site
1758   ac_site_file2=$prefix/etc/config.site
1759 else
1760   ac_site_file1=$ac_default_prefix/share/config.site
1761   ac_site_file2=$ac_default_prefix/etc/config.site
1762 fi
1763 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1764 do
1765   test "x$ac_site_file" = xNONE && continue
1766   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1767     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1768 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1769     sed 's/^/| /' "$ac_site_file" >&5
1770     . "$ac_site_file" \
1771       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1773 as_fn_error $? "failed to load site script $ac_site_file
1774 See \`config.log' for more details" "$LINENO" 5; }
1775   fi
1776 done
1777
1778 if test -r "$cache_file"; then
1779   # Some versions of bash will fail to source /dev/null (special files
1780   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1781   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1782     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1783 $as_echo "$as_me: loading cache $cache_file" >&6;}
1784     case $cache_file in
1785       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1786       *)                      . "./$cache_file";;
1787     esac
1788   fi
1789 else
1790   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1791 $as_echo "$as_me: creating cache $cache_file" >&6;}
1792   >$cache_file
1793 fi
1794
1795 # Check that the precious variables saved in the cache have kept the same
1796 # value.
1797 ac_cache_corrupted=false
1798 for ac_var in $ac_precious_vars; do
1799   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1800   eval ac_new_set=\$ac_env_${ac_var}_set
1801   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1802   eval ac_new_val=\$ac_env_${ac_var}_value
1803   case $ac_old_set,$ac_new_set in
1804     set,)
1805       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1806 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1807       ac_cache_corrupted=: ;;
1808     ,set)
1809       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1810 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1811       ac_cache_corrupted=: ;;
1812     ,);;
1813     *)
1814       if test "x$ac_old_val" != "x$ac_new_val"; then
1815         # differences in whitespace do not lead to failure.
1816         ac_old_val_w=`echo x $ac_old_val`
1817         ac_new_val_w=`echo x $ac_new_val`
1818         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1819           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1820 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1821           ac_cache_corrupted=:
1822         else
1823           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1824 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1825           eval $ac_var=\$ac_old_val
1826         fi
1827         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1828 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1829         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1830 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1831       fi;;
1832   esac
1833   # Pass precious variables to config.status.
1834   if test "$ac_new_set" = set; then
1835     case $ac_new_val in
1836     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1837     *) ac_arg=$ac_var=$ac_new_val ;;
1838     esac
1839     case " $ac_configure_args " in
1840       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1841       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1842     esac
1843   fi
1844 done
1845 if $ac_cache_corrupted; then
1846   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1848   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1849 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1850   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1851 fi
1852 ## -------------------- ##
1853 ## Main body of script. ##
1854 ## -------------------- ##
1855
1856 ac_ext=c
1857 ac_cpp='$CPP $CPPFLAGS'
1858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1861
1862
1863
1864
1865 CONFIGURE_INCANT="$0 $@"
1866
1867
1868 rt_version_major=4
1869
1870 rt_version_minor=0
1871
1872 rt_version_patch=22
1873
1874 test "x$rt_version_major" = 'x' && rt_version_major=0
1875 test "x$rt_version_minor" = 'x' && rt_version_minor=0
1876 test "x$rt_version_patch" = 'x' && rt_version_patch=0
1877
1878 ac_aux_dir=
1879 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1880   if test -f "$ac_dir/install-sh"; then
1881     ac_aux_dir=$ac_dir
1882     ac_install_sh="$ac_aux_dir/install-sh -c"
1883     break
1884   elif test -f "$ac_dir/install.sh"; then
1885     ac_aux_dir=$ac_dir
1886     ac_install_sh="$ac_aux_dir/install.sh -c"
1887     break
1888   elif test -f "$ac_dir/shtool"; then
1889     ac_aux_dir=$ac_dir
1890     ac_install_sh="$ac_aux_dir/shtool install -c"
1891     break
1892   fi
1893 done
1894 if test -z "$ac_aux_dir"; then
1895   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1896 fi
1897
1898 # These three variables are undocumented and unsupported,
1899 # and are intended to be withdrawn in a future Autoconf release.
1900 # They can cause serious problems if a builder's source tree is in a directory
1901 # whose full name contains unusual characters.
1902 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1903 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1904 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1905
1906
1907 # Find a good install program.  We prefer a C program (faster),
1908 # so one script is as good as another.  But avoid the broken or
1909 # incompatible versions:
1910 # SysV /etc/install, /usr/sbin/install
1911 # SunOS /usr/etc/install
1912 # IRIX /sbin/install
1913 # AIX /bin/install
1914 # AmigaOS /C/install, which installs bootblocks on floppy discs
1915 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1916 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1917 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1918 # OS/2's system install, which has a completely different semantic
1919 # ./install, which can be erroneously created by make from ./install.sh.
1920 # Reject install programs that cannot install multiple files.
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1922 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1923 if test -z "$INSTALL"; then
1924 if ${ac_cv_path_install+:} false; then :
1925   $as_echo_n "(cached) " >&6
1926 else
1927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH
1929 do
1930   IFS=$as_save_IFS
1931   test -z "$as_dir" && as_dir=.
1932     # Account for people who put trailing slashes in PATH elements.
1933 case $as_dir/ in #((
1934   ./ | .// | /[cC]/* | \
1935   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1936   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1937   /usr/ucb/* ) ;;
1938   *)
1939     # OSF1 and SCO ODT 3.0 have their own names for install.
1940     # Don't use installbsd from OSF since it installs stuff as root
1941     # by default.
1942     for ac_prog in ginstall scoinst install; do
1943       for ac_exec_ext in '' $ac_executable_extensions; do
1944         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1945           if test $ac_prog = install &&
1946             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1947             # AIX install.  It has an incompatible calling convention.
1948             :
1949           elif test $ac_prog = install &&
1950             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1951             # program-specific install script used by HP pwplus--don't use.
1952             :
1953           else
1954             rm -rf conftest.one conftest.two conftest.dir
1955             echo one > conftest.one
1956             echo two > conftest.two
1957             mkdir conftest.dir
1958             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1959               test -s conftest.one && test -s conftest.two &&
1960               test -s conftest.dir/conftest.one &&
1961               test -s conftest.dir/conftest.two
1962             then
1963               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1964               break 3
1965             fi
1966           fi
1967         fi
1968       done
1969     done
1970     ;;
1971 esac
1972
1973   done
1974 IFS=$as_save_IFS
1975
1976 rm -rf conftest.one conftest.two conftest.dir
1977
1978 fi
1979   if test "${ac_cv_path_install+set}" = set; then
1980     INSTALL=$ac_cv_path_install
1981   else
1982     # As a last resort, use the slow shell script.  Don't cache a
1983     # value for INSTALL within a source directory, because that will
1984     # break other packages using the cache if that directory is
1985     # removed, or if the value is a relative name.
1986     INSTALL=$ac_install_sh
1987   fi
1988 fi
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1990 $as_echo "$INSTALL" >&6; }
1991
1992 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1993 # It thinks the first close brace ends the variable substitution.
1994 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1995
1996 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1997
1998 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1999
2000
2001 # Extract the first word of "perl", so it can be a program name with args.
2002 set dummy perl; ac_word=$2
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2004 $as_echo_n "checking for $ac_word... " >&6; }
2005 if ${ac_cv_path_PERL+:} false; then :
2006   $as_echo_n "(cached) " >&6
2007 else
2008   case $PERL in
2009   [\\/]* | ?:[\\/]*)
2010   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2011   ;;
2012   *)
2013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018     for ac_exec_ext in '' $ac_executable_extensions; do
2019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
2021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2022     break 2
2023   fi
2024 done
2025   done
2026 IFS=$as_save_IFS
2027
2028   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="not found"
2029   ;;
2030 esac
2031 fi
2032 PERL=$ac_cv_path_PERL
2033 if test -n "$PERL"; then
2034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
2035 $as_echo "$PERL" >&6; }
2036 else
2037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2038 $as_echo "no" >&6; }
2039 fi
2040
2041
2042 if test "$PERL" = 'not found'; then
2043         as_fn_error $? "cannot use $PACKAGE_NAME without perl" "$LINENO" 5
2044 fi
2045
2046
2047
2048 # Check whether --with-web-handler was given.
2049 if test "${with_web_handler+set}" = set; then :
2050   withval=$with_web_handler; WEB_HANDLER=$withval
2051 else
2052   WEB_HANDLER=fastcgi
2053 fi
2054
2055 my_web_handler_test=$($PERL -e 'print "ok" unless grep $_ !~ /^(modperl1|modperl2|fastcgi|standalone)$/i, grep defined && length, split /\s*,\s*/, $ARGV[0]' $WEB_HANDLER)
2056 if test "$my_web_handler_test" != "ok"; then
2057         as_fn_error $? "Only modperl1, modperl2, fastcgi and standalone are valid web-handlers" "$LINENO" 5
2058 fi
2059
2060
2061
2062
2063 # Check whether --enable-layout was given.
2064 if test "${enable_layout+set}" = set; then :
2065   enableval=$enable_layout; LAYOUT=$enableval
2066 fi
2067
2068
2069 if test "x$LAYOUT" = "x"; then
2070         LAYOUT="relative"
2071 fi
2072
2073         if test ! -f $srcdir/config.layout; then
2074                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Layout file $srcdir/config.layout not found" >&5
2075 $as_echo "$as_me: WARNING: Layout file $srcdir/config.layout not found" >&2;}
2076                 rt_layout_name=no
2077         else
2078                 pldconf=./config.pld
2079                 $PERL  -0777 -p -e "\$layout = '$LAYOUT';"  -e '
2080                 s/.*<Layout\s+$layout>//gims;
2081                 s/\<\/Layout\>.*//s;
2082                 s/^#.*$//m;
2083                 s/^\s+//gim;
2084                 s/\s+$/\n/gim;
2085                 s/\+$/\/rt3/gim;
2086                 # m4 will not let us just use $srcdir/config.layout, we need $1
2087                 s/^\s*((?:bin|sbin|libexec|data|sysconf|sharedstate|localstate|lib|include|oldinclude|info|man|html)dir)\s*:\s*(.*)$/$1=$2/gim;
2088                 s/^\s*(.*?)\s*:\s*(.*)$/\(test "x\$$1" = "xNONE" || test "x\$$1" = "x") && $1=$2/gim;
2089                  ' < $srcdir/config.layout > $pldconf
2090
2091                 if test -s $pldconf; then
2092                         rt_layout_name=$LAYOUT
2093                         . $pldconf
2094
2095                         for var in prefix exec_prefix bindir sbindir \
2096                                  sysconfdir mandir libdir datadir htmldir fontdir\
2097                                  lexdir localstatedir logfiledir masonstatedir \
2098                                  sessionstatedir customdir custometcdir customhtmldir \
2099                                  customlexdir customplugindir customlibdir manualdir; do
2100                                 eval "val=\"\$$var\""
2101                                 val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
2102                                 val=`echo $val |
2103                                         sed -e 's:[\$]\([a-z_]*\):$\1:g'`
2104                                 eval "$var='$val'"
2105                         done
2106
2107                 else
2108                         rt_layout_name=no
2109                 fi
2110                 #rm $pldconf
2111         fi
2112
2113
2114         ap_last=''
2115         ap_cur='$prefix'
2116         while test "x${ap_cur}" != "x${ap_last}"; do
2117                 ap_last="${ap_cur}"
2118                 ap_cur=`eval "echo ${ap_cur}"`
2119         done
2120         exp_prefix="${ap_cur}"
2121
2122
2123
2124
2125
2126
2127         ap_last=''
2128         ap_cur='$exec_prefix'
2129         while test "x${ap_cur}" != "x${ap_last}"; do
2130                 ap_last="${ap_cur}"
2131                 ap_cur=`eval "echo ${ap_cur}"`
2132         done
2133         exp_exec_prefix="${ap_cur}"
2134
2135
2136
2137
2138
2139
2140         ap_last=''
2141         ap_cur='$bindir'
2142         while test "x${ap_cur}" != "x${ap_last}"; do
2143                 ap_last="${ap_cur}"
2144                 ap_cur=`eval "echo ${ap_cur}"`
2145         done
2146         exp_bindir="${ap_cur}"
2147
2148
2149
2150
2151
2152
2153         ap_last=''
2154         ap_cur='$sbindir'
2155         while test "x${ap_cur}" != "x${ap_last}"; do
2156                 ap_last="${ap_cur}"
2157                 ap_cur=`eval "echo ${ap_cur}"`
2158         done
2159         exp_sbindir="${ap_cur}"
2160
2161
2162
2163
2164
2165
2166         ap_last=''
2167         ap_cur='$sysconfdir'
2168         while test "x${ap_cur}" != "x${ap_last}"; do
2169                 ap_last="${ap_cur}"
2170                 ap_cur=`eval "echo ${ap_cur}"`
2171         done
2172         exp_sysconfdir="${ap_cur}"
2173
2174
2175
2176
2177
2178
2179         ap_last=''
2180         ap_cur='$mandir'
2181         while test "x${ap_cur}" != "x${ap_last}"; do
2182                 ap_last="${ap_cur}"
2183                 ap_cur=`eval "echo ${ap_cur}"`
2184         done
2185         exp_mandir="${ap_cur}"
2186
2187
2188
2189
2190
2191
2192         ap_last=''
2193         ap_cur='$libdir'
2194         while test "x${ap_cur}" != "x${ap_last}"; do
2195                 ap_last="${ap_cur}"
2196                 ap_cur=`eval "echo ${ap_cur}"`
2197         done
2198         exp_libdir="${ap_cur}"
2199
2200
2201
2202
2203
2204
2205         ap_last=''
2206         ap_cur='$lexdir'
2207         while test "x${ap_cur}" != "x${ap_last}"; do
2208                 ap_last="${ap_cur}"
2209                 ap_cur=`eval "echo ${ap_cur}"`
2210         done
2211         exp_lexdir="${ap_cur}"
2212
2213
2214
2215
2216
2217
2218         ap_last=''
2219         ap_cur='$datadir'
2220         while test "x${ap_cur}" != "x${ap_last}"; do
2221                 ap_last="${ap_cur}"
2222                 ap_cur=`eval "echo ${ap_cur}"`
2223         done
2224         exp_datadir="${ap_cur}"
2225
2226
2227
2228
2229
2230
2231         ap_last=''
2232         ap_cur='$htmldir'
2233         while test "x${ap_cur}" != "x${ap_last}"; do
2234                 ap_last="${ap_cur}"
2235                 ap_cur=`eval "echo ${ap_cur}"`
2236         done
2237         exp_htmldir="${ap_cur}"
2238
2239
2240
2241
2242
2243
2244         ap_last=''
2245         ap_cur='$fontdir'
2246         while test "x${ap_cur}" != "x${ap_last}"; do
2247                 ap_last="${ap_cur}"
2248                 ap_cur=`eval "echo ${ap_cur}"`
2249         done
2250         exp_fontdir="${ap_cur}"
2251
2252
2253
2254
2255
2256
2257         ap_last=''
2258         ap_cur='$manualdir'
2259         while test "x${ap_cur}" != "x${ap_last}"; do
2260                 ap_last="${ap_cur}"
2261                 ap_cur=`eval "echo ${ap_cur}"`
2262         done
2263         exp_manualdir="${ap_cur}"
2264
2265
2266
2267
2268
2269
2270         ap_last=''
2271         ap_cur='$plugindir'
2272         while test "x${ap_cur}" != "x${ap_last}"; do
2273                 ap_last="${ap_cur}"
2274                 ap_cur=`eval "echo ${ap_cur}"`
2275         done
2276         exp_plugindir="${ap_cur}"
2277
2278
2279
2280
2281
2282
2283         ap_last=''
2284         ap_cur='$localstatedir'
2285         while test "x${ap_cur}" != "x${ap_last}"; do
2286                 ap_last="${ap_cur}"
2287                 ap_cur=`eval "echo ${ap_cur}"`
2288         done
2289         exp_localstatedir="${ap_cur}"
2290
2291
2292
2293
2294
2295
2296         ap_last=''
2297         ap_cur='$logfiledir'
2298         while test "x${ap_cur}" != "x${ap_last}"; do
2299                 ap_last="${ap_cur}"
2300                 ap_cur=`eval "echo ${ap_cur}"`
2301         done
2302         exp_logfiledir="${ap_cur}"
2303
2304
2305
2306
2307
2308
2309         ap_last=''
2310         ap_cur='$masonstatedir'
2311         while test "x${ap_cur}" != "x${ap_last}"; do
2312                 ap_last="${ap_cur}"
2313                 ap_cur=`eval "echo ${ap_cur}"`
2314         done
2315         exp_masonstatedir="${ap_cur}"
2316
2317
2318
2319
2320
2321
2322         ap_last=''
2323         ap_cur='$sessionstatedir'
2324         while test "x${ap_cur}" != "x${ap_last}"; do
2325                 ap_last="${ap_cur}"
2326                 ap_cur=`eval "echo ${ap_cur}"`
2327         done
2328         exp_sessionstatedir="${ap_cur}"
2329
2330
2331
2332
2333
2334
2335         ap_last=''
2336         ap_cur='$customdir'
2337         while test "x${ap_cur}" != "x${ap_last}"; do
2338                 ap_last="${ap_cur}"
2339                 ap_cur=`eval "echo ${ap_cur}"`
2340         done
2341         exp_customdir="${ap_cur}"
2342
2343
2344
2345
2346
2347
2348         ap_last=''
2349         ap_cur='$custometcdir'
2350         while test "x${ap_cur}" != "x${ap_last}"; do
2351                 ap_last="${ap_cur}"
2352                 ap_cur=`eval "echo ${ap_cur}"`
2353         done
2354         exp_custometcdir="${ap_cur}"
2355
2356
2357
2358
2359
2360
2361         ap_last=''
2362         ap_cur='$customplugindir'
2363         while test "x${ap_cur}" != "x${ap_last}"; do
2364                 ap_last="${ap_cur}"
2365                 ap_cur=`eval "echo ${ap_cur}"`
2366         done
2367         exp_customplugindir="${ap_cur}"
2368
2369
2370
2371
2372
2373
2374         ap_last=''
2375         ap_cur='$customhtmldir'
2376         while test "x${ap_cur}" != "x${ap_last}"; do
2377                 ap_last="${ap_cur}"
2378                 ap_cur=`eval "echo ${ap_cur}"`
2379         done
2380         exp_customhtmldir="${ap_cur}"
2381
2382
2383
2384
2385
2386
2387         ap_last=''
2388         ap_cur='$customlexdir'
2389         while test "x${ap_cur}" != "x${ap_last}"; do
2390                 ap_last="${ap_cur}"
2391                 ap_cur=`eval "echo ${ap_cur}"`
2392         done
2393         exp_customlexdir="${ap_cur}"
2394
2395
2396
2397
2398
2399
2400         ap_last=''
2401         ap_cur='$customlibdir'
2402         while test "x${ap_cur}" != "x${ap_last}"; do
2403                 ap_last="${ap_cur}"
2404                 ap_cur=`eval "echo ${ap_cur}"`
2405         done
2406         exp_customlibdir="${ap_cur}"
2407
2408
2409
2410
2411
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
2413 $as_echo_n "checking for chosen layout... " >&6; }
2414 if test "x$rt_layout_name" = "xno"; then
2415         if test "x$LAYOUT" = "xno"; then
2416                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
2417 $as_echo "none" >&6; }
2418         else
2419                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAYOUT" >&5
2420 $as_echo "$LAYOUT" >&6; }
2421         fi
2422         as_fn_error $? "a valid layout must be specified (or the default used)" "$LINENO" 5
2423 else
2424
2425         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rt_layout_name" >&5
2426 $as_echo "$rt_layout_name" >&6; }
2427 fi
2428 if test "x$rt_layout_name" != "xinplace" ; then
2429         COMMENT_INPLACE_LAYOUT=""
2430
2431 else
2432         COMMENT_INPLACE_LAYOUT=#
2433
2434 fi
2435
2436
2437
2438 # ACRT_USER_EXISTS( users, variable, default )
2439 # - users is a list of users [www apache www-docs]
2440 #    from highest to lowest priority to high priority (i.e. first match)
2441 # - variable is what you set with the result
2442 #
2443
2444
2445
2446
2447
2448 # Check whether --with-bin-owner was given.
2449 if test "${with_bin_owner+set}" = set; then :
2450   withval=$with_bin_owner; BIN_OWNER=$withval
2451 else
2452   BIN_OWNER=root
2453 fi
2454
2455
2456
2457
2458 # Check whether --with-libs-owner was given.
2459 if test "${with_libs_owner+set}" = set; then :
2460   withval=$with_libs_owner; LIBS_OWNER=$withval
2461 else
2462   LIBS_OWNER=root
2463 fi
2464
2465
2466
2467
2468 # Check whether --with-libs-group was given.
2469 if test "${with_libs_group+set}" = set; then :
2470   withval=$with_libs_group; LIBS_GROUP=$withval
2471 else
2472   LIBS_GROUP=bin
2473 fi
2474
2475
2476
2477
2478 # Check whether --with-db-type was given.
2479 if test "${with_db_type+set}" = set; then :
2480   withval=$with_db_type; DB_TYPE=$withval
2481 else
2482   DB_TYPE=mysql
2483 fi
2484
2485 if test "$DB_TYPE" != 'mysql' -a "$DB_TYPE" != 'Pg' -a "$DB_TYPE" != 'SQLite' -a "$DB_TYPE" != 'Oracle' ; then
2486         as_fn_error $? "Only Oracle, Pg, mysql and SQLite are valid db types" "$LINENO" 5
2487 fi
2488
2489
2490 if test "$DB_TYPE" = 'Oracle'; then
2491         test "x$ORACLE_HOME" = 'x' && as_fn_error $? "Please declare the ORACLE_HOME environment variable" "$LINENO" 5
2492         DATABASE_ENV_PREF="\$ENV{'ORACLE_HOME'} = '$ORACLE_HOME';"
2493 fi
2494
2495
2496
2497
2498 # Check whether --with-db-host was given.
2499 if test "${with_db_host+set}" = set; then :
2500   withval=$with_db_host; DB_HOST=$withval
2501 else
2502   DB_HOST=localhost
2503 fi
2504
2505
2506
2507
2508 # Check whether --with-db-port was given.
2509 if test "${with_db_port+set}" = set; then :
2510   withval=$with_db_port; DB_PORT=$withval
2511 else
2512   DB_PORT=
2513 fi
2514
2515
2516
2517
2518 # Check whether --with-db-rt-host was given.
2519 if test "${with_db_rt_host+set}" = set; then :
2520   withval=$with_db_rt_host; DB_RT_HOST=$withval
2521 else
2522   DB_RT_HOST=localhost
2523 fi
2524
2525
2526
2527 if test "$DB_TYPE" = "Pg" ; then
2528         DB_DBA="postgres"
2529 else
2530         DB_DBA="root"
2531 fi
2532
2533 # Check whether --with-db-dba was given.
2534 if test "${with_db_dba+set}" = set; then :
2535   withval=$with_db_dba; DB_DBA=$withval
2536 else
2537   DB_DBA="$DB_DBA"
2538 fi
2539
2540
2541
2542
2543 # Check whether --with-db-database was given.
2544 if test "${with_db_database+set}" = set; then :
2545   withval=$with_db_database; DB_DATABASE=$withval
2546 else
2547   DB_DATABASE=rt4
2548 fi
2549
2550
2551
2552
2553 # Check whether --with-db-rt-user was given.
2554 if test "${with_db_rt_user+set}" = set; then :
2555   withval=$with_db_rt_user; DB_RT_USER=$withval
2556 else
2557   DB_RT_USER=rt_user
2558 fi
2559
2560
2561
2562
2563 # Check whether --with-db-rt-pass was given.
2564 if test "${with_db_rt_pass+set}" = set; then :
2565   withval=$with_db_rt_pass; DB_RT_PASS=$withval
2566 else
2567   DB_RT_PASS=rt_pass
2568 fi
2569
2570
2571
2572
2573 # Check whether --with-web-user was given.
2574 if test "${with_web_user+set}" = set; then :
2575   withval=$with_web_user; WEB_USER=$withval
2576 else
2577
2578    WEB_USER=www
2579    for x in www www-data apache httpd nobody; do
2580     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if user $x exists" >&5
2581 $as_echo_n "checking if user $x exists... " >&6; }
2582      if  $PERL -e"exit( defined getpwnam('$x') ? 0 : 1)" ; then :
2583    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
2584 $as_echo "found" >&6; }; WEB_USER=$x ; break
2585 else
2586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2587 $as_echo "not found" >&6; }
2588 fi
2589    done
2590
2591
2592 fi
2593
2594
2595
2596
2597 # Check whether --with-web-group was given.
2598 if test "${with_web_group+set}" = set; then :
2599   withval=$with_web_group; WEB_GROUP=$withval
2600 else
2601
2602    WEB_GROUP=www
2603    for x in www www-data apache httpd nogroup nobody; do
2604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if group $x exists" >&5
2605 $as_echo_n "checking if group $x exists... " >&6; }
2606      if  $PERL -e"exit( defined getgrnam('$x') ? 0 : 1)" ; then :
2607    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
2608 $as_echo "found" >&6; }; WEB_GROUP=$x ; break
2609 else
2610    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2611 $as_echo "not found" >&6; }
2612 fi
2613    done
2614
2615 fi
2616
2617
2618
2619
2620 # Check whether --with-rt-group was given.
2621 if test "${with_rt_group+set}" = set; then :
2622   withval=$with_rt_group; RTGROUP=$withval
2623 else
2624
2625    RTGROUP=rt
2626    for x in rt3 rt $WEB_GROUP; do
2627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if group $x exists" >&5
2628 $as_echo_n "checking if group $x exists... " >&6; }
2629      if  $PERL -e"exit( defined getgrnam('$x') ? 0 : 1)" ; then :
2630    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
2631 $as_echo "found" >&6; }; RTGROUP=$x ; break
2632 else
2633    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2634 $as_echo "not found" >&6; }
2635 fi
2636    done
2637
2638 fi
2639
2640
2641
2642 # XXX TODO: The command below to figure out the group brokenly relies on
2643 # output order (and "id -gn" doesn't work on all platforms).
2644 my_group=$(groups|cut -f1 -d' ')
2645 my_user=${USER:-$LOGNAME}
2646
2647 # Check whether --with-my-user-group was given.
2648 if test "${with_my_user_group+set}" = set; then :
2649   withval=$with_my_user_group; RTGROUP=$my_group
2650             BIN_OWNER=$my_user
2651             LIBS_OWNER=$my_user
2652             LIBS_GROUP=$my_group
2653             WEB_USER=$my_user
2654             WEB_GROUP=$my_group
2655 fi
2656
2657
2658 # Test for valid database names
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if database name is set" >&5
2660 $as_echo_n "checking if database name is set... " >&6; }
2661           if  echo $DB_DATABASE | $PERL -e 'exit(1) unless <> =~ /\S/' ; then :
2662    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2664 else
2665    as_fn_error $? "no.  database name is not set" "$LINENO" 5
2666
2667 fi
2668
2669 if  test "$DB_TYPE" = "mysql" ; then :
2670    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if database name is valid" >&5
2671 $as_echo_n "checking if database name is valid... " >&6; }
2672           if  echo $DB_DATABASE | $PERL -e 'exit(1) if <> =~ /-/'; then :
2673    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2674 $as_echo "yes" >&6; }
2675 else
2676    as_fn_error $? "no.  database name ($DB_DATABASE) contains '-' which is not valid for mysql" "$LINENO" 5
2677
2678 fi
2679
2680
2681 fi
2682
2683
2684
2685 # Check whether --with-apachectl was given.
2686 if test "${with_apachectl+set}" = set; then :
2687   withval=$with_apachectl; APACHECTL=$withval
2688 else
2689   APACHECTL=`which apachectl`
2690 fi
2691
2692
2693
2694
2695 # Check whether --with-devel-mode was given.
2696 if test "${with_devel_mode+set}" = set; then :
2697   withval=$with_devel_mode; RT_DEVEL_MODE=$withval
2698 else
2699   RT_DEVEL_MODE="0"
2700 fi
2701
2702 # Check whether --enable-devel-mode was given.
2703 if test "${enable_devel_mode+set}" = set; then :
2704   enableval=$enable_devel_mode; RT_DEVEL_MODE=$enableval
2705 else
2706   RT_DEVEL_MODE=$RT_DEVEL_MODE
2707 fi
2708
2709 if test "$RT_DEVEL_MODE" = yes; then
2710         RT_DEVEL_MODE="1"
2711 else
2712         RT_DEVEL_MODE="0"
2713 fi
2714
2715
2716 # Extract the first word of "dot", so it can be a program name with args.
2717 set dummy dot; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_RT_GRAPHVIZ+:} false; then :
2721   $as_echo_n "(cached) " >&6
2722 else
2723   if test -n "$RT_GRAPHVIZ"; then
2724   ac_cv_prog_RT_GRAPHVIZ="$RT_GRAPHVIZ" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729   IFS=$as_save_IFS
2730   test -z "$as_dir" && as_dir=.
2731     for ac_exec_ext in '' $ac_executable_extensions; do
2732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733     ac_cv_prog_RT_GRAPHVIZ=""yes""
2734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735     break 2
2736   fi
2737 done
2738   done
2739 IFS=$as_save_IFS
2740
2741   test -z "$ac_cv_prog_RT_GRAPHVIZ" && ac_cv_prog_RT_GRAPHVIZ=""no""
2742 fi
2743 fi
2744 RT_GRAPHVIZ=$ac_cv_prog_RT_GRAPHVIZ
2745 if test -n "$RT_GRAPHVIZ"; then
2746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RT_GRAPHVIZ" >&5
2747 $as_echo "$RT_GRAPHVIZ" >&6; }
2748 else
2749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753
2754
2755 # Check whether --with-graphviz was given.
2756 if test "${with_graphviz+set}" = set; then :
2757   withval=$with_graphviz; RT_GRAPHVIZ=$withval
2758 fi
2759
2760 # Check whether --enable-graphviz was given.
2761 if test "${enable_graphviz+set}" = set; then :
2762   enableval=$enable_graphviz; RT_GRAPHVIZ=$enableval
2763 fi
2764
2765 if test "$RT_GRAPHVIZ" = yes; then
2766         RT_GRAPHVIZ="1"
2767 else
2768         RT_GRAPHVIZ="0"
2769 fi
2770
2771
2772 # Extract the first word of "gdlib-config", so it can be a program name with args.
2773 set dummy gdlib-config; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if ${ac_cv_prog_RT_GD+:} false; then :
2777   $as_echo_n "(cached) " >&6
2778 else
2779   if test -n "$RT_GD"; then
2780   ac_cv_prog_RT_GD="$RT_GD" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785   IFS=$as_save_IFS
2786   test -z "$as_dir" && as_dir=.
2787     for ac_exec_ext in '' $ac_executable_extensions; do
2788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789     ac_cv_prog_RT_GD=""yes""
2790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791     break 2
2792   fi
2793 done
2794   done
2795 IFS=$as_save_IFS
2796
2797   test -z "$ac_cv_prog_RT_GD" && ac_cv_prog_RT_GD=""no""
2798 fi
2799 fi
2800 RT_GD=$ac_cv_prog_RT_GD
2801 if test -n "$RT_GD"; then
2802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RT_GD" >&5
2803 $as_echo "$RT_GD" >&6; }
2804 else
2805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2807 fi
2808
2809
2810
2811 # Check whether --with-gd was given.
2812 if test "${with_gd+set}" = set; then :
2813   withval=$with_gd; RT_GD=$withval
2814 fi
2815
2816 # Check whether --enable-gd was given.
2817 if test "${enable_gd+set}" = set; then :
2818   enableval=$enable_gd; RT_GD=$enableval
2819 fi
2820
2821 if test "$RT_GD" = yes; then
2822         RT_GD="1"
2823 else
2824         RT_GD="0"
2825 fi
2826
2827
2828 # Extract the first word of "gpg", so it can be a program name with args.
2829 set dummy gpg; ac_word=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if ${ac_cv_prog_RT_GPG+:} false; then :
2833   $as_echo_n "(cached) " >&6
2834 else
2835   if test -n "$RT_GPG"; then
2836   ac_cv_prog_RT_GPG="$RT_GPG" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841   IFS=$as_save_IFS
2842   test -z "$as_dir" && as_dir=.
2843     for ac_exec_ext in '' $ac_executable_extensions; do
2844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845     ac_cv_prog_RT_GPG=""yes""
2846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847     break 2
2848   fi
2849 done
2850   done
2851 IFS=$as_save_IFS
2852
2853   test -z "$ac_cv_prog_RT_GPG" && ac_cv_prog_RT_GPG=""no""
2854 fi
2855 fi
2856 RT_GPG=$ac_cv_prog_RT_GPG
2857 if test -n "$RT_GPG"; then
2858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RT_GPG" >&5
2859 $as_echo "$RT_GPG" >&6; }
2860 else
2861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2863 fi
2864
2865
2866 # Check whether --enable-gpg was given.
2867 if test "${enable_gpg+set}" = set; then :
2868   enableval=$enable_gpg; RT_GPG=$enableval
2869 fi
2870
2871 if test "$RT_GPG" = yes; then
2872         RT_GPG="1"
2873 else
2874         RT_GPG="0"
2875 fi
2876
2877
2878
2879 # Check whether --with-ssl-mailgate was given.
2880 if test "${with_ssl_mailgate+set}" = set; then :
2881   withval=$with_ssl_mailgate; RT_SSL_MAILGATE=$withval
2882 else
2883   RT_SSL_MAILGATE="0"
2884 fi
2885
2886 # Check whether --enable-ssl-mailgate was given.
2887 if test "${enable_ssl_mailgate+set}" = set; then :
2888   enableval=$enable_ssl_mailgate; RT_SSL_MAILGATE=$enableval
2889 else
2890   RT_SSL_MAILGATE=$RT_SSL_MAILGATE
2891 fi
2892
2893 if test "$RT_SSL_MAILGATE" = yes; then
2894         RT_SSL_MAILGATE="1"
2895 else
2896         RT_SSL_MAILGATE="0"
2897 fi
2898
2899
2900
2901
2902 RT_VERSION_MAJOR=${rt_version_major}
2903
2904 RT_VERSION_MINOR=${rt_version_minor}
2905
2906 RT_VERSION_PATCH=${rt_version_patch}
2907
2908
2909 RT_PATH=${exp_prefix}
2910
2911 RT_DOC_PATH=${exp_manualdir}
2912
2913 RT_LOCAL_PATH=${exp_customdir}
2914
2915 RT_LIB_PATH=${exp_libdir}
2916
2917 RT_LEXICON_PATH=${exp_lexdir}
2918
2919 RT_ETC_PATH=${exp_sysconfdir}
2920
2921 CONFIG_FILE_PATH=${exp_sysconfdir}
2922
2923 RT_BIN_PATH=${exp_bindir}
2924
2925 RT_SBIN_PATH=${exp_sbindir}
2926
2927 RT_VAR_PATH=${exp_localstatedir}
2928
2929 RT_MAN_PATH=${exp_mandir}
2930
2931 RT_FONT_PATH=${exp_fontdir}
2932
2933 RT_PLUGIN_PATH=${exp_plugindir}
2934
2935 MASON_DATA_PATH=${exp_masonstatedir}
2936
2937 MASON_SESSION_PATH=${exp_sessionstatedir}
2938
2939 MASON_HTML_PATH=${exp_htmldir}
2940
2941 LOCAL_ETC_PATH=${exp_custometcdir}
2942
2943 MASON_LOCAL_HTML_PATH=${exp_customhtmldir}
2944
2945 LOCAL_LEXICON_PATH=${exp_customlexdir}
2946
2947 LOCAL_LIB_PATH=${exp_customlibdir}
2948
2949 LOCAL_PLUGIN_PATH=${exp_customplugindir}
2950
2951 RT_LOG_PATH=${exp_logfiledir}
2952
2953
2954 if test ${exp_sysconfdir} = "etc" -o ${exp_sysconfdir} = "etc/rt"; then
2955 RT_PATH_R=${exp_prefix}
2956
2957 RT_DOC_PATH_R=${exp_prefix}/${exp_manualdir}
2958
2959 RT_LOCAL_PATH_R=${exp_prefix}/${exp_customdir}
2960
2961 RT_LIB_PATH_R=${exp_prefix}/${exp_libdir}
2962
2963 RT_ETC_PATH_R=${exp_prefix}/${exp_sysconfdir}
2964
2965 CONFIG_FILE_PATH_R=${exp_prefix}/${exp_sysconfdir}
2966
2967 RT_BIN_PATH_R=${exp_prefix}/${exp_bindir}
2968
2969 RT_SBIN_PATH_R=${exp_prefix}/${exp_sbindir}
2970
2971 RT_VAR_PATH_R=${exp_prefix}/${exp_localstatedir}
2972
2973 RT_MAN_PATH_R=${exp_prefix}/${exp_mandir}
2974
2975 RT_FONT_PATH_R=${exp_prefix}/${exp_fontdir}
2976
2977 RT_LEXICON_PATH_R=${exp_prefix}/${exp_lexdir}
2978
2979 RT_PLUGIN_PATH_R=${exp_prefix}/${exp_plugindir}
2980
2981 MASON_DATA_PATH_R=${exp_prefix}/${exp_masonstatedir}
2982
2983 MASON_SESSION_PATH_R=${exp_prefix}/${exp_sessionstatedir}
2984
2985 MASON_HTML_PATH_R=${exp_prefix}/${exp_htmldir}
2986
2987 LOCAL_ETC_PATH_R=${exp_prefix}/${exp_custometcdir}
2988
2989 MASON_LOCAL_HTML_PATH_R=${exp_prefix}/${exp_customhtmldir}
2990
2991 LOCAL_LEXICON_PATH_R=${exp_prefix}/${exp_customlexdir}
2992
2993 LOCAL_LIB_PATH_R=${exp_prefix}/${exp_customlibdir}
2994
2995 LOCAL_PLUGIN_PATH_R=${exp_prefix}/${exp_customplugindir}
2996
2997 RT_LOG_PATH_R=${exp_prefix}/${exp_logfiledir}
2998
2999 else
3000 RT_PATH_R=${exp_prefix}
3001
3002 RT_DOC_PATH_R=${exp_manualdir}
3003
3004 RT_LOCAL_PATH_R=${exp_customdir}
3005
3006 RT_LIB_PATH_R=${exp_libdir}
3007
3008 RT_LEXICON_PATH_R=${exp_lexdir}
3009
3010 RT_ETC_PATH_R=${exp_sysconfdir}
3011
3012 RT_PLUGIN_PATH_R=${exp_plugindir}
3013
3014 CONFIG_FILE_PATH_R=${exp_sysconfdir}
3015
3016 RT_BIN_PATH_R=${exp_bindir}
3017
3018 RT_SBIN_PATH_R=${exp_sbindir}
3019
3020 RT_VAR_PATH_R=${exp_localstatedir}
3021
3022 RT_MAN_PATH_R=${exp_mandir}
3023
3024 RT_FONT_PATH_R=${exp_fontdir}
3025
3026 MASON_DATA_PATH_R=${exp_masonstatedir}
3027
3028 MASON_SESSION_PATH_R=${exp_sessionstatedir}
3029
3030 MASON_HTML_PATH_R=${exp_htmldir}
3031
3032 LOCAL_ETC_PATH_R=${exp_custometcdir}
3033
3034 MASON_LOCAL_HTML_PATH_R=${exp_customhtmldir}
3035
3036 LOCAL_LEXICON_PATH_R=${exp_customlexdir}
3037
3038 LOCAL_PLUGIN_PATH_R=${exp_customplugindir}
3039
3040 LOCAL_LIB_PATH_R=${exp_customlibdir}
3041
3042 RT_LOG_PATH_R=${exp_logfiledir}
3043
3044
3045 fi
3046
3047
3048 ac_config_files="$ac_config_files etc/upgrade/3.8-ical-extension etc/upgrade/4.0-customfield-checkbox-extension etc/upgrade/split-out-cf-categories etc/upgrade/generate-rtaddressregexp etc/upgrade/upgrade-articles etc/upgrade/vulnerable-passwords sbin/rt-attributes-viewer sbin/rt-preferences-viewer sbin/rt-session-viewer sbin/rt-dump-metadata sbin/rt-setup-database sbin/rt-test-dependencies sbin/rt-email-digest sbin/rt-email-dashboards sbin/rt-clean-sessions sbin/rt-shredder sbin/rt-validator sbin/rt-validate-aliases sbin/rt-email-group-admin sbin/rt-server sbin/rt-server.fcgi sbin/standalone_httpd sbin/rt-setup-fulltext-index sbin/rt-fulltext-indexer bin/rt-crontool bin/rt-mailgate bin/rt"
3049
3050
3051 ac_config_files="$ac_config_files Makefile etc/RT_Config.pm lib/RT/Generated.pm t/data/configs/apache2.2+mod_perl.conf t/data/configs/apache2.2+fastcgi.conf"
3052
3053 cat >confcache <<\_ACEOF
3054 # This file is a shell script that caches the results of configure
3055 # tests run on this system so they can be shared between configure
3056 # scripts and configure runs, see configure's option --config-cache.
3057 # It is not useful on other systems.  If it contains results you don't
3058 # want to keep, you may remove or edit it.
3059 #
3060 # config.status only pays attention to the cache file if you give it
3061 # the --recheck option to rerun configure.
3062 #
3063 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3064 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3065 # following values.
3066
3067 _ACEOF
3068
3069 # The following way of writing the cache mishandles newlines in values,
3070 # but we know of no workaround that is simple, portable, and efficient.
3071 # So, we kill variables containing newlines.
3072 # Ultrix sh set writes to stderr and can't be redirected directly,
3073 # and sets the high bit in the cache file unless we assign to the vars.
3074 (
3075   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3076     eval ac_val=\$$ac_var
3077     case $ac_val in #(
3078     *${as_nl}*)
3079       case $ac_var in #(
3080       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3081 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3082       esac
3083       case $ac_var in #(
3084       _ | IFS | as_nl) ;; #(
3085       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3086       *) { eval $ac_var=; unset $ac_var;} ;;
3087       esac ;;
3088     esac
3089   done
3090
3091   (set) 2>&1 |
3092     case $as_nl`(ac_space=' '; set) 2>&1` in #(
3093     *${as_nl}ac_space=\ *)
3094       # `set' does not quote correctly, so add quotes: double-quote
3095       # substitution turns \\\\ into \\, and sed turns \\ into \.
3096       sed -n \
3097         "s/'/'\\\\''/g;
3098           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3099       ;; #(
3100     *)
3101       # `set' quotes correctly as required by POSIX, so do not add quotes.
3102       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3103       ;;
3104     esac |
3105     sort
3106 ) |
3107   sed '
3108      /^ac_cv_env_/b end
3109      t clear
3110      :clear
3111      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3112      t end
3113      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3114      :end' >>confcache
3115 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3116   if test -w "$cache_file"; then
3117     if test "x$cache_file" != "x/dev/null"; then
3118       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3119 $as_echo "$as_me: updating cache $cache_file" >&6;}
3120       if test ! -f "$cache_file" || test -h "$cache_file"; then
3121         cat confcache >"$cache_file"
3122       else
3123         case $cache_file in #(
3124         */* | ?:*)
3125           mv -f confcache "$cache_file"$$ &&
3126           mv -f "$cache_file"$$ "$cache_file" ;; #(
3127         *)
3128           mv -f confcache "$cache_file" ;;
3129         esac
3130       fi
3131     fi
3132   else
3133     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3134 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3135   fi
3136 fi
3137 rm -f confcache
3138
3139 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3140 # Let make expand exec_prefix.
3141 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3142
3143 # Transform confdefs.h into DEFS.
3144 # Protect against shell expansion while executing Makefile rules.
3145 # Protect against Makefile macro expansion.
3146 #
3147 # If the first sed substitution is executed (which looks for macros that
3148 # take arguments), then branch to the quote section.  Otherwise,
3149 # look for a macro that doesn't take arguments.
3150 ac_script='
3151 :mline
3152 /\\$/{
3153  N
3154  s,\\\n,,
3155  b mline
3156 }
3157 t clear
3158 :clear
3159 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
3160 t quote
3161 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
3162 t quote
3163 b any
3164 :quote
3165 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3166 s/\[/\\&/g
3167 s/\]/\\&/g
3168 s/\$/$$/g
3169 H
3170 :any
3171 ${
3172         g
3173         s/^\n//
3174         s/\n/ /g
3175         p
3176 }
3177 '
3178 DEFS=`sed -n "$ac_script" confdefs.h`
3179
3180
3181 ac_libobjs=
3182 ac_ltlibobjs=
3183 U=
3184 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3185   # 1. Remove the extension, and $U if already installed.
3186   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3187   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3188   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3189   #    will be set to the directory where LIBOBJS objects are built.
3190   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3191   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3192 done
3193 LIBOBJS=$ac_libobjs
3194
3195 LTLIBOBJS=$ac_ltlibobjs
3196
3197
3198
3199 : "${CONFIG_STATUS=./config.status}"
3200 ac_write_fail=0
3201 ac_clean_files_save=$ac_clean_files
3202 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3204 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3205 as_write_fail=0
3206 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3207 #! $SHELL
3208 # Generated by $as_me.
3209 # Run this file to recreate the current configuration.
3210 # Compiler output produced by configure, useful for debugging
3211 # configure, is in config.log if it exists.
3212
3213 debug=false
3214 ac_cs_recheck=false
3215 ac_cs_silent=false
3216
3217 SHELL=\${CONFIG_SHELL-$SHELL}
3218 export SHELL
3219 _ASEOF
3220 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3221 ## -------------------- ##
3222 ## M4sh Initialization. ##
3223 ## -------------------- ##
3224
3225 # Be more Bourne compatible
3226 DUALCASE=1; export DUALCASE # for MKS sh
3227 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3228   emulate sh
3229   NULLCMD=:
3230   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3231   # is contrary to our usage.  Disable this feature.
3232   alias -g '${1+"$@"}'='"$@"'
3233   setopt NO_GLOB_SUBST
3234 else
3235   case `(set -o) 2>/dev/null` in #(
3236   *posix*) :
3237     set -o posix ;; #(
3238   *) :
3239      ;;
3240 esac
3241 fi
3242
3243
3244 as_nl='
3245 '
3246 export as_nl
3247 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3248 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3249 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3250 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3251 # Prefer a ksh shell builtin over an external printf program on Solaris,
3252 # but without wasting forks for bash or zsh.
3253 if test -z "$BASH_VERSION$ZSH_VERSION" \
3254     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3255   as_echo='print -r --'
3256   as_echo_n='print -rn --'
3257 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3258   as_echo='printf %s\n'
3259   as_echo_n='printf %s'
3260 else
3261   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3262     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3263     as_echo_n='/usr/ucb/echo -n'
3264   else
3265     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3266     as_echo_n_body='eval
3267       arg=$1;
3268       case $arg in #(
3269       *"$as_nl"*)
3270         expr "X$arg" : "X\\(.*\\)$as_nl";
3271         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3272       esac;
3273       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3274     '
3275     export as_echo_n_body
3276     as_echo_n='sh -c $as_echo_n_body as_echo'
3277   fi
3278   export as_echo_body
3279   as_echo='sh -c $as_echo_body as_echo'
3280 fi
3281
3282 # The user is always right.
3283 if test "${PATH_SEPARATOR+set}" != set; then
3284   PATH_SEPARATOR=:
3285   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3286     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3287       PATH_SEPARATOR=';'
3288   }
3289 fi
3290
3291
3292 # IFS
3293 # We need space, tab and new line, in precisely that order.  Quoting is
3294 # there to prevent editors from complaining about space-tab.
3295 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3296 # splitting by setting IFS to empty value.)
3297 IFS=" ""        $as_nl"
3298
3299 # Find who we are.  Look in the path if we contain no directory separator.
3300 as_myself=
3301 case $0 in #((
3302   *[\\/]* ) as_myself=$0 ;;
3303   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306   IFS=$as_save_IFS
3307   test -z "$as_dir" && as_dir=.
3308     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3309   done
3310 IFS=$as_save_IFS
3311
3312      ;;
3313 esac
3314 # We did not find ourselves, most probably we were run as `sh COMMAND'
3315 # in which case we are not to be found in the path.
3316 if test "x$as_myself" = x; then
3317   as_myself=$0
3318 fi
3319 if test ! -f "$as_myself"; then
3320   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3321   exit 1
3322 fi
3323
3324 # Unset variables that we do not need and which cause bugs (e.g. in
3325 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
3326 # suppresses any "Segmentation fault" message there.  '((' could
3327 # trigger a bug in pdksh 5.2.14.
3328 for as_var in BASH_ENV ENV MAIL MAILPATH
3329 do eval test x\${$as_var+set} = xset \
3330   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3331 done
3332 PS1='$ '
3333 PS2='> '
3334 PS4='+ '
3335
3336 # NLS nuisances.
3337 LC_ALL=C
3338 export LC_ALL
3339 LANGUAGE=C
3340 export LANGUAGE
3341
3342 # CDPATH.
3343 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3344
3345
3346 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3347 # ----------------------------------------
3348 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3349 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3350 # script with STATUS, using 1 if that was 0.
3351 as_fn_error ()
3352 {
3353   as_status=$1; test $as_status -eq 0 && as_status=1
3354   if test "$4"; then
3355     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3356     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3357   fi
3358   $as_echo "$as_me: error: $2" >&2
3359   as_fn_exit $as_status
3360 } # as_fn_error
3361
3362
3363 # as_fn_set_status STATUS
3364 # -----------------------
3365 # Set $? to STATUS, without forking.
3366 as_fn_set_status ()
3367 {
3368   return $1
3369 } # as_fn_set_status
3370
3371 # as_fn_exit STATUS
3372 # -----------------
3373 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3374 as_fn_exit ()
3375 {
3376   set +e
3377   as_fn_set_status $1
3378   exit $1
3379 } # as_fn_exit
3380
3381 # as_fn_unset VAR
3382 # ---------------
3383 # Portably unset VAR.
3384 as_fn_unset ()
3385 {
3386   { eval $1=; unset $1;}
3387 }
3388 as_unset=as_fn_unset
3389 # as_fn_append VAR VALUE
3390 # ----------------------
3391 # Append the text in VALUE to the end of the definition contained in VAR. Take
3392 # advantage of any shell optimizations that allow amortized linear growth over
3393 # repeated appends, instead of the typical quadratic growth present in naive
3394 # implementations.
3395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3396   eval 'as_fn_append ()
3397   {
3398     eval $1+=\$2
3399   }'
3400 else
3401   as_fn_append ()
3402   {
3403     eval $1=\$$1\$2
3404   }
3405 fi # as_fn_append
3406
3407 # as_fn_arith ARG...
3408 # ------------------
3409 # Perform arithmetic evaluation on the ARGs, and store the result in the
3410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3411 # must be portable across $(()) and expr.
3412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3413   eval 'as_fn_arith ()
3414   {
3415     as_val=$(( $* ))
3416   }'
3417 else
3418   as_fn_arith ()
3419   {
3420     as_val=`expr "$@" || test $? -eq 1`
3421   }
3422 fi # as_fn_arith
3423
3424
3425 if expr a : '\(a\)' >/dev/null 2>&1 &&
3426    test "X`expr 00001 : '.*\(...\)'`" = X001; then
3427   as_expr=expr
3428 else
3429   as_expr=false
3430 fi
3431
3432 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3433   as_basename=basename
3434 else
3435   as_basename=false
3436 fi
3437
3438 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3439   as_dirname=dirname
3440 else
3441   as_dirname=false
3442 fi
3443
3444 as_me=`$as_basename -- "$0" ||
3445 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3446          X"$0" : 'X\(//\)$' \| \
3447          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3448 $as_echo X/"$0" |
3449     sed '/^.*\/\([^/][^/]*\)\/*$/{
3450             s//\1/
3451             q
3452           }
3453           /^X\/\(\/\/\)$/{
3454             s//\1/
3455             q
3456           }
3457           /^X\/\(\/\).*/{
3458             s//\1/
3459             q
3460           }
3461           s/.*/./; q'`
3462
3463 # Avoid depending upon Character Ranges.
3464 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3465 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3466 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3467 as_cr_digits='0123456789'
3468 as_cr_alnum=$as_cr_Letters$as_cr_digits
3469
3470 ECHO_C= ECHO_N= ECHO_T=
3471 case `echo -n x` in #(((((
3472 -n*)
3473   case `echo 'xy\c'` in
3474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
3475   xy)  ECHO_C='\c';;
3476   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
3477        ECHO_T=' ';;
3478   esac;;
3479 *)
3480   ECHO_N='-n';;
3481 esac
3482
3483 rm -f conf$$ conf$$.exe conf$$.file
3484 if test -d conf$$.dir; then
3485   rm -f conf$$.dir/conf$$.file
3486 else
3487   rm -f conf$$.dir
3488   mkdir conf$$.dir 2>/dev/null
3489 fi
3490 if (echo >conf$$.file) 2>/dev/null; then
3491   if ln -s conf$$.file conf$$ 2>/dev/null; then
3492     as_ln_s='ln -s'
3493     # ... but there are two gotchas:
3494     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3495     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3496     # In both cases, we have to default to `cp -pR'.
3497     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3498       as_ln_s='cp -pR'
3499   elif ln conf$$.file conf$$ 2>/dev/null; then
3500     as_ln_s=ln
3501   else
3502     as_ln_s='cp -pR'
3503   fi
3504 else
3505   as_ln_s='cp -pR'
3506 fi
3507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3508 rmdir conf$$.dir 2>/dev/null
3509
3510
3511 # as_fn_mkdir_p
3512 # -------------
3513 # Create "$as_dir" as a directory, including parents if necessary.
3514 as_fn_mkdir_p ()
3515 {
3516
3517   case $as_dir in #(
3518   -*) as_dir=./$as_dir;;
3519   esac
3520   test -d "$as_dir" || eval $as_mkdir_p || {
3521     as_dirs=
3522     while :; do
3523       case $as_dir in #(
3524       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3525       *) as_qdir=$as_dir;;
3526       esac
3527       as_dirs="'$as_qdir' $as_dirs"
3528       as_dir=`$as_dirname -- "$as_dir" ||
3529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3530          X"$as_dir" : 'X\(//\)[^/]' \| \
3531          X"$as_dir" : 'X\(//\)$' \| \
3532          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3533 $as_echo X"$as_dir" |
3534     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3535             s//\1/
3536             q
3537           }
3538           /^X\(\/\/\)[^/].*/{
3539             s//\1/
3540             q
3541           }
3542           /^X\(\/\/\)$/{
3543             s//\1/
3544             q
3545           }
3546           /^X\(\/\).*/{
3547             s//\1/
3548             q
3549           }
3550           s/.*/./; q'`
3551       test -d "$as_dir" && break
3552     done
3553     test -z "$as_dirs" || eval "mkdir $as_dirs"
3554   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3555
3556
3557 } # as_fn_mkdir_p
3558 if mkdir -p . 2>/dev/null; then
3559   as_mkdir_p='mkdir -p "$as_dir"'
3560 else
3561   test -d ./-p && rmdir ./-p
3562   as_mkdir_p=false
3563 fi
3564
3565
3566 # as_fn_executable_p FILE
3567 # -----------------------
3568 # Test if FILE is an executable regular file.
3569 as_fn_executable_p ()
3570 {
3571   test -f "$1" && test -x "$1"
3572 } # as_fn_executable_p
3573 as_test_x='test -x'
3574 as_executable_p=as_fn_executable_p
3575
3576 # Sed expression to map a string onto a valid CPP name.
3577 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3578
3579 # Sed expression to map a string onto a valid variable name.
3580 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3581
3582
3583 exec 6>&1
3584 ## ----------------------------------- ##
3585 ## Main body of $CONFIG_STATUS script. ##
3586 ## ----------------------------------- ##
3587 _ASEOF
3588 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3589
3590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3591 # Save the log message, to keep $0 and so on meaningful, and to
3592 # report actual input values of CONFIG_FILES etc. instead of their
3593 # values after options handling.
3594 ac_log="
3595 This file was extended by RT $as_me rt-4.0.22, which was
3596 generated by GNU Autoconf 2.69.  Invocation command line was
3597
3598   CONFIG_FILES    = $CONFIG_FILES
3599   CONFIG_HEADERS  = $CONFIG_HEADERS
3600   CONFIG_LINKS    = $CONFIG_LINKS
3601   CONFIG_COMMANDS = $CONFIG_COMMANDS
3602   $ $0 $@
3603
3604 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3605 "
3606
3607 _ACEOF
3608
3609 case $ac_config_files in *"
3610 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3611 esac
3612
3613
3614
3615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3616 # Files that config.status was made for.
3617 config_files="$ac_config_files"
3618
3619 _ACEOF
3620
3621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3622 ac_cs_usage="\
3623 \`$as_me' instantiates files and other configuration actions
3624 from templates according to the current configuration.  Unless the files
3625 and actions are specified as TAGs, all are instantiated by default.
3626
3627 Usage: $0 [OPTION]... [TAG]...
3628
3629   -h, --help       print this help, then exit
3630   -V, --version    print version number and configuration settings, then exit
3631       --config     print configuration, then exit
3632   -q, --quiet, --silent
3633                    do not print progress messages
3634   -d, --debug      don't remove temporary files
3635       --recheck    update $as_me by reconfiguring in the same conditions
3636       --file=FILE[:TEMPLATE]
3637                    instantiate the configuration file FILE
3638
3639 Configuration files:
3640 $config_files
3641
3642 Report bugs to <rt-bugs@bestpractical.com>."
3643
3644 _ACEOF
3645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3646 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3647 ac_cs_version="\\
3648 RT config.status rt-4.0.22
3649 configured by $0, generated by GNU Autoconf 2.69,
3650   with options \\"\$ac_cs_config\\"
3651
3652 Copyright (C) 2012 Free Software Foundation, Inc.
3653 This config.status script is free software; the Free Software Foundation
3654 gives unlimited permission to copy, distribute and modify it."
3655
3656 ac_pwd='$ac_pwd'
3657 srcdir='$srcdir'
3658 INSTALL='$INSTALL'
3659 test -n "\$AWK" || AWK=awk
3660 _ACEOF
3661
3662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3663 # The default lists apply if the user does not specify any file.
3664 ac_need_defaults=:
3665 while test $# != 0
3666 do
3667   case $1 in
3668   --*=?*)
3669     ac_option=`expr "X$1" : 'X\([^=]*\)='`
3670     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3671     ac_shift=:
3672     ;;
3673   --*=)
3674     ac_option=`expr "X$1" : 'X\([^=]*\)='`
3675     ac_optarg=
3676     ac_shift=:
3677     ;;
3678   *)
3679     ac_option=$1
3680     ac_optarg=$2
3681     ac_shift=shift
3682     ;;
3683   esac
3684
3685   case $ac_option in
3686   # Handling of the options.
3687   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3688     ac_cs_recheck=: ;;
3689   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3690     $as_echo "$ac_cs_version"; exit ;;
3691   --config | --confi | --conf | --con | --co | --c )
3692     $as_echo "$ac_cs_config"; exit ;;
3693   --debug | --debu | --deb | --de | --d | -d )
3694     debug=: ;;
3695   --file | --fil | --fi | --f )
3696     $ac_shift
3697     case $ac_optarg in
3698     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3699     '') as_fn_error $? "missing file argument" ;;
3700     esac
3701     as_fn_append CONFIG_FILES " '$ac_optarg'"
3702     ac_need_defaults=false;;
3703   --he | --h |  --help | --hel | -h )
3704     $as_echo "$ac_cs_usage"; exit ;;
3705   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3706   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3707     ac_cs_silent=: ;;
3708
3709   # This is an error.
3710   -*) as_fn_error $? "unrecognized option: \`$1'
3711 Try \`$0 --help' for more information." ;;
3712
3713   *) as_fn_append ac_config_targets " $1"
3714      ac_need_defaults=false ;;
3715
3716   esac
3717   shift
3718 done
3719
3720 ac_configure_extra_args=
3721
3722 if $ac_cs_silent; then
3723   exec 6>/dev/null
3724   ac_configure_extra_args="$ac_configure_extra_args --silent"
3725 fi
3726
3727 _ACEOF
3728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3729 if \$ac_cs_recheck; then
3730   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3731   shift
3732   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3733   CONFIG_SHELL='$SHELL'
3734   export CONFIG_SHELL
3735   exec "\$@"
3736 fi
3737
3738 _ACEOF
3739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3740 exec 5>>config.log
3741 {
3742   echo
3743   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3744 ## Running $as_me. ##
3745 _ASBOX
3746   $as_echo "$ac_log"
3747 } >&5
3748
3749 _ACEOF
3750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3751 _ACEOF
3752
3753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3754
3755 # Handling of arguments.
3756 for ac_config_target in $ac_config_targets
3757 do
3758   case $ac_config_target in
3759     "etc/upgrade/3.8-ical-extension") CONFIG_FILES="$CONFIG_FILES etc/upgrade/3.8-ical-extension" ;;
3760     "etc/upgrade/4.0-customfield-checkbox-extension") CONFIG_FILES="$CONFIG_FILES etc/upgrade/4.0-customfield-checkbox-extension" ;;
3761     "etc/upgrade/split-out-cf-categories") CONFIG_FILES="$CONFIG_FILES etc/upgrade/split-out-cf-categories" ;;
3762     "etc/upgrade/generate-rtaddressregexp") CONFIG_FILES="$CONFIG_FILES etc/upgrade/generate-rtaddressregexp" ;;
3763     "etc/upgrade/upgrade-articles") CONFIG_FILES="$CONFIG_FILES etc/upgrade/upgrade-articles" ;;
3764     "etc/upgrade/vulnerable-passwords") CONFIG_FILES="$CONFIG_FILES etc/upgrade/vulnerable-passwords" ;;
3765     "sbin/rt-attributes-viewer") CONFIG_FILES="$CONFIG_FILES sbin/rt-attributes-viewer" ;;
3766     "sbin/rt-preferences-viewer") CONFIG_FILES="$CONFIG_FILES sbin/rt-preferences-viewer" ;;
3767     "sbin/rt-session-viewer") CONFIG_FILES="$CONFIG_FILES sbin/rt-session-viewer" ;;
3768     "sbin/rt-dump-metadata") CONFIG_FILES="$CONFIG_FILES sbin/rt-dump-metadata" ;;
3769     "sbin/rt-setup-database") CONFIG_FILES="$CONFIG_FILES sbin/rt-setup-database" ;;
3770     "sbin/rt-test-dependencies") CONFIG_FILES="$CONFIG_FILES sbin/rt-test-dependencies" ;;
3771     "sbin/rt-email-digest") CONFIG_FILES="$CONFIG_FILES sbin/rt-email-digest" ;;
3772     "sbin/rt-email-dashboards") CONFIG_FILES="$CONFIG_FILES sbin/rt-email-dashboards" ;;
3773     "sbin/rt-clean-sessions") CONFIG_FILES="$CONFIG_FILES sbin/rt-clean-sessions" ;;
3774     "sbin/rt-shredder") CONFIG_FILES="$CONFIG_FILES sbin/rt-shredder" ;;
3775     "sbin/rt-validator") CONFIG_FILES="$CONFIG_FILES sbin/rt-validator" ;;
3776     "sbin/rt-validate-aliases") CONFIG_FILES="$CONFIG_FILES sbin/rt-validate-aliases" ;;
3777     "sbin/rt-email-group-admin") CONFIG_FILES="$CONFIG_FILES sbin/rt-email-group-admin" ;;
3778     "sbin/rt-server") CONFIG_FILES="$CONFIG_FILES sbin/rt-server" ;;
3779     "sbin/rt-server.fcgi") CONFIG_FILES="$CONFIG_FILES sbin/rt-server.fcgi" ;;
3780     "sbin/standalone_httpd") CONFIG_FILES="$CONFIG_FILES sbin/standalone_httpd" ;;
3781     "sbin/rt-setup-fulltext-index") CONFIG_FILES="$CONFIG_FILES sbin/rt-setup-fulltext-index" ;;
3782     "sbin/rt-fulltext-indexer") CONFIG_FILES="$CONFIG_FILES sbin/rt-fulltext-indexer" ;;
3783     "bin/rt-crontool") CONFIG_FILES="$CONFIG_FILES bin/rt-crontool" ;;
3784     "bin/rt-mailgate") CONFIG_FILES="$CONFIG_FILES bin/rt-mailgate" ;;
3785     "bin/rt") CONFIG_FILES="$CONFIG_FILES bin/rt" ;;
3786     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3787     "etc/RT_Config.pm") CONFIG_FILES="$CONFIG_FILES etc/RT_Config.pm" ;;
3788     "lib/RT/Generated.pm") CONFIG_FILES="$CONFIG_FILES lib/RT/Generated.pm" ;;
3789     "t/data/configs/apache2.2+mod_perl.conf") CONFIG_FILES="$CONFIG_FILES t/data/configs/apache2.2+mod_perl.conf" ;;
3790     "t/data/configs/apache2.2+fastcgi.conf") CONFIG_FILES="$CONFIG_FILES t/data/configs/apache2.2+fastcgi.conf" ;;
3791
3792   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3793   esac
3794 done
3795
3796
3797 # If the user did not use the arguments to specify the items to instantiate,
3798 # then the envvar interface is used.  Set only those that are not.
3799 # We use the long form for the default assignment because of an extremely
3800 # bizarre bug on SunOS 4.1.3.
3801 if $ac_need_defaults; then
3802   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3803 fi
3804
3805 # Have a temporary directory for convenience.  Make it in the build tree
3806 # simply because there is no reason against having it here, and in addition,
3807 # creating and moving files from /tmp can sometimes cause problems.
3808 # Hook for its removal unless debugging.
3809 # Note that there is a small window in which the directory will not be cleaned:
3810 # after its creation but before its name has been assigned to `$tmp'.
3811 $debug ||
3812 {
3813   tmp= ac_tmp=
3814   trap 'exit_status=$?
3815   : "${ac_tmp:=$tmp}"
3816   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3817 ' 0
3818   trap 'as_fn_exit 1' 1 2 13 15
3819 }
3820 # Create a (secure) tmp directory for tmp files.
3821
3822 {
3823   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3824   test -d "$tmp"
3825 }  ||
3826 {
3827   tmp=./conf$$-$RANDOM
3828   (umask 077 && mkdir "$tmp")
3829 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3830 ac_tmp=$tmp
3831
3832 # Set up the scripts for CONFIG_FILES section.
3833 # No need to generate them if there are no CONFIG_FILES.
3834 # This happens for instance with `./config.status config.h'.
3835 if test -n "$CONFIG_FILES"; then
3836
3837
3838 ac_cr=`echo X | tr X '\015'`
3839 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3840 # But we know of no other shell where ac_cr would be empty at this
3841 # point, so we can use a bashism as a fallback.
3842 if test "x$ac_cr" = x; then
3843   eval ac_cr=\$\'\\r\'
3844 fi
3845 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3846 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3847   ac_cs_awk_cr='\\r'
3848 else
3849   ac_cs_awk_cr=$ac_cr
3850 fi
3851
3852 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3853 _ACEOF
3854
3855
3856 {
3857   echo "cat >conf$$subs.awk <<_ACEOF" &&
3858   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3859   echo "_ACEOF"
3860 } >conf$$subs.sh ||
3861   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3862 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3863 ac_delim='%!_!# '
3864 for ac_last_try in false false false false false :; do
3865   . ./conf$$subs.sh ||
3866     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3867
3868   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3869   if test $ac_delim_n = $ac_delim_num; then
3870     break
3871   elif $ac_last_try; then
3872     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3873   else
3874     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3875   fi
3876 done
3877 rm -f conf$$subs.sh
3878
3879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3880 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3881 _ACEOF
3882 sed -n '
3883 h
3884 s/^/S["/; s/!.*/"]=/
3885 p
3886 g
3887 s/^[^!]*!//
3888 :repl
3889 t repl
3890 s/'"$ac_delim"'$//
3891 t delim
3892 :nl
3893 h
3894 s/\(.\{148\}\)..*/\1/
3895 t more1
3896 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3897 p
3898 n
3899 b repl
3900 :more1
3901 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3902 p
3903 g
3904 s/.\{148\}//
3905 t nl
3906 :delim
3907 h
3908 s/\(.\{148\}\)..*/\1/
3909 t more2
3910 s/["\\]/\\&/g; s/^/"/; s/$/"/
3911 p
3912 b
3913 :more2
3914 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3915 p
3916 g
3917 s/.\{148\}//
3918 t delim
3919 ' <conf$$subs.awk | sed '
3920 /^[^""]/{
3921   N
3922   s/\n//
3923 }
3924 ' >>$CONFIG_STATUS || ac_write_fail=1
3925 rm -f conf$$subs.awk
3926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3927 _ACAWK
3928 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3929   for (key in S) S_is_set[key] = 1
3930   FS = "\a"
3931
3932 }
3933 {
3934   line = $ 0
3935   nfields = split(line, field, "@")
3936   substed = 0
3937   len = length(field[1])
3938   for (i = 2; i < nfields; i++) {
3939     key = field[i]
3940     keylen = length(key)
3941     if (S_is_set[key]) {
3942       value = S[key]
3943       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3944       len += length(value) + length(field[++i])
3945       substed = 1
3946     } else
3947       len += 1 + keylen
3948   }
3949
3950   print line
3951 }
3952
3953 _ACAWK
3954 _ACEOF
3955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3956 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3957   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3958 else
3959   cat
3960 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3961   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3962 _ACEOF
3963
3964 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3965 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3966 # trailing colons and then remove the whole line if VPATH becomes empty
3967 # (actually we leave an empty line to preserve line numbers).
3968 if test "x$srcdir" = x.; then
3969   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
3970 h
3971 s///
3972 s/^/:/
3973 s/[      ]*$/:/
3974 s/:\$(srcdir):/:/g
3975 s/:\${srcdir}:/:/g
3976 s/:@srcdir@:/:/g
3977 s/^:*//
3978 s/:*$//
3979 x
3980 s/\(=[   ]*\).*/\1/
3981 G
3982 s/\n//
3983 s/^[^=]*=[       ]*$//
3984 }'
3985 fi
3986
3987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3988 fi # test -n "$CONFIG_FILES"
3989
3990
3991 eval set X "  :F $CONFIG_FILES      "
3992 shift
3993 for ac_tag
3994 do
3995   case $ac_tag in
3996   :[FHLC]) ac_mode=$ac_tag; continue;;
3997   esac
3998   case $ac_mode$ac_tag in
3999   :[FHL]*:*);;
4000   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4001   :[FH]-) ac_tag=-:-;;
4002   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4003   esac
4004   ac_save_IFS=$IFS
4005   IFS=:
4006   set x $ac_tag
4007   IFS=$ac_save_IFS
4008   shift
4009   ac_file=$1
4010   shift
4011
4012   case $ac_mode in
4013   :L) ac_source=$1;;
4014   :[FH])
4015     ac_file_inputs=
4016     for ac_f
4017     do
4018       case $ac_f in
4019       -) ac_f="$ac_tmp/stdin";;
4020       *) # Look for the file first in the build tree, then in the source tree
4021          # (if the path is not absolute).  The absolute path cannot be DOS-style,
4022          # because $ac_f cannot contain `:'.
4023          test -f "$ac_f" ||
4024            case $ac_f in
4025            [\\/$]*) false;;
4026            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4027            esac ||
4028            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4029       esac
4030       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4031       as_fn_append ac_file_inputs " '$ac_f'"
4032     done
4033
4034     # Let's still pretend it is `configure' which instantiates (i.e., don't
4035     # use $as_me), people would be surprised to read:
4036     #    /* config.h.  Generated by config.status.  */
4037     configure_input='Generated from '`
4038           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4039         `' by configure.'
4040     if test x"$ac_file" != x-; then
4041       configure_input="$ac_file.  $configure_input"
4042       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4043 $as_echo "$as_me: creating $ac_file" >&6;}
4044     fi
4045     # Neutralize special characters interpreted by sed in replacement strings.
4046     case $configure_input in #(
4047     *\&* | *\|* | *\\* )
4048        ac_sed_conf_input=`$as_echo "$configure_input" |
4049        sed 's/[\\\\&|]/\\\\&/g'`;; #(
4050     *) ac_sed_conf_input=$configure_input;;
4051     esac
4052
4053     case $ac_tag in
4054     *:-:* | *:-) cat >"$ac_tmp/stdin" \
4055       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4056     esac
4057     ;;
4058   esac
4059
4060   ac_dir=`$as_dirname -- "$ac_file" ||
4061 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4062          X"$ac_file" : 'X\(//\)[^/]' \| \
4063          X"$ac_file" : 'X\(//\)$' \| \
4064          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4065 $as_echo X"$ac_file" |
4066     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4067             s//\1/
4068             q
4069           }
4070           /^X\(\/\/\)[^/].*/{
4071             s//\1/
4072             q
4073           }
4074           /^X\(\/\/\)$/{
4075             s//\1/
4076             q
4077           }
4078           /^X\(\/\).*/{
4079             s//\1/
4080             q
4081           }
4082           s/.*/./; q'`
4083   as_dir="$ac_dir"; as_fn_mkdir_p
4084   ac_builddir=.
4085
4086 case "$ac_dir" in
4087 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4088 *)
4089   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4090   # A ".." for each directory in $ac_dir_suffix.
4091   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4092   case $ac_top_builddir_sub in
4093   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4094   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4095   esac ;;
4096 esac
4097 ac_abs_top_builddir=$ac_pwd
4098 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4099 # for backward compatibility:
4100 ac_top_builddir=$ac_top_build_prefix
4101
4102 case $srcdir in
4103   .)  # We are building in place.
4104     ac_srcdir=.
4105     ac_top_srcdir=$ac_top_builddir_sub
4106     ac_abs_top_srcdir=$ac_pwd ;;
4107   [\\/]* | ?:[\\/]* )  # Absolute name.
4108     ac_srcdir=$srcdir$ac_dir_suffix;
4109     ac_top_srcdir=$srcdir
4110     ac_abs_top_srcdir=$srcdir ;;
4111   *) # Relative name.
4112     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4113     ac_top_srcdir=$ac_top_build_prefix$srcdir
4114     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4115 esac
4116 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4117
4118
4119   case $ac_mode in
4120   :F)
4121   #
4122   # CONFIG_FILE
4123   #
4124
4125   case $INSTALL in
4126   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4127   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4128   esac
4129 _ACEOF
4130
4131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4132 # If the template does not know about datarootdir, expand it.
4133 # FIXME: This hack should be removed a few years after 2.60.
4134 ac_datarootdir_hack=; ac_datarootdir_seen=
4135 ac_sed_dataroot='
4136 /datarootdir/ {
4137   p
4138   q
4139 }
4140 /@datadir@/p
4141 /@docdir@/p
4142 /@infodir@/p
4143 /@localedir@/p
4144 /@mandir@/p'
4145 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4146 *datarootdir*) ac_datarootdir_seen=yes;;
4147 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4148   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4149 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4150 _ACEOF
4151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4152   ac_datarootdir_hack='
4153   s&@datadir@&$datadir&g
4154   s&@docdir@&$docdir&g
4155   s&@infodir@&$infodir&g
4156   s&@localedir@&$localedir&g
4157   s&@mandir@&$mandir&g
4158   s&\\\${datarootdir}&$datarootdir&g' ;;
4159 esac
4160 _ACEOF
4161
4162 # Neutralize VPATH when `$srcdir' = `.'.
4163 # Shell code in configure.ac might set extrasub.
4164 # FIXME: do we really want to maintain this feature?
4165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4166 ac_sed_extra="$ac_vpsub
4167 $extrasub
4168 _ACEOF
4169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4170 :t
4171 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4172 s|@configure_input@|$ac_sed_conf_input|;t t
4173 s&@top_builddir@&$ac_top_builddir_sub&;t t
4174 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4175 s&@srcdir@&$ac_srcdir&;t t
4176 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4177 s&@top_srcdir@&$ac_top_srcdir&;t t
4178 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4179 s&@builddir@&$ac_builddir&;t t
4180 s&@abs_builddir@&$ac_abs_builddir&;t t
4181 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4182 s&@INSTALL@&$ac_INSTALL&;t t
4183 $ac_datarootdir_hack
4184 "
4185 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4186   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4187
4188 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4189   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4190   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
4191       "$ac_tmp/out"`; test -z "$ac_out"; } &&
4192   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4193 which seems to be undefined.  Please make sure it is defined" >&5
4194 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4195 which seems to be undefined.  Please make sure it is defined" >&2;}
4196
4197   rm -f "$ac_tmp/stdin"
4198   case $ac_file in
4199   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4200   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4201   esac \
4202   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4203  ;;
4204
4205
4206
4207   esac
4208
4209
4210   case $ac_file$ac_mode in
4211     "etc/upgrade/3.8-ical-extension":F) chmod ug+x $ac_file
4212                 ;;
4213     "etc/upgrade/4.0-customfield-checkbox-extension":F) chmod ug+x $ac_file
4214                 ;;
4215     "etc/upgrade/split-out-cf-categories":F) chmod ug+x $ac_file
4216                 ;;
4217     "etc/upgrade/generate-rtaddressregexp":F) chmod ug+x $ac_file
4218                 ;;
4219     "etc/upgrade/upgrade-articles":F) chmod ug+x $ac_file
4220                 ;;
4221     "etc/upgrade/vulnerable-passwords":F) chmod ug+x $ac_file
4222                 ;;
4223     "sbin/rt-attributes-viewer":F) chmod ug+x $ac_file
4224                 ;;
4225     "sbin/rt-preferences-viewer":F) chmod ug+x $ac_file
4226                 ;;
4227     "sbin/rt-session-viewer":F) chmod ug+x $ac_file
4228                 ;;
4229     "sbin/rt-dump-metadata":F) chmod ug+x $ac_file
4230                 ;;
4231     "sbin/rt-setup-database":F) chmod ug+x $ac_file
4232                 ;;
4233     "sbin/rt-test-dependencies":F) chmod ug+x $ac_file
4234                 ;;
4235     "sbin/rt-email-digest":F) chmod ug+x $ac_file
4236                 ;;
4237     "sbin/rt-email-dashboards":F) chmod ug+x $ac_file
4238                 ;;
4239     "sbin/rt-clean-sessions":F) chmod ug+x $ac_file
4240                 ;;
4241     "sbin/rt-shredder":F) chmod ug+x $ac_file
4242                 ;;
4243     "sbin/rt-validator":F) chmod ug+x $ac_file
4244                 ;;
4245     "sbin/rt-validate-aliases":F) chmod ug+x $ac_file
4246                 ;;
4247     "sbin/rt-email-group-admin":F) chmod ug+x $ac_file
4248                 ;;
4249     "sbin/rt-server":F) chmod ug+x $ac_file
4250                 ;;
4251     "sbin/rt-server.fcgi":F) chmod ug+x $ac_file
4252                 ;;
4253     "sbin/standalone_httpd":F) chmod ug+x $ac_file
4254                 ;;
4255     "sbin/rt-setup-fulltext-index":F) chmod ug+x $ac_file
4256                 ;;
4257     "sbin/rt-fulltext-indexer":F) chmod ug+x $ac_file
4258                 ;;
4259     "bin/rt-crontool":F) chmod ug+x $ac_file
4260                 ;;
4261     "bin/rt-mailgate":F) chmod ug+x $ac_file
4262                 ;;
4263     "bin/rt":F) chmod ug+x $ac_file
4264                 ;;
4265
4266   esac
4267 done # for ac_tag
4268
4269
4270 as_fn_exit 0
4271 _ACEOF
4272 ac_clean_files=$ac_clean_files_save
4273
4274 test $ac_write_fail = 0 ||
4275   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4276
4277
4278 # configure is writing to config.log, and then calls config.status.
4279 # config.status does its own redirection, appending to config.log.
4280 # Unfortunately, on DOS this fails, as config.log is still kept open
4281 # by configure, so config.status won't be able to write to it; its
4282 # output is simply discarded.  So we exec the FD to /dev/null,
4283 # effectively closing config.log, so it can be properly (re)opened and
4284 # appended to by config.status.  When coming back to configure, we
4285 # need to make the FD available again.
4286 if test "$no_create" != yes; then
4287   ac_cs_success=:
4288   ac_config_status_args=
4289   test "$silent" = yes &&
4290     ac_config_status_args="$ac_config_status_args --quiet"
4291   exec 5>/dev/null
4292   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4293   exec 5>>config.log
4294   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4295   # would make configure fail if this is the last instruction.
4296   $ac_cs_success || as_fn_exit 1
4297 fi
4298 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4299   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4300 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4301 fi
4302