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