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