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