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