import torrus 1.0.9
[freeside.git] / torrus / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for torrus 1.0.9.
4 #
5 # Report bugs to <ssinyagin@users.sourceforge.net>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='torrus'
271 PACKAGE_TARNAME='torrus'
272 PACKAGE_VERSION='1.0.9'
273 PACKAGE_STRING='torrus 1.0.9'
274 PACKAGE_BUGREPORT='ssinyagin@users.sourceforge.net'
275
276 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar PERL SU KILL SED FIND RM SLEEP POD2TEXT POD2TEXT_PRESENT_TRUE POD2TEXT_PRESENT_FALSE POD2MAN POD2MAN_PRESENT_TRUE POD2MAN_PRESENT_FALSE enable_pkgonly PERLINC perllibdirs perlithreads torrus_user var_user var_group var_mode enable_varperm pkghome pkgbindir cfgdefdir pkgdocdir exmpdir perllibdir pluginsdir plugtorruscfgdir plugdevdisccfgdir plugwrapperdir scriptsdir supdir webplaindir webscriptsdir tmpldir distxmldir sitedir siteconfdir tmpluserdir sitexmldir logdir piddir varprefix cachedir dbhome reportsdir seslockdir sesstordir wrapperdir mansec_usercmd mansec_misc defrrddir LIBOBJS LTLIBOBJS'
277 ac_subst_files=''
278
279 # Initialize some variables set by options.
280 ac_init_help=
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
284 cache_file=/dev/null
285 exec_prefix=NONE
286 no_create=
287 no_recursion=
288 prefix=NONE
289 program_prefix=NONE
290 program_suffix=NONE
291 program_transform_name=s,x,x,
292 silent=
293 site=
294 srcdir=
295 verbose=
296 x_includes=NONE
297 x_libraries=NONE
298
299 # Installation directory options.
300 # These are left unexpanded so users can "make install exec_prefix=/foo"
301 # and all the variables that are supposed to be based on exec_prefix
302 # by default will actually change.
303 # Use braces instead of parens because sh, perl, etc. also accept them.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
316
317 ac_prev=
318 for ac_option
319 do
320   # If the previous option needs an argument, assign it.
321   if test -n "$ac_prev"; then
322     eval "$ac_prev=\$ac_option"
323     ac_prev=
324     continue
325   fi
326
327   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329   # Accept the important Cygnus configure options, so we can diagnose typos.
330
331   case $ac_option in
332
333   -bindir | --bindir | --bindi | --bind | --bin | --bi)
334     ac_prev=bindir ;;
335   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336     bindir=$ac_optarg ;;
337
338   -build | --build | --buil | --bui | --bu)
339     ac_prev=build_alias ;;
340   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341     build_alias=$ac_optarg ;;
342
343   -cache-file | --cache-file | --cache-fil | --cache-fi \
344   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345     ac_prev=cache_file ;;
346   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348     cache_file=$ac_optarg ;;
349
350   --config-cache | -C)
351     cache_file=config.cache ;;
352
353   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354     ac_prev=datadir ;;
355   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356   | --da=*)
357     datadir=$ac_optarg ;;
358
359   -disable-* | --disable-*)
360     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361     # Reject names that are not valid shell variable names.
362     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364    { (exit 1); exit 1; }; }
365     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366     eval "enable_$ac_feature=no" ;;
367
368   -enable-* | --enable-*)
369     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370     # Reject names that are not valid shell variable names.
371     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373    { (exit 1); exit 1; }; }
374     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375     case $ac_option in
376       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377       *) ac_optarg=yes ;;
378     esac
379     eval "enable_$ac_feature='$ac_optarg'" ;;
380
381   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383   | --exec | --exe | --ex)
384     ac_prev=exec_prefix ;;
385   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387   | --exec=* | --exe=* | --ex=*)
388     exec_prefix=$ac_optarg ;;
389
390   -gas | --gas | --ga | --g)
391     # Obsolete; use --with-gas.
392     with_gas=yes ;;
393
394   -help | --help | --hel | --he | -h)
395     ac_init_help=long ;;
396   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397     ac_init_help=recursive ;;
398   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399     ac_init_help=short ;;
400
401   -host | --host | --hos | --ho)
402     ac_prev=host_alias ;;
403   -host=* | --host=* | --hos=* | --ho=*)
404     host_alias=$ac_optarg ;;
405
406   -includedir | --includedir | --includedi | --included | --include \
407   | --includ | --inclu | --incl | --inc)
408     ac_prev=includedir ;;
409   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410   | --includ=* | --inclu=* | --incl=* | --inc=*)
411     includedir=$ac_optarg ;;
412
413   -infodir | --infodir | --infodi | --infod | --info | --inf)
414     ac_prev=infodir ;;
415   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416     infodir=$ac_optarg ;;
417
418   -libdir | --libdir | --libdi | --libd)
419     ac_prev=libdir ;;
420   -libdir=* | --libdir=* | --libdi=* | --libd=*)
421     libdir=$ac_optarg ;;
422
423   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424   | --libexe | --libex | --libe)
425     ac_prev=libexecdir ;;
426   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427   | --libexe=* | --libex=* | --libe=*)
428     libexecdir=$ac_optarg ;;
429
430   -localstatedir | --localstatedir | --localstatedi | --localstated \
431   | --localstate | --localstat | --localsta | --localst \
432   | --locals | --local | --loca | --loc | --lo)
433     ac_prev=localstatedir ;;
434   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437     localstatedir=$ac_optarg ;;
438
439   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440     ac_prev=mandir ;;
441   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442     mandir=$ac_optarg ;;
443
444   -nfp | --nfp | --nf)
445     # Obsolete; use --without-fp.
446     with_fp=no ;;
447
448   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449   | --no-cr | --no-c | -n)
450     no_create=yes ;;
451
452   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454     no_recursion=yes ;;
455
456   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458   | --oldin | --oldi | --old | --ol | --o)
459     ac_prev=oldincludedir ;;
460   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463     oldincludedir=$ac_optarg ;;
464
465   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466     ac_prev=prefix ;;
467   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468     prefix=$ac_optarg ;;
469
470   -program-prefix | --program-prefix | --program-prefi | --program-pref \
471   | --program-pre | --program-pr | --program-p)
472     ac_prev=program_prefix ;;
473   -program-prefix=* | --program-prefix=* | --program-prefi=* \
474   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475     program_prefix=$ac_optarg ;;
476
477   -program-suffix | --program-suffix | --program-suffi | --program-suff \
478   | --program-suf | --program-su | --program-s)
479     ac_prev=program_suffix ;;
480   -program-suffix=* | --program-suffix=* | --program-suffi=* \
481   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482     program_suffix=$ac_optarg ;;
483
484   -program-transform-name | --program-transform-name \
485   | --program-transform-nam | --program-transform-na \
486   | --program-transform-n | --program-transform- \
487   | --program-transform | --program-transfor \
488   | --program-transfo | --program-transf \
489   | --program-trans | --program-tran \
490   | --progr-tra | --program-tr | --program-t)
491     ac_prev=program_transform_name ;;
492   -program-transform-name=* | --program-transform-name=* \
493   | --program-transform-nam=* | --program-transform-na=* \
494   | --program-transform-n=* | --program-transform-=* \
495   | --program-transform=* | --program-transfor=* \
496   | --program-transfo=* | --program-transf=* \
497   | --program-trans=* | --program-tran=* \
498   | --progr-tra=* | --program-tr=* | --program-t=*)
499     program_transform_name=$ac_optarg ;;
500
501   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502   | -silent | --silent | --silen | --sile | --sil)
503     silent=yes ;;
504
505   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506     ac_prev=sbindir ;;
507   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508   | --sbi=* | --sb=*)
509     sbindir=$ac_optarg ;;
510
511   -sharedstatedir | --sharedstatedir | --sharedstatedi \
512   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513   | --sharedst | --shareds | --shared | --share | --shar \
514   | --sha | --sh)
515     ac_prev=sharedstatedir ;;
516   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519   | --sha=* | --sh=*)
520     sharedstatedir=$ac_optarg ;;
521
522   -site | --site | --sit)
523     ac_prev=site ;;
524   -site=* | --site=* | --sit=*)
525     site=$ac_optarg ;;
526
527   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528     ac_prev=srcdir ;;
529   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530     srcdir=$ac_optarg ;;
531
532   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533   | --syscon | --sysco | --sysc | --sys | --sy)
534     ac_prev=sysconfdir ;;
535   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537     sysconfdir=$ac_optarg ;;
538
539   -target | --target | --targe | --targ | --tar | --ta | --t)
540     ac_prev=target_alias ;;
541   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542     target_alias=$ac_optarg ;;
543
544   -v | -verbose | --verbose | --verbos | --verbo | --verb)
545     verbose=yes ;;
546
547   -version | --version | --versio | --versi | --vers | -V)
548     ac_init_version=: ;;
549
550   -with-* | --with-*)
551     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid package name: $ac_package" >&2
555    { (exit 1); exit 1; }; }
556     ac_package=`echo $ac_package| sed 's/-/_/g'`
557     case $ac_option in
558       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559       *) ac_optarg=yes ;;
560     esac
561     eval "with_$ac_package='$ac_optarg'" ;;
562
563   -without-* | --without-*)
564     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565     # Reject names that are not valid shell variable names.
566     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567       { echo "$as_me: error: invalid package name: $ac_package" >&2
568    { (exit 1); exit 1; }; }
569     ac_package=`echo $ac_package | sed 's/-/_/g'`
570     eval "with_$ac_package=no" ;;
571
572   --x)
573     # Obsolete; use --with-x.
574     with_x=yes ;;
575
576   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577   | --x-incl | --x-inc | --x-in | --x-i)
578     ac_prev=x_includes ;;
579   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581     x_includes=$ac_optarg ;;
582
583   -x-libraries | --x-libraries | --x-librarie | --x-librari \
584   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585     ac_prev=x_libraries ;;
586   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588     x_libraries=$ac_optarg ;;
589
590   -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592    { (exit 1); exit 1; }; }
593     ;;
594
595   *=*)
596     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597     # Reject names that are not valid shell variable names.
598     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600    { (exit 1); exit 1; }; }
601     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602     eval "$ac_envvar='$ac_optarg'"
603     export $ac_envvar ;;
604
605   *)
606     # FIXME: should be removed in autoconf 3.0.
607     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611     ;;
612
613   esac
614 done
615
616 if test -n "$ac_prev"; then
617   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618   { echo "$as_me: error: missing argument to $ac_option" >&2
619    { (exit 1); exit 1; }; }
620 fi
621
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
624 do
625   eval ac_val=$`echo $ac_var`
626   case $ac_val in
627     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629    { (exit 1); exit 1; }; };;
630   esac
631 done
632
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635               localstatedir libdir includedir oldincludedir infodir mandir
636 do
637   eval ac_val=$`echo $ac_var`
638   case $ac_val in
639     [\\/$]* | ?:[\\/]* ) ;;
640     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641    { (exit 1); exit 1; }; };;
642   esac
643 done
644
645 # There might be people who depend on the old broken behavior: `$host'
646 # used to hold the argument of --host etc.
647 # FIXME: To remove some day.
648 build=$build_alias
649 host=$host_alias
650 target=$target_alias
651
652 # FIXME: To remove some day.
653 if test "x$host_alias" != x; then
654   if test "x$build_alias" = x; then
655     cross_compiling=maybe
656     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657     If a cross compiler is detected then cross compile mode will be used." >&2
658   elif test "x$build_alias" != "x$host_alias"; then
659     cross_compiling=yes
660   fi
661 fi
662
663 ac_tool_prefix=
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666 test "$silent" = yes && exec 6>/dev/null
667
668
669 # Find the source files, if location was not specified.
670 if test -z "$srcdir"; then
671   ac_srcdir_defaulted=yes
672   # Try the directory containing this script, then its parent.
673   ac_confdir=`(dirname "$0") 2>/dev/null ||
674 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675          X"$0" : 'X\(//\)[^/]' \| \
676          X"$0" : 'X\(//\)$' \| \
677          X"$0" : 'X\(/\)' \| \
678          .     : '\(.\)' 2>/dev/null ||
679 echo X"$0" |
680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682           /^X\(\/\/\)$/{ s//\1/; q; }
683           /^X\(\/\).*/{ s//\1/; q; }
684           s/.*/./; q'`
685   srcdir=$ac_confdir
686   if test ! -r $srcdir/$ac_unique_file; then
687     srcdir=..
688   fi
689 else
690   ac_srcdir_defaulted=no
691 fi
692 if test ! -r $srcdir/$ac_unique_file; then
693   if test "$ac_srcdir_defaulted" = yes; then
694     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695    { (exit 1); exit 1; }; }
696   else
697     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698    { (exit 1); exit 1; }; }
699   fi
700 fi
701 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703    { (exit 1); exit 1; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_env_PERLINC_set=${PERLINC+set}
718 ac_env_PERLINC_value=$PERLINC
719 ac_cv_env_PERLINC_set=${PERLINC+set}
720 ac_cv_env_PERLINC_value=$PERLINC
721 ac_env_torrus_user_set=${torrus_user+set}
722 ac_env_torrus_user_value=$torrus_user
723 ac_cv_env_torrus_user_set=${torrus_user+set}
724 ac_cv_env_torrus_user_value=$torrus_user
725 ac_env_var_user_set=${var_user+set}
726 ac_env_var_user_value=$var_user
727 ac_cv_env_var_user_set=${var_user+set}
728 ac_cv_env_var_user_value=$var_user
729 ac_env_var_group_set=${var_group+set}
730 ac_env_var_group_value=$var_group
731 ac_cv_env_var_group_set=${var_group+set}
732 ac_cv_env_var_group_value=$var_group
733 ac_env_var_mode_set=${var_mode+set}
734 ac_env_var_mode_value=$var_mode
735 ac_cv_env_var_mode_set=${var_mode+set}
736 ac_cv_env_var_mode_value=$var_mode
737 ac_env_pkghome_set=${pkghome+set}
738 ac_env_pkghome_value=$pkghome
739 ac_cv_env_pkghome_set=${pkghome+set}
740 ac_cv_env_pkghome_value=$pkghome
741 ac_env_pkgbindir_set=${pkgbindir+set}
742 ac_env_pkgbindir_value=$pkgbindir
743 ac_cv_env_pkgbindir_set=${pkgbindir+set}
744 ac_cv_env_pkgbindir_value=$pkgbindir
745 ac_env_cfgdefdir_set=${cfgdefdir+set}
746 ac_env_cfgdefdir_value=$cfgdefdir
747 ac_cv_env_cfgdefdir_set=${cfgdefdir+set}
748 ac_cv_env_cfgdefdir_value=$cfgdefdir
749 ac_env_pkgdocdir_set=${pkgdocdir+set}
750 ac_env_pkgdocdir_value=$pkgdocdir
751 ac_cv_env_pkgdocdir_set=${pkgdocdir+set}
752 ac_cv_env_pkgdocdir_value=$pkgdocdir
753 ac_env_exmpdir_set=${exmpdir+set}
754 ac_env_exmpdir_value=$exmpdir
755 ac_cv_env_exmpdir_set=${exmpdir+set}
756 ac_cv_env_exmpdir_value=$exmpdir
757 ac_env_perllibdir_set=${perllibdir+set}
758 ac_env_perllibdir_value=$perllibdir
759 ac_cv_env_perllibdir_set=${perllibdir+set}
760 ac_cv_env_perllibdir_value=$perllibdir
761 ac_env_pluginsdir_set=${pluginsdir+set}
762 ac_env_pluginsdir_value=$pluginsdir
763 ac_cv_env_pluginsdir_set=${pluginsdir+set}
764 ac_cv_env_pluginsdir_value=$pluginsdir
765 ac_env_plugtorruscfgdir_set=${plugtorruscfgdir+set}
766 ac_env_plugtorruscfgdir_value=$plugtorruscfgdir
767 ac_cv_env_plugtorruscfgdir_set=${plugtorruscfgdir+set}
768 ac_cv_env_plugtorruscfgdir_value=$plugtorruscfgdir
769 ac_env_plugdevdisccfgdir_set=${plugdevdisccfgdir+set}
770 ac_env_plugdevdisccfgdir_value=$plugdevdisccfgdir
771 ac_cv_env_plugdevdisccfgdir_set=${plugdevdisccfgdir+set}
772 ac_cv_env_plugdevdisccfgdir_value=$plugdevdisccfgdir
773 ac_env_plugwrapperdir_set=${plugwrapperdir+set}
774 ac_env_plugwrapperdir_value=$plugwrapperdir
775 ac_cv_env_plugwrapperdir_set=${plugwrapperdir+set}
776 ac_cv_env_plugwrapperdir_value=$plugwrapperdir
777 ac_env_scriptsdir_set=${scriptsdir+set}
778 ac_env_scriptsdir_value=$scriptsdir
779 ac_cv_env_scriptsdir_set=${scriptsdir+set}
780 ac_cv_env_scriptsdir_value=$scriptsdir
781 ac_env_supdir_set=${supdir+set}
782 ac_env_supdir_value=$supdir
783 ac_cv_env_supdir_set=${supdir+set}
784 ac_cv_env_supdir_value=$supdir
785 ac_env_webplaindir_set=${webplaindir+set}
786 ac_env_webplaindir_value=$webplaindir
787 ac_cv_env_webplaindir_set=${webplaindir+set}
788 ac_cv_env_webplaindir_value=$webplaindir
789 ac_env_webscriptsdir_set=${webscriptsdir+set}
790 ac_env_webscriptsdir_value=$webscriptsdir
791 ac_cv_env_webscriptsdir_set=${webscriptsdir+set}
792 ac_cv_env_webscriptsdir_value=$webscriptsdir
793 ac_env_tmpldir_set=${tmpldir+set}
794 ac_env_tmpldir_value=$tmpldir
795 ac_cv_env_tmpldir_set=${tmpldir+set}
796 ac_cv_env_tmpldir_value=$tmpldir
797 ac_env_distxmldir_set=${distxmldir+set}
798 ac_env_distxmldir_value=$distxmldir
799 ac_cv_env_distxmldir_set=${distxmldir+set}
800 ac_cv_env_distxmldir_value=$distxmldir
801 ac_env_sitedir_set=${sitedir+set}
802 ac_env_sitedir_value=$sitedir
803 ac_cv_env_sitedir_set=${sitedir+set}
804 ac_cv_env_sitedir_value=$sitedir
805 ac_env_siteconfdir_set=${siteconfdir+set}
806 ac_env_siteconfdir_value=$siteconfdir
807 ac_cv_env_siteconfdir_set=${siteconfdir+set}
808 ac_cv_env_siteconfdir_value=$siteconfdir
809 ac_env_tmpluserdir_set=${tmpluserdir+set}
810 ac_env_tmpluserdir_value=$tmpluserdir
811 ac_cv_env_tmpluserdir_set=${tmpluserdir+set}
812 ac_cv_env_tmpluserdir_value=$tmpluserdir
813 ac_env_sitexmldir_set=${sitexmldir+set}
814 ac_env_sitexmldir_value=$sitexmldir
815 ac_cv_env_sitexmldir_set=${sitexmldir+set}
816 ac_cv_env_sitexmldir_value=$sitexmldir
817 ac_env_logdir_set=${logdir+set}
818 ac_env_logdir_value=$logdir
819 ac_cv_env_logdir_set=${logdir+set}
820 ac_cv_env_logdir_value=$logdir
821 ac_env_piddir_set=${piddir+set}
822 ac_env_piddir_value=$piddir
823 ac_cv_env_piddir_set=${piddir+set}
824 ac_cv_env_piddir_value=$piddir
825 ac_env_varprefix_set=${varprefix+set}
826 ac_env_varprefix_value=$varprefix
827 ac_cv_env_varprefix_set=${varprefix+set}
828 ac_cv_env_varprefix_value=$varprefix
829 ac_env_cachedir_set=${cachedir+set}
830 ac_env_cachedir_value=$cachedir
831 ac_cv_env_cachedir_set=${cachedir+set}
832 ac_cv_env_cachedir_value=$cachedir
833 ac_env_dbhome_set=${dbhome+set}
834 ac_env_dbhome_value=$dbhome
835 ac_cv_env_dbhome_set=${dbhome+set}
836 ac_cv_env_dbhome_value=$dbhome
837 ac_env_reportsdir_set=${reportsdir+set}
838 ac_env_reportsdir_value=$reportsdir
839 ac_cv_env_reportsdir_set=${reportsdir+set}
840 ac_cv_env_reportsdir_value=$reportsdir
841 ac_env_seslockdir_set=${seslockdir+set}
842 ac_env_seslockdir_value=$seslockdir
843 ac_cv_env_seslockdir_set=${seslockdir+set}
844 ac_cv_env_seslockdir_value=$seslockdir
845 ac_env_sesstordir_set=${sesstordir+set}
846 ac_env_sesstordir_value=$sesstordir
847 ac_cv_env_sesstordir_set=${sesstordir+set}
848 ac_cv_env_sesstordir_value=$sesstordir
849 ac_env_wrapperdir_set=${wrapperdir+set}
850 ac_env_wrapperdir_value=$wrapperdir
851 ac_cv_env_wrapperdir_set=${wrapperdir+set}
852 ac_cv_env_wrapperdir_value=$wrapperdir
853 ac_env_mansec_usercmd_set=${mansec_usercmd+set}
854 ac_env_mansec_usercmd_value=$mansec_usercmd
855 ac_cv_env_mansec_usercmd_set=${mansec_usercmd+set}
856 ac_cv_env_mansec_usercmd_value=$mansec_usercmd
857 ac_env_mansec_misc_set=${mansec_misc+set}
858 ac_env_mansec_misc_value=$mansec_misc
859 ac_cv_env_mansec_misc_set=${mansec_misc+set}
860 ac_cv_env_mansec_misc_value=$mansec_misc
861 ac_env_defrrddir_set=${defrrddir+set}
862 ac_env_defrrddir_value=$defrrddir
863 ac_cv_env_defrrddir_set=${defrrddir+set}
864 ac_cv_env_defrrddir_value=$defrrddir
865
866 #
867 # Report the --help message.
868 #
869 if test "$ac_init_help" = "long"; then
870   # Omit some internal or obsolete options to make the list less imposing.
871   # This message is too long to be a string in the A/UX 3.1 sh.
872   cat <<_ACEOF
873 \`configure' configures torrus 1.0.9 to adapt to many kinds of systems.
874
875 Usage: $0 [OPTION]... [VAR=VALUE]...
876
877 To assign environment variables (e.g., CC, CFLAGS...), specify them as
878 VAR=VALUE.  See below for descriptions of some of the useful variables.
879
880 Defaults for the options are specified in brackets.
881
882 Configuration:
883   -h, --help              display this help and exit
884       --help=short        display options specific to this package
885       --help=recursive    display the short help of all the included packages
886   -V, --version           display version information and exit
887   -q, --quiet, --silent   do not print \`checking...' messages
888       --cache-file=FILE   cache test results in FILE [disabled]
889   -C, --config-cache      alias for \`--cache-file=config.cache'
890   -n, --no-create         do not create output files
891       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
892
893 _ACEOF
894
895   cat <<_ACEOF
896 Installation directories:
897   --prefix=PREFIX         install architecture-independent files in PREFIX
898                           [$ac_default_prefix]
899   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
900                           [PREFIX]
901
902 By default, \`make install' will install all the files in
903 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
904 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
905 for instance \`--prefix=\$HOME'.
906
907 For better control, use the options below.
908
909 Fine tuning of the installation directories:
910   --bindir=DIR           user executables [EPREFIX/bin]
911   --sbindir=DIR          system admin executables [EPREFIX/sbin]
912   --libexecdir=DIR       program executables [EPREFIX/libexec]
913   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
914   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
915   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
916   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
917   --libdir=DIR           object code libraries [EPREFIX/lib]
918   --includedir=DIR       C header files [PREFIX/include]
919   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
920   --infodir=DIR          info documentation [PREFIX/info]
921   --mandir=DIR           man documentation [PREFIX/man]
922 _ACEOF
923
924   cat <<\_ACEOF
925
926 Program names:
927   --program-prefix=PREFIX            prepend PREFIX to installed program names
928   --program-suffix=SUFFIX            append SUFFIX to installed program names
929   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
930
931 System types:
932   --build=BUILD     configure for building on BUILD [guessed]
933   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
934 _ACEOF
935 fi
936
937 if test -n "$ac_init_help"; then
938   case $ac_init_help in
939      short | recursive ) echo "Configuration of torrus 1.0.9:";;
940    esac
941   cat <<\_ACEOF
942
943 Optional Features:
944   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
945   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
946   --enable-pkgonly        Skip all checking
947   --disable-threads       Disable Perl threads usage
948   --disable-varperm       Disable db and cache access rights tuning
949
950 Optional Packages:
951   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
952   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
953   --with-rrdtool=DIR      RRDTool location
954
955 Some influential environment variables:
956   PERLINC     [] Additional space-separated Perl library paths
957   torrus_user [torrus] UID to run the daemons
958   var_user    [TORRUS_USER] Owner of db and cache directories
959   var_group   [torrus] Group of db and cache directories
960   var_mode    [775] Mode of db and cache directories
961   pkghome     [PREFIX/torrus] Place for Torrus static files
962   pkgbindir   [PKGHOME/bin] Torrus executables
963   cfgdefdir   [PKGHOME/conf_defaults] torrus-config.pl and others
964   pkgdocdir   [PKGHOME/doc] Documentation files
965   exmpdir     [PKGHOME/examples] Examples
966   perllibdir  [PKGHOME/perllib] Torrus Perl libraries
967   pluginsdir  [PKGHOME/plugins] Plugin configurations
968   plugtorruscfgdir
969               [PLUGINSDIR/torrus-config]
970   plugdevdisccfgdir
971               [PLUGINSDIR/devdiscover-config]
972   plugwrapperdir
973               [PLUGINSDIR/wrapper]
974   scriptsdir  [PKGHOME/scripts] Script files
975   supdir      [PKGHOME/sup] Supplementary files
976   webplaindir [SUPDIR/webplain] Web interface plain files path
977   webscriptsdir
978               [SUPDIR/webscripts] Directory for optional web scripts
979   tmpldir     [PKGHOME/templates] Template files
980   distxmldir  [PKGHOME/xmlconfig] Distribution XML config files
981   sitedir     [SYSCONFDIR/torrus] Site configuration files
982   siteconfdir [SITEDIR/conf] Site configuration files
983   tmpluserdir [SITEDIR/templates] User-defined Template files
984   sitexmldir  [SITEDIR/xmlconfig] Site XML configs
985   logdir      [/var/log/torrus] Log files
986   piddir      [/var/run/torrus] PID files
987   varprefix   [/var/torrus] Common prefix for runtime data
988   cachedir    [VARPREFIX/cache] Renderer cache
989   dbhome      [VARPREFIX/db] Berkeley DB files
990   reportsdir  [VARPREFIX/reports] Reports output
991   seslockdir  [VARPREFIX/session_data/lock] Web session locks
992   sesstordir  [VARPREFIX/session_data/store] Web session storage
993   wrapperdir  [BINDIR] CLI wrapper
994   mansec_usercmd
995               [1] User commands man section
996   mansec_misc [7] Miscellaneous man section
997   defrrddir   [/srv/torrus/collector_rrd] Default RRD storage path
998
999 Use these variables to override the choices made by `configure' or to help
1000 it to find libraries and programs with nonstandard names/locations.
1001
1002 Report bugs to <ssinyagin@users.sourceforge.net>.
1003 _ACEOF
1004 fi
1005
1006 if test "$ac_init_help" = "recursive"; then
1007   # If there are subdirs, report their specific --help.
1008   ac_popdir=`pwd`
1009   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1010     test -d $ac_dir || continue
1011     ac_builddir=.
1012
1013 if test "$ac_dir" != .; then
1014   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1015   # A "../" for each directory in $ac_dir_suffix.
1016   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1017 else
1018   ac_dir_suffix= ac_top_builddir=
1019 fi
1020
1021 case $srcdir in
1022   .)  # No --srcdir option.  We are building in place.
1023     ac_srcdir=.
1024     if test -z "$ac_top_builddir"; then
1025        ac_top_srcdir=.
1026     else
1027        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1028     fi ;;
1029   [\\/]* | ?:[\\/]* )  # Absolute path.
1030     ac_srcdir=$srcdir$ac_dir_suffix;
1031     ac_top_srcdir=$srcdir ;;
1032   *) # Relative path.
1033     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1034     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1035 esac
1036
1037 # Do not use `cd foo && pwd` to compute absolute paths, because
1038 # the directories may not exist.
1039 case `pwd` in
1040 .) ac_abs_builddir="$ac_dir";;
1041 *)
1042   case "$ac_dir" in
1043   .) ac_abs_builddir=`pwd`;;
1044   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1045   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1046   esac;;
1047 esac
1048 case $ac_abs_builddir in
1049 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1050 *)
1051   case ${ac_top_builddir}. in
1052   .) ac_abs_top_builddir=$ac_abs_builddir;;
1053   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1054   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1055   esac;;
1056 esac
1057 case $ac_abs_builddir in
1058 .) ac_abs_srcdir=$ac_srcdir;;
1059 *)
1060   case $ac_srcdir in
1061   .) ac_abs_srcdir=$ac_abs_builddir;;
1062   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1063   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1064   esac;;
1065 esac
1066 case $ac_abs_builddir in
1067 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1068 *)
1069   case $ac_top_srcdir in
1070   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1071   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1072   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1073   esac;;
1074 esac
1075
1076     cd $ac_dir
1077     # Check for guested configure; otherwise get Cygnus style configure.
1078     if test -f $ac_srcdir/configure.gnu; then
1079       echo
1080       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1081     elif test -f $ac_srcdir/configure; then
1082       echo
1083       $SHELL $ac_srcdir/configure  --help=recursive
1084     elif test -f $ac_srcdir/configure.ac ||
1085            test -f $ac_srcdir/configure.in; then
1086       echo
1087       $ac_configure --help
1088     else
1089       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1090     fi
1091     cd $ac_popdir
1092   done
1093 fi
1094
1095 test -n "$ac_init_help" && exit 0
1096 if $ac_init_version; then
1097   cat <<\_ACEOF
1098 torrus configure 1.0.9
1099 generated by GNU Autoconf 2.59
1100
1101 Copyright (C) 2003 Free Software Foundation, Inc.
1102 This configure script is free software; the Free Software Foundation
1103 gives unlimited permission to copy, distribute and modify it.
1104 _ACEOF
1105   exit 0
1106 fi
1107 exec 5>config.log
1108 cat >&5 <<_ACEOF
1109 This file contains any messages produced by compilers while
1110 running configure, to aid debugging if configure makes a mistake.
1111
1112 It was created by torrus $as_me 1.0.9, which was
1113 generated by GNU Autoconf 2.59.  Invocation command line was
1114
1115   $ $0 $@
1116
1117 _ACEOF
1118 {
1119 cat <<_ASUNAME
1120 ## --------- ##
1121 ## Platform. ##
1122 ## --------- ##
1123
1124 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1125 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1126 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1127 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1128 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1129
1130 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1131 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1132
1133 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1134 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1135 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1136 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1137 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1138 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1139 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1140
1141 _ASUNAME
1142
1143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1144 for as_dir in $PATH
1145 do
1146   IFS=$as_save_IFS
1147   test -z "$as_dir" && as_dir=.
1148   echo "PATH: $as_dir"
1149 done
1150
1151 } >&5
1152
1153 cat >&5 <<_ACEOF
1154
1155
1156 ## ----------- ##
1157 ## Core tests. ##
1158 ## ----------- ##
1159
1160 _ACEOF
1161
1162
1163 # Keep a trace of the command line.
1164 # Strip out --no-create and --no-recursion so they do not pile up.
1165 # Strip out --silent because we don't want to record it for future runs.
1166 # Also quote any args containing shell meta-characters.
1167 # Make two passes to allow for proper duplicate-argument suppression.
1168 ac_configure_args=
1169 ac_configure_args0=
1170 ac_configure_args1=
1171 ac_sep=
1172 ac_must_keep_next=false
1173 for ac_pass in 1 2
1174 do
1175   for ac_arg
1176   do
1177     case $ac_arg in
1178     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1179     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180     | -silent | --silent | --silen | --sile | --sil)
1181       continue ;;
1182     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1183       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1184     esac
1185     case $ac_pass in
1186     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1187     2)
1188       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1189       if test $ac_must_keep_next = true; then
1190         ac_must_keep_next=false # Got value, back to normal.
1191       else
1192         case $ac_arg in
1193           *=* | --config-cache | -C | -disable-* | --disable-* \
1194           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1195           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1196           | -with-* | --with-* | -without-* | --without-* | --x)
1197             case "$ac_configure_args0 " in
1198               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1199             esac
1200             ;;
1201           -* ) ac_must_keep_next=true ;;
1202         esac
1203       fi
1204       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1205       # Get rid of the leading space.
1206       ac_sep=" "
1207       ;;
1208     esac
1209   done
1210 done
1211 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1212 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1213
1214 # When interrupted or exit'd, cleanup temporary files, and complete
1215 # config.log.  We remove comments because anyway the quotes in there
1216 # would cause problems or look ugly.
1217 # WARNING: Be sure not to use single quotes in there, as some shells,
1218 # such as our DU 5.0 friend, will then `close' the trap.
1219 trap 'exit_status=$?
1220   # Save into config.log some information that might help in debugging.
1221   {
1222     echo
1223
1224     cat <<\_ASBOX
1225 ## ---------------- ##
1226 ## Cache variables. ##
1227 ## ---------------- ##
1228 _ASBOX
1229     echo
1230     # The following way of writing the cache mishandles newlines in values,
1231 {
1232   (set) 2>&1 |
1233     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1234     *ac_space=\ *)
1235       sed -n \
1236         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1237           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1238       ;;
1239     *)
1240       sed -n \
1241         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1242       ;;
1243     esac;
1244 }
1245     echo
1246
1247     cat <<\_ASBOX
1248 ## ----------------- ##
1249 ## Output variables. ##
1250 ## ----------------- ##
1251 _ASBOX
1252     echo
1253     for ac_var in $ac_subst_vars
1254     do
1255       eval ac_val=$`echo $ac_var`
1256       echo "$ac_var='"'"'$ac_val'"'"'"
1257     done | sort
1258     echo
1259
1260     if test -n "$ac_subst_files"; then
1261       cat <<\_ASBOX
1262 ## ------------- ##
1263 ## Output files. ##
1264 ## ------------- ##
1265 _ASBOX
1266       echo
1267       for ac_var in $ac_subst_files
1268       do
1269         eval ac_val=$`echo $ac_var`
1270         echo "$ac_var='"'"'$ac_val'"'"'"
1271       done | sort
1272       echo
1273     fi
1274
1275     if test -s confdefs.h; then
1276       cat <<\_ASBOX
1277 ## ----------- ##
1278 ## confdefs.h. ##
1279 ## ----------- ##
1280 _ASBOX
1281       echo
1282       sed "/^$/d" confdefs.h | sort
1283       echo
1284     fi
1285     test "$ac_signal" != 0 &&
1286       echo "$as_me: caught signal $ac_signal"
1287     echo "$as_me: exit $exit_status"
1288   } >&5
1289   rm -f core *.core &&
1290   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1291     exit $exit_status
1292      ' 0
1293 for ac_signal in 1 2 13 15; do
1294   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1295 done
1296 ac_signal=0
1297
1298 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1299 rm -rf conftest* confdefs.h
1300 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1301 echo >confdefs.h
1302
1303 # Predefined preprocessor variables.
1304
1305 cat >>confdefs.h <<_ACEOF
1306 #define PACKAGE_NAME "$PACKAGE_NAME"
1307 _ACEOF
1308
1309
1310 cat >>confdefs.h <<_ACEOF
1311 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1312 _ACEOF
1313
1314
1315 cat >>confdefs.h <<_ACEOF
1316 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1317 _ACEOF
1318
1319
1320 cat >>confdefs.h <<_ACEOF
1321 #define PACKAGE_STRING "$PACKAGE_STRING"
1322 _ACEOF
1323
1324
1325 cat >>confdefs.h <<_ACEOF
1326 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1327 _ACEOF
1328
1329
1330 # Let the site file select an alternate cache file if it wants to.
1331 # Prefer explicitly selected file to automatically selected ones.
1332 if test -z "$CONFIG_SITE"; then
1333   if test "x$prefix" != xNONE; then
1334     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1335   else
1336     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1337   fi
1338 fi
1339 for ac_site_file in $CONFIG_SITE; do
1340   if test -r "$ac_site_file"; then
1341     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1342 echo "$as_me: loading site script $ac_site_file" >&6;}
1343     sed 's/^/| /' "$ac_site_file" >&5
1344     . "$ac_site_file"
1345   fi
1346 done
1347
1348 if test -r "$cache_file"; then
1349   # Some versions of bash will fail to source /dev/null (special
1350   # files actually), so we avoid doing that.
1351   if test -f "$cache_file"; then
1352     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1353 echo "$as_me: loading cache $cache_file" >&6;}
1354     case $cache_file in
1355       [\\/]* | ?:[\\/]* ) . $cache_file;;
1356       *)                      . ./$cache_file;;
1357     esac
1358   fi
1359 else
1360   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1361 echo "$as_me: creating cache $cache_file" >&6;}
1362   >$cache_file
1363 fi
1364
1365 # Check that the precious variables saved in the cache have kept the same
1366 # value.
1367 ac_cache_corrupted=false
1368 for ac_var in `(set) 2>&1 |
1369                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1370   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1371   eval ac_new_set=\$ac_env_${ac_var}_set
1372   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1373   eval ac_new_val="\$ac_env_${ac_var}_value"
1374   case $ac_old_set,$ac_new_set in
1375     set,)
1376       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1377 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1378       ac_cache_corrupted=: ;;
1379     ,set)
1380       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1381 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1382       ac_cache_corrupted=: ;;
1383     ,);;
1384     *)
1385       if test "x$ac_old_val" != "x$ac_new_val"; then
1386         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1387 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1388         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1389 echo "$as_me:   former value:  $ac_old_val" >&2;}
1390         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1391 echo "$as_me:   current value: $ac_new_val" >&2;}
1392         ac_cache_corrupted=:
1393       fi;;
1394   esac
1395   # Pass precious variables to config.status.
1396   if test "$ac_new_set" = set; then
1397     case $ac_new_val in
1398     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1399       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1400     *) ac_arg=$ac_var=$ac_new_val ;;
1401     esac
1402     case " $ac_configure_args " in
1403       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1404       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1405     esac
1406   fi
1407 done
1408 if $ac_cache_corrupted; then
1409   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1410 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1411   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1412 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1413    { (exit 1); exit 1; }; }
1414 fi
1415
1416 ac_ext=c
1417 ac_cpp='$CPP $CPPFLAGS'
1418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449 ac_aux_dir=
1450 for ac_dir in conftools $srcdir/conftools; do
1451   if test -f $ac_dir/install-sh; then
1452     ac_aux_dir=$ac_dir
1453     ac_install_sh="$ac_aux_dir/install-sh -c"
1454     break
1455   elif test -f $ac_dir/install.sh; then
1456     ac_aux_dir=$ac_dir
1457     ac_install_sh="$ac_aux_dir/install.sh -c"
1458     break
1459   elif test -f $ac_dir/shtool; then
1460     ac_aux_dir=$ac_dir
1461     ac_install_sh="$ac_aux_dir/shtool install -c"
1462     break
1463   fi
1464 done
1465 if test -z "$ac_aux_dir"; then
1466   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&5
1467 echo "$as_me: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&2;}
1468    { (exit 1); exit 1; }; }
1469 fi
1470 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1471 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1472 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1473
1474 # Make sure we can run config.sub.
1475 $ac_config_sub sun4 >/dev/null 2>&1 ||
1476   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1477 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1478    { (exit 1); exit 1; }; }
1479
1480 echo "$as_me:$LINENO: checking build system type" >&5
1481 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1482 if test "${ac_cv_build+set}" = set; then
1483   echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485   ac_cv_build_alias=$build_alias
1486 test -z "$ac_cv_build_alias" &&
1487   ac_cv_build_alias=`$ac_config_guess`
1488 test -z "$ac_cv_build_alias" &&
1489   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1490 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1491    { (exit 1); exit 1; }; }
1492 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1493   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1494 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1495    { (exit 1); exit 1; }; }
1496
1497 fi
1498 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1499 echo "${ECHO_T}$ac_cv_build" >&6
1500 build=$ac_cv_build
1501 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1502 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1503 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504
1505
1506 echo "$as_me:$LINENO: checking host system type" >&5
1507 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1508 if test "${ac_cv_host+set}" = set; then
1509   echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511   ac_cv_host_alias=$host_alias
1512 test -z "$ac_cv_host_alias" &&
1513   ac_cv_host_alias=$ac_cv_build_alias
1514 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1515   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1516 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1517    { (exit 1); exit 1; }; }
1518
1519 fi
1520 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1521 echo "${ECHO_T}$ac_cv_host" >&6
1522 host=$ac_cv_host
1523 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1524 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1525 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1526
1527
1528 am__api_version="1.9"
1529 # Find a good install program.  We prefer a C program (faster),
1530 # so one script is as good as another.  But avoid the broken or
1531 # incompatible versions:
1532 # SysV /etc/install, /usr/sbin/install
1533 # SunOS /usr/etc/install
1534 # IRIX /sbin/install
1535 # AIX /bin/install
1536 # AmigaOS /C/install, which installs bootblocks on floppy discs
1537 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1538 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1539 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1540 # OS/2's system install, which has a completely different semantic
1541 # ./install, which can be erroneously created by make from ./install.sh.
1542 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1543 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1544 if test -z "$INSTALL"; then
1545 if test "${ac_cv_path_install+set}" = set; then
1546   echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 for as_dir in $PATH
1550 do
1551   IFS=$as_save_IFS
1552   test -z "$as_dir" && as_dir=.
1553   # Account for people who put trailing slashes in PATH elements.
1554 case $as_dir/ in
1555   ./ | .// | /cC/* | \
1556   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1557   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1558   /usr/ucb/* ) ;;
1559   *)
1560     # OSF1 and SCO ODT 3.0 have their own names for install.
1561     # Don't use installbsd from OSF since it installs stuff as root
1562     # by default.
1563     for ac_prog in ginstall scoinst install; do
1564       for ac_exec_ext in '' $ac_executable_extensions; do
1565         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1566           if test $ac_prog = install &&
1567             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1568             # AIX install.  It has an incompatible calling convention.
1569             :
1570           elif test $ac_prog = install &&
1571             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1572             # program-specific install script used by HP pwplus--don't use.
1573             :
1574           else
1575             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1576             break 3
1577           fi
1578         fi
1579       done
1580     done
1581     ;;
1582 esac
1583 done
1584
1585
1586 fi
1587   if test "${ac_cv_path_install+set}" = set; then
1588     INSTALL=$ac_cv_path_install
1589   else
1590     # As a last resort, use the slow shell script.  We don't cache a
1591     # path for INSTALL within a source directory, because that will
1592     # break other packages using the cache if that directory is
1593     # removed, or if the path is relative.
1594     INSTALL=$ac_install_sh
1595   fi
1596 fi
1597 echo "$as_me:$LINENO: result: $INSTALL" >&5
1598 echo "${ECHO_T}$INSTALL" >&6
1599
1600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1601 # It thinks the first close brace ends the variable substitution.
1602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1603
1604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1605
1606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1607
1608 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1609 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1610 # Just in case
1611 sleep 1
1612 echo timestamp > conftest.file
1613 # Do `set' in a subshell so we don't clobber the current shell's
1614 # arguments.  Must try -L first in case configure is actually a
1615 # symlink; some systems play weird games with the mod time of symlinks
1616 # (eg FreeBSD returns the mod time of the symlink's containing
1617 # directory).
1618 if (
1619    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1620    if test "$*" = "X"; then
1621       # -L didn't work.
1622       set X `ls -t $srcdir/configure conftest.file`
1623    fi
1624    rm -f conftest.file
1625    if test "$*" != "X $srcdir/configure conftest.file" \
1626       && test "$*" != "X conftest.file $srcdir/configure"; then
1627
1628       # If neither matched, then we have a broken ls.  This can happen
1629       # if, for instance, CONFIG_SHELL is bash and it inherits a
1630       # broken ls alias from the environment.  This has actually
1631       # happened.  Such a system could not be considered "sane".
1632       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1633 alias in your environment" >&5
1634 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1635 alias in your environment" >&2;}
1636    { (exit 1); exit 1; }; }
1637    fi
1638
1639    test "$2" = conftest.file
1640    )
1641 then
1642    # Ok.
1643    :
1644 else
1645    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1646 Check your system clock" >&5
1647 echo "$as_me: error: newly created file is older than distributed files!
1648 Check your system clock" >&2;}
1649    { (exit 1); exit 1; }; }
1650 fi
1651 echo "$as_me:$LINENO: result: yes" >&5
1652 echo "${ECHO_T}yes" >&6
1653 test "$program_prefix" != NONE &&
1654   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1655 # Use a double $ so make ignores it.
1656 test "$program_suffix" != NONE &&
1657   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1658 # Double any \ or $.  echo might interpret backslashes.
1659 # By default was `s,x,x', remove it if useless.
1660 cat <<\_ACEOF >conftest.sed
1661 s/[\\$]/&&/g;s/;s,x,x,$//
1662 _ACEOF
1663 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1664 rm conftest.sed
1665
1666 # expand $ac_aux_dir to an absolute path
1667 am_aux_dir=`cd $ac_aux_dir && pwd`
1668
1669 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1670 # Use eval to expand $SHELL
1671 if eval "$MISSING --run true"; then
1672   am_missing_run="$MISSING --run "
1673 else
1674   am_missing_run=
1675   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1676 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1677 fi
1678
1679 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1680   # We used to keeping the `.' as first argument, in order to
1681   # allow $(mkdir_p) to be used without argument.  As in
1682   #   $(mkdir_p) $(somedir)
1683   # where $(somedir) is conditionally defined.  However this is wrong
1684   # for two reasons:
1685   #  1. if the package is installed by a user who cannot write `.'
1686   #     make install will fail,
1687   #  2. the above comment should most certainly read
1688   #     $(mkdir_p) $(DESTDIR)$(somedir)
1689   #     so it does not work when $(somedir) is undefined and
1690   #     $(DESTDIR) is not.
1691   #  To support the latter case, we have to write
1692   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1693   #  so the `.' trick is pointless.
1694   mkdir_p='mkdir -p --'
1695 else
1696   # On NextStep and OpenStep, the `mkdir' command does not
1697   # recognize any option.  It will interpret all options as
1698   # directories to create, and then abort because `.' already
1699   # exists.
1700   for d in ./-p ./--version;
1701   do
1702     test -d $d && rmdir $d
1703   done
1704   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1705   if test -f "$ac_aux_dir/mkinstalldirs"; then
1706     mkdir_p='$(mkinstalldirs)'
1707   else
1708     mkdir_p='$(install_sh) -d'
1709   fi
1710 fi
1711
1712 for ac_prog in gawk mawk nawk awk
1713 do
1714   # Extract the first word of "$ac_prog", so it can be a program name with args.
1715 set dummy $ac_prog; ac_word=$2
1716 echo "$as_me:$LINENO: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_AWK+set}" = set; then
1719   echo $ECHO_N "(cached) $ECHO_C" >&6
1720 else
1721   if test -n "$AWK"; then
1722   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1723 else
1724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 for as_dir in $PATH
1726 do
1727   IFS=$as_save_IFS
1728   test -z "$as_dir" && as_dir=.
1729   for ac_exec_ext in '' $ac_executable_extensions; do
1730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731     ac_cv_prog_AWK="$ac_prog"
1732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733     break 2
1734   fi
1735 done
1736 done
1737
1738 fi
1739 fi
1740 AWK=$ac_cv_prog_AWK
1741 if test -n "$AWK"; then
1742   echo "$as_me:$LINENO: result: $AWK" >&5
1743 echo "${ECHO_T}$AWK" >&6
1744 else
1745   echo "$as_me:$LINENO: result: no" >&5
1746 echo "${ECHO_T}no" >&6
1747 fi
1748
1749   test -n "$AWK" && break
1750 done
1751
1752 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1753 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1754 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1755 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1756   echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758   cat >conftest.make <<\_ACEOF
1759 all:
1760         @echo 'ac_maketemp="$(MAKE)"'
1761 _ACEOF
1762 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1763 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1764 if test -n "$ac_maketemp"; then
1765   eval ac_cv_prog_make_${ac_make}_set=yes
1766 else
1767   eval ac_cv_prog_make_${ac_make}_set=no
1768 fi
1769 rm -f conftest.make
1770 fi
1771 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1772   echo "$as_me:$LINENO: result: yes" >&5
1773 echo "${ECHO_T}yes" >&6
1774   SET_MAKE=
1775 else
1776   echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1778   SET_MAKE="MAKE=${MAKE-make}"
1779 fi
1780
1781 rm -rf .tst 2>/dev/null
1782 mkdir .tst 2>/dev/null
1783 if test -d .tst; then
1784   am__leading_dot=.
1785 else
1786   am__leading_dot=_
1787 fi
1788 rmdir .tst 2>/dev/null
1789
1790 # test to see if srcdir already configured
1791 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1792    test -f $srcdir/config.status; then
1793   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1794 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1795    { (exit 1); exit 1; }; }
1796 fi
1797
1798 # test whether we have cygpath
1799 if test -z "$CYGPATH_W"; then
1800   if (cygpath --version) >/dev/null 2>/dev/null; then
1801     CYGPATH_W='cygpath -w'
1802   else
1803     CYGPATH_W=echo
1804   fi
1805 fi
1806
1807
1808 # Define the identity of the package.
1809  PACKAGE='torrus'
1810  VERSION='1.0.9'
1811
1812
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE "$PACKAGE"
1815 _ACEOF
1816
1817
1818 cat >>confdefs.h <<_ACEOF
1819 #define VERSION "$VERSION"
1820 _ACEOF
1821
1822 # Some tools Automake needs.
1823
1824 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1825
1826
1827 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1828
1829
1830 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1831
1832
1833 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1834
1835
1836 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1837
1838 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1839
1840 # Installed binaries are usually stripped using `strip' when the user
1841 # run `make install-strip'.  However `strip' might not be the right
1842 # tool to use in cross-compilation environments, therefore Automake
1843 # will honor the `STRIP' environment variable to overrule this program.
1844 if test "$cross_compiling" != no; then
1845   if test -n "$ac_tool_prefix"; then
1846   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1847 set dummy ${ac_tool_prefix}strip; ac_word=$2
1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850 if test "${ac_cv_prog_STRIP+set}" = set; then
1851   echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853   if test -n "$STRIP"; then
1854   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1855 else
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 for as_dir in $PATH
1858 do
1859   IFS=$as_save_IFS
1860   test -z "$as_dir" && as_dir=.
1861   for ac_exec_ext in '' $ac_executable_extensions; do
1862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865     break 2
1866   fi
1867 done
1868 done
1869
1870 fi
1871 fi
1872 STRIP=$ac_cv_prog_STRIP
1873 if test -n "$STRIP"; then
1874   echo "$as_me:$LINENO: result: $STRIP" >&5
1875 echo "${ECHO_T}$STRIP" >&6
1876 else
1877   echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1879 fi
1880
1881 fi
1882 if test -z "$ac_cv_prog_STRIP"; then
1883   ac_ct_STRIP=$STRIP
1884   # Extract the first word of "strip", so it can be a program name with args.
1885 set dummy strip; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1889   echo $ECHO_N "(cached) $ECHO_C" >&6
1890 else
1891   if test -n "$ac_ct_STRIP"; then
1892   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1893 else
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1896 do
1897   IFS=$as_save_IFS
1898   test -z "$as_dir" && as_dir=.
1899   for ac_exec_ext in '' $ac_executable_extensions; do
1900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901     ac_cv_prog_ac_ct_STRIP="strip"
1902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903     break 2
1904   fi
1905 done
1906 done
1907
1908   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1909 fi
1910 fi
1911 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1912 if test -n "$ac_ct_STRIP"; then
1913   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1914 echo "${ECHO_T}$ac_ct_STRIP" >&6
1915 else
1916   echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918 fi
1919
1920   STRIP=$ac_ct_STRIP
1921 else
1922   STRIP="$ac_cv_prog_STRIP"
1923 fi
1924
1925 fi
1926 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1927
1928 # We need awk for the "check" target.  The system "awk" is bad on
1929 # some platforms.
1930 # Always define AMTAR for backward compatibility.
1931
1932 AMTAR=${AMTAR-"${am_missing_run}tar"}
1933
1934 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1935
1936
1937
1938
1939
1940
1941 # Extract the first word of "perl", so it can be a program name with args.
1942 set dummy perl; ac_word=$2
1943 echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1945 if test "${ac_cv_path_PERL+set}" = set; then
1946   echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948   case $PERL in
1949   [\\/]* | ?:[\\/]*)
1950   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1951   ;;
1952   *)
1953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956   IFS=$as_save_IFS
1957   test -z "$as_dir" && as_dir=.
1958   for ac_exec_ext in '' $ac_executable_extensions; do
1959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
1961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962     break 2
1963   fi
1964 done
1965 done
1966
1967   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
1968   ;;
1969 esac
1970 fi
1971 PERL=$ac_cv_path_PERL
1972
1973 if test -n "$PERL"; then
1974   echo "$as_me:$LINENO: result: $PERL" >&5
1975 echo "${ECHO_T}$PERL" >&6
1976 else
1977   echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1979 fi
1980
1981
1982 # Need this for init.torrus
1983 # Extract the first word of "su", so it can be a program name with args.
1984 set dummy su; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_path_SU+set}" = set; then
1988   echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990   case $SU in
1991   [\\/]* | ?:[\\/]*)
1992   ac_cv_path_SU="$SU" # Let the user override the test with a path.
1993   ;;
1994   *)
1995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1997 do
1998   IFS=$as_save_IFS
1999   test -z "$as_dir" && as_dir=.
2000   for ac_exec_ext in '' $ac_executable_extensions; do
2001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002     ac_cv_path_SU="$as_dir/$ac_word$ac_exec_ext"
2003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004     break 2
2005   fi
2006 done
2007 done
2008
2009   test -z "$ac_cv_path_SU" && ac_cv_path_SU="no"
2010   ;;
2011 esac
2012 fi
2013 SU=$ac_cv_path_SU
2014
2015 if test -n "$SU"; then
2016   echo "$as_me:$LINENO: result: $SU" >&5
2017 echo "${ECHO_T}$SU" >&6
2018 else
2019   echo "$as_me:$LINENO: result: no" >&5
2020 echo "${ECHO_T}no" >&6
2021 fi
2022
2023 # Extract the first word of "kill", so it can be a program name with args.
2024 set dummy kill; ac_word=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_path_KILL+set}" = set; then
2028   echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030   case $KILL in
2031   [\\/]* | ?:[\\/]*)
2032   ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
2033   ;;
2034   *)
2035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2037 do
2038   IFS=$as_save_IFS
2039   test -z "$as_dir" && as_dir=.
2040   for ac_exec_ext in '' $ac_executable_extensions; do
2041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042     ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
2043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044     break 2
2045   fi
2046 done
2047 done
2048
2049   test -z "$ac_cv_path_KILL" && ac_cv_path_KILL="no"
2050   ;;
2051 esac
2052 fi
2053 KILL=$ac_cv_path_KILL
2054
2055 if test -n "$KILL"; then
2056   echo "$as_me:$LINENO: result: $KILL" >&5
2057 echo "${ECHO_T}$KILL" >&6
2058 else
2059   echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2061 fi
2062
2063 # Extract the first word of "sed", so it can be a program name with args.
2064 set dummy sed; ac_word=$2
2065 echo "$as_me:$LINENO: checking for $ac_word" >&5
2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067 if test "${ac_cv_path_SED+set}" = set; then
2068   echo $ECHO_N "(cached) $ECHO_C" >&6
2069 else
2070   case $SED in
2071   [\\/]* | ?:[\\/]*)
2072   ac_cv_path_SED="$SED" # Let the user override the test with a path.
2073   ;;
2074   *)
2075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2077 do
2078   IFS=$as_save_IFS
2079   test -z "$as_dir" && as_dir=.
2080   for ac_exec_ext in '' $ac_executable_extensions; do
2081   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
2083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084     break 2
2085   fi
2086 done
2087 done
2088
2089   test -z "$ac_cv_path_SED" && ac_cv_path_SED="no"
2090   ;;
2091 esac
2092 fi
2093 SED=$ac_cv_path_SED
2094
2095 if test -n "$SED"; then
2096   echo "$as_me:$LINENO: result: $SED" >&5
2097 echo "${ECHO_T}$SED" >&6
2098 else
2099   echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2101 fi
2102
2103 # Extract the first word of "find", so it can be a program name with args.
2104 set dummy find; ac_word=$2
2105 echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2107 if test "${ac_cv_path_FIND+set}" = set; then
2108   echo $ECHO_N "(cached) $ECHO_C" >&6
2109 else
2110   case $FIND in
2111   [\\/]* | ?:[\\/]*)
2112   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
2113   ;;
2114   *)
2115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2117 do
2118   IFS=$as_save_IFS
2119   test -z "$as_dir" && as_dir=.
2120   for ac_exec_ext in '' $ac_executable_extensions; do
2121   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2122     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
2123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124     break 2
2125   fi
2126 done
2127 done
2128
2129   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="no"
2130   ;;
2131 esac
2132 fi
2133 FIND=$ac_cv_path_FIND
2134
2135 if test -n "$FIND"; then
2136   echo "$as_me:$LINENO: result: $FIND" >&5
2137 echo "${ECHO_T}$FIND" >&6
2138 else
2139   echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6
2141 fi
2142
2143 # Extract the first word of "rm", so it can be a program name with args.
2144 set dummy rm; ac_word=$2
2145 echo "$as_me:$LINENO: checking for $ac_word" >&5
2146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2147 if test "${ac_cv_path_RM+set}" = set; then
2148   echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150   case $RM in
2151   [\\/]* | ?:[\\/]*)
2152   ac_cv_path_RM="$RM" # Let the user override the test with a path.
2153   ;;
2154   *)
2155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 for as_dir in $PATH
2157 do
2158   IFS=$as_save_IFS
2159   test -z "$as_dir" && as_dir=.
2160   for ac_exec_ext in '' $ac_executable_extensions; do
2161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2162     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
2163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164     break 2
2165   fi
2166 done
2167 done
2168
2169   test -z "$ac_cv_path_RM" && ac_cv_path_RM="no"
2170   ;;
2171 esac
2172 fi
2173 RM=$ac_cv_path_RM
2174
2175 if test -n "$RM"; then
2176   echo "$as_me:$LINENO: result: $RM" >&5
2177 echo "${ECHO_T}$RM" >&6
2178 else
2179   echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6
2181 fi
2182
2183 # Extract the first word of "sleep", so it can be a program name with args.
2184 set dummy sleep; ac_word=$2
2185 echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187 if test "${ac_cv_path_SLEEP+set}" = set; then
2188   echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190   case $SLEEP in
2191   [\\/]* | ?:[\\/]*)
2192   ac_cv_path_SLEEP="$SLEEP" # Let the user override the test with a path.
2193   ;;
2194   *)
2195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2197 do
2198   IFS=$as_save_IFS
2199   test -z "$as_dir" && as_dir=.
2200   for ac_exec_ext in '' $ac_executable_extensions; do
2201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2202     ac_cv_path_SLEEP="$as_dir/$ac_word$ac_exec_ext"
2203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204     break 2
2205   fi
2206 done
2207 done
2208
2209   test -z "$ac_cv_path_SLEEP" && ac_cv_path_SLEEP="no"
2210   ;;
2211 esac
2212 fi
2213 SLEEP=$ac_cv_path_SLEEP
2214
2215 if test -n "$SLEEP"; then
2216   echo "$as_me:$LINENO: result: $SLEEP" >&5
2217 echo "${ECHO_T}$SLEEP" >&6
2218 else
2219   echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6
2221 fi
2222
2223
2224
2225 # This will generate doc pages from POD sources
2226 # Extract the first word of "pod2text", so it can be a program name with args.
2227 set dummy pod2text; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_path_POD2TEXT+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   case $POD2TEXT in
2234   [\\/]* | ?:[\\/]*)
2235   ac_cv_path_POD2TEXT="$POD2TEXT" # Let the user override the test with a path.
2236   ;;
2237   *)
2238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 for as_dir in $PATH
2240 do
2241   IFS=$as_save_IFS
2242   test -z "$as_dir" && as_dir=.
2243   for ac_exec_ext in '' $ac_executable_extensions; do
2244   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2245     ac_cv_path_POD2TEXT="$as_dir/$ac_word$ac_exec_ext"
2246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247     break 2
2248   fi
2249 done
2250 done
2251
2252   test -z "$ac_cv_path_POD2TEXT" && ac_cv_path_POD2TEXT="no"
2253   ;;
2254 esac
2255 fi
2256 POD2TEXT=$ac_cv_path_POD2TEXT
2257
2258 if test -n "$POD2TEXT"; then
2259   echo "$as_me:$LINENO: result: $POD2TEXT" >&5
2260 echo "${ECHO_T}$POD2TEXT" >&6
2261 else
2262   echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6
2264 fi
2265
2266
2267
2268 if test "$POD2TEXT" != no; then
2269   POD2TEXT_PRESENT_TRUE=
2270   POD2TEXT_PRESENT_FALSE='#'
2271 else
2272   POD2TEXT_PRESENT_TRUE='#'
2273   POD2TEXT_PRESENT_FALSE=
2274 fi
2275
2276 # Extract the first word of "pod2man", so it can be a program name with args.
2277 set dummy pod2man; ac_word=$2
2278 echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2280 if test "${ac_cv_path_POD2MAN+set}" = set; then
2281   echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283   case $POD2MAN in
2284   [\\/]* | ?:[\\/]*)
2285   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
2286   ;;
2287   *)
2288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291   IFS=$as_save_IFS
2292   test -z "$as_dir" && as_dir=.
2293   for ac_exec_ext in '' $ac_executable_extensions; do
2294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
2296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297     break 2
2298   fi
2299 done
2300 done
2301
2302   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
2303   ;;
2304 esac
2305 fi
2306 POD2MAN=$ac_cv_path_POD2MAN
2307
2308 if test -n "$POD2MAN"; then
2309   echo "$as_me:$LINENO: result: $POD2MAN" >&5
2310 echo "${ECHO_T}$POD2MAN" >&6
2311 else
2312   echo "$as_me:$LINENO: result: no" >&5
2313 echo "${ECHO_T}no" >&6
2314 fi
2315
2316
2317
2318 if test "$POD2MAN" != no; then
2319   POD2MAN_PRESENT_TRUE=
2320   POD2MAN_PRESENT_FALSE='#'
2321 else
2322   POD2MAN_PRESENT_TRUE='#'
2323   POD2MAN_PRESENT_FALSE=
2324 fi
2325
2326
2327 # Check whether --enable-pkgonly or --disable-pkgonly was given.
2328 if test "${enable_pkgonly+set}" = set; then
2329   enableval="$enable_pkgonly"
2330
2331 fi;
2332
2333
2334 # Check whether --enable-threads or --disable-threads was given.
2335 if test "${enable_threads+set}" = set; then
2336   enableval="$enable_threads"
2337
2338 fi;
2339
2340 perllibdirs="\'\${perllibdir}\'"
2341
2342 PERLOPTS=
2343
2344 if test ! -z "$PERLINC"; then
2345    for d in $PERLINC; do
2346        PERLOPTS="${PERLOPTS} -I${d}"
2347        perllibdirs=${perllibdirs}"\,\'"${d}"\'"
2348    done
2349 fi
2350
2351 find_rrdtool () {
2352     if ${PERL} -e 'use RRDs' 2>/dev/null; then :; else
2353         if test "$enable_pkgonly" != yes; then
2354             { echo "$as_me:$LINENO: RRDs.pm is not in default Perl search paths." >&5
2355 echo "$as_me: RRDs.pm is not in default Perl search paths." >&6;}
2356             echo "$as_me:$LINENO: checking RRDtool in /usr/local/rrdtool*" >&5
2357 echo $ECHO_N "checking RRDtool in /usr/local/rrdtool*... $ECHO_C" >&6
2358             with_rrdtool=`ls -1dr /usr/local/rrdtool* | head -1`
2359             if test -d $with_rrdtool; then
2360                echo "$as_me:$LINENO: result: ${with_rrdtool}" >&5
2361 echo "${ECHO_T}${with_rrdtool}" >&6
2362             else
2363                { { echo "$as_me:$LINENO: error: Cannot find RRDtool" >&5
2364 echo "$as_me: error: Cannot find RRDtool" >&2;}
2365    { (exit 1); exit 1; }; }
2366             fi
2367             test_rrdtool
2368         else
2369             with_rrdtool="/usr/local/rrdtool"
2370         fi
2371     fi
2372 }
2373
2374 test_rrdtool () {
2375     if test "$enable_pkgonly" != yes; then
2376         if ${PERL} -I${with_rrdtool}/lib/perl -e 'use RRDs'; then :; else
2377             { { echo "$as_me:$LINENO: error: Could not find RRDs perl module in ${with_rrdtool}" >&5
2378 echo "$as_me: error: Could not find RRDs perl module in ${with_rrdtool}" >&2;}
2379    { (exit 1); exit 1; }; }
2380         fi
2381     fi
2382     perllibdirs=${perllibdirs}"\,\'"${with_rrdtool}"/lib/perl/\'"
2383 }
2384
2385
2386 # Check whether --with-rrdtool or --without-rrdtool was given.
2387 if test "${with_rrdtool+set}" = set; then
2388   withval="$with_rrdtool"
2389   test_rrdtool
2390 else
2391   find_rrdtool
2392 fi;
2393
2394 perllibdirs=${perllibdirs}
2395
2396
2397
2398 # Check the necessary Perl modules
2399
2400 if test "$enable_pkgonly" != yes; then
2401
2402    for module in 'BerkeleyDB' 'XML::LibXML' 'Template' \
2403                  'Proc::Daemon' 'Net::SNMP' 'URI::Escape' 'Apache::Session' \
2404                  'Date::Parse' 'JSON'
2405    do
2406      echo "$as_me:$LINENO: checking presence of $module" >&5
2407 echo $ECHO_N "checking presence of $module... $ECHO_C" >&6
2408      if ${PERL} ${PERLOPTS} -e 'use '$module 2>/dev/null; then
2409          echo "$as_me:$LINENO: result: Ok" >&5
2410 echo "${ECHO_T}Ok" >&6
2411      else
2412          { { echo "$as_me:$LINENO: error: Perl cannot find $module" >&5
2413 echo "$as_me: error: Perl cannot find $module" >&2;}
2414    { (exit 1); exit 1; }; };
2415      fi
2416    done
2417
2418 #  Check if Perl threads can be used.
2419 #  Requirements are: perl 5.8.8 with threads compiled,
2420 #  threads ver. 1.41 or higher, threads::shared ver. 1.03 or higher
2421
2422    perlithreads=1
2423    if test x"$enable_threads" = xno; then
2424      perlithreads=0
2425    else
2426
2427      echo "$as_me:$LINENO: checking if Perl version is 5.8.8 or higher" >&5
2428 echo $ECHO_N "checking if Perl version is 5.8.8 or higher... $ECHO_C" >&6
2429      if ${PERL} ${PERLOPTS} -e 'use 5.8.8' 2>/dev/null; then
2430        echo "$as_me:$LINENO: result: Ok" >&5
2431 echo "${ECHO_T}Ok" >&6
2432      else
2433        perlithreads=0
2434      fi
2435
2436      if test ${perlithreads} -eq 1; then
2437        echo "$as_me:$LINENO: checking threading support in Perl" >&5
2438 echo $ECHO_N "checking threading support in Perl... $ECHO_C" >&6
2439        if ${PERL} ${PERLOPTS} -e 'use threads' 2>/dev/null; then
2440          echo "$as_me:$LINENO: result: Ok" >&5
2441 echo "${ECHO_T}Ok" >&6
2442        else
2443          perlithreads=0
2444        fi
2445      fi
2446
2447      if test ${perlithreads} -eq 1; then
2448        echo "$as_me:$LINENO: checking if threads module version is 1.41 or higher" >&5
2449 echo $ECHO_N "checking if threads module version is 1.41 or higher... $ECHO_C" >&6
2450        if ${PERL} ${PERLOPTS} -e \
2451          'use threads; exit($threads::VERSION >= 1.41 ? 0:1)'; then
2452            echo "$as_me:$LINENO: result: Ok" >&5
2453 echo "${ECHO_T}Ok" >&6
2454        else
2455            perlithreads=0
2456        fi
2457      fi
2458
2459      if test ${perlithreads} -eq 1; then
2460        echo "$as_me:$LINENO: checking if threads::shared module version is 1.03 or higher" >&5
2461 echo $ECHO_N "checking if threads::shared module version is 1.03 or higher... $ECHO_C" >&6
2462        if ${PERL} ${PERLOPTS} -e \
2463          'use threads; use threads::shared;
2464           exit($threads::shared::VERSION >= 1.03 ? 0:1)'; then
2465            echo "$as_me:$LINENO: result: Ok" >&5
2466 echo "${ECHO_T}Ok" >&6
2467        else
2468            perlithreads=0
2469        fi
2470      fi
2471
2472      if test ${perlithreads} -eq 0; then
2473        echo "$as_me:$LINENO: result: No. Multithreading will not be used." >&5
2474 echo "${ECHO_T}No. Multithreading will not be used." >&6
2475      fi
2476
2477    fi
2478    perlithreads=${perlithreads}
2479
2480 fi
2481
2482
2483 if test -z "$torrus_user"; then
2484    torrus_user=torrus; fi
2485
2486 if test "$enable_pkgonly" != yes; then
2487     echo "$as_me:$LINENO: checking if user ${torrus_user} exists" >&5
2488 echo $ECHO_N "checking if user ${torrus_user} exists... $ECHO_C" >&6
2489     torrus_check_file=torrus_usercheck_$$
2490     torrus_check_error=no
2491     if ! touch ${torrus_check_file}; then
2492         { { echo "$as_me:$LINENO: error: Cannot create ${torrus_check_file}" >&5
2493 echo "$as_me: error: Cannot create ${torrus_check_file}" >&2;}
2494    { (exit 1); exit 1; }; }
2495     elif ! chown ${torrus_user} ${torrus_check_file}; then
2496         torrus_check_error=yes
2497     fi
2498     rm -f ${torrus_check_file}
2499     if test ${torrus_check_error} = yes; then
2500         { { echo "$as_me:$LINENO: error: User ${torrus_user} does not exist" >&5
2501 echo "$as_me: error: User ${torrus_user} does not exist" >&2;}
2502    { (exit 1); exit 1; }; }
2503     else
2504         echo "$as_me:$LINENO: result: Ok" >&5
2505 echo "${ECHO_T}Ok" >&6
2506     fi
2507 fi
2508
2509
2510 # Set the var/db and var/cache ownership
2511
2512
2513
2514
2515
2516 # Check whether --enable-varperm or --disable-varperm was given.
2517 if test "${enable_varperm+set}" = set; then
2518   enableval="$enable_varperm"
2519
2520 else
2521   enable_varperm="yes"
2522 fi;
2523
2524
2525
2526 if test -z "$pkghome"; then
2527    pkghome='${prefix}/torrus'; fi
2528
2529
2530 if test -z "$pkgbindir"; then
2531    pkgbindir='${pkghome}/bin'; fi
2532
2533
2534 if test -z "$cfgdefdir"; then
2535    cfgdefdir='${pkghome}/conf_defaults'; fi
2536
2537
2538 if test -z "$pkgdocdir"; then
2539    pkgdocdir='${pkghome}/doc'; fi
2540
2541
2542 if test -z "$exmpdir"; then
2543    exmpdir='${pkghome}/examples'; fi
2544
2545
2546 if test -z "$perllibdir"; then
2547    perllibdir='${pkghome}/perllib'; fi
2548
2549
2550 if test -z "$pluginsdir"; then
2551    pluginsdir='${pkghome}/plugins'; fi
2552
2553
2554 if test -z "$plugtorruscfgdir"; then
2555    plugtorruscfgdir='${pluginsdir}/torrus-config'; fi
2556
2557
2558 if test -z "$plugdevdisccfgdir"; then
2559    plugdevdisccfgdir='${pluginsdir}/devdiscover-config'; fi
2560
2561
2562 if test -z "$plugwrapperdir"; then
2563    plugwrapperdir='${pluginsdir}/wrapper'; fi
2564
2565
2566
2567 if test -z "$scriptsdir"; then
2568    scriptsdir='${pkghome}/scripts'; fi
2569
2570
2571 if test -z "$supdir"; then
2572    supdir='${pkghome}/sup'; fi
2573
2574
2575 if test -z "$webplaindir"; then
2576    webplaindir='${supdir}/webplain'; fi
2577
2578
2579 if test -z "$webscriptsdir"; then
2580    webscriptsdir='${supdir}/webscripts'; fi
2581
2582
2583 if test -z "$tmpldir"; then
2584    tmpldir='${pkghome}/templates'; fi
2585
2586
2587 if test -z "$distxmldir"; then
2588    distxmldir='${pkghome}/xmlconfig'; fi
2589
2590
2591 if test -z "$sitedir"; then
2592    sitedir='${sysconfdir}/torrus'; fi
2593
2594
2595 if test -z "$siteconfdir"; then
2596    siteconfdir='${sitedir}/conf'; fi
2597
2598
2599 if test -z "$tmpluserdir"; then
2600    tmpluserdir='${sitedir}/templates'; fi
2601
2602
2603 if test -z "$sitexmldir"; then
2604    sitexmldir='${sitedir}/xmlconfig'; fi
2605
2606
2607 if test -z "$logdir"; then
2608    logdir='/var/log/torrus'; fi
2609
2610
2611 if test -z "$piddir"; then
2612    piddir='/var/run/torrus'; fi
2613
2614
2615 if test -z "$varprefix"; then
2616    varprefix='/var/torrus'; fi
2617
2618
2619 if test -z "$cachedir"; then
2620    cachedir='${varprefix}/cache'; fi
2621
2622
2623 if test -z "$dbhome"; then
2624    dbhome='${varprefix}/db'; fi
2625
2626
2627 if test -z "$reportsdir"; then
2628    reportsdir='${varprefix}/reports'; fi
2629
2630
2631 if test -z "$seslockdir"; then
2632    seslockdir='${varprefix}/session_data/lock'; fi
2633
2634
2635 if test -z "$sesstordir"; then
2636    sesstordir='${varprefix}/session_data/store'; fi
2637
2638
2639 if test -z "$wrapperdir"; then
2640    wrapperdir='${bindir}'; fi
2641
2642
2643 if test -z "$mansec_usercmd"; then
2644    mansec_usercmd='1'; fi
2645
2646
2647 if test -z "$mansec_misc"; then
2648    mansec_misc='7'; fi
2649
2650
2651 if test -z "$defrrddir"; then
2652    defrrddir='/srv/torrus/collector_rrd'; fi
2653
2654
2655                               ac_config_files="$ac_config_files Makefile bin/Makefile configs/Makefile"
2656
2657                     ac_config_files="$ac_config_files doc/Makefile doc/manpages/Makefile"
2658
2659                     ac_config_files="$ac_config_files examples/Makefile perllib/Makefile"
2660
2661                     ac_config_files="$ac_config_files sup/Makefile xmlconfig/Makefile"
2662
2663
2664           ac_config_files="$ac_config_files setup_tools/substvars.sh"
2665
2666           ac_config_files="$ac_config_files setup_tools/mkvardir.sh"
2667
2668           ac_config_files="$ac_config_files init.d/torrus"
2669
2670
2671
2672
2673 cat >confcache <<\_ACEOF
2674 # This file is a shell script that caches the results of configure
2675 # tests run on this system so they can be shared between configure
2676 # scripts and configure runs, see configure's option --config-cache.
2677 # It is not useful on other systems.  If it contains results you don't
2678 # want to keep, you may remove or edit it.
2679 #
2680 # config.status only pays attention to the cache file if you give it
2681 # the --recheck option to rerun configure.
2682 #
2683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2685 # following values.
2686
2687 _ACEOF
2688
2689 # The following way of writing the cache mishandles newlines in values,
2690 # but we know of no workaround that is simple, portable, and efficient.
2691 # So, don't put newlines in cache variables' values.
2692 # Ultrix sh set writes to stderr and can't be redirected directly,
2693 # and sets the high bit in the cache file unless we assign to the vars.
2694 {
2695   (set) 2>&1 |
2696     case `(ac_space=' '; set | grep ac_space) 2>&1` in
2697     *ac_space=\ *)
2698       # `set' does not quote correctly, so add quotes (double-quote
2699       # substitution turns \\\\ into \\, and sed turns \\ into \).
2700       sed -n \
2701         "s/'/'\\\\''/g;
2702           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2703       ;;
2704     *)
2705       # `set' quotes correctly as required by POSIX, so do not add quotes.
2706       sed -n \
2707         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2708       ;;
2709     esac;
2710 } |
2711   sed '
2712      t clear
2713      : clear
2714      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2715      t end
2716      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2717      : end' >>confcache
2718 if diff $cache_file confcache >/dev/null 2>&1; then :; else
2719   if test -w $cache_file; then
2720     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2721     cat confcache >$cache_file
2722   else
2723     echo "not updating unwritable cache $cache_file"
2724   fi
2725 fi
2726 rm -f confcache
2727
2728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2729 # Let make expand exec_prefix.
2730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2731
2732 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2733 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2734 # trailing colons and then remove the whole line if VPATH becomes empty
2735 # (actually we leave an empty line to preserve line numbers).
2736 if test "x$srcdir" = x.; then
2737   ac_vpsub='/^[  ]*VPATH[        ]*=/{
2738 s/:*\$(srcdir):*/:/;
2739 s/:*\${srcdir}:*/:/;
2740 s/:*@srcdir@:*/:/;
2741 s/^\([^=]*=[     ]*\):*/\1/;
2742 s/:*$//;
2743 s/^[^=]*=[       ]*$//;
2744 }'
2745 fi
2746
2747 # Transform confdefs.h into DEFS.
2748 # Protect against shell expansion while executing Makefile rules.
2749 # Protect against Makefile macro expansion.
2750 #
2751 # If the first sed substitution is executed (which looks for macros that
2752 # take arguments), then we branch to the quote section.  Otherwise,
2753 # look for a macro that doesn't take arguments.
2754 cat >confdef2opt.sed <<\_ACEOF
2755 t clear
2756 : clear
2757 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
2758 t quote
2759 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
2760 t quote
2761 d
2762 : quote
2763 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
2764 s,\[,\\&,g
2765 s,\],\\&,g
2766 s,\$,$$,g
2767 p
2768 _ACEOF
2769 # We use echo to avoid assuming a particular line-breaking character.
2770 # The extra dot is to prevent the shell from consuming trailing
2771 # line-breaks from the sub-command output.  A line-break within
2772 # single-quotes doesn't work because, if this script is created in a
2773 # platform that uses two characters for line-breaks (e.g., DOS), tr
2774 # would break.
2775 ac_LF_and_DOT=`echo; echo .`
2776 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
2777 rm -f confdef2opt.sed
2778
2779
2780 ac_libobjs=
2781 ac_ltlibobjs=
2782 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2783   # 1. Remove the extension, and $U if already installed.
2784   ac_i=`echo "$ac_i" |
2785          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
2786   # 2. Add them.
2787   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2788   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2789 done
2790 LIBOBJS=$ac_libobjs
2791
2792 LTLIBOBJS=$ac_ltlibobjs
2793
2794
2795 if test -z "${POD2TEXT_PRESENT_TRUE}" && test -z "${POD2TEXT_PRESENT_FALSE}"; then
2796   { { echo "$as_me:$LINENO: error: conditional \"POD2TEXT_PRESENT\" was never defined.
2797 Usually this means the macro was only invoked conditionally." >&5
2798 echo "$as_me: error: conditional \"POD2TEXT_PRESENT\" was never defined.
2799 Usually this means the macro was only invoked conditionally." >&2;}
2800    { (exit 1); exit 1; }; }
2801 fi
2802 if test -z "${POD2MAN_PRESENT_TRUE}" && test -z "${POD2MAN_PRESENT_FALSE}"; then
2803   { { echo "$as_me:$LINENO: error: conditional \"POD2MAN_PRESENT\" was never defined.
2804 Usually this means the macro was only invoked conditionally." >&5
2805 echo "$as_me: error: conditional \"POD2MAN_PRESENT\" was never defined.
2806 Usually this means the macro was only invoked conditionally." >&2;}
2807    { (exit 1); exit 1; }; }
2808 fi
2809
2810 : ${CONFIG_STATUS=./config.status}
2811 ac_clean_files_save=$ac_clean_files
2812 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2813 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2814 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2815 cat >$CONFIG_STATUS <<_ACEOF
2816 #! $SHELL
2817 # Generated by $as_me.
2818 # Run this file to recreate the current configuration.
2819 # Compiler output produced by configure, useful for debugging
2820 # configure, is in config.log if it exists.
2821
2822 debug=false
2823 ac_cs_recheck=false
2824 ac_cs_silent=false
2825 SHELL=\${CONFIG_SHELL-$SHELL}
2826 _ACEOF
2827
2828 cat >>$CONFIG_STATUS <<\_ACEOF
2829 ## --------------------- ##
2830 ## M4sh Initialization.  ##
2831 ## --------------------- ##
2832
2833 # Be Bourne compatible
2834 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2835   emulate sh
2836   NULLCMD=:
2837   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2838   # is contrary to our usage.  Disable this feature.
2839   alias -g '${1+"$@"}'='"$@"'
2840 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2841   set -o posix
2842 fi
2843 DUALCASE=1; export DUALCASE # for MKS sh
2844
2845 # Support unset when possible.
2846 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2847   as_unset=unset
2848 else
2849   as_unset=false
2850 fi
2851
2852
2853 # Work around bugs in pre-3.0 UWIN ksh.
2854 $as_unset ENV MAIL MAILPATH
2855 PS1='$ '
2856 PS2='> '
2857 PS4='+ '
2858
2859 # NLS nuisances.
2860 for as_var in \
2861   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2862   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2863   LC_TELEPHONE LC_TIME
2864 do
2865   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2866     eval $as_var=C; export $as_var
2867   else
2868     $as_unset $as_var
2869   fi
2870 done
2871
2872 # Required to use basename.
2873 if expr a : '\(a\)' >/dev/null 2>&1; then
2874   as_expr=expr
2875 else
2876   as_expr=false
2877 fi
2878
2879 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2880   as_basename=basename
2881 else
2882   as_basename=false
2883 fi
2884
2885
2886 # Name of the executable.
2887 as_me=`$as_basename "$0" ||
2888 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2889          X"$0" : 'X\(//\)$' \| \
2890          X"$0" : 'X\(/\)$' \| \
2891          .     : '\(.\)' 2>/dev/null ||
2892 echo X/"$0" |
2893     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2894           /^X\/\(\/\/\)$/{ s//\1/; q; }
2895           /^X\/\(\/\).*/{ s//\1/; q; }
2896           s/.*/./; q'`
2897
2898
2899 # PATH needs CR, and LINENO needs CR and PATH.
2900 # Avoid depending upon Character Ranges.
2901 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2902 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2903 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2904 as_cr_digits='0123456789'
2905 as_cr_alnum=$as_cr_Letters$as_cr_digits
2906
2907 # The user is always right.
2908 if test "${PATH_SEPARATOR+set}" != set; then
2909   echo "#! /bin/sh" >conf$$.sh
2910   echo  "exit 0"   >>conf$$.sh
2911   chmod +x conf$$.sh
2912   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2913     PATH_SEPARATOR=';'
2914   else
2915     PATH_SEPARATOR=:
2916   fi
2917   rm -f conf$$.sh
2918 fi
2919
2920
2921   as_lineno_1=$LINENO
2922   as_lineno_2=$LINENO
2923   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2924   test "x$as_lineno_1" != "x$as_lineno_2" &&
2925   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
2926   # Find who we are.  Look in the path if we contain no path at all
2927   # relative or not.
2928   case $0 in
2929     *[\\/]* ) as_myself=$0 ;;
2930     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933   IFS=$as_save_IFS
2934   test -z "$as_dir" && as_dir=.
2935   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2936 done
2937
2938        ;;
2939   esac
2940   # We did not find ourselves, most probably we were run as `sh COMMAND'
2941   # in which case we are not to be found in the path.
2942   if test "x$as_myself" = x; then
2943     as_myself=$0
2944   fi
2945   if test ! -f "$as_myself"; then
2946     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2947 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2948    { (exit 1); exit 1; }; }
2949   fi
2950   case $CONFIG_SHELL in
2951   '')
2952     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2954 do
2955   IFS=$as_save_IFS
2956   test -z "$as_dir" && as_dir=.
2957   for as_base in sh bash ksh sh5; do
2958          case $as_dir in
2959          /*)
2960            if ("$as_dir/$as_base" -c '
2961   as_lineno_1=$LINENO
2962   as_lineno_2=$LINENO
2963   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2964   test "x$as_lineno_1" != "x$as_lineno_2" &&
2965   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
2966              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
2967              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2968              CONFIG_SHELL=$as_dir/$as_base
2969              export CONFIG_SHELL
2970              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2971            fi;;
2972          esac
2973        done
2974 done
2975 ;;
2976   esac
2977
2978   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2979   # uniformly replaced by the line number.  The first 'sed' inserts a
2980   # line-number line before each line; the second 'sed' does the real
2981   # work.  The second script uses 'N' to pair each line-number line
2982   # with the numbered line, and appends trailing '-' during
2983   # substitution so that $LINENO is not a special case at line end.
2984   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2985   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
2986   sed '=' <$as_myself |
2987     sed '
2988       N
2989       s,$,-,
2990       : loop
2991       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2992       t loop
2993       s,-$,,
2994       s,^['$as_cr_digits']*\n,,
2995     ' >$as_me.lineno &&
2996   chmod +x $as_me.lineno ||
2997     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2998 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2999    { (exit 1); exit 1; }; }
3000
3001   # Don't try to exec as it changes $[0], causing all sort of problems
3002   # (the dirname of $[0] is not the place where we might find the
3003   # original and so on.  Autoconf is especially sensible to this).
3004   . ./$as_me.lineno
3005   # Exit status is that of the last command.
3006   exit
3007 }
3008
3009
3010 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3011   *c*,-n*) ECHO_N= ECHO_C='
3012 ' ECHO_T='      ' ;;
3013   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3014   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3015 esac
3016
3017 if expr a : '\(a\)' >/dev/null 2>&1; then
3018   as_expr=expr
3019 else
3020   as_expr=false
3021 fi
3022
3023 rm -f conf$$ conf$$.exe conf$$.file
3024 echo >conf$$.file
3025 if ln -s conf$$.file conf$$ 2>/dev/null; then
3026   # We could just check for DJGPP; but this test a) works b) is more generic
3027   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3028   if test -f conf$$.exe; then
3029     # Don't use ln at all; we don't have any links
3030     as_ln_s='cp -p'
3031   else
3032     as_ln_s='ln -s'
3033   fi
3034 elif ln conf$$.file conf$$ 2>/dev/null; then
3035   as_ln_s=ln
3036 else
3037   as_ln_s='cp -p'
3038 fi
3039 rm -f conf$$ conf$$.exe conf$$.file
3040
3041 if mkdir -p . 2>/dev/null; then
3042   as_mkdir_p=:
3043 else
3044   test -d ./-p && rmdir ./-p
3045   as_mkdir_p=false
3046 fi
3047
3048 as_executable_p="test -f"
3049
3050 # Sed expression to map a string onto a valid CPP name.
3051 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3052
3053 # Sed expression to map a string onto a valid variable name.
3054 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3055
3056
3057 # IFS
3058 # We need space, tab and new line, in precisely that order.
3059 as_nl='
3060 '
3061 IFS="   $as_nl"
3062
3063 # CDPATH.
3064 $as_unset CDPATH
3065
3066 exec 6>&1
3067
3068 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3069 # report actual input values of CONFIG_FILES etc. instead of their
3070 # values after options handling.  Logging --version etc. is OK.
3071 exec 5>>config.log
3072 {
3073   echo
3074   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3075 ## Running $as_me. ##
3076 _ASBOX
3077 } >&5
3078 cat >&5 <<_CSEOF
3079
3080 This file was extended by torrus $as_me 1.0.9, which was
3081 generated by GNU Autoconf 2.59.  Invocation command line was
3082
3083   CONFIG_FILES    = $CONFIG_FILES
3084   CONFIG_HEADERS  = $CONFIG_HEADERS
3085   CONFIG_LINKS    = $CONFIG_LINKS
3086   CONFIG_COMMANDS = $CONFIG_COMMANDS
3087   $ $0 $@
3088
3089 _CSEOF
3090 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3091 echo >&5
3092 _ACEOF
3093
3094 # Files that config.status was made for.
3095 if test -n "$ac_config_files"; then
3096   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3097 fi
3098
3099 if test -n "$ac_config_headers"; then
3100   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3101 fi
3102
3103 if test -n "$ac_config_links"; then
3104   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3105 fi
3106
3107 if test -n "$ac_config_commands"; then
3108   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3109 fi
3110
3111 cat >>$CONFIG_STATUS <<\_ACEOF
3112
3113 ac_cs_usage="\
3114 \`$as_me' instantiates files from templates according to the
3115 current configuration.
3116
3117 Usage: $0 [OPTIONS] [FILE]...
3118
3119   -h, --help       print this help, then exit
3120   -V, --version    print version number, then exit
3121   -q, --quiet      do not print progress messages
3122   -d, --debug      don't remove temporary files
3123       --recheck    update $as_me by reconfiguring in the same conditions
3124   --file=FILE[:TEMPLATE]
3125                    instantiate the configuration file FILE
3126
3127 Configuration files:
3128 $config_files
3129
3130 Report bugs to <bug-autoconf@gnu.org>."
3131 _ACEOF
3132
3133 cat >>$CONFIG_STATUS <<_ACEOF
3134 ac_cs_version="\\
3135 torrus config.status 1.0.9
3136 configured by $0, generated by GNU Autoconf 2.59,
3137   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3138
3139 Copyright (C) 2003 Free Software Foundation, Inc.
3140 This config.status script is free software; the Free Software Foundation
3141 gives unlimited permission to copy, distribute and modify it."
3142 srcdir=$srcdir
3143 INSTALL="$INSTALL"
3144 _ACEOF
3145
3146 cat >>$CONFIG_STATUS <<\_ACEOF
3147 # If no file are specified by the user, then we need to provide default
3148 # value.  By we need to know if files were specified by the user.
3149 ac_need_defaults=:
3150 while test $# != 0
3151 do
3152   case $1 in
3153   --*=*)
3154     ac_option=`expr "x$1" : 'x\([^=]*\)='`
3155     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3156     ac_shift=:
3157     ;;
3158   -*)
3159     ac_option=$1
3160     ac_optarg=$2
3161     ac_shift=shift
3162     ;;
3163   *) # This is not an option, so the user has probably given explicit
3164      # arguments.
3165      ac_option=$1
3166      ac_need_defaults=false;;
3167   esac
3168
3169   case $ac_option in
3170   # Handling of the options.
3171 _ACEOF
3172 cat >>$CONFIG_STATUS <<\_ACEOF
3173   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3174     ac_cs_recheck=: ;;
3175   --version | --vers* | -V )
3176     echo "$ac_cs_version"; exit 0 ;;
3177   --he | --h)
3178     # Conflict between --help and --header
3179     { { echo "$as_me:$LINENO: error: ambiguous option: $1
3180 Try \`$0 --help' for more information." >&5
3181 echo "$as_me: error: ambiguous option: $1
3182 Try \`$0 --help' for more information." >&2;}
3183    { (exit 1); exit 1; }; };;
3184   --help | --hel | -h )
3185     echo "$ac_cs_usage"; exit 0 ;;
3186   --debug | --d* | -d )
3187     debug=: ;;
3188   --file | --fil | --fi | --f )
3189     $ac_shift
3190     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3191     ac_need_defaults=false;;
3192   --header | --heade | --head | --hea )
3193     $ac_shift
3194     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3195     ac_need_defaults=false;;
3196   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3197   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3198     ac_cs_silent=: ;;
3199
3200   # This is an error.
3201   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3202 Try \`$0 --help' for more information." >&5
3203 echo "$as_me: error: unrecognized option: $1
3204 Try \`$0 --help' for more information." >&2;}
3205    { (exit 1); exit 1; }; } ;;
3206
3207   *) ac_config_targets="$ac_config_targets $1" ;;
3208
3209   esac
3210   shift
3211 done
3212
3213 ac_configure_extra_args=
3214
3215 if $ac_cs_silent; then
3216   exec 6>/dev/null
3217   ac_configure_extra_args="$ac_configure_extra_args --silent"
3218 fi
3219
3220 _ACEOF
3221 cat >>$CONFIG_STATUS <<_ACEOF
3222 if \$ac_cs_recheck; then
3223   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3224   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3225 fi
3226
3227 _ACEOF
3228
3229
3230
3231
3232
3233 cat >>$CONFIG_STATUS <<\_ACEOF
3234 for ac_config_target in $ac_config_targets
3235 do
3236   case "$ac_config_target" in
3237   # Handling of arguments.
3238   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3239   "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
3240   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
3241   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
3242   "doc/manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/manpages/Makefile" ;;
3243   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
3244   "perllib/Makefile" ) CONFIG_FILES="$CONFIG_FILES perllib/Makefile" ;;
3245   "sup/Makefile" ) CONFIG_FILES="$CONFIG_FILES sup/Makefile" ;;
3246   "xmlconfig/Makefile" ) CONFIG_FILES="$CONFIG_FILES xmlconfig/Makefile" ;;
3247   "setup_tools/substvars.sh" ) CONFIG_FILES="$CONFIG_FILES setup_tools/substvars.sh" ;;
3248   "setup_tools/mkvardir.sh" ) CONFIG_FILES="$CONFIG_FILES setup_tools/mkvardir.sh" ;;
3249   "init.d/torrus" ) CONFIG_FILES="$CONFIG_FILES init.d/torrus" ;;
3250   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3251 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3252    { (exit 1); exit 1; }; };;
3253   esac
3254 done
3255
3256 # If the user did not use the arguments to specify the items to instantiate,
3257 # then the envvar interface is used.  Set only those that are not.
3258 # We use the long form for the default assignment because of an extremely
3259 # bizarre bug on SunOS 4.1.3.
3260 if $ac_need_defaults; then
3261   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3262 fi
3263
3264 # Have a temporary directory for convenience.  Make it in the build tree
3265 # simply because there is no reason to put it here, and in addition,
3266 # creating and moving files from /tmp can sometimes cause problems.
3267 # Create a temporary directory, and hook for its removal unless debugging.
3268 $debug ||
3269 {
3270   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3271   trap '{ (exit 1); exit 1; }' 1 2 13 15
3272 }
3273
3274 # Create a (secure) tmp directory for tmp files.
3275
3276 {
3277   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3278   test -n "$tmp" && test -d "$tmp"
3279 }  ||
3280 {
3281   tmp=./confstat$$-$RANDOM
3282   (umask 077 && mkdir $tmp)
3283 } ||
3284 {
3285    echo "$me: cannot create a temporary directory in ." >&2
3286    { (exit 1); exit 1; }
3287 }
3288
3289 _ACEOF
3290
3291 cat >>$CONFIG_STATUS <<_ACEOF
3292
3293 #
3294 # CONFIG_FILES section.
3295 #
3296
3297 # No need to generate the scripts if there are no CONFIG_FILES.
3298 # This happens for instance when ./config.status config.h
3299 if test -n "\$CONFIG_FILES"; then
3300   # Protect against being on the right side of a sed subst in config.status.
3301   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3302    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3303 s,@SHELL@,$SHELL,;t t
3304 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3305 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3306 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3307 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3308 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3309 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3310 s,@exec_prefix@,$exec_prefix,;t t
3311 s,@prefix@,$prefix,;t t
3312 s,@program_transform_name@,$program_transform_name,;t t
3313 s,@bindir@,$bindir,;t t
3314 s,@sbindir@,$sbindir,;t t
3315 s,@libexecdir@,$libexecdir,;t t
3316 s,@datadir@,$datadir,;t t
3317 s,@sysconfdir@,$sysconfdir,;t t
3318 s,@sharedstatedir@,$sharedstatedir,;t t
3319 s,@localstatedir@,$localstatedir,;t t
3320 s,@libdir@,$libdir,;t t
3321 s,@includedir@,$includedir,;t t
3322 s,@oldincludedir@,$oldincludedir,;t t
3323 s,@infodir@,$infodir,;t t
3324 s,@mandir@,$mandir,;t t
3325 s,@build_alias@,$build_alias,;t t
3326 s,@host_alias@,$host_alias,;t t
3327 s,@target_alias@,$target_alias,;t t
3328 s,@DEFS@,$DEFS,;t t
3329 s,@ECHO_C@,$ECHO_C,;t t
3330 s,@ECHO_N@,$ECHO_N,;t t
3331 s,@ECHO_T@,$ECHO_T,;t t
3332 s,@LIBS@,$LIBS,;t t
3333 s,@build@,$build,;t t
3334 s,@build_cpu@,$build_cpu,;t t
3335 s,@build_vendor@,$build_vendor,;t t
3336 s,@build_os@,$build_os,;t t
3337 s,@host@,$host,;t t
3338 s,@host_cpu@,$host_cpu,;t t
3339 s,@host_vendor@,$host_vendor,;t t
3340 s,@host_os@,$host_os,;t t
3341 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3342 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3343 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3344 s,@CYGPATH_W@,$CYGPATH_W,;t t
3345 s,@PACKAGE@,$PACKAGE,;t t
3346 s,@VERSION@,$VERSION,;t t
3347 s,@ACLOCAL@,$ACLOCAL,;t t
3348 s,@AUTOCONF@,$AUTOCONF,;t t
3349 s,@AUTOMAKE@,$AUTOMAKE,;t t
3350 s,@AUTOHEADER@,$AUTOHEADER,;t t
3351 s,@MAKEINFO@,$MAKEINFO,;t t
3352 s,@install_sh@,$install_sh,;t t
3353 s,@STRIP@,$STRIP,;t t
3354 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
3355 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
3356 s,@mkdir_p@,$mkdir_p,;t t
3357 s,@AWK@,$AWK,;t t
3358 s,@SET_MAKE@,$SET_MAKE,;t t
3359 s,@am__leading_dot@,$am__leading_dot,;t t
3360 s,@AMTAR@,$AMTAR,;t t
3361 s,@am__tar@,$am__tar,;t t
3362 s,@am__untar@,$am__untar,;t t
3363 s,@PERL@,$PERL,;t t
3364 s,@SU@,$SU,;t t
3365 s,@KILL@,$KILL,;t t
3366 s,@SED@,$SED,;t t
3367 s,@FIND@,$FIND,;t t
3368 s,@RM@,$RM,;t t
3369 s,@SLEEP@,$SLEEP,;t t
3370 s,@POD2TEXT@,$POD2TEXT,;t t
3371 s,@POD2TEXT_PRESENT_TRUE@,$POD2TEXT_PRESENT_TRUE,;t t
3372 s,@POD2TEXT_PRESENT_FALSE@,$POD2TEXT_PRESENT_FALSE,;t t
3373 s,@POD2MAN@,$POD2MAN,;t t
3374 s,@POD2MAN_PRESENT_TRUE@,$POD2MAN_PRESENT_TRUE,;t t
3375 s,@POD2MAN_PRESENT_FALSE@,$POD2MAN_PRESENT_FALSE,;t t
3376 s,@enable_pkgonly@,$enable_pkgonly,;t t
3377 s,@PERLINC@,$PERLINC,;t t
3378 s,@perllibdirs@,$perllibdirs,;t t
3379 s,@perlithreads@,$perlithreads,;t t
3380 s,@torrus_user@,$torrus_user,;t t
3381 s,@var_user@,$var_user,;t t
3382 s,@var_group@,$var_group,;t t
3383 s,@var_mode@,$var_mode,;t t
3384 s,@enable_varperm@,$enable_varperm,;t t
3385 s,@pkghome@,$pkghome,;t t
3386 s,@pkgbindir@,$pkgbindir,;t t
3387 s,@cfgdefdir@,$cfgdefdir,;t t
3388 s,@pkgdocdir@,$pkgdocdir,;t t
3389 s,@exmpdir@,$exmpdir,;t t
3390 s,@perllibdir@,$perllibdir,;t t
3391 s,@pluginsdir@,$pluginsdir,;t t
3392 s,@plugtorruscfgdir@,$plugtorruscfgdir,;t t
3393 s,@plugdevdisccfgdir@,$plugdevdisccfgdir,;t t
3394 s,@plugwrapperdir@,$plugwrapperdir,;t t
3395 s,@scriptsdir@,$scriptsdir,;t t
3396 s,@supdir@,$supdir,;t t
3397 s,@webplaindir@,$webplaindir,;t t
3398 s,@webscriptsdir@,$webscriptsdir,;t t
3399 s,@tmpldir@,$tmpldir,;t t
3400 s,@distxmldir@,$distxmldir,;t t
3401 s,@sitedir@,$sitedir,;t t
3402 s,@siteconfdir@,$siteconfdir,;t t
3403 s,@tmpluserdir@,$tmpluserdir,;t t
3404 s,@sitexmldir@,$sitexmldir,;t t
3405 s,@logdir@,$logdir,;t t
3406 s,@piddir@,$piddir,;t t
3407 s,@varprefix@,$varprefix,;t t
3408 s,@cachedir@,$cachedir,;t t
3409 s,@dbhome@,$dbhome,;t t
3410 s,@reportsdir@,$reportsdir,;t t
3411 s,@seslockdir@,$seslockdir,;t t
3412 s,@sesstordir@,$sesstordir,;t t
3413 s,@wrapperdir@,$wrapperdir,;t t
3414 s,@mansec_usercmd@,$mansec_usercmd,;t t
3415 s,@mansec_misc@,$mansec_misc,;t t
3416 s,@defrrddir@,$defrrddir,;t t
3417 s,@LIBOBJS@,$LIBOBJS,;t t
3418 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3419 CEOF
3420
3421 _ACEOF
3422
3423   cat >>$CONFIG_STATUS <<\_ACEOF
3424   # Split the substitutions into bite-sized pieces for seds with
3425   # small command number limits, like on Digital OSF/1 and HP-UX.
3426   ac_max_sed_lines=48
3427   ac_sed_frag=1 # Number of current file.
3428   ac_beg=1 # First line for current file.
3429   ac_end=$ac_max_sed_lines # Line after last line for current file.
3430   ac_more_lines=:
3431   ac_sed_cmds=
3432   while $ac_more_lines; do
3433     if test $ac_beg -gt 1; then
3434       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3435     else
3436       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3437     fi
3438     if test ! -s $tmp/subs.frag; then
3439       ac_more_lines=false
3440     else
3441       # The purpose of the label and of the branching condition is to
3442       # speed up the sed processing (if there are no `@' at all, there
3443       # is no need to browse any of the substitutions).
3444       # These are the two extra sed commands mentioned above.
3445       (echo ':t
3446   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3447       if test -z "$ac_sed_cmds"; then
3448         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3449       else
3450         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3451       fi
3452       ac_sed_frag=`expr $ac_sed_frag + 1`
3453       ac_beg=$ac_end
3454       ac_end=`expr $ac_end + $ac_max_sed_lines`
3455     fi
3456   done
3457   if test -z "$ac_sed_cmds"; then
3458     ac_sed_cmds=cat
3459   fi
3460 fi # test -n "$CONFIG_FILES"
3461
3462 _ACEOF
3463 cat >>$CONFIG_STATUS <<\_ACEOF
3464 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3465   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3466   case $ac_file in
3467   - | *:- | *:-:* ) # input from stdin
3468         cat >$tmp/stdin
3469         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3470         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3471   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3472         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3473   * )   ac_file_in=$ac_file.in ;;
3474   esac
3475
3476   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3477   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3479          X"$ac_file" : 'X\(//\)[^/]' \| \
3480          X"$ac_file" : 'X\(//\)$' \| \
3481          X"$ac_file" : 'X\(/\)' \| \
3482          .     : '\(.\)' 2>/dev/null ||
3483 echo X"$ac_file" |
3484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3485           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3486           /^X\(\/\/\)$/{ s//\1/; q; }
3487           /^X\(\/\).*/{ s//\1/; q; }
3488           s/.*/./; q'`
3489   { if $as_mkdir_p; then
3490     mkdir -p "$ac_dir"
3491   else
3492     as_dir="$ac_dir"
3493     as_dirs=
3494     while test ! -d "$as_dir"; do
3495       as_dirs="$as_dir $as_dirs"
3496       as_dir=`(dirname "$as_dir") 2>/dev/null ||
3497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3498          X"$as_dir" : 'X\(//\)[^/]' \| \
3499          X"$as_dir" : 'X\(//\)$' \| \
3500          X"$as_dir" : 'X\(/\)' \| \
3501          .     : '\(.\)' 2>/dev/null ||
3502 echo X"$as_dir" |
3503     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3504           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3505           /^X\(\/\/\)$/{ s//\1/; q; }
3506           /^X\(\/\).*/{ s//\1/; q; }
3507           s/.*/./; q'`
3508     done
3509     test ! -n "$as_dirs" || mkdir $as_dirs
3510   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3511 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3512    { (exit 1); exit 1; }; }; }
3513
3514   ac_builddir=.
3515
3516 if test "$ac_dir" != .; then
3517   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3518   # A "../" for each directory in $ac_dir_suffix.
3519   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3520 else
3521   ac_dir_suffix= ac_top_builddir=
3522 fi
3523
3524 case $srcdir in
3525   .)  # No --srcdir option.  We are building in place.
3526     ac_srcdir=.
3527     if test -z "$ac_top_builddir"; then
3528        ac_top_srcdir=.
3529     else
3530        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3531     fi ;;
3532   [\\/]* | ?:[\\/]* )  # Absolute path.
3533     ac_srcdir=$srcdir$ac_dir_suffix;
3534     ac_top_srcdir=$srcdir ;;
3535   *) # Relative path.
3536     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3537     ac_top_srcdir=$ac_top_builddir$srcdir ;;
3538 esac
3539
3540 # Do not use `cd foo && pwd` to compute absolute paths, because
3541 # the directories may not exist.
3542 case `pwd` in
3543 .) ac_abs_builddir="$ac_dir";;
3544 *)
3545   case "$ac_dir" in
3546   .) ac_abs_builddir=`pwd`;;
3547   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3548   *) ac_abs_builddir=`pwd`/"$ac_dir";;
3549   esac;;
3550 esac
3551 case $ac_abs_builddir in
3552 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3553 *)
3554   case ${ac_top_builddir}. in
3555   .) ac_abs_top_builddir=$ac_abs_builddir;;
3556   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3557   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3558   esac;;
3559 esac
3560 case $ac_abs_builddir in
3561 .) ac_abs_srcdir=$ac_srcdir;;
3562 *)
3563   case $ac_srcdir in
3564   .) ac_abs_srcdir=$ac_abs_builddir;;
3565   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3566   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3567   esac;;
3568 esac
3569 case $ac_abs_builddir in
3570 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3571 *)
3572   case $ac_top_srcdir in
3573   .) ac_abs_top_srcdir=$ac_abs_builddir;;
3574   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3575   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3576   esac;;
3577 esac
3578
3579
3580   case $INSTALL in
3581   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3582   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3583   esac
3584
3585   if test x"$ac_file" != x-; then
3586     { echo "$as_me:$LINENO: creating $ac_file" >&5
3587 echo "$as_me: creating $ac_file" >&6;}
3588     rm -f "$ac_file"
3589   fi
3590   # Let's still pretend it is `configure' which instantiates (i.e., don't
3591   # use $as_me), people would be surprised to read:
3592   #    /* config.h.  Generated by config.status.  */
3593   if test x"$ac_file" = x-; then
3594     configure_input=
3595   else
3596     configure_input="$ac_file.  "
3597   fi
3598   configure_input=$configure_input"Generated from `echo $ac_file_in |
3599                                      sed 's,.*/,,'` by configure."
3600
3601   # First look for the input files in the build tree, otherwise in the
3602   # src tree.
3603   ac_file_inputs=`IFS=:
3604     for f in $ac_file_in; do
3605       case $f in
3606       -) echo $tmp/stdin ;;
3607       [\\/$]*)
3608          # Absolute (can't be DOS-style, as IFS=:)
3609          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3610 echo "$as_me: error: cannot find input file: $f" >&2;}
3611    { (exit 1); exit 1; }; }
3612          echo "$f";;
3613       *) # Relative
3614          if test -f "$f"; then
3615            # Build tree
3616            echo "$f"
3617          elif test -f "$srcdir/$f"; then
3618            # Source tree
3619            echo "$srcdir/$f"
3620          else
3621            # /dev/null tree
3622            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3623 echo "$as_me: error: cannot find input file: $f" >&2;}
3624    { (exit 1); exit 1; }; }
3625          fi;;
3626       esac
3627     done` || { (exit 1); exit 1; }
3628 _ACEOF
3629 cat >>$CONFIG_STATUS <<_ACEOF
3630   sed "$ac_vpsub
3631 $extrasub
3632 _ACEOF
3633 cat >>$CONFIG_STATUS <<\_ACEOF
3634 :t
3635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3636 s,@configure_input@,$configure_input,;t t
3637 s,@srcdir@,$ac_srcdir,;t t
3638 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3639 s,@top_srcdir@,$ac_top_srcdir,;t t
3640 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3641 s,@builddir@,$ac_builddir,;t t
3642 s,@abs_builddir@,$ac_abs_builddir,;t t
3643 s,@top_builddir@,$ac_top_builddir,;t t
3644 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3645 s,@INSTALL@,$ac_INSTALL,;t t
3646 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3647   rm -f $tmp/stdin
3648   if test x"$ac_file" != x-; then
3649     mv $tmp/out $ac_file
3650   else
3651     cat $tmp/out
3652     rm -f $tmp/out
3653   fi
3654
3655   # Run the commands associated with the file.
3656   case $ac_file in
3657     setup_tools/substvars.sh ) chmod +x setup_tools/substvars.sh ;;
3658     setup_tools/mkvardir.sh ) chmod +x setup_tools/mkvardir.sh ;;
3659     init.d/torrus ) chmod +x init.d/torrus ;;
3660   esac
3661 done
3662 _ACEOF
3663
3664 cat >>$CONFIG_STATUS <<\_ACEOF
3665
3666 { (exit 0); exit 0; }
3667 _ACEOF
3668 chmod +x $CONFIG_STATUS
3669 ac_clean_files=$ac_clean_files_save
3670
3671
3672 # configure is writing to config.log, and then calls config.status.
3673 # config.status does its own redirection, appending to config.log.
3674 # Unfortunately, on DOS this fails, as config.log is still kept open
3675 # by configure, so config.status won't be able to write to it; its
3676 # output is simply discarded.  So we exec the FD to /dev/null,
3677 # effectively closing config.log, so it can be properly (re)opened and
3678 # appended to by config.status.  When coming back to configure, we
3679 # need to make the FD available again.
3680 if test "$no_create" != yes; then
3681   ac_cs_success=:
3682   ac_config_status_args=
3683   test "$silent" = yes &&
3684     ac_config_status_args="$ac_config_status_args --quiet"
3685   exec 5>/dev/null
3686   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3687   exec 5>>config.log
3688   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3689   # would make configure fail if this is the last instruction.
3690   $ac_cs_success || { (exit 1); exit 1; }
3691 fi
3692
3693
3694 VARSAVE=configs/instvars
3695 echo creating $VARSAVE
3696 rm -f $VARSAVE
3697 for VAR in $ac_subst_vars; do
3698     case ${VAR} in
3699       DEFS | PACKAGE* | INSTALL* | VERSION | ACLOCAL | AUTO* | MAKEINFO |\
3700       install_sh | AM* | am* | ac* | ECHO* | build* | host* | target* |\
3701       CYG* | PATH_SEPARATOR | AWK | STRIP | mkdir* |\
3702       perllibdirs )
3703       ;;
3704       *)
3705         eval 'VAL=${'$VAR'}'
3706         echo ${VAR}=\'${VAL}\' >>$VARSAVE
3707       ;;
3708     esac
3709 done