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