import of rt 3.0.4
[freeside.git] / rt / autom4te.cache / output.0
1 @%:@! /bin/sh
2 @%:@ From configure.ac Revision: 1.1 .
3 @%:@ Guess values for system-dependent variables and create Makefiles.
4 @%:@ Generated by GNU Autoconf 2.53 for RT 3.0.4.
5 @%:@
6 @%:@ Report bugs to <rt-3.0-bugs@fsck.com>.
7 @%:@ 
8 @%:@ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 @%:@ Free Software Foundation, Inc.
10 @%:@ This configure script is free software; the Free Software Foundation
11 @%:@ gives unlimited permission to copy, distribute and modify it.
12
13 if expr a : '\(a\)' >/dev/null 2>&1; then
14   as_expr=expr
15 else
16   as_expr=false
17 fi
18
19
20 ## --------------------- ##
21 ## M4sh Initialization.  ##
22 ## --------------------- ##
23
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26   emulate sh
27   NULLCMD=:
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29   set -o posix
30 fi
31
32 # NLS nuisances.
33 # Support unset when possible.
34 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35   as_unset=unset
36 else
37   as_unset=false
38 fi
39
40 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
41     { $as_unset LANG || test "${LANG+set}" != set; } ||
42       { LANG=C; export LANG; }
43 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
44     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
45       { LC_ALL=C; export LC_ALL; }
46 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
47     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
48       { LC_TIME=C; export LC_TIME; }
49 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
50     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
51       { LC_CTYPE=C; export LC_CTYPE; }
52 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
53     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
54       { LANGUAGE=C; export LANGUAGE; }
55 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
56     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
57       { LC_COLLATE=C; export LC_COLLATE; }
58 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
59     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
60       { LC_NUMERIC=C; export LC_NUMERIC; }
61 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
62     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
63       { LC_MESSAGES=C; export LC_MESSAGES; }
64
65
66 # Name of the executable.
67 as_me=`(basename "$0") 2>/dev/null ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conftest.sh
89   echo  "exit 0"   >>conftest.sh
90   chmod +x conftest.sh
91   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conftest.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              CONFIG_SHELL=$as_dir/$as_base
145              export CONFIG_SHELL
146              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
147            fi;;
148          esac
149        done
150 done
151 ;;
152   esac
153
154   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
155   # uniformly replaced by the line number.  The first 'sed' inserts a
156   # line-number line before each line; the second 'sed' does the real
157   # work.  The second script uses 'N' to pair each line-number line
158   # with the numbered line, and appends trailing '-' during
159   # substitution so that $LINENO is not a special case at line end.
160   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
161   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
162   sed '=' <$as_myself |
163     sed '
164       N
165       s,$,-,
166       : loop
167       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
168       t loop
169       s,-$,,
170       s,^['$as_cr_digits']*\n,,
171     ' >$as_me.lineno &&
172   chmod +x $as_me.lineno ||
173     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
174    { (exit 1); exit 1; }; }
175
176   # Don't try to exec as it changes $[0], causing all sort of problems
177   # (the dirname of $[0] is not the place where we might find the
178   # original and so on.  Autoconf is especially sensible to this).
179   . ./$as_me.lineno
180   # Exit status is that of the last command.
181   exit
182 }
183
184
185 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
186   *c*,-n*) ECHO_N= ECHO_C='
187 ' ECHO_T='      ' ;;
188   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
189   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
190 esac
191
192 if expr a : '\(a\)' >/dev/null 2>&1; then
193   as_expr=expr
194 else
195   as_expr=false
196 fi
197
198 rm -f conf$$ conf$$.exe conf$$.file
199 echo >conf$$.file
200 if ln -s conf$$.file conf$$ 2>/dev/null; then
201   # We could just check for DJGPP; but this test a) works b) is more generic
202   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
203   if test -f conf$$.exe; then
204     # Don't use ln at all; we don't have any links
205     as_ln_s='cp -p'
206   else
207     as_ln_s='ln -s'
208   fi
209 elif ln conf$$.file conf$$ 2>/dev/null; then
210   as_ln_s=ln
211 else
212   as_ln_s='cp -p'
213 fi
214 rm -f conf$$ conf$$.exe conf$$.file
215
216 as_executable_p="test -f"
217
218 # Sed expression to map a string onto a valid CPP name.
219 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
220
221 # Sed expression to map a string onto a valid variable name.
222 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223
224
225 # IFS
226 # We need space, tab and new line, in precisely that order.
227 as_nl='
228 '
229 IFS="   $as_nl"
230
231 # CDPATH.
232 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233
234
235 # Name of the host.
236 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
237 # so uname gets run too.
238 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
239
240 exec 6>&1
241
242 #
243 # Initializations.
244 #
245 ac_default_prefix=/usr/local
246 cross_compiling=no
247 subdirs=
248 MFLAGS=
249 MAKEFLAGS=
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 # Maximum number of lines to put in a shell here document.
253 # This variable seems obsolete.  It should probably be removed, and
254 # only ac_max_sed_lines should be used.
255 : ${ac_max_here_lines=38}
256
257 # Identity of this package.
258 PACKAGE_NAME='RT'
259 PACKAGE_TARNAME='rt'
260 PACKAGE_VERSION='3.0.4'
261 PACKAGE_STRING='RT 3.0.4'
262 PACKAGE_BUGREPORT='rt-3.0-bugs@fsck.com'
263
264 ac_unique_file="lib/RT.pm.in"
265 ac_default_prefix=/opt/rt3
266
267 # Initialize some variables set by options.
268 ac_init_help=
269 ac_init_version=false
270 # The variables have the same names as the options, with
271 # dashes changed to underlines.
272 cache_file=/dev/null
273 exec_prefix=NONE
274 no_create=
275 no_recursion=
276 prefix=NONE
277 program_prefix=NONE
278 program_suffix=NONE
279 program_transform_name=s,x,x,
280 silent=
281 site=
282 srcdir=
283 verbose=
284 x_includes=NONE
285 x_libraries=NONE
286
287 # Installation directory options.
288 # These are left unexpanded so users can "make install exec_prefix=/foo"
289 # and all the variables that are supposed to be based on exec_prefix
290 # by default will actually change.
291 # Use braces instead of parens because sh, perl, etc. also accept them.
292 bindir='${exec_prefix}/bin'
293 sbindir='${exec_prefix}/sbin'
294 libexecdir='${exec_prefix}/libexec'
295 datadir='${prefix}/share'
296 sysconfdir='${prefix}/etc'
297 sharedstatedir='${prefix}/com'
298 localstatedir='${prefix}/var'
299 libdir='${exec_prefix}/lib'
300 includedir='${prefix}/include'
301 oldincludedir='/usr/include'
302 infodir='${prefix}/info'
303 mandir='${prefix}/man'
304
305 ac_prev=
306 for ac_option
307 do
308   # If the previous option needs an argument, assign it.
309   if test -n "$ac_prev"; then
310     eval "$ac_prev=\$ac_option"
311     ac_prev=
312     continue
313   fi
314
315   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
316
317   # Accept the important Cygnus configure options, so we can diagnose typos.
318
319   case $ac_option in
320
321   -bindir | --bindir | --bindi | --bind | --bin | --bi)
322     ac_prev=bindir ;;
323   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
324     bindir=$ac_optarg ;;
325
326   -build | --build | --buil | --bui | --bu)
327     ac_prev=build_alias ;;
328   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
329     build_alias=$ac_optarg ;;
330
331   -cache-file | --cache-file | --cache-fil | --cache-fi \
332   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
333     ac_prev=cache_file ;;
334   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
335   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
336     cache_file=$ac_optarg ;;
337
338   --config-cache | -C)
339     cache_file=config.cache ;;
340
341   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
342     ac_prev=datadir ;;
343   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
344   | --da=*)
345     datadir=$ac_optarg ;;
346
347   -disable-* | --disable-*)
348     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
349     # Reject names that are not valid shell variable names.
350     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
351       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
352    { (exit 1); exit 1; }; }
353     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
354     eval "enable_$ac_feature=no" ;;
355
356   -enable-* | --enable-*)
357     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
358     # Reject names that are not valid shell variable names.
359     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
360       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
361    { (exit 1); exit 1; }; }
362     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
363     case $ac_option in
364       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
365       *) ac_optarg=yes ;;
366     esac
367     eval "enable_$ac_feature='$ac_optarg'" ;;
368
369   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
370   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
371   | --exec | --exe | --ex)
372     ac_prev=exec_prefix ;;
373   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
374   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
375   | --exec=* | --exe=* | --ex=*)
376     exec_prefix=$ac_optarg ;;
377
378   -gas | --gas | --ga | --g)
379     # Obsolete; use --with-gas.
380     with_gas=yes ;;
381
382   -help | --help | --hel | --he | -h)
383     ac_init_help=long ;;
384   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
385     ac_init_help=recursive ;;
386   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
387     ac_init_help=short ;;
388
389   -host | --host | --hos | --ho)
390     ac_prev=host_alias ;;
391   -host=* | --host=* | --hos=* | --ho=*)
392     host_alias=$ac_optarg ;;
393
394   -includedir | --includedir | --includedi | --included | --include \
395   | --includ | --inclu | --incl | --inc)
396     ac_prev=includedir ;;
397   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
398   | --includ=* | --inclu=* | --incl=* | --inc=*)
399     includedir=$ac_optarg ;;
400
401   -infodir | --infodir | --infodi | --infod | --info | --inf)
402     ac_prev=infodir ;;
403   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
404     infodir=$ac_optarg ;;
405
406   -libdir | --libdir | --libdi | --libd)
407     ac_prev=libdir ;;
408   -libdir=* | --libdir=* | --libdi=* | --libd=*)
409     libdir=$ac_optarg ;;
410
411   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
412   | --libexe | --libex | --libe)
413     ac_prev=libexecdir ;;
414   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
415   | --libexe=* | --libex=* | --libe=*)
416     libexecdir=$ac_optarg ;;
417
418   -localstatedir | --localstatedir | --localstatedi | --localstated \
419   | --localstate | --localstat | --localsta | --localst \
420   | --locals | --local | --loca | --loc | --lo)
421     ac_prev=localstatedir ;;
422   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
423   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
424   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
425     localstatedir=$ac_optarg ;;
426
427   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
428     ac_prev=mandir ;;
429   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
430     mandir=$ac_optarg ;;
431
432   -nfp | --nfp | --nf)
433     # Obsolete; use --without-fp.
434     with_fp=no ;;
435
436   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
437   | --no-cr | --no-c | -n)
438     no_create=yes ;;
439
440   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
441   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
442     no_recursion=yes ;;
443
444   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
445   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
446   | --oldin | --oldi | --old | --ol | --o)
447     ac_prev=oldincludedir ;;
448   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
449   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
450   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
451     oldincludedir=$ac_optarg ;;
452
453   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
454     ac_prev=prefix ;;
455   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
456     prefix=$ac_optarg ;;
457
458   -program-prefix | --program-prefix | --program-prefi | --program-pref \
459   | --program-pre | --program-pr | --program-p)
460     ac_prev=program_prefix ;;
461   -program-prefix=* | --program-prefix=* | --program-prefi=* \
462   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
463     program_prefix=$ac_optarg ;;
464
465   -program-suffix | --program-suffix | --program-suffi | --program-suff \
466   | --program-suf | --program-su | --program-s)
467     ac_prev=program_suffix ;;
468   -program-suffix=* | --program-suffix=* | --program-suffi=* \
469   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
470     program_suffix=$ac_optarg ;;
471
472   -program-transform-name | --program-transform-name \
473   | --program-transform-nam | --program-transform-na \
474   | --program-transform-n | --program-transform- \
475   | --program-transform | --program-transfor \
476   | --program-transfo | --program-transf \
477   | --program-trans | --program-tran \
478   | --progr-tra | --program-tr | --program-t)
479     ac_prev=program_transform_name ;;
480   -program-transform-name=* | --program-transform-name=* \
481   | --program-transform-nam=* | --program-transform-na=* \
482   | --program-transform-n=* | --program-transform-=* \
483   | --program-transform=* | --program-transfor=* \
484   | --program-transfo=* | --program-transf=* \
485   | --program-trans=* | --program-tran=* \
486   | --progr-tra=* | --program-tr=* | --program-t=*)
487     program_transform_name=$ac_optarg ;;
488
489   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
490   | -silent | --silent | --silen | --sile | --sil)
491     silent=yes ;;
492
493   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
494     ac_prev=sbindir ;;
495   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
496   | --sbi=* | --sb=*)
497     sbindir=$ac_optarg ;;
498
499   -sharedstatedir | --sharedstatedir | --sharedstatedi \
500   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
501   | --sharedst | --shareds | --shared | --share | --shar \
502   | --sha | --sh)
503     ac_prev=sharedstatedir ;;
504   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
505   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
506   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
507   | --sha=* | --sh=*)
508     sharedstatedir=$ac_optarg ;;
509
510   -site | --site | --sit)
511     ac_prev=site ;;
512   -site=* | --site=* | --sit=*)
513     site=$ac_optarg ;;
514
515   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
516     ac_prev=srcdir ;;
517   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
518     srcdir=$ac_optarg ;;
519
520   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
521   | --syscon | --sysco | --sysc | --sys | --sy)
522     ac_prev=sysconfdir ;;
523   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
524   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
525     sysconfdir=$ac_optarg ;;
526
527   -target | --target | --targe | --targ | --tar | --ta | --t)
528     ac_prev=target_alias ;;
529   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
530     target_alias=$ac_optarg ;;
531
532   -v | -verbose | --verbose | --verbos | --verbo | --verb)
533     verbose=yes ;;
534
535   -version | --version | --versio | --versi | --vers | -V)
536     ac_init_version=: ;;
537
538   -with-* | --with-*)
539     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
540     # Reject names that are not valid shell variable names.
541     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
542       { echo "$as_me: error: invalid package name: $ac_package" >&2
543    { (exit 1); exit 1; }; }
544     ac_package=`echo $ac_package| sed 's/-/_/g'`
545     case $ac_option in
546       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
547       *) ac_optarg=yes ;;
548     esac
549     eval "with_$ac_package='$ac_optarg'" ;;
550
551   -without-* | --without-*)
552     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid package name: $ac_package" >&2
556    { (exit 1); exit 1; }; }
557     ac_package=`echo $ac_package | sed 's/-/_/g'`
558     eval "with_$ac_package=no" ;;
559
560   --x)
561     # Obsolete; use --with-x.
562     with_x=yes ;;
563
564   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
565   | --x-incl | --x-inc | --x-in | --x-i)
566     ac_prev=x_includes ;;
567   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
568   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
569     x_includes=$ac_optarg ;;
570
571   -x-libraries | --x-libraries | --x-librarie | --x-librari \
572   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
573     ac_prev=x_libraries ;;
574   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
575   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
576     x_libraries=$ac_optarg ;;
577
578   -*) { echo "$as_me: error: unrecognized option: $ac_option
579 Try \`$0 --help' for more information." >&2
580    { (exit 1); exit 1; }; }
581     ;;
582
583   *=*)
584     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
585     # Reject names that are not valid shell variable names.
586     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
587       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
588    { (exit 1); exit 1; }; }
589     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
590     eval "$ac_envvar='$ac_optarg'"
591     export $ac_envvar ;;
592
593   *)
594     # FIXME: should be removed in autoconf 3.0.
595     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
596     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
597       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
598     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
599     ;;
600
601   esac
602 done
603
604 if test -n "$ac_prev"; then
605   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
606   { echo "$as_me: error: missing argument to $ac_option" >&2
607    { (exit 1); exit 1; }; }
608 fi
609
610 # Be sure to have absolute paths.
611 for ac_var in exec_prefix prefix
612 do
613   eval ac_val=$`echo $ac_var`
614   case $ac_val in
615     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
616     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
617    { (exit 1); exit 1; }; };;
618   esac
619 done
620
621 # Be sure to have absolute paths.
622 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
623               localstatedir libdir includedir oldincludedir infodir mandir
624 do
625   eval ac_val=$`echo $ac_var`
626   case $ac_val in
627     [\\/$]* | ?:[\\/]* ) ;;
628     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629    { (exit 1); exit 1; }; };;
630   esac
631 done
632
633 # There might be people who depend on the old broken behavior: `$host'
634 # used to hold the argument of --host etc.
635 # FIXME: To remove some day.
636 build=$build_alias
637 host=$host_alias
638 target=$target_alias
639
640 # FIXME: To remove some day.
641 if test "x$host_alias" != x; then
642   if test "x$build_alias" = x; then
643     cross_compiling=maybe
644     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
645     If a cross compiler is detected then cross compile mode will be used." >&2
646   elif test "x$build_alias" != "x$host_alias"; then
647     cross_compiling=yes
648   fi
649 fi
650
651 ac_tool_prefix=
652 test -n "$host_alias" && ac_tool_prefix=$host_alias-
653
654 test "$silent" = yes && exec 6>/dev/null
655
656
657 # Find the source files, if location was not specified.
658 if test -z "$srcdir"; then
659   ac_srcdir_defaulted=yes
660   # Try the directory containing this script, then its parent.
661   ac_confdir=`(dirname "$0") 2>/dev/null ||
662 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
663          X"$0" : 'X\(//\)[^/]' \| \
664          X"$0" : 'X\(//\)$' \| \
665          X"$0" : 'X\(/\)' \| \
666          .     : '\(.\)' 2>/dev/null ||
667 echo X"$0" |
668     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
669           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
670           /^X\(\/\/\)$/{ s//\1/; q; }
671           /^X\(\/\).*/{ s//\1/; q; }
672           s/.*/./; q'`
673   srcdir=$ac_confdir
674   if test ! -r $srcdir/$ac_unique_file; then
675     srcdir=..
676   fi
677 else
678   ac_srcdir_defaulted=no
679 fi
680 if test ! -r $srcdir/$ac_unique_file; then
681   if test "$ac_srcdir_defaulted" = yes; then
682     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
683    { (exit 1); exit 1; }; }
684   else
685     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
686    { (exit 1); exit 1; }; }
687   fi
688 fi
689 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
690 ac_env_build_alias_set=${build_alias+set}
691 ac_env_build_alias_value=$build_alias
692 ac_cv_env_build_alias_set=${build_alias+set}
693 ac_cv_env_build_alias_value=$build_alias
694 ac_env_host_alias_set=${host_alias+set}
695 ac_env_host_alias_value=$host_alias
696 ac_cv_env_host_alias_set=${host_alias+set}
697 ac_cv_env_host_alias_value=$host_alias
698 ac_env_target_alias_set=${target_alias+set}
699 ac_env_target_alias_value=$target_alias
700 ac_cv_env_target_alias_set=${target_alias+set}
701 ac_cv_env_target_alias_value=$target_alias
702 ac_env_PERL_set=${PERL+set}
703 ac_env_PERL_value=$PERL
704 ac_cv_env_PERL_set=${PERL+set}
705 ac_cv_env_PERL_value=$PERL
706
707 #
708 # Report the --help message.
709 #
710 if test "$ac_init_help" = "long"; then
711   # Omit some internal or obsolete options to make the list less imposing.
712   # This message is too long to be a string in the A/UX 3.1 sh.
713   cat <<_ACEOF
714 \`configure' configures RT 3.0.4 to adapt to many kinds of systems.
715
716 Usage: $0 [OPTION]... [VAR=VALUE]...
717
718 To assign environment variables (e.g., CC, CFLAGS...), specify them as
719 VAR=VALUE.  See below for descriptions of some of the useful variables.
720
721 Defaults for the options are specified in brackets.
722
723 Configuration:
724   -h, --help              display this help and exit
725       --help=short        display options specific to this package
726       --help=recursive    display the short help of all the included packages
727   -V, --version           display version information and exit
728   -q, --quiet, --silent   do not print \`checking...' messages
729       --cache-file=FILE   cache test results in FILE [disabled]
730   -C, --config-cache      alias for \`--cache-file=config.cache'
731   -n, --no-create         do not create output files
732       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
733
734 _ACEOF
735
736   cat <<_ACEOF
737 Installation directories:
738   --prefix=PREFIX         install architecture-independent files in PREFIX
739                           [$ac_default_prefix]
740   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
741                           [PREFIX]
742
743 By default, \`make install' will install all the files in
744 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
745 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
746 for instance \`--prefix=\$HOME'.
747
748 For better control, use the options below.
749
750 Fine tuning of the installation directories:
751   --bindir=DIR           user executables [EPREFIX/bin]
752   --sbindir=DIR          system admin executables [EPREFIX/sbin]
753   --libexecdir=DIR       program executables [EPREFIX/libexec]
754   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
755   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
756   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
757   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
758   --libdir=DIR           object code libraries [EPREFIX/lib]
759   --includedir=DIR       C header files [PREFIX/include]
760   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
761   --infodir=DIR          info documentation [PREFIX/info]
762   --mandir=DIR           man documentation [PREFIX/man]
763 _ACEOF
764
765   cat <<\_ACEOF
766 _ACEOF
767 fi
768
769 if test -n "$ac_init_help"; then
770   case $ac_init_help in
771      short | recursive ) echo "Configuration of RT 3.0.4:";;
772    esac
773   cat <<\_ACEOF
774
775 Optional Features:
776   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
777   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
778   --enable-layout=LAYOUT  Use a specific directory layout (Default: RT3)
779
780 Optional Packages:
781   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
782   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
783   --with-speedycgi=/path/to/speedy 
784                           path to your speedycgi binary, if it exists
785   --with-rt-group=GROUP   group to own all files (default: rt)
786   --with-bin-owner=OWNER  user that will own rt binaries (default root)
787   --with-libs-owner=OWNER user that will own RT libraries (default root)
788   --with-libs-group=GROUP group that will own rt binaries (default bin)
789   --with-db-type=TYPE     sort of database RT will use (default: mysql) (mysql
790                           and Pg are valid)
791   --with-db-host=HOSTNAME FQDN of database server (default: localhost)
792   --with-db-port=PORT     port on which the database listens on
793   --with-db-rt-host=HOSTNAME 
794                           FQDN of RT server which talks to the database server
795                           (default: localhost)
796   --with-db-dba=DBA       name of database administrator (default: root)
797   --with-db-database=DBNAME 
798                           name of the database to use (default: rt3)
799   --with-db-rt-user=DBUSER 
800                           name of database user (default: rt_user)
801   --with-db-rt-pass=PASSWORD 
802                           password for database user (default: rt_pass)
803   --with-web-user=USER    user the web server runs as (default: www)
804   --with-web-group=GROUP  group the web server runs as (default: www)
805
806 Some influential environment variables:
807   PERL        Perl interpreter command
808
809 Use these variables to override the choices made by `configure' or to help
810 it to find libraries and programs with nonstandard names/locations.
811
812 Report bugs to <rt-3.0-bugs@fsck.com>.
813 _ACEOF
814 fi
815
816 if test "$ac_init_help" = "recursive"; then
817   # If there are subdirs, report their specific --help.
818   ac_popdir=`pwd`
819   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
820     test -d $ac_dir || continue
821     ac_builddir=.
822
823 if test "$ac_dir" != .; then
824   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
825   # A "../" for each directory in $ac_dir_suffix.
826   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
827 else
828   ac_dir_suffix= ac_top_builddir=
829 fi
830
831 case $srcdir in
832   .)  # No --srcdir option.  We are building in place.
833     ac_srcdir=.
834     if test -z "$ac_top_builddir"; then
835        ac_top_srcdir=.
836     else
837        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
838     fi ;;
839   [\\/]* | ?:[\\/]* )  # Absolute path.
840     ac_srcdir=$srcdir$ac_dir_suffix;
841     ac_top_srcdir=$srcdir ;;
842   *) # Relative path.
843     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
844     ac_top_srcdir=$ac_top_builddir$srcdir ;;
845 esac
846 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
847 # absolute.
848 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
849 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
850 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
851 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
852
853     cd $ac_dir
854     # Check for guested configure; otherwise get Cygnus style configure.
855     if test -f $ac_srcdir/configure.gnu; then
856       echo
857       $SHELL $ac_srcdir/configure.gnu  --help=recursive
858     elif test -f $ac_srcdir/configure; then
859       echo
860       $SHELL $ac_srcdir/configure  --help=recursive
861     elif test -f $ac_srcdir/configure.ac ||
862            test -f $ac_srcdir/configure.in; then
863       echo
864       $ac_configure --help
865     else
866       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
867     fi
868     cd $ac_popdir
869   done
870 fi
871
872 test -n "$ac_init_help" && exit 0
873 if $ac_init_version; then
874   cat <<\_ACEOF
875 RT configure 3.0.4
876 generated by GNU Autoconf 2.53
877
878 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
879 Free Software Foundation, Inc.
880 This configure script is free software; the Free Software Foundation
881 gives unlimited permission to copy, distribute and modify it.
882 _ACEOF
883   exit 0
884 fi
885 exec 5>config.log
886 cat >&5 <<_ACEOF
887 This file contains any messages produced by compilers while
888 running configure, to aid debugging if configure makes a mistake.
889
890 It was created by RT $as_me 3.0.4, which was
891 generated by GNU Autoconf 2.53.  Invocation command line was
892
893   $ $0 $@
894
895 _ACEOF
896 {
897 cat <<_ASUNAME
898 @%:@@%:@ --------- @%:@@%:@
899 @%:@@%:@ Platform. @%:@@%:@
900 @%:@@%:@ --------- @%:@@%:@
901
902 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
903 uname -m = `(uname -m) 2>/dev/null || echo unknown`
904 uname -r = `(uname -r) 2>/dev/null || echo unknown`
905 uname -s = `(uname -s) 2>/dev/null || echo unknown`
906 uname -v = `(uname -v) 2>/dev/null || echo unknown`
907
908 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
909 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
910
911 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
912 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
913 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
914 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
915 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
916 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
917 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
918
919 _ASUNAME
920
921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
922 for as_dir in $PATH
923 do
924   IFS=$as_save_IFS
925   test -z "$as_dir" && as_dir=.
926   echo "PATH: $as_dir"
927 done
928
929 } >&5
930
931 cat >&5 <<_ACEOF
932
933
934 @%:@@%:@ ----------- @%:@@%:@
935 @%:@@%:@ Core tests. @%:@@%:@
936 @%:@@%:@ ----------- @%:@@%:@
937
938 _ACEOF
939
940
941 # Keep a trace of the command line.
942 # Strip out --no-create and --no-recursion so they do not pile up.
943 # Also quote any args containing shell meta-characters.
944 ac_configure_args=
945 ac_sep=
946 for ac_arg
947 do
948   case $ac_arg in
949   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950   | --no-cr | --no-c | -n ) continue ;;
951   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
952   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
953     continue ;;
954   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
955     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
956   esac
957   case " $ac_configure_args " in
958     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
959     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
960        ac_sep=" " ;;
961   esac
962   # Get rid of the leading space.
963 done
964
965 # When interrupted or exit'd, cleanup temporary files, and complete
966 # config.log.  We remove comments because anyway the quotes in there
967 # would cause problems or look ugly.
968 # WARNING: Be sure not to use single quotes in there, as some shells,
969 # such as our DU 5.0 friend, will then `close' the trap.
970 trap 'exit_status=$?
971   # Save into config.log some information that might help in debugging.
972   {
973     echo
974     cat <<\_ASBOX
975 @%:@@%:@ ---------------- @%:@@%:@
976 @%:@@%:@ Cache variables. @%:@@%:@
977 @%:@@%:@ ---------------- @%:@@%:@
978 _ASBOX
979     echo
980     # The following way of writing the cache mishandles newlines in values,
981 {
982   (set) 2>&1 |
983     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
984     *ac_space=\ *)
985       sed -n \
986         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
987           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
988       ;;
989     *)
990       sed -n \
991         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
992       ;;
993     esac;
994 }
995     echo
996     if test -s confdefs.h; then
997       cat <<\_ASBOX
998 @%:@@%:@ ----------- @%:@@%:@
999 @%:@@%:@ confdefs.h. @%:@@%:@
1000 @%:@@%:@ ----------- @%:@@%:@
1001 _ASBOX
1002       echo
1003       sed "/^$/d" confdefs.h
1004       echo
1005     fi
1006     test "$ac_signal" != 0 &&
1007       echo "$as_me: caught signal $ac_signal"
1008     echo "$as_me: exit $exit_status"
1009   } >&5
1010   rm -f core core.* *.core &&
1011   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1012     exit $exit_status
1013      ' 0
1014 for ac_signal in 1 2 13 15; do
1015   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1016 done
1017 ac_signal=0
1018
1019 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1020 rm -rf conftest* confdefs.h
1021 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1022 echo >confdefs.h
1023
1024 # Predefined preprocessor variables.
1025
1026 cat >>confdefs.h <<_ACEOF
1027 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1028 _ACEOF
1029
1030
1031 cat >>confdefs.h <<_ACEOF
1032 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1033 _ACEOF
1034
1035
1036 cat >>confdefs.h <<_ACEOF
1037 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1038 _ACEOF
1039
1040
1041 cat >>confdefs.h <<_ACEOF
1042 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1043 _ACEOF
1044
1045
1046 cat >>confdefs.h <<_ACEOF
1047 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1048 _ACEOF
1049
1050
1051 # Let the site file select an alternate cache file if it wants to.
1052 # Prefer explicitly selected file to automatically selected ones.
1053 if test -z "$CONFIG_SITE"; then
1054   if test "x$prefix" != xNONE; then
1055     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1056   else
1057     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1058   fi
1059 fi
1060 for ac_site_file in $CONFIG_SITE; do
1061   if test -r "$ac_site_file"; then
1062     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1063 echo "$as_me: loading site script $ac_site_file" >&6;}
1064     sed 's/^/| /' "$ac_site_file" >&5
1065     . "$ac_site_file"
1066   fi
1067 done
1068
1069 if test -r "$cache_file"; then
1070   # Some versions of bash will fail to source /dev/null (special
1071   # files actually), so we avoid doing that.
1072   if test -f "$cache_file"; then
1073     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1074 echo "$as_me: loading cache $cache_file" >&6;}
1075     case $cache_file in
1076       [\\/]* | ?:[\\/]* ) . $cache_file;;
1077       *)                      . ./$cache_file;;
1078     esac
1079   fi
1080 else
1081   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1082 echo "$as_me: creating cache $cache_file" >&6;}
1083   >$cache_file
1084 fi
1085
1086 # Check that the precious variables saved in the cache have kept the same
1087 # value.
1088 ac_cache_corrupted=false
1089 for ac_var in `(set) 2>&1 |
1090                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1091   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1092   eval ac_new_set=\$ac_env_${ac_var}_set
1093   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1094   eval ac_new_val="\$ac_env_${ac_var}_value"
1095   case $ac_old_set,$ac_new_set in
1096     set,)
1097       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1098 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1099       ac_cache_corrupted=: ;;
1100     ,set)
1101       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1102 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1103       ac_cache_corrupted=: ;;
1104     ,);;
1105     *)
1106       if test "x$ac_old_val" != "x$ac_new_val"; then
1107         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1108 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1109         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1110 echo "$as_me:   former value:  $ac_old_val" >&2;}
1111         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1112 echo "$as_me:   current value: $ac_new_val" >&2;}
1113         ac_cache_corrupted=:
1114       fi;;
1115   esac
1116   # Pass precious variables to config.status.
1117   if test "$ac_new_set" = set; then
1118     case $ac_new_val in
1119     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1120       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1121     *) ac_arg=$ac_var=$ac_new_val ;;
1122     esac
1123     case " $ac_configure_args " in
1124       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1125       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1126     esac
1127   fi
1128 done
1129 if $ac_cache_corrupted; then
1130   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1131 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1132   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1133 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1134    { (exit 1); exit 1; }; }
1135 fi
1136
1137 ac_ext=c
1138 ac_cpp='$CPP $CPPFLAGS'
1139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170 rt_version_major=3
1171
1172 rt_version_minor=0
1173
1174 rt_version_patch=4
1175
1176 test "x$rt_version_major" = 'x' && rt_version_major=0
1177 test "x$rt_version_minor" = 'x' && rt_version_minor=0
1178 test "x$rt_version_patch" = 'x' && rt_version_patch=0
1179
1180 ac_aux_dir=
1181 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1182   if test -f $ac_dir/install-sh; then
1183     ac_aux_dir=$ac_dir
1184     ac_install_sh="$ac_aux_dir/install-sh -c"
1185     break
1186   elif test -f $ac_dir/install.sh; then
1187     ac_aux_dir=$ac_dir
1188     ac_install_sh="$ac_aux_dir/install.sh -c"
1189     break
1190   elif test -f $ac_dir/shtool; then
1191     ac_aux_dir=$ac_dir
1192     ac_install_sh="$ac_aux_dir/shtool install -c"
1193     break
1194   fi
1195 done
1196 if test -z "$ac_aux_dir"; then
1197   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1198 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1199    { (exit 1); exit 1; }; }
1200 fi
1201 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1202 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1203 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1204
1205 # Find a good install program.  We prefer a C program (faster),
1206 # so one script is as good as another.  But avoid the broken or
1207 # incompatible versions:
1208 # SysV /etc/install, /usr/sbin/install
1209 # SunOS /usr/etc/install
1210 # IRIX /sbin/install
1211 # AIX /bin/install
1212 # AmigaOS /C/install, which installs bootblocks on floppy discs
1213 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1214 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1215 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1216 # ./install, which can be erroneously created by make from ./install.sh.
1217 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1218 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1219 if test -z "$INSTALL"; then
1220 if test "${ac_cv_path_install+set}" = set; then
1221   echo $ECHO_N "(cached) $ECHO_C" >&6
1222 else
1223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1224 for as_dir in $PATH
1225 do
1226   IFS=$as_save_IFS
1227   test -z "$as_dir" && as_dir=.
1228   # Account for people who put trailing slashes in PATH elements.
1229 case $as_dir/ in
1230   ./ | .// | /cC/* | \
1231   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1232   /usr/ucb/* ) ;;
1233   *)
1234     # OSF1 and SCO ODT 3.0 have their own names for install.
1235     # Don't use installbsd from OSF since it installs stuff as root
1236     # by default.
1237     for ac_prog in ginstall scoinst install; do
1238       for ac_exec_ext in '' $ac_executable_extensions; do
1239         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1240           if test $ac_prog = install &&
1241             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1242             # AIX install.  It has an incompatible calling convention.
1243             :
1244           elif test $ac_prog = install &&
1245             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1246             # program-specific install script used by HP pwplus--don't use.
1247             :
1248           else
1249             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1250             break 3
1251           fi
1252         fi
1253       done
1254     done
1255     ;;
1256 esac
1257 done
1258
1259
1260 fi
1261   if test "${ac_cv_path_install+set}" = set; then
1262     INSTALL=$ac_cv_path_install
1263   else
1264     # As a last resort, use the slow shell script.  We don't cache a
1265     # path for INSTALL within a source directory, because that will
1266     # break other packages using the cache if that directory is
1267     # removed, or if the path is relative.
1268     INSTALL=$ac_install_sh
1269   fi
1270 fi
1271 echo "$as_me:$LINENO: result: $INSTALL" >&5
1272 echo "${ECHO_T}$INSTALL" >&6
1273
1274 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1275 # It thinks the first close brace ends the variable substitution.
1276 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1277
1278 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1279
1280 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1281
1282
1283 # Extract the first word of "perl", so it can be a program name with args.
1284 set dummy perl; ac_word=$2
1285 echo "$as_me:$LINENO: checking for $ac_word" >&5
1286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1287 if test "${ac_cv_path_PERL+set}" = set; then
1288   echo $ECHO_N "(cached) $ECHO_C" >&6
1289 else
1290   case $PERL in
1291   [\\/]* | ?:[\\/]*)
1292   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1293   ;;
1294   *)
1295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1296 for as_dir in $PATH
1297 do
1298   IFS=$as_save_IFS
1299   test -z "$as_dir" && as_dir=.
1300   for ac_exec_ext in '' $ac_executable_extensions; do
1301   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1302     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
1303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1304     break 2
1305   fi
1306 done
1307 done
1308
1309   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="not found"
1310   ;;
1311 esac
1312 fi
1313 PERL=$ac_cv_path_PERL
1314
1315 if test -n "$PERL"; then
1316   echo "$as_me:$LINENO: result: $PERL" >&5
1317 echo "${ECHO_T}$PERL" >&6
1318 else
1319   echo "$as_me:$LINENO: result: no" >&5
1320 echo "${ECHO_T}no" >&6
1321 fi
1322
1323 if test "$PERL" = 'not found'; then
1324         { { echo "$as_me:$LINENO: error: cannot use $PACKAGE_NAME without perl" >&5
1325 echo "$as_me: error: cannot use $PACKAGE_NAME without perl" >&2;}
1326    { (exit 1); exit 1; }; }
1327 fi
1328
1329 # Check whether --with-speedycgi or --without-speedycgi was given.
1330 if test "${with_speedycgi+set}" = set; then
1331   withval="$with_speedycgi"
1332   SPEEDY_BIN=$withval
1333 else
1334   SPEEDY_BIN=/usr/local/bin/speedy
1335 fi;  
1336
1337
1338
1339
1340
1341 # Check whether --enable-layout or --disable-layout was given.
1342 if test "${enable_layout+set}" = set; then
1343   enableval="$enable_layout"
1344   LAYOUT=$enableval
1345 fi; 
1346
1347 if test "x$LAYOUT" = "x"; then
1348         LAYOUT="RT3"
1349 fi
1350
1351         if test ! -f $srcdir/config.layout; then
1352                 { echo "$as_me:$LINENO: WARNING: Layout file $srcdir/config.layout not found" >&5
1353 echo "$as_me: WARNING: Layout file $srcdir/config.layout not found" >&2;}
1354                 rt_layout_name=no
1355         else
1356                 pldconf=./config.pld
1357                 $PERL  -0777 -p -e "\$layout = '$LAYOUT';"  -e '
1358                 s/.*<Layout\s+$layout>//gims; 
1359                 s/\<\/Layout\>.*//s; 
1360                 s/^#.*$//m;
1361                 s/^\s+//gim;
1362                 s/\s+$/\n/gim;
1363                 s/\+$/\/rt3/gim;
1364                 # m4 will not let us just use $srcdir/config.layout, we need @S|@1
1365                 s/^\s*((?:bin|sbin|libexec|data|sysconf|sharedstate|localstate|lib|include|oldinclude|info|man)dir)\s*:\s*(.*)$/@S|@1=@S|@2/gim;
1366                 s/^\s*(.*?)\s*:\s*(.*)$/\(test "x\@S|@@S|@1" = "xNONE" || test "x\@S|@@S|@1" = "x") && @S|@1=@S|@2/gim;
1367                  ' < $srcdir/config.layout > $pldconf
1368
1369                 if test -s $pldconf; then
1370                         rt_layout_name=$LAYOUT
1371                         . $pldconf
1372                         
1373                         for var in prefix exec_prefix bindir sbindir \
1374                                  sysconfdir mandir libdir datadir htmldir \
1375                                  localstatedir logfiledir masonstatedir \
1376                                  sessionstatedir customdir custometcdir customhtmldir \
1377                                  customlexdir customlibdir manualdir; do
1378                                 eval "val=\"\$$var\""
1379                                 val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
1380                                 val=`echo $val | 
1381                                         sed -e 's:[\$]\([a-z_]*\):$\1:g'`
1382                                 eval "$var='$val'"
1383                         done
1384                         
1385                 else
1386                         rt_layout_name=no
1387                 fi
1388                 #rm $pldconf
1389         fi
1390         
1391         
1392         ap_last=''
1393         ap_cur='$prefix'
1394         while test "x${ap_cur}" != "x${ap_last}"; do
1395                 ap_last="${ap_cur}"
1396                 ap_cur=`eval "echo ${ap_cur}"`
1397         done
1398         exp_prefix="${ap_cur}"
1399
1400         
1401         
1402
1403         
1404         
1405         ap_last=''
1406         ap_cur='$exec_prefix'
1407         while test "x${ap_cur}" != "x${ap_last}"; do
1408                 ap_last="${ap_cur}"
1409                 ap_cur=`eval "echo ${ap_cur}"`
1410         done
1411         exp_exec_prefix="${ap_cur}"
1412
1413         
1414         
1415
1416         
1417         
1418         ap_last=''
1419         ap_cur='$bindir'
1420         while test "x${ap_cur}" != "x${ap_last}"; do
1421                 ap_last="${ap_cur}"
1422                 ap_cur=`eval "echo ${ap_cur}"`
1423         done
1424         exp_bindir="${ap_cur}"
1425
1426         
1427         
1428
1429         
1430         
1431         ap_last=''
1432         ap_cur='$sbindir'
1433         while test "x${ap_cur}" != "x${ap_last}"; do
1434                 ap_last="${ap_cur}"
1435                 ap_cur=`eval "echo ${ap_cur}"`
1436         done
1437         exp_sbindir="${ap_cur}"
1438
1439         
1440         
1441
1442         
1443         
1444         ap_last=''
1445         ap_cur='$sysconfdir'
1446         while test "x${ap_cur}" != "x${ap_last}"; do
1447                 ap_last="${ap_cur}"
1448                 ap_cur=`eval "echo ${ap_cur}"`
1449         done
1450         exp_sysconfdir="${ap_cur}"
1451
1452         
1453         
1454
1455         
1456         
1457         ap_last=''
1458         ap_cur='$mandir'
1459         while test "x${ap_cur}" != "x${ap_last}"; do
1460                 ap_last="${ap_cur}"
1461                 ap_cur=`eval "echo ${ap_cur}"`
1462         done
1463         exp_mandir="${ap_cur}"
1464
1465         
1466         
1467
1468         
1469         
1470         ap_last=''
1471         ap_cur='$libdir'
1472         while test "x${ap_cur}" != "x${ap_last}"; do
1473                 ap_last="${ap_cur}"
1474                 ap_cur=`eval "echo ${ap_cur}"`
1475         done
1476         exp_libdir="${ap_cur}"
1477
1478         
1479         
1480
1481         
1482         
1483         ap_last=''
1484         ap_cur='$datadir'
1485         while test "x${ap_cur}" != "x${ap_last}"; do
1486                 ap_last="${ap_cur}"
1487                 ap_cur=`eval "echo ${ap_cur}"`
1488         done
1489         exp_datadir="${ap_cur}"
1490
1491         
1492         
1493
1494         
1495         
1496         ap_last=''
1497         ap_cur='$htmldir'
1498         while test "x${ap_cur}" != "x${ap_last}"; do
1499                 ap_last="${ap_cur}"
1500                 ap_cur=`eval "echo ${ap_cur}"`
1501         done
1502         exp_htmldir="${ap_cur}"
1503
1504         
1505         
1506
1507         
1508         
1509         ap_last=''
1510         ap_cur='$manualdir'
1511         while test "x${ap_cur}" != "x${ap_last}"; do
1512                 ap_last="${ap_cur}"
1513                 ap_cur=`eval "echo ${ap_cur}"`
1514         done
1515         exp_manualdir="${ap_cur}"
1516
1517         
1518         
1519
1520         
1521         
1522         ap_last=''
1523         ap_cur='$localstatedir'
1524         while test "x${ap_cur}" != "x${ap_last}"; do
1525                 ap_last="${ap_cur}"
1526                 ap_cur=`eval "echo ${ap_cur}"`
1527         done
1528         exp_localstatedir="${ap_cur}"
1529
1530         
1531         
1532
1533         
1534         
1535         ap_last=''
1536         ap_cur='$logfiledir'
1537         while test "x${ap_cur}" != "x${ap_last}"; do
1538                 ap_last="${ap_cur}"
1539                 ap_cur=`eval "echo ${ap_cur}"`
1540         done
1541         exp_logfiledir="${ap_cur}"
1542
1543         
1544         
1545
1546         
1547         
1548         ap_last=''
1549         ap_cur='$masonstatedir'
1550         while test "x${ap_cur}" != "x${ap_last}"; do
1551                 ap_last="${ap_cur}"
1552                 ap_cur=`eval "echo ${ap_cur}"`
1553         done
1554         exp_masonstatedir="${ap_cur}"
1555
1556         
1557         
1558
1559         
1560         
1561         ap_last=''
1562         ap_cur='$sessionstatedir'
1563         while test "x${ap_cur}" != "x${ap_last}"; do
1564                 ap_last="${ap_cur}"
1565                 ap_cur=`eval "echo ${ap_cur}"`
1566         done
1567         exp_sessionstatedir="${ap_cur}"
1568
1569         
1570         
1571
1572         
1573         
1574         ap_last=''
1575         ap_cur='$customdir'
1576         while test "x${ap_cur}" != "x${ap_last}"; do
1577                 ap_last="${ap_cur}"
1578                 ap_cur=`eval "echo ${ap_cur}"`
1579         done
1580         exp_customdir="${ap_cur}"
1581
1582         
1583         
1584
1585         
1586         
1587         ap_last=''
1588         ap_cur='$custometcdir'
1589         while test "x${ap_cur}" != "x${ap_last}"; do
1590                 ap_last="${ap_cur}"
1591                 ap_cur=`eval "echo ${ap_cur}"`
1592         done
1593         exp_custometcdir="${ap_cur}"
1594
1595         
1596         
1597
1598         
1599         
1600         ap_last=''
1601         ap_cur='$customhtmldir'
1602         while test "x${ap_cur}" != "x${ap_last}"; do
1603                 ap_last="${ap_cur}"
1604                 ap_cur=`eval "echo ${ap_cur}"`
1605         done
1606         exp_customhtmldir="${ap_cur}"
1607
1608         
1609         
1610
1611         
1612         
1613         ap_last=''
1614         ap_cur='$customlexdir'
1615         while test "x${ap_cur}" != "x${ap_last}"; do
1616                 ap_last="${ap_cur}"
1617                 ap_cur=`eval "echo ${ap_cur}"`
1618         done
1619         exp_customlexdir="${ap_cur}"
1620
1621         
1622         
1623
1624         
1625         
1626         ap_last=''
1627         ap_cur='$customlibdir'
1628         while test "x${ap_cur}" != "x${ap_last}"; do
1629                 ap_last="${ap_cur}"
1630                 ap_cur=`eval "echo ${ap_cur}"`
1631         done
1632         exp_customlibdir="${ap_cur}"
1633
1634         
1635         
1636
1637
1638 echo "$as_me:$LINENO: checking for chosen layout" >&5
1639 echo $ECHO_N "checking for chosen layout... $ECHO_C" >&6
1640 if test "x$rt_layout_name" = "xno"; then
1641         if test "x$LAYOUT" = "xno"; then
1642                 echo "$as_me:$LINENO: result: none" >&5
1643 echo "${ECHO_T}none" >&6
1644         else
1645                 echo "$as_me:$LINENO: result: $LAYOUT" >&5
1646 echo "${ECHO_T}$LAYOUT" >&6
1647         fi
1648         { { echo "$as_me:$LINENO: error: a valid layout must be specified (or the default used)" >&5
1649 echo "$as_me: error: a valid layout must be specified (or the default used)" >&2;}
1650    { (exit 1); exit 1; }; }
1651 else
1652         
1653         echo "$as_me:$LINENO: result: $rt_layout_name" >&5
1654 echo "${ECHO_T}$rt_layout_name" >&6
1655 fi
1656
1657
1658
1659 # Check whether --with-rt-group or --without-rt-group was given.
1660 if test "${with_rt_group+set}" = set; then
1661   withval="$with_rt_group"
1662   RTGROUP=$withval
1663 else
1664   RTGROUP=rt
1665 fi; 
1666
1667
1668
1669 # Check whether --with-bin-owner or --without-bin-owner was given.
1670 if test "${with_bin_owner+set}" = set; then
1671   withval="$with_bin_owner"
1672   BIN_OWNER=$withval
1673 else
1674   BIN_OWNER=root
1675 fi; 
1676
1677
1678
1679 # Check whether --with-libs-owner or --without-libs-owner was given.
1680 if test "${with_libs_owner+set}" = set; then
1681   withval="$with_libs_owner"
1682   LIBS_OWNER=$withval
1683 else
1684   LIBS_OWNER=root
1685 fi; 
1686
1687
1688
1689 # Check whether --with-libs-group or --without-libs-group was given.
1690 if test "${with_libs_group+set}" = set; then
1691   withval="$with_libs_group"
1692   LIBS_GROUP=$withval
1693 else
1694   LIBS_GROUP=bin
1695 fi; 
1696
1697
1698
1699 # Check whether --with-db-type or --without-db-type was given.
1700 if test "${with_db_type+set}" = set; then
1701   withval="$with_db_type"
1702   DB_TYPE=$withval
1703 else
1704   DB_TYPE=mysql
1705 fi; 
1706 if test "$DB_TYPE" != 'mysql' -a "$DB_TYPE" != 'Pg' -a "$DB_TYPE" != 'SQLite'; then
1707         { { echo "$as_me:$LINENO: error: Only Pg and mysql are valid db types" >&5
1708 echo "$as_me: error: Only Pg and mysql are valid db types" >&2;}
1709    { (exit 1); exit 1; }; }
1710 fi
1711
1712
1713
1714 # Check whether --with-db-host or --without-db-host was given.
1715 if test "${with_db_host+set}" = set; then
1716   withval="$with_db_host"
1717   DB_HOST=$withval
1718 else
1719   DB_HOST=localhost
1720 fi; 
1721
1722
1723
1724 # Check whether --with-db-port or --without-db-port was given.
1725 if test "${with_db_port+set}" = set; then
1726   withval="$with_db_port"
1727   DB_PORT=$withval
1728 else
1729   DB_PORT=
1730 fi; 
1731
1732
1733
1734 # Check whether --with-db-rt-host or --without-db-rt-host was given.
1735 if test "${with_db_rt_host+set}" = set; then
1736   withval="$with_db_rt_host"
1737   DB_RT_HOST=$withval
1738 else
1739   DB_RT_HOST=localhost
1740 fi; 
1741
1742
1743
1744 # Check whether --with-db-dba or --without-db-dba was given.
1745 if test "${with_db_dba+set}" = set; then
1746   withval="$with_db_dba"
1747   DB_DBA=$withval
1748 else
1749   DB_DBA=root
1750 fi; 
1751
1752
1753
1754 # Check whether --with-db-database or --without-db-database was given.
1755 if test "${with_db_database+set}" = set; then
1756   withval="$with_db_database"
1757   DB_DATABASE=$withval
1758 else
1759   DB_DATABASE=rt3
1760 fi; 
1761
1762
1763
1764 # Check whether --with-db-rt-user or --without-db-rt-user was given.
1765 if test "${with_db_rt_user+set}" = set; then
1766   withval="$with_db_rt_user"
1767   DB_RT_USER=$withval
1768 else
1769   DB_RT_USER=rt_user
1770 fi; 
1771
1772
1773
1774 # Check whether --with-db-rt-pass or --without-db-rt-pass was given.
1775 if test "${with_db_rt_pass+set}" = set; then
1776   withval="$with_db_rt_pass"
1777   DB_RT_PASS=$withval
1778 else
1779   DB_RT_PASS=rt_pass
1780 fi; 
1781
1782
1783
1784 # Check whether --with-web-user or --without-web-user was given.
1785 if test "${with_web_user+set}" = set; then
1786   withval="$with_web_user"
1787   WEB_USER=$withval
1788 else
1789   WEB_USER=www
1790 fi; 
1791
1792
1793
1794 # Check whether --with-web-group or --without-web-group was given.
1795 if test "${with_web_group+set}" = set; then
1796   withval="$with_web_group"
1797   WEB_GROUP=$withval
1798 else
1799   WEB_GROUP=www
1800 fi; 
1801
1802
1803
1804 RT_VERSION_MAJOR=${rt_version_major}
1805
1806 RT_VERSION_MINOR=${rt_version_minor}
1807
1808 RT_VERSION_PATCH=${rt_version_patch}
1809
1810
1811 RT_PATH=${exp_prefix}
1812
1813 RT_DOC_PATH=${exp_manualdir}
1814
1815 RT_LOCAL_PATH=${exp_customdir}
1816
1817 RT_LIB_PATH=${exp_libdir}
1818
1819 RT_ETC_PATH=${exp_sysconfdir}
1820
1821 CONFIG_FILE_PATH=${exp_sysconfdir}
1822
1823 RT_BIN_PATH=${exp_bindir}
1824
1825 RT_SBIN_PATH=${exp_sbindir}
1826
1827 RT_VAR_PATH=${exp_localstatedir}
1828
1829 RT_MAN_PATH=${exp_mandir}
1830
1831 MASON_DATA_PATH=${exp_masonstatedir}
1832
1833 MASON_SESSION_PATH=${exp_sessionstatedir}
1834
1835 MASON_HTML_PATH=${exp_htmldir}
1836
1837 LOCAL_ETC_PATH=${exp_custometcdir}
1838
1839 MASON_LOCAL_HTML_PATH=${exp_customhtmldir}
1840
1841 LOCAL_LEXICON_PATH=${exp_customlexdir}
1842
1843 LOCAL_LIB_PATH=${exp_customlibdir}
1844
1845 DESTDIR=${exp_prefix}
1846
1847 RT_LOG_PATH=${exp_logfiledir}
1848
1849
1850
1851 ac_config_files="$ac_config_files sbin/rt-setup-database sbin/rt-test-dependencies Makefile etc/RT_Config.pm lib/RT.pm lib/t/00smoke.t lib/t/01harness.t lib/t/02regression.t lib/t/03web.pl lib/t/04_send_email.pl bin/mason_handler.fcgi bin/mason_handler.scgi bin/mason_handler.svc bin/rt-commit-handler bin/rt-crontool bin/rt-mailgate bin/webmux.pl"
1852
1853 cat >confcache <<\_ACEOF
1854 # This file is a shell script that caches the results of configure
1855 # tests run on this system so they can be shared between configure
1856 # scripts and configure runs, see configure's option --config-cache.
1857 # It is not useful on other systems.  If it contains results you don't
1858 # want to keep, you may remove or edit it.
1859 #
1860 # config.status only pays attention to the cache file if you give it
1861 # the --recheck option to rerun configure.
1862 #
1863 # `ac_cv_env_foo' variables (set or unset) will be overriden when
1864 # loading this file, other *unset* `ac_cv_foo' will be assigned the
1865 # following values.
1866
1867 _ACEOF
1868
1869 # The following way of writing the cache mishandles newlines in values,
1870 # but we know of no workaround that is simple, portable, and efficient.
1871 # So, don't put newlines in cache variables' values.
1872 # Ultrix sh set writes to stderr and can't be redirected directly,
1873 # and sets the high bit in the cache file unless we assign to the vars.
1874 {
1875   (set) 2>&1 |
1876     case `(ac_space=' '; set | grep ac_space) 2>&1` in
1877     *ac_space=\ *)
1878       # `set' does not quote correctly, so add quotes (double-quote
1879       # substitution turns \\\\ into \\, and sed turns \\ into \).
1880       sed -n \
1881         "s/'/'\\\\''/g;
1882           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1883       ;;
1884     *)
1885       # `set' quotes correctly as required by POSIX, so do not add quotes.
1886       sed -n \
1887         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1888       ;;
1889     esac;
1890 } |
1891   sed '
1892      t clear
1893      : clear
1894      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1895      t end
1896      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1897      : end' >>confcache
1898 if cmp -s $cache_file confcache; then :; else
1899   if test -w $cache_file; then
1900     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1901     cat confcache >$cache_file
1902   else
1903     echo "not updating unwritable cache $cache_file"
1904   fi
1905 fi
1906 rm -f confcache
1907
1908 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1909 # Let make expand exec_prefix.
1910 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1911
1912 # VPATH may cause trouble with some makes, so we remove $(srcdir),
1913 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
1914 # trailing colons and then remove the whole line if VPATH becomes empty
1915 # (actually we leave an empty line to preserve line numbers).
1916 if test "x$srcdir" = x.; then
1917   ac_vpsub='/^[         ]*VPATH[        ]*=/{
1918 s/:*\$(srcdir):*/:/;
1919 s/:*\${srcdir}:*/:/;
1920 s/:*@srcdir@:*/:/;
1921 s/^\([^=]*=[    ]*\):*/\1/;
1922 s/:*$//;
1923 s/^[^=]*=[      ]*$//;
1924 }'
1925 fi
1926
1927 # Transform confdefs.h into DEFS.
1928 # Protect against shell expansion while executing Makefile rules.
1929 # Protect against Makefile macro expansion.
1930 #
1931 # If the first sed substitution is executed (which looks for macros that
1932 # take arguments), then we branch to the quote section.  Otherwise,
1933 # look for a macro that doesn't take arguments.
1934 cat >confdef2opt.sed <<\_ACEOF
1935 t clear
1936 : clear
1937 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
1938 t quote
1939 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
1940 t quote
1941 d
1942 : quote
1943 s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
1944 s,\[,\\&,g
1945 s,\],\\&,g
1946 s,\$,$$,g
1947 p
1948 _ACEOF
1949 # We use echo to avoid assuming a particular line-breaking character.
1950 # The extra dot is to prevent the shell from consuming trailing
1951 # line-breaks from the sub-command output.  A line-break within
1952 # single-quotes doesn't work because, if this script is created in a
1953 # platform that uses two characters for line-breaks (e.g., DOS), tr
1954 # would break.
1955 ac_LF_and_DOT=`echo; echo .`
1956 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
1957 rm -f confdef2opt.sed
1958
1959
1960
1961 : ${CONFIG_STATUS=./config.status}
1962 ac_clean_files_save=$ac_clean_files
1963 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1964 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
1965 echo "$as_me: creating $CONFIG_STATUS" >&6;}
1966 cat >$CONFIG_STATUS <<_ACEOF
1967 #! $SHELL
1968 # Generated by $as_me.
1969 # Run this file to recreate the current configuration.
1970 # Compiler output produced by configure, useful for debugging
1971 # configure, is in config.log if it exists.
1972
1973 debug=false
1974 SHELL=\${CONFIG_SHELL-$SHELL}
1975 _ACEOF
1976
1977 cat >>$CONFIG_STATUS <<\_ACEOF
1978
1979 ## --------------------- ##
1980 ## M4sh Initialization.  ##
1981 ## --------------------- ##
1982
1983 # Be Bourne compatible
1984 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1985   emulate sh
1986   NULLCMD=:
1987 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
1988   set -o posix
1989 fi
1990
1991 # NLS nuisances.
1992 # Support unset when possible.
1993 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
1994   as_unset=unset
1995 else
1996   as_unset=false
1997 fi
1998
1999 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
2000     { $as_unset LANG || test "${LANG+set}" != set; } ||
2001       { LANG=C; export LANG; }
2002 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
2003     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
2004       { LC_ALL=C; export LC_ALL; }
2005 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
2006     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
2007       { LC_TIME=C; export LC_TIME; }
2008 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
2009     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
2010       { LC_CTYPE=C; export LC_CTYPE; }
2011 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
2012     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
2013       { LANGUAGE=C; export LANGUAGE; }
2014 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
2015     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
2016       { LC_COLLATE=C; export LC_COLLATE; }
2017 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
2018     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
2019       { LC_NUMERIC=C; export LC_NUMERIC; }
2020 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
2021     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
2022       { LC_MESSAGES=C; export LC_MESSAGES; }
2023
2024
2025 # Name of the executable.
2026 as_me=`(basename "$0") 2>/dev/null ||
2027 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2028          X"$0" : 'X\(//\)$' \| \
2029          X"$0" : 'X\(/\)$' \| \
2030          .     : '\(.\)' 2>/dev/null ||
2031 echo X/"$0" |
2032     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2033           /^X\/\(\/\/\)$/{ s//\1/; q; }
2034           /^X\/\(\/\).*/{ s//\1/; q; }
2035           s/.*/./; q'`
2036
2037 # PATH needs CR, and LINENO needs CR and PATH.
2038 # Avoid depending upon Character Ranges.
2039 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2040 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2041 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2042 as_cr_digits='0123456789'
2043 as_cr_alnum=$as_cr_Letters$as_cr_digits
2044
2045 # The user is always right.
2046 if test "${PATH_SEPARATOR+set}" != set; then
2047   echo "#! /bin/sh" >conftest.sh
2048   echo  "exit 0"   >>conftest.sh
2049   chmod +x conftest.sh
2050   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
2051     PATH_SEPARATOR=';'
2052   else
2053     PATH_SEPARATOR=:
2054   fi
2055   rm -f conftest.sh
2056 fi
2057
2058
2059   as_lineno_1=$LINENO
2060   as_lineno_2=$LINENO
2061   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2062   test "x$as_lineno_1" != "x$as_lineno_2" &&
2063   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
2064   # Find who we are.  Look in the path if we contain no path at all
2065   # relative or not.
2066   case $0 in
2067     *[\\/]* ) as_myself=$0 ;;
2068     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 for as_dir in $PATH
2070 do
2071   IFS=$as_save_IFS
2072   test -z "$as_dir" && as_dir=.
2073   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2074 done
2075
2076        ;;
2077   esac
2078   # We did not find ourselves, most probably we were run as `sh COMMAND'
2079   # in which case we are not to be found in the path.
2080   if test "x$as_myself" = x; then
2081     as_myself=$0
2082   fi
2083   if test ! -f "$as_myself"; then
2084     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2085 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2086    { (exit 1); exit 1; }; }
2087   fi
2088   case $CONFIG_SHELL in
2089   '')
2090     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2092 do
2093   IFS=$as_save_IFS
2094   test -z "$as_dir" && as_dir=.
2095   for as_base in sh bash ksh sh5; do
2096          case $as_dir in
2097          /*)
2098            if ("$as_dir/$as_base" -c '
2099   as_lineno_1=$LINENO
2100   as_lineno_2=$LINENO
2101   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2102   test "x$as_lineno_1" != "x$as_lineno_2" &&
2103   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
2104              CONFIG_SHELL=$as_dir/$as_base
2105              export CONFIG_SHELL
2106              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2107            fi;;
2108          esac
2109        done
2110 done
2111 ;;
2112   esac
2113
2114   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2115   # uniformly replaced by the line number.  The first 'sed' inserts a
2116   # line-number line before each line; the second 'sed' does the real
2117   # work.  The second script uses 'N' to pair each line-number line
2118   # with the numbered line, and appends trailing '-' during
2119   # substitution so that $LINENO is not a special case at line end.
2120   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2121   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
2122   sed '=' <$as_myself |
2123     sed '
2124       N
2125       s,$,-,
2126       : loop
2127       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2128       t loop
2129       s,-$,,
2130       s,^['$as_cr_digits']*\n,,
2131     ' >$as_me.lineno &&
2132   chmod +x $as_me.lineno ||
2133     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2134 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2135    { (exit 1); exit 1; }; }
2136
2137   # Don't try to exec as it changes $[0], causing all sort of problems
2138   # (the dirname of $[0] is not the place where we might find the
2139   # original and so on.  Autoconf is especially sensible to this).
2140   . ./$as_me.lineno
2141   # Exit status is that of the last command.
2142   exit
2143 }
2144
2145
2146 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
2147   *c*,-n*) ECHO_N= ECHO_C='
2148 ' ECHO_T='      ' ;;
2149   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
2150   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
2151 esac
2152
2153 if expr a : '\(a\)' >/dev/null 2>&1; then
2154   as_expr=expr
2155 else
2156   as_expr=false
2157 fi
2158
2159 rm -f conf$$ conf$$.exe conf$$.file
2160 echo >conf$$.file
2161 if ln -s conf$$.file conf$$ 2>/dev/null; then
2162   # We could just check for DJGPP; but this test a) works b) is more generic
2163   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2164   if test -f conf$$.exe; then
2165     # Don't use ln at all; we don't have any links
2166     as_ln_s='cp -p'
2167   else
2168     as_ln_s='ln -s'
2169   fi
2170 elif ln conf$$.file conf$$ 2>/dev/null; then
2171   as_ln_s=ln
2172 else
2173   as_ln_s='cp -p'
2174 fi
2175 rm -f conf$$ conf$$.exe conf$$.file
2176
2177 as_executable_p="test -f"
2178
2179 # Sed expression to map a string onto a valid CPP name.
2180 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
2181
2182 # Sed expression to map a string onto a valid variable name.
2183 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
2184
2185
2186 # IFS
2187 # We need space, tab and new line, in precisely that order.
2188 as_nl='
2189 '
2190 IFS="   $as_nl"
2191
2192 # CDPATH.
2193 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
2194
2195 exec 6>&1
2196
2197 # Open the log real soon, to keep \$[0] and so on meaningful, and to
2198 # report actual input values of CONFIG_FILES etc. instead of their
2199 # values after options handling.  Logging --version etc. is OK.
2200 exec 5>>config.log
2201 {
2202   echo
2203   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
2204 @%:@@%:@ Running $as_me. @%:@@%:@
2205 _ASBOX
2206 } >&5
2207 cat >&5 <<_CSEOF
2208
2209 This file was extended by RT $as_me 3.0.4, which was
2210 generated by GNU Autoconf 2.53.  Invocation command line was
2211
2212   CONFIG_FILES    = $CONFIG_FILES
2213   CONFIG_HEADERS  = $CONFIG_HEADERS
2214   CONFIG_LINKS    = $CONFIG_LINKS
2215   CONFIG_COMMANDS = $CONFIG_COMMANDS
2216   $ $0 $@
2217
2218 _CSEOF
2219 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
2220 echo >&5
2221 _ACEOF
2222
2223 # Files that config.status was made for.
2224 if test -n "$ac_config_files"; then
2225   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2226 fi
2227
2228 if test -n "$ac_config_headers"; then
2229   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2230 fi
2231
2232 if test -n "$ac_config_links"; then
2233   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2234 fi
2235
2236 if test -n "$ac_config_commands"; then
2237   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2238 fi
2239
2240 cat >>$CONFIG_STATUS <<\_ACEOF
2241
2242 ac_cs_usage="\
2243 \`$as_me' instantiates files from templates according to the
2244 current configuration.
2245
2246 Usage: $0 [OPTIONS] [FILE]...
2247
2248   -h, --help       print this help, then exit
2249   -V, --version    print version number, then exit
2250   -d, --debug      don't remove temporary files
2251       --recheck    update $as_me by reconfiguring in the same conditions
2252   --file=FILE[:TEMPLATE]
2253                    instantiate the configuration file FILE
2254
2255 Configuration files:
2256 $config_files
2257
2258 Report bugs to <bug-autoconf@gnu.org>."
2259 _ACEOF
2260
2261 cat >>$CONFIG_STATUS <<_ACEOF
2262 ac_cs_version="\\
2263 RT config.status 3.0.4
2264 configured by $0, generated by GNU Autoconf 2.53,
2265   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2266
2267 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
2268 Free Software Foundation, Inc.
2269 This config.status script is free software; the Free Software Foundation
2270 gives unlimited permission to copy, distribute and modify it."
2271 srcdir=$srcdir
2272 INSTALL="$INSTALL"
2273 _ACEOF
2274
2275 cat >>$CONFIG_STATUS <<\_ACEOF
2276 # If no file are specified by the user, then we need to provide default
2277 # value.  By we need to know if files were specified by the user.
2278 ac_need_defaults=:
2279 while test $# != 0
2280 do
2281   case $1 in
2282   --*=*)
2283     ac_option=`expr "x$1" : 'x\([^=]*\)='`
2284     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2285     shift
2286     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
2287     shift
2288     ;;
2289   -*);;
2290   *) # This is not an option, so the user has probably given explicit
2291      # arguments.
2292      ac_need_defaults=false;;
2293   esac
2294
2295   case $1 in
2296   # Handling of the options.
2297 _ACEOF
2298 cat >>$CONFIG_STATUS <<_ACEOF
2299   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2300     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
2301     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
2302 _ACEOF
2303 cat >>$CONFIG_STATUS <<\_ACEOF
2304   --version | --vers* | -V )
2305     echo "$ac_cs_version"; exit 0 ;;
2306   --he | --h)
2307     # Conflict between --help and --header
2308     { { echo "$as_me:$LINENO: error: ambiguous option: $1
2309 Try \`$0 --help' for more information." >&5
2310 echo "$as_me: error: ambiguous option: $1
2311 Try \`$0 --help' for more information." >&2;}
2312    { (exit 1); exit 1; }; };;
2313   --help | --hel | -h )
2314     echo "$ac_cs_usage"; exit 0 ;;
2315   --debug | --d* | -d )
2316     debug=: ;;
2317   --file | --fil | --fi | --f )
2318     shift
2319     CONFIG_FILES="$CONFIG_FILES $1"
2320     ac_need_defaults=false;;
2321   --header | --heade | --head | --hea )
2322     shift
2323     CONFIG_HEADERS="$CONFIG_HEADERS $1"
2324     ac_need_defaults=false;;
2325
2326   # This is an error.
2327   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
2328 Try \`$0 --help' for more information." >&5
2329 echo "$as_me: error: unrecognized option: $1
2330 Try \`$0 --help' for more information." >&2;}
2331    { (exit 1); exit 1; }; } ;;
2332
2333   *) ac_config_targets="$ac_config_targets $1" ;;
2334
2335   esac
2336   shift
2337 done
2338
2339 _ACEOF
2340
2341
2342
2343
2344
2345 cat >>$CONFIG_STATUS <<\_ACEOF
2346 for ac_config_target in $ac_config_targets
2347 do
2348   case "$ac_config_target" in
2349   # Handling of arguments.
2350   "sbin/rt-setup-database" ) CONFIG_FILES="$CONFIG_FILES sbin/rt-setup-database" ;;
2351   "sbin/rt-test-dependencies" ) CONFIG_FILES="$CONFIG_FILES sbin/rt-test-dependencies" ;;
2352   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2353   "etc/RT_Config.pm" ) CONFIG_FILES="$CONFIG_FILES etc/RT_Config.pm" ;;
2354   "lib/RT.pm" ) CONFIG_FILES="$CONFIG_FILES lib/RT.pm" ;;
2355   "lib/t/00smoke.t" ) CONFIG_FILES="$CONFIG_FILES lib/t/00smoke.t" ;;
2356   "lib/t/01harness.t" ) CONFIG_FILES="$CONFIG_FILES lib/t/01harness.t" ;;
2357   "lib/t/02regression.t" ) CONFIG_FILES="$CONFIG_FILES lib/t/02regression.t" ;;
2358   "lib/t/03web.pl" ) CONFIG_FILES="$CONFIG_FILES lib/t/03web.pl" ;;
2359   "lib/t/04_send_email.pl" ) CONFIG_FILES="$CONFIG_FILES lib/t/04_send_email.pl" ;;
2360   "bin/mason_handler.fcgi" ) CONFIG_FILES="$CONFIG_FILES bin/mason_handler.fcgi" ;;
2361   "bin/mason_handler.scgi" ) CONFIG_FILES="$CONFIG_FILES bin/mason_handler.scgi" ;;
2362   "bin/mason_handler.svc" ) CONFIG_FILES="$CONFIG_FILES bin/mason_handler.svc" ;;
2363   "bin/rt-commit-handler" ) CONFIG_FILES="$CONFIG_FILES bin/rt-commit-handler" ;;
2364   "bin/rt-crontool" ) CONFIG_FILES="$CONFIG_FILES bin/rt-crontool" ;;
2365   "bin/rt-mailgate" ) CONFIG_FILES="$CONFIG_FILES bin/rt-mailgate" ;;
2366   "bin/webmux.pl" ) CONFIG_FILES="$CONFIG_FILES bin/webmux.pl" ;;
2367   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2368 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2369    { (exit 1); exit 1; }; };;
2370   esac
2371 done
2372
2373 # If the user did not use the arguments to specify the items to instantiate,
2374 # then the envvar interface is used.  Set only those that are not.
2375 # We use the long form for the default assignment because of an extremely
2376 # bizarre bug on SunOS 4.1.3.
2377 if $ac_need_defaults; then
2378   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2379 fi
2380
2381 # Create a temporary directory, and hook for its removal unless debugging.
2382 $debug ||
2383 {
2384   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2385   trap '{ (exit 1); exit 1; }' 1 2 13 15
2386 }
2387
2388 # Create a (secure) tmp directory for tmp files.
2389 : ${TMPDIR=/tmp}
2390 {
2391   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
2392   test -n "$tmp" && test -d "$tmp"
2393 }  ||
2394 {
2395   tmp=$TMPDIR/cs$$-$RANDOM
2396   (umask 077 && mkdir $tmp)
2397 } ||
2398 {
2399    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2400    { (exit 1); exit 1; }
2401 }
2402
2403 _ACEOF
2404
2405 cat >>$CONFIG_STATUS <<_ACEOF
2406
2407 #
2408 # CONFIG_FILES section.
2409 #
2410
2411 # No need to generate the scripts if there are no CONFIG_FILES.
2412 # This happens for instance when ./config.status config.h
2413 if test -n "\$CONFIG_FILES"; then
2414   # Protect against being on the right side of a sed subst in config.status.
2415   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2416    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2417 s,@SHELL@,$SHELL,;t t
2418 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2419 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2420 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2421 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2422 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2423 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
2424 s,@exec_prefix@,$exec_prefix,;t t
2425 s,@prefix@,$prefix,;t t
2426 s,@program_transform_name@,$program_transform_name,;t t
2427 s,@bindir@,$bindir,;t t
2428 s,@sbindir@,$sbindir,;t t
2429 s,@libexecdir@,$libexecdir,;t t
2430 s,@datadir@,$datadir,;t t
2431 s,@sysconfdir@,$sysconfdir,;t t
2432 s,@sharedstatedir@,$sharedstatedir,;t t
2433 s,@localstatedir@,$localstatedir,;t t
2434 s,@libdir@,$libdir,;t t
2435 s,@includedir@,$includedir,;t t
2436 s,@oldincludedir@,$oldincludedir,;t t
2437 s,@infodir@,$infodir,;t t
2438 s,@mandir@,$mandir,;t t
2439 s,@build_alias@,$build_alias,;t t
2440 s,@host_alias@,$host_alias,;t t
2441 s,@target_alias@,$target_alias,;t t
2442 s,@DEFS@,$DEFS,;t t
2443 s,@ECHO_C@,$ECHO_C,;t t
2444 s,@ECHO_N@,$ECHO_N,;t t
2445 s,@ECHO_T@,$ECHO_T,;t t
2446 s,@LIBS@,$LIBS,;t t
2447 s,@rt_version_major@,$rt_version_major,;t t
2448 s,@rt_version_minor@,$rt_version_minor,;t t
2449 s,@rt_version_patch@,$rt_version_patch,;t t
2450 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
2451 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
2452 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
2453 s,@PERL@,$PERL,;t t
2454 s,@SPEEDY_BIN@,$SPEEDY_BIN,;t t
2455 s,@exp_prefix@,$exp_prefix,;t t
2456 s,@exp_exec_prefix@,$exp_exec_prefix,;t t
2457 s,@exp_bindir@,$exp_bindir,;t t
2458 s,@exp_sbindir@,$exp_sbindir,;t t
2459 s,@exp_sysconfdir@,$exp_sysconfdir,;t t
2460 s,@exp_mandir@,$exp_mandir,;t t
2461 s,@exp_libdir@,$exp_libdir,;t t
2462 s,@exp_datadir@,$exp_datadir,;t t
2463 s,@htmldir@,$htmldir,;t t
2464 s,@exp_htmldir@,$exp_htmldir,;t t
2465 s,@manualdir@,$manualdir,;t t
2466 s,@exp_manualdir@,$exp_manualdir,;t t
2467 s,@exp_localstatedir@,$exp_localstatedir,;t t
2468 s,@logfiledir@,$logfiledir,;t t
2469 s,@exp_logfiledir@,$exp_logfiledir,;t t
2470 s,@masonstatedir@,$masonstatedir,;t t
2471 s,@exp_masonstatedir@,$exp_masonstatedir,;t t
2472 s,@sessionstatedir@,$sessionstatedir,;t t
2473 s,@exp_sessionstatedir@,$exp_sessionstatedir,;t t
2474 s,@customdir@,$customdir,;t t
2475 s,@exp_customdir@,$exp_customdir,;t t
2476 s,@custometcdir@,$custometcdir,;t t
2477 s,@exp_custometcdir@,$exp_custometcdir,;t t
2478 s,@customhtmldir@,$customhtmldir,;t t
2479 s,@exp_customhtmldir@,$exp_customhtmldir,;t t
2480 s,@customlexdir@,$customlexdir,;t t
2481 s,@exp_customlexdir@,$exp_customlexdir,;t t
2482 s,@customlibdir@,$customlibdir,;t t
2483 s,@exp_customlibdir@,$exp_customlibdir,;t t
2484 s,@rt_layout_name@,$rt_layout_name,;t t
2485 s,@RTGROUP@,$RTGROUP,;t t
2486 s,@BIN_OWNER@,$BIN_OWNER,;t t
2487 s,@LIBS_OWNER@,$LIBS_OWNER,;t t
2488 s,@LIBS_GROUP@,$LIBS_GROUP,;t t
2489 s,@DB_TYPE@,$DB_TYPE,;t t
2490 s,@DB_HOST@,$DB_HOST,;t t
2491 s,@DB_PORT@,$DB_PORT,;t t
2492 s,@DB_RT_HOST@,$DB_RT_HOST,;t t
2493 s,@DB_DBA@,$DB_DBA,;t t
2494 s,@DB_DATABASE@,$DB_DATABASE,;t t
2495 s,@DB_RT_USER@,$DB_RT_USER,;t t
2496 s,@DB_RT_PASS@,$DB_RT_PASS,;t t
2497 s,@WEB_USER@,$WEB_USER,;t t
2498 s,@WEB_GROUP@,$WEB_GROUP,;t t
2499 s,@RT_VERSION_MAJOR@,$RT_VERSION_MAJOR,;t t
2500 s,@RT_VERSION_MINOR@,$RT_VERSION_MINOR,;t t
2501 s,@RT_VERSION_PATCH@,$RT_VERSION_PATCH,;t t
2502 s,@RT_PATH@,$RT_PATH,;t t
2503 s,@RT_DOC_PATH@,$RT_DOC_PATH,;t t
2504 s,@RT_LOCAL_PATH@,$RT_LOCAL_PATH,;t t
2505 s,@RT_LIB_PATH@,$RT_LIB_PATH,;t t
2506 s,@RT_ETC_PATH@,$RT_ETC_PATH,;t t
2507 s,@CONFIG_FILE_PATH@,$CONFIG_FILE_PATH,;t t
2508 s,@RT_BIN_PATH@,$RT_BIN_PATH,;t t
2509 s,@RT_SBIN_PATH@,$RT_SBIN_PATH,;t t
2510 s,@RT_VAR_PATH@,$RT_VAR_PATH,;t t
2511 s,@RT_MAN_PATH@,$RT_MAN_PATH,;t t
2512 s,@MASON_DATA_PATH@,$MASON_DATA_PATH,;t t
2513 s,@MASON_SESSION_PATH@,$MASON_SESSION_PATH,;t t
2514 s,@MASON_HTML_PATH@,$MASON_HTML_PATH,;t t
2515 s,@LOCAL_ETC_PATH@,$LOCAL_ETC_PATH,;t t
2516 s,@MASON_LOCAL_HTML_PATH@,$MASON_LOCAL_HTML_PATH,;t t
2517 s,@LOCAL_LEXICON_PATH@,$LOCAL_LEXICON_PATH,;t t
2518 s,@LOCAL_LIB_PATH@,$LOCAL_LIB_PATH,;t t
2519 s,@DESTDIR@,$DESTDIR,;t t
2520 s,@RT_LOG_PATH@,$RT_LOG_PATH,;t t
2521 CEOF
2522
2523 _ACEOF
2524
2525   cat >>$CONFIG_STATUS <<\_ACEOF
2526   # Split the substitutions into bite-sized pieces for seds with
2527   # small command number limits, like on Digital OSF/1 and HP-UX.
2528   ac_max_sed_lines=48
2529   ac_sed_frag=1 # Number of current file.
2530   ac_beg=1 # First line for current file.
2531   ac_end=$ac_max_sed_lines # Line after last line for current file.
2532   ac_more_lines=:
2533   ac_sed_cmds=
2534   while $ac_more_lines; do
2535     if test $ac_beg -gt 1; then
2536       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2537     else
2538       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2539     fi
2540     if test ! -s $tmp/subs.frag; then
2541       ac_more_lines=false
2542     else
2543       # The purpose of the label and of the branching condition is to
2544       # speed up the sed processing (if there are no `@' at all, there
2545       # is no need to browse any of the substitutions).
2546       # These are the two extra sed commands mentioned above.
2547       (echo ':t
2548   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2549       if test -z "$ac_sed_cmds"; then
2550         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2551       else
2552         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2553       fi
2554       ac_sed_frag=`expr $ac_sed_frag + 1`
2555       ac_beg=$ac_end
2556       ac_end=`expr $ac_end + $ac_max_sed_lines`
2557     fi
2558   done
2559   if test -z "$ac_sed_cmds"; then
2560     ac_sed_cmds=cat
2561   fi
2562 fi # test -n "$CONFIG_FILES"
2563
2564 _ACEOF
2565 cat >>$CONFIG_STATUS <<\_ACEOF
2566 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2567   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2568   case $ac_file in
2569   - | *:- | *:-:* ) # input from stdin
2570         cat >$tmp/stdin
2571         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2572         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2573   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2574         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2575   * )   ac_file_in=$ac_file.in ;;
2576   esac
2577
2578   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2579   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
2580 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2581          X"$ac_file" : 'X\(//\)[^/]' \| \
2582          X"$ac_file" : 'X\(//\)$' \| \
2583          X"$ac_file" : 'X\(/\)' \| \
2584          .     : '\(.\)' 2>/dev/null ||
2585 echo X"$ac_file" |
2586     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2587           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2588           /^X\(\/\/\)$/{ s//\1/; q; }
2589           /^X\(\/\).*/{ s//\1/; q; }
2590           s/.*/./; q'`
2591   { case "$ac_dir" in
2592   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
2593   *)                      as_incr_dir=.;;
2594 esac
2595 as_dummy="$ac_dir"
2596 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
2597   case $as_mkdir_dir in
2598     # Skip DOS drivespec
2599     ?:) as_incr_dir=$as_mkdir_dir ;;
2600     *)
2601       as_incr_dir=$as_incr_dir/$as_mkdir_dir
2602       test -d "$as_incr_dir" ||
2603         mkdir "$as_incr_dir" ||
2604         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
2605 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
2606    { (exit 1); exit 1; }; }
2607     ;;
2608   esac
2609 done; }
2610
2611   ac_builddir=.
2612
2613 if test "$ac_dir" != .; then
2614   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2615   # A "../" for each directory in $ac_dir_suffix.
2616   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
2617 else
2618   ac_dir_suffix= ac_top_builddir=
2619 fi
2620
2621 case $srcdir in
2622   .)  # No --srcdir option.  We are building in place.
2623     ac_srcdir=.
2624     if test -z "$ac_top_builddir"; then
2625        ac_top_srcdir=.
2626     else
2627        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
2628     fi ;;
2629   [\\/]* | ?:[\\/]* )  # Absolute path.
2630     ac_srcdir=$srcdir$ac_dir_suffix;
2631     ac_top_srcdir=$srcdir ;;
2632   *) # Relative path.
2633     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
2634     ac_top_srcdir=$ac_top_builddir$srcdir ;;
2635 esac
2636 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
2637 # absolute.
2638 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
2639 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
2640 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
2641 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
2642
2643
2644   case $INSTALL in
2645   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2646   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
2647   esac
2648
2649   if test x"$ac_file" != x-; then
2650     { echo "$as_me:$LINENO: creating $ac_file" >&5
2651 echo "$as_me: creating $ac_file" >&6;}
2652     rm -f "$ac_file"
2653   fi
2654   # Let's still pretend it is `configure' which instantiates (i.e., don't
2655   # use $as_me), people would be surprised to read:
2656   #    /* config.h.  Generated by config.status.  */
2657   if test x"$ac_file" = x-; then
2658     configure_input=
2659   else
2660     configure_input="$ac_file.  "
2661   fi
2662   configure_input=$configure_input"Generated from `echo $ac_file_in |
2663                                      sed 's,.*/,,'` by configure."
2664
2665   # First look for the input files in the build tree, otherwise in the
2666   # src tree.
2667   ac_file_inputs=`IFS=:
2668     for f in $ac_file_in; do
2669       case $f in
2670       -) echo $tmp/stdin ;;
2671       [\\/$]*)
2672          # Absolute (can't be DOS-style, as IFS=:)
2673          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2674 echo "$as_me: error: cannot find input file: $f" >&2;}
2675    { (exit 1); exit 1; }; }
2676          echo $f;;
2677       *) # Relative
2678          if test -f "$f"; then
2679            # Build tree
2680            echo $f
2681          elif test -f "$srcdir/$f"; then
2682            # Source tree
2683            echo $srcdir/$f
2684          else
2685            # /dev/null tree
2686            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2687 echo "$as_me: error: cannot find input file: $f" >&2;}
2688    { (exit 1); exit 1; }; }
2689          fi;;
2690       esac
2691     done` || { (exit 1); exit 1; }
2692 _ACEOF
2693 cat >>$CONFIG_STATUS <<_ACEOF
2694   sed "$ac_vpsub
2695 $extrasub
2696 _ACEOF
2697 cat >>$CONFIG_STATUS <<\_ACEOF
2698 :t
2699 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2700 s,@configure_input@,$configure_input,;t t
2701 s,@srcdir@,$ac_srcdir,;t t
2702 s,@abs_srcdir@,$ac_abs_srcdir,;t t
2703 s,@top_srcdir@,$ac_top_srcdir,;t t
2704 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
2705 s,@builddir@,$ac_builddir,;t t
2706 s,@abs_builddir@,$ac_abs_builddir,;t t
2707 s,@top_builddir@,$ac_top_builddir,;t t
2708 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
2709 s,@INSTALL@,$ac_INSTALL,;t t
2710 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2711   rm -f $tmp/stdin
2712   if test x"$ac_file" != x-; then
2713     mv $tmp/out $ac_file
2714   else
2715     cat $tmp/out
2716     rm -f $tmp/out
2717   fi
2718
2719 done
2720 _ACEOF
2721
2722 cat >>$CONFIG_STATUS <<\_ACEOF
2723
2724 { (exit 0); exit 0; }
2725 _ACEOF
2726 chmod +x $CONFIG_STATUS
2727 ac_clean_files=$ac_clean_files_save
2728
2729
2730 # configure is writing to config.log, and then calls config.status.
2731 # config.status does its own redirection, appending to config.log.
2732 # Unfortunately, on DOS this fails, as config.log is still kept open
2733 # by configure, so config.status won't be able to write to it; its
2734 # output is simply discarded.  So we exec the FD to /dev/null,
2735 # effectively closing config.log, so it can be properly (re)opened and
2736 # appended to by config.status.  When coming back to configure, we
2737 # need to make the FD available again.
2738 if test "$no_create" != yes; then
2739   ac_cs_success=:
2740   exec 5>/dev/null
2741   $SHELL $CONFIG_STATUS || ac_cs_success=false
2742   exec 5>>config.log
2743   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2744   # would make configure fail if this is the last instruction.
2745   $ac_cs_success || { (exit 1); exit 1; }
2746 fi
2747