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