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