util-vserver-0.29
[util-vserver.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for util-vserver 0.29.
4 #
5 # Report bugs to <enrico.scholz@informatik.tu-chemnitz.de>.
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='util-vserver'
271 PACKAGE_TARNAME='util-vserver'
272 PACKAGE_VERSION='0.29'
273 PACKAGE_STRING='util-vserver 0.29'
274 PACKAGE_BUGREPORT='enrico.scholz@informatik.tu-chemnitz.de'
275
276 ac_unique_file="src/capchroot.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB kernelincludedir vserverdir CVS2CL_TAG CVS2CL HAVE_CVS2CL_TRUE HAVE_CVS2CL_FALSE RCS2LOG HAVE_RCS2LOG_TRUE HAVE_RCS2LOG_FALSE ENSC_ENABLE_LINUXCONF_TRUE ENSC_ENABLE_LINUXCONF_FALSE ENSC_ENABLE_INTERNAL_HEADERS_TRUE ENSC_ENABLE_INTERNAL_HEADERS_FALSE CXXCPP EGREP LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CXX_set=${CXX+set}
756 ac_env_CXX_value=$CXX
757 ac_cv_env_CXX_set=${CXX+set}
758 ac_cv_env_CXX_value=$CXX
759 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CC_set=${CC+set}
772 ac_env_CC_value=$CC
773 ac_cv_env_CC_set=${CC+set}
774 ac_cv_env_CC_value=$CC
775 ac_env_CFLAGS_set=${CFLAGS+set}
776 ac_env_CFLAGS_value=$CFLAGS
777 ac_cv_env_CFLAGS_set=${CFLAGS+set}
778 ac_cv_env_CFLAGS_value=$CFLAGS
779 ac_env_CXXCPP_set=${CXXCPP+set}
780 ac_env_CXXCPP_value=$CXXCPP
781 ac_cv_env_CXXCPP_set=${CXXCPP+set}
782 ac_cv_env_CXXCPP_value=$CXXCPP
783
784 #
785 # Report the --help message.
786 #
787 if test "$ac_init_help" = "long"; then
788   # Omit some internal or obsolete options to make the list less imposing.
789   # This message is too long to be a string in the A/UX 3.1 sh.
790   cat <<_ACEOF
791 \`configure' configures util-vserver 0.29 to adapt to many kinds of systems.
792
793 Usage: $0 [OPTION]... [VAR=VALUE]...
794
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
796 VAR=VALUE.  See below for descriptions of some of the useful variables.
797
798 Defaults for the options are specified in brackets.
799
800 Configuration:
801   -h, --help              display this help and exit
802       --help=short        display options specific to this package
803       --help=recursive    display the short help of all the included packages
804   -V, --version           display version information and exit
805   -q, --quiet, --silent   do not print \`checking...' messages
806       --cache-file=FILE   cache test results in FILE [disabled]
807   -C, --config-cache      alias for \`--cache-file=config.cache'
808   -n, --no-create         do not create output files
809       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
810
811 _ACEOF
812
813   cat <<_ACEOF
814 Installation directories:
815   --prefix=PREFIX         install architecture-independent files in PREFIX
816                           [$ac_default_prefix]
817   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
818                           [PREFIX]
819
820 By default, \`make install' will install all the files in
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823 for instance \`--prefix=\$HOME'.
824
825 For better control, use the options below.
826
827 Fine tuning of the installation directories:
828   --bindir=DIR           user executables [EPREFIX/bin]
829   --sbindir=DIR          system admin executables [EPREFIX/sbin]
830   --libexecdir=DIR       program executables [EPREFIX/libexec]
831   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
832   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
833   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
834   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
835   --libdir=DIR           object code libraries [EPREFIX/lib]
836   --includedir=DIR       C header files [PREFIX/include]
837   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
838   --infodir=DIR          info documentation [PREFIX/info]
839   --mandir=DIR           man documentation [PREFIX/man]
840 _ACEOF
841
842   cat <<\_ACEOF
843
844 Program names:
845   --program-prefix=PREFIX            prepend PREFIX to installed program names
846   --program-suffix=SUFFIX            append SUFFIX to installed program names
847   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852   case $ac_init_help in
853      short | recursive ) echo "Configuration of util-vserver 0.29:";;
854    esac
855   cat <<\_ACEOF
856
857 Optional Features:
858   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
859   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
860   --enable-maintainer-mode  enable make rules and dependencies not useful
861                           (and sometimes confusing) to the casual installer
862   --disable-dependency-tracking  speeds up one-time build
863   --enable-dependency-tracking   do not reject slow dependency extractors
864   --enable-linuxconf      enable 'newvserver' linuxconf module (default: no)
865   --disable-internal-headers
866                           use vserver specific headers from the kernel instead
867                           of the shipped versions (default: no)
868   --enable-apis=APIS      enable support for the given apis; possible values
869                           are: legacy,compat,v11,ALL (default: ALL)
870
871 Optional Packages:
872   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
873   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
874   --with-kerneldir=DIR    assume kernelsources in DIR (default:
875                           /lib/modules/<current>/build)
876   --with-vrootdir=DIR     place vservers under DIR (default: /vservers)
877   --with-syscall=METHOD   call syscall(2) with the specified METHOD; valid
878                           values are 'fast', 'traditional' and 'auto'
879                           (default: auto)
880
881 Some influential environment variables:
882   CXX         C++ compiler command
883   CXXFLAGS    C++ compiler flags
884   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
885               nonstandard directory <lib dir>
886   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
887               headers in a nonstandard directory <include dir>
888   CC          C compiler command
889   CFLAGS      C compiler flags
890   CXXCPP      C++ preprocessor
891
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
894
895 Report bugs to <enrico.scholz@informatik.tu-chemnitz.de>.
896 _ACEOF
897 fi
898
899 if test "$ac_init_help" = "recursive"; then
900   # If there are subdirs, report their specific --help.
901   ac_popdir=`pwd`
902   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903     test -d $ac_dir || continue
904     ac_builddir=.
905
906 if test "$ac_dir" != .; then
907   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908   # A "../" for each directory in $ac_dir_suffix.
909   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911   ac_dir_suffix= ac_top_builddir=
912 fi
913
914 case $srcdir in
915   .)  # No --srcdir option.  We are building in place.
916     ac_srcdir=.
917     if test -z "$ac_top_builddir"; then
918        ac_top_srcdir=.
919     else
920        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921     fi ;;
922   [\\/]* | ?:[\\/]* )  # Absolute path.
923     ac_srcdir=$srcdir$ac_dir_suffix;
924     ac_top_srcdir=$srcdir ;;
925   *) # Relative path.
926     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927     ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
929
930 # Do not use `cd foo && pwd` to compute absolute paths, because
931 # the directories may not exist.
932 case `pwd` in
933 .) ac_abs_builddir="$ac_dir";;
934 *)
935   case "$ac_dir" in
936   .) ac_abs_builddir=`pwd`;;
937   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938   *) ac_abs_builddir=`pwd`/"$ac_dir";;
939   esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *)
944   case ${ac_top_builddir}. in
945   .) ac_abs_top_builddir=$ac_abs_builddir;;
946   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948   esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
952 *)
953   case $ac_srcdir in
954   .) ac_abs_srcdir=$ac_abs_builddir;;
955   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957   esac;;
958 esac
959 case $ac_abs_builddir in
960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *)
962   case $ac_top_srcdir in
963   .) ac_abs_top_srcdir=$ac_abs_builddir;;
964   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966   esac;;
967 esac
968
969     cd $ac_dir
970     # Check for guested configure; otherwise get Cygnus style configure.
971     if test -f $ac_srcdir/configure.gnu; then
972       echo
973       $SHELL $ac_srcdir/configure.gnu  --help=recursive
974     elif test -f $ac_srcdir/configure; then
975       echo
976       $SHELL $ac_srcdir/configure  --help=recursive
977     elif test -f $ac_srcdir/configure.ac ||
978            test -f $ac_srcdir/configure.in; then
979       echo
980       $ac_configure --help
981     else
982       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983     fi
984     cd $ac_popdir
985   done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990   cat <<\_ACEOF
991 util-vserver configure 0.29
992 generated by GNU Autoconf 2.59
993
994 Copyright (C) 2003 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
997 _ACEOF
998   exit 0
999 fi
1000 exec 5>config.log
1001 cat >&5 <<_ACEOF
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1004
1005 It was created by util-vserver $as_me 0.29, which was
1006 generated by GNU Autoconf 2.59.  Invocation command line was
1007
1008   $ $0 $@
1009
1010 _ACEOF
1011 {
1012 cat <<_ASUNAME
1013 ## --------- ##
1014 ## Platform. ##
1015 ## --------- ##
1016
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1025
1026 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1027 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1030 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1031 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1032 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1033
1034 _ASUNAME
1035
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 for as_dir in $PATH
1038 do
1039   IFS=$as_save_IFS
1040   test -z "$as_dir" && as_dir=.
1041   echo "PATH: $as_dir"
1042 done
1043
1044 } >&5
1045
1046 cat >&5 <<_ACEOF
1047
1048
1049 ## ----------- ##
1050 ## Core tests. ##
1051 ## ----------- ##
1052
1053 _ACEOF
1054
1055
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1061 ac_configure_args=
1062 ac_configure_args0=
1063 ac_configure_args1=
1064 ac_sep=
1065 ac_must_keep_next=false
1066 for ac_pass in 1 2
1067 do
1068   for ac_arg
1069   do
1070     case $ac_arg in
1071     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073     | -silent | --silent | --silen | --sile | --sil)
1074       continue ;;
1075     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077     esac
1078     case $ac_pass in
1079     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080     2)
1081       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082       if test $ac_must_keep_next = true; then
1083         ac_must_keep_next=false # Got value, back to normal.
1084       else
1085         case $ac_arg in
1086           *=* | --config-cache | -C | -disable-* | --disable-* \
1087           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089           | -with-* | --with-* | -without-* | --without-* | --x)
1090             case "$ac_configure_args0 " in
1091               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092             esac
1093             ;;
1094           -* ) ac_must_keep_next=true ;;
1095         esac
1096       fi
1097       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098       # Get rid of the leading space.
1099       ac_sep=" "
1100       ;;
1101     esac
1102   done
1103 done
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log.  We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113   # Save into config.log some information that might help in debugging.
1114   {
1115     echo
1116
1117     cat <<\_ASBOX
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1121 _ASBOX
1122     echo
1123     # The following way of writing the cache mishandles newlines in values,
1124 {
1125   (set) 2>&1 |
1126     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127     *ac_space=\ *)
1128       sed -n \
1129         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131       ;;
1132     *)
1133       sed -n \
1134         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1135       ;;
1136     esac;
1137 }
1138     echo
1139
1140     cat <<\_ASBOX
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1144 _ASBOX
1145     echo
1146     for ac_var in $ac_subst_vars
1147     do
1148       eval ac_val=$`echo $ac_var`
1149       echo "$ac_var='"'"'$ac_val'"'"'"
1150     done | sort
1151     echo
1152
1153     if test -n "$ac_subst_files"; then
1154       cat <<\_ASBOX
1155 ## ------------- ##
1156 ## Output files. ##
1157 ## ------------- ##
1158 _ASBOX
1159       echo
1160       for ac_var in $ac_subst_files
1161       do
1162         eval ac_val=$`echo $ac_var`
1163         echo "$ac_var='"'"'$ac_val'"'"'"
1164       done | sort
1165       echo
1166     fi
1167
1168     if test -s confdefs.h; then
1169       cat <<\_ASBOX
1170 ## ----------- ##
1171 ## confdefs.h. ##
1172 ## ----------- ##
1173 _ASBOX
1174       echo
1175       sed "/^$/d" confdefs.h | sort
1176       echo
1177     fi
1178     test "$ac_signal" != 0 &&
1179       echo "$as_me: caught signal $ac_signal"
1180     echo "$as_me: exit $exit_status"
1181   } >&5
1182   rm -f core *.core &&
1183   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184     exit $exit_status
1185      ' 0
1186 for ac_signal in 1 2 13 15; do
1187   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188 done
1189 ac_signal=0
1190
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 echo >confdefs.h
1195
1196 # Predefined preprocessor variables.
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220 _ACEOF
1221
1222
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226   if test "x$prefix" != xNONE; then
1227     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228   else
1229     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230   fi
1231 fi
1232 for ac_site_file in $CONFIG_SITE; do
1233   if test -r "$ac_site_file"; then
1234     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236     sed 's/^/| /' "$ac_site_file" >&5
1237     . "$ac_site_file"
1238   fi
1239 done
1240
1241 if test -r "$cache_file"; then
1242   # Some versions of bash will fail to source /dev/null (special
1243   # files actually), so we avoid doing that.
1244   if test -f "$cache_file"; then
1245     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1247     case $cache_file in
1248       [\\/]* | ?:[\\/]* ) . $cache_file;;
1249       *)                      . ./$cache_file;;
1250     esac
1251   fi
1252 else
1253   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1255   >$cache_file
1256 fi
1257
1258 # Check that the precious variables saved in the cache have kept the same
1259 # value.
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264   eval ac_new_set=\$ac_env_${ac_var}_set
1265   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266   eval ac_new_val="\$ac_env_${ac_var}_value"
1267   case $ac_old_set,$ac_new_set in
1268     set,)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,set)
1273       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275       ac_cache_corrupted=: ;;
1276     ,);;
1277     *)
1278       if test "x$ac_old_val" != "x$ac_new_val"; then
1279         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1282 echo "$as_me:   former value:  $ac_old_val" >&2;}
1283         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1284 echo "$as_me:   current value: $ac_new_val" >&2;}
1285         ac_cache_corrupted=:
1286       fi;;
1287   esac
1288   # Pass precious variables to config.status.
1289   if test "$ac_new_set" = set; then
1290     case $ac_new_val in
1291     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293     *) ac_arg=$ac_var=$ac_new_val ;;
1294     esac
1295     case " $ac_configure_args " in
1296       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1297       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298     esac
1299   fi
1300 done
1301 if $ac_cache_corrupted; then
1302   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306    { (exit 1); exit 1; }; }
1307 fi
1308
1309 ac_ext=c
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342           ac_config_headers="$ac_config_headers config.h"
1343
1344
1345 am__api_version="1.8"
1346 ac_aux_dir=
1347 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1348   if test -f $ac_dir/install-sh; then
1349     ac_aux_dir=$ac_dir
1350     ac_install_sh="$ac_aux_dir/install-sh -c"
1351     break
1352   elif test -f $ac_dir/install.sh; then
1353     ac_aux_dir=$ac_dir
1354     ac_install_sh="$ac_aux_dir/install.sh -c"
1355     break
1356   elif test -f $ac_dir/shtool; then
1357     ac_aux_dir=$ac_dir
1358     ac_install_sh="$ac_aux_dir/shtool install -c"
1359     break
1360   fi
1361 done
1362 if test -z "$ac_aux_dir"; then
1363   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1364 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1365    { (exit 1); exit 1; }; }
1366 fi
1367 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1368 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1369 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1370
1371 # Find a good install program.  We prefer a C program (faster),
1372 # so one script is as good as another.  But avoid the broken or
1373 # incompatible versions:
1374 # SysV /etc/install, /usr/sbin/install
1375 # SunOS /usr/etc/install
1376 # IRIX /sbin/install
1377 # AIX /bin/install
1378 # AmigaOS /C/install, which installs bootblocks on floppy discs
1379 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1380 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1381 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1382 # OS/2's system install, which has a completely different semantic
1383 # ./install, which can be erroneously created by make from ./install.sh.
1384 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1385 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1386 if test -z "$INSTALL"; then
1387 if test "${ac_cv_path_install+set}" = set; then
1388   echo $ECHO_N "(cached) $ECHO_C" >&6
1389 else
1390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1391 for as_dir in $PATH
1392 do
1393   IFS=$as_save_IFS
1394   test -z "$as_dir" && as_dir=.
1395   # Account for people who put trailing slashes in PATH elements.
1396 case $as_dir/ in
1397   ./ | .// | /cC/* | \
1398   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1399   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1400   /usr/ucb/* ) ;;
1401   *)
1402     # OSF1 and SCO ODT 3.0 have their own names for install.
1403     # Don't use installbsd from OSF since it installs stuff as root
1404     # by default.
1405     for ac_prog in ginstall scoinst install; do
1406       for ac_exec_ext in '' $ac_executable_extensions; do
1407         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1408           if test $ac_prog = install &&
1409             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1410             # AIX install.  It has an incompatible calling convention.
1411             :
1412           elif test $ac_prog = install &&
1413             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1414             # program-specific install script used by HP pwplus--don't use.
1415             :
1416           else
1417             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1418             break 3
1419           fi
1420         fi
1421       done
1422     done
1423     ;;
1424 esac
1425 done
1426
1427
1428 fi
1429   if test "${ac_cv_path_install+set}" = set; then
1430     INSTALL=$ac_cv_path_install
1431   else
1432     # As a last resort, use the slow shell script.  We don't cache a
1433     # path for INSTALL within a source directory, because that will
1434     # break other packages using the cache if that directory is
1435     # removed, or if the path is relative.
1436     INSTALL=$ac_install_sh
1437   fi
1438 fi
1439 echo "$as_me:$LINENO: result: $INSTALL" >&5
1440 echo "${ECHO_T}$INSTALL" >&6
1441
1442 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1443 # It thinks the first close brace ends the variable substitution.
1444 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1445
1446 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1447
1448 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1449
1450 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1451 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1452 # Just in case
1453 sleep 1
1454 echo timestamp > conftest.file
1455 # Do `set' in a subshell so we don't clobber the current shell's
1456 # arguments.  Must try -L first in case configure is actually a
1457 # symlink; some systems play weird games with the mod time of symlinks
1458 # (eg FreeBSD returns the mod time of the symlink's containing
1459 # directory).
1460 if (
1461    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1462    if test "$*" = "X"; then
1463       # -L didn't work.
1464       set X `ls -t $srcdir/configure conftest.file`
1465    fi
1466    rm -f conftest.file
1467    if test "$*" != "X $srcdir/configure conftest.file" \
1468       && test "$*" != "X conftest.file $srcdir/configure"; then
1469
1470       # If neither matched, then we have a broken ls.  This can happen
1471       # if, for instance, CONFIG_SHELL is bash and it inherits a
1472       # broken ls alias from the environment.  This has actually
1473       # happened.  Such a system could not be considered "sane".
1474       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1475 alias in your environment" >&5
1476 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1477 alias in your environment" >&2;}
1478    { (exit 1); exit 1; }; }
1479    fi
1480
1481    test "$2" = conftest.file
1482    )
1483 then
1484    # Ok.
1485    :
1486 else
1487    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1488 Check your system clock" >&5
1489 echo "$as_me: error: newly created file is older than distributed files!
1490 Check your system clock" >&2;}
1491    { (exit 1); exit 1; }; }
1492 fi
1493 echo "$as_me:$LINENO: result: yes" >&5
1494 echo "${ECHO_T}yes" >&6
1495 test "$program_prefix" != NONE &&
1496   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1497 # Use a double $ so make ignores it.
1498 test "$program_suffix" != NONE &&
1499   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1500 # Double any \ or $.  echo might interpret backslashes.
1501 # By default was `s,x,x', remove it if useless.
1502 cat <<\_ACEOF >conftest.sed
1503 s/[\\$]/&&/g;s/;s,x,x,$//
1504 _ACEOF
1505 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1506 rm conftest.sed
1507
1508 # expand $ac_aux_dir to an absolute path
1509 am_aux_dir=`cd $ac_aux_dir && pwd`
1510
1511 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1512 # Use eval to expand $SHELL
1513 if eval "$MISSING --run true"; then
1514   am_missing_run="$MISSING --run "
1515 else
1516   am_missing_run=
1517   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1518 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1519 fi
1520
1521 if mkdir -p -- . 2>/dev/null; then
1522   # Keeping the `.' argument allows $(mkdir_p) to be used without
1523   # argument.  Indeed, we sometimes output rules like
1524   #   $(mkdir_p) $(somedir)
1525   # where $(somedir) is conditionally defined.
1526   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1527   # expensive solution, as it forces Make to start a sub-shell.)
1528   mkdir_p='mkdir -p -- .'
1529 else
1530   # On NextStep and OpenStep, the `mkdir' command does not
1531   # recognize any option.  It will interpret all options as
1532   # directories to create, and then abort because `.' already
1533   # exists.
1534   for d in ./-p ./--;
1535   do
1536     test -d $d && rmdir $d
1537   done
1538   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1539   if test -f "$ac_aux_dir/mkinstalldirs"; then
1540     mkdir_p='$(mkinstalldirs)'
1541   else
1542     mkdir_p='$(install_sh) -d'
1543   fi
1544 fi
1545
1546 for ac_prog in gawk mawk nawk awk
1547 do
1548   # Extract the first word of "$ac_prog", so it can be a program name with args.
1549 set dummy $ac_prog; ac_word=$2
1550 echo "$as_me:$LINENO: checking for $ac_word" >&5
1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552 if test "${ac_cv_prog_AWK+set}" = set; then
1553   echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555   if test -n "$AWK"; then
1556   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1557 else
1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559 for as_dir in $PATH
1560 do
1561   IFS=$as_save_IFS
1562   test -z "$as_dir" && as_dir=.
1563   for ac_exec_ext in '' $ac_executable_extensions; do
1564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1565     ac_cv_prog_AWK="$ac_prog"
1566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567     break 2
1568   fi
1569 done
1570 done
1571
1572 fi
1573 fi
1574 AWK=$ac_cv_prog_AWK
1575 if test -n "$AWK"; then
1576   echo "$as_me:$LINENO: result: $AWK" >&5
1577 echo "${ECHO_T}$AWK" >&6
1578 else
1579   echo "$as_me:$LINENO: result: no" >&5
1580 echo "${ECHO_T}no" >&6
1581 fi
1582
1583   test -n "$AWK" && break
1584 done
1585
1586 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1587 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1588 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1589 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1590   echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592   cat >conftest.make <<\_ACEOF
1593 all:
1594         @echo 'ac_maketemp="$(MAKE)"'
1595 _ACEOF
1596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1597 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1598 if test -n "$ac_maketemp"; then
1599   eval ac_cv_prog_make_${ac_make}_set=yes
1600 else
1601   eval ac_cv_prog_make_${ac_make}_set=no
1602 fi
1603 rm -f conftest.make
1604 fi
1605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1606   echo "$as_me:$LINENO: result: yes" >&5
1607 echo "${ECHO_T}yes" >&6
1608   SET_MAKE=
1609 else
1610   echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1612   SET_MAKE="MAKE=${MAKE-make}"
1613 fi
1614
1615 rm -rf .tst 2>/dev/null
1616 mkdir .tst 2>/dev/null
1617 if test -d .tst; then
1618   am__leading_dot=.
1619 else
1620   am__leading_dot=_
1621 fi
1622 rmdir .tst 2>/dev/null
1623
1624 # test to see if srcdir already configured
1625 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1626    test -f $srcdir/config.status; then
1627   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1628 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1629    { (exit 1); exit 1; }; }
1630 fi
1631
1632 # test whether we have cygpath
1633 if test -z "$CYGPATH_W"; then
1634   if (cygpath --version) >/dev/null 2>/dev/null; then
1635     CYGPATH_W='cygpath -w'
1636   else
1637     CYGPATH_W=echo
1638   fi
1639 fi
1640
1641
1642 # Define the identity of the package.
1643  PACKAGE='util-vserver'
1644  VERSION='0.29'
1645
1646
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE "$PACKAGE"
1649 _ACEOF
1650
1651
1652 cat >>confdefs.h <<_ACEOF
1653 #define VERSION "$VERSION"
1654 _ACEOF
1655
1656 # Some tools Automake needs.
1657
1658 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1659
1660
1661 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1662
1663
1664 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1665
1666
1667 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1668
1669
1670 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1671
1672
1673 AMTAR=${AMTAR-"${am_missing_run}tar"}
1674
1675 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1676
1677 # Installed binaries are usually stripped using `strip' when the user
1678 # run `make install-strip'.  However `strip' might not be the right
1679 # tool to use in cross-compilation environments, therefore Automake
1680 # will honor the `STRIP' environment variable to overrule this program.
1681 if test "$cross_compiling" != no; then
1682   if test -n "$ac_tool_prefix"; then
1683   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1684 set dummy ${ac_tool_prefix}strip; ac_word=$2
1685 echo "$as_me:$LINENO: checking for $ac_word" >&5
1686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687 if test "${ac_cv_prog_STRIP+set}" = set; then
1688   echo $ECHO_N "(cached) $ECHO_C" >&6
1689 else
1690   if test -n "$STRIP"; then
1691   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1692 else
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 for as_dir in $PATH
1695 do
1696   IFS=$as_save_IFS
1697   test -z "$as_dir" && as_dir=.
1698   for ac_exec_ext in '' $ac_executable_extensions; do
1699   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702     break 2
1703   fi
1704 done
1705 done
1706
1707 fi
1708 fi
1709 STRIP=$ac_cv_prog_STRIP
1710 if test -n "$STRIP"; then
1711   echo "$as_me:$LINENO: result: $STRIP" >&5
1712 echo "${ECHO_T}$STRIP" >&6
1713 else
1714   echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1716 fi
1717
1718 fi
1719 if test -z "$ac_cv_prog_STRIP"; then
1720   ac_ct_STRIP=$STRIP
1721   # Extract the first word of "strip", so it can be a program name with args.
1722 set dummy strip; ac_word=$2
1723 echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1726   echo $ECHO_N "(cached) $ECHO_C" >&6
1727 else
1728   if test -n "$ac_ct_STRIP"; then
1729   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1730 else
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 for as_dir in $PATH
1733 do
1734   IFS=$as_save_IFS
1735   test -z "$as_dir" && as_dir=.
1736   for ac_exec_ext in '' $ac_executable_extensions; do
1737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738     ac_cv_prog_ac_ct_STRIP="strip"
1739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740     break 2
1741   fi
1742 done
1743 done
1744
1745   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1746 fi
1747 fi
1748 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1749 if test -n "$ac_ct_STRIP"; then
1750   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1751 echo "${ECHO_T}$ac_ct_STRIP" >&6
1752 else
1753   echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1755 fi
1756
1757   STRIP=$ac_ct_STRIP
1758 else
1759   STRIP="$ac_cv_prog_STRIP"
1760 fi
1761
1762 fi
1763 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1764
1765 # We need awk for the "check" target.  The system "awk" is bad on
1766 # some platforms.
1767
1768
1769
1770 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1771 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1772     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1773 if test "${enable_maintainer_mode+set}" = set; then
1774   enableval="$enable_maintainer_mode"
1775   USE_MAINTAINER_MODE=$enableval
1776 else
1777   USE_MAINTAINER_MODE=no
1778 fi;
1779   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1780 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1781
1782
1783 if test $USE_MAINTAINER_MODE = yes; then
1784   MAINTAINER_MODE_TRUE=
1785   MAINTAINER_MODE_FALSE='#'
1786 else
1787   MAINTAINER_MODE_TRUE='#'
1788   MAINTAINER_MODE_FALSE=
1789 fi
1790
1791   MAINT=$MAINTAINER_MODE_TRUE
1792
1793
1794
1795
1796 # Checks for programs.
1797 ac_ext=cc
1798 ac_cpp='$CXXCPP $CPPFLAGS'
1799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1802 if test -n "$ac_tool_prefix"; then
1803   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1804   do
1805     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1807 echo "$as_me:$LINENO: checking for $ac_word" >&5
1808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809 if test "${ac_cv_prog_CXX+set}" = set; then
1810   echo $ECHO_N "(cached) $ECHO_C" >&6
1811 else
1812   if test -n "$CXX"; then
1813   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1814 else
1815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 for as_dir in $PATH
1817 do
1818   IFS=$as_save_IFS
1819   test -z "$as_dir" && as_dir=.
1820   for ac_exec_ext in '' $ac_executable_extensions; do
1821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824     break 2
1825   fi
1826 done
1827 done
1828
1829 fi
1830 fi
1831 CXX=$ac_cv_prog_CXX
1832 if test -n "$CXX"; then
1833   echo "$as_me:$LINENO: result: $CXX" >&5
1834 echo "${ECHO_T}$CXX" >&6
1835 else
1836   echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6
1838 fi
1839
1840     test -n "$CXX" && break
1841   done
1842 fi
1843 if test -z "$CXX"; then
1844   ac_ct_CXX=$CXX
1845   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1846 do
1847   # Extract the first word of "$ac_prog", so it can be a program name with args.
1848 set dummy $ac_prog; ac_word=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1852   echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854   if test -n "$ac_ct_CXX"; then
1855   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1856 else
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 for as_dir in $PATH
1859 do
1860   IFS=$as_save_IFS
1861   test -z "$as_dir" && as_dir=.
1862   for ac_exec_ext in '' $ac_executable_extensions; do
1863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864     ac_cv_prog_ac_ct_CXX="$ac_prog"
1865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866     break 2
1867   fi
1868 done
1869 done
1870
1871 fi
1872 fi
1873 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1874 if test -n "$ac_ct_CXX"; then
1875   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1876 echo "${ECHO_T}$ac_ct_CXX" >&6
1877 else
1878   echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1880 fi
1881
1882   test -n "$ac_ct_CXX" && break
1883 done
1884 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1885
1886   CXX=$ac_ct_CXX
1887 fi
1888
1889
1890 # Provide some information about the compiler.
1891 echo "$as_me:$LINENO:" \
1892      "checking for C++ compiler version" >&5
1893 ac_compiler=`set X $ac_compile; echo $2`
1894 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1895   (eval $ac_compiler --version </dev/null >&5) 2>&5
1896   ac_status=$?
1897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898   (exit $ac_status); }
1899 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1900   (eval $ac_compiler -v </dev/null >&5) 2>&5
1901   ac_status=$?
1902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903   (exit $ac_status); }
1904 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1905   (eval $ac_compiler -V </dev/null >&5) 2>&5
1906   ac_status=$?
1907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908   (exit $ac_status); }
1909
1910 cat >conftest.$ac_ext <<_ACEOF
1911 /* confdefs.h.  */
1912 _ACEOF
1913 cat confdefs.h >>conftest.$ac_ext
1914 cat >>conftest.$ac_ext <<_ACEOF
1915 /* end confdefs.h.  */
1916
1917 int
1918 main ()
1919 {
1920
1921   ;
1922   return 0;
1923 }
1924 _ACEOF
1925 ac_clean_files_save=$ac_clean_files
1926 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1927 # Try to create an executable without -o first, disregard a.out.
1928 # It will help us diagnose broken compilers, and finding out an intuition
1929 # of exeext.
1930 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1931 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1932 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1933 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1934   (eval $ac_link_default) 2>&5
1935   ac_status=$?
1936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937   (exit $ac_status); }; then
1938   # Find the output, starting from the most likely.  This scheme is
1939 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1940 # resort.
1941
1942 # Be careful to initialize this variable, since it used to be cached.
1943 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1944 ac_cv_exeext=
1945 # b.out is created by i960 compilers.
1946 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1947 do
1948   test -f "$ac_file" || continue
1949   case $ac_file in
1950     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1951         ;;
1952     conftest.$ac_ext )
1953         # This is the source file.
1954         ;;
1955     [ab].out )
1956         # We found the default executable, but exeext='' is most
1957         # certainly right.
1958         break;;
1959     *.* )
1960         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1961         # FIXME: I believe we export ac_cv_exeext for Libtool,
1962         # but it would be cool to find out if it's true.  Does anybody
1963         # maintain Libtool? --akim.
1964         export ac_cv_exeext
1965         break;;
1966     * )
1967         break;;
1968   esac
1969 done
1970 else
1971   echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1973
1974 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1975 See \`config.log' for more details." >&5
1976 echo "$as_me: error: C++ compiler cannot create executables
1977 See \`config.log' for more details." >&2;}
1978    { (exit 77); exit 77; }; }
1979 fi
1980
1981 ac_exeext=$ac_cv_exeext
1982 echo "$as_me:$LINENO: result: $ac_file" >&5
1983 echo "${ECHO_T}$ac_file" >&6
1984
1985 # Check the compiler produces executables we can run.  If not, either
1986 # the compiler is broken, or we cross compile.
1987 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1988 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1989 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1990 # If not cross compiling, check that we can run a simple program.
1991 if test "$cross_compiling" != yes; then
1992   if { ac_try='./$ac_file'
1993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1994   (eval $ac_try) 2>&5
1995   ac_status=$?
1996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997   (exit $ac_status); }; }; then
1998     cross_compiling=no
1999   else
2000     if test "$cross_compiling" = maybe; then
2001         cross_compiling=yes
2002     else
2003         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2004 If you meant to cross compile, use \`--host'.
2005 See \`config.log' for more details." >&5
2006 echo "$as_me: error: cannot run C++ compiled programs.
2007 If you meant to cross compile, use \`--host'.
2008 See \`config.log' for more details." >&2;}
2009    { (exit 1); exit 1; }; }
2010     fi
2011   fi
2012 fi
2013 echo "$as_me:$LINENO: result: yes" >&5
2014 echo "${ECHO_T}yes" >&6
2015
2016 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2017 ac_clean_files=$ac_clean_files_save
2018 # Check the compiler produces executables we can run.  If not, either
2019 # the compiler is broken, or we cross compile.
2020 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2021 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2022 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2023 echo "${ECHO_T}$cross_compiling" >&6
2024
2025 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2026 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2028   (eval $ac_link) 2>&5
2029   ac_status=$?
2030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031   (exit $ac_status); }; then
2032   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2033 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2034 # work properly (i.e., refer to `conftest.exe'), while it won't with
2035 # `rm'.
2036 for ac_file in conftest.exe conftest conftest.*; do
2037   test -f "$ac_file" || continue
2038   case $ac_file in
2039     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2040     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2041           export ac_cv_exeext
2042           break;;
2043     * ) break;;
2044   esac
2045 done
2046 else
2047   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2048 See \`config.log' for more details." >&5
2049 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2050 See \`config.log' for more details." >&2;}
2051    { (exit 1); exit 1; }; }
2052 fi
2053
2054 rm -f conftest$ac_cv_exeext
2055 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2056 echo "${ECHO_T}$ac_cv_exeext" >&6
2057
2058 rm -f conftest.$ac_ext
2059 EXEEXT=$ac_cv_exeext
2060 ac_exeext=$EXEEXT
2061 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2062 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2063 if test "${ac_cv_objext+set}" = set; then
2064   echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066   cat >conftest.$ac_ext <<_ACEOF
2067 /* confdefs.h.  */
2068 _ACEOF
2069 cat confdefs.h >>conftest.$ac_ext
2070 cat >>conftest.$ac_ext <<_ACEOF
2071 /* end confdefs.h.  */
2072
2073 int
2074 main ()
2075 {
2076
2077   ;
2078   return 0;
2079 }
2080 _ACEOF
2081 rm -f conftest.o conftest.obj
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083   (eval $ac_compile) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); }; then
2087   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2088   case $ac_file in
2089     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2090     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2091        break;;
2092   esac
2093 done
2094 else
2095   echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2097
2098 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2099 See \`config.log' for more details." >&5
2100 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2101 See \`config.log' for more details." >&2;}
2102    { (exit 1); exit 1; }; }
2103 fi
2104
2105 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2106 fi
2107 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2108 echo "${ECHO_T}$ac_cv_objext" >&6
2109 OBJEXT=$ac_cv_objext
2110 ac_objext=$OBJEXT
2111 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2112 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2113 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2114   echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116   cat >conftest.$ac_ext <<_ACEOF
2117 /* confdefs.h.  */
2118 _ACEOF
2119 cat confdefs.h >>conftest.$ac_ext
2120 cat >>conftest.$ac_ext <<_ACEOF
2121 /* end confdefs.h.  */
2122
2123 int
2124 main ()
2125 {
2126 #ifndef __GNUC__
2127        choke me
2128 #endif
2129
2130   ;
2131   return 0;
2132 }
2133 _ACEOF
2134 rm -f conftest.$ac_objext
2135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2136   (eval $ac_compile) 2>conftest.er1
2137   ac_status=$?
2138   grep -v '^ *+' conftest.er1 >conftest.err
2139   rm -f conftest.er1
2140   cat conftest.err >&5
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); } &&
2143          { ac_try='test -z "$ac_cxx_werror_flag"
2144                          || test ! -s conftest.err'
2145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146   (eval $ac_try) 2>&5
2147   ac_status=$?
2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149   (exit $ac_status); }; } &&
2150          { ac_try='test -s conftest.$ac_objext'
2151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152   (eval $ac_try) 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }; }; then
2156   ac_compiler_gnu=yes
2157 else
2158   echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2160
2161 ac_compiler_gnu=no
2162 fi
2163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2164 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2165
2166 fi
2167 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2168 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2169 GXX=`test $ac_compiler_gnu = yes && echo yes`
2170 ac_test_CXXFLAGS=${CXXFLAGS+set}
2171 ac_save_CXXFLAGS=$CXXFLAGS
2172 CXXFLAGS="-g"
2173 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2174 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2175 if test "${ac_cv_prog_cxx_g+set}" = set; then
2176   echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178   cat >conftest.$ac_ext <<_ACEOF
2179 /* confdefs.h.  */
2180 _ACEOF
2181 cat confdefs.h >>conftest.$ac_ext
2182 cat >>conftest.$ac_ext <<_ACEOF
2183 /* end confdefs.h.  */
2184
2185 int
2186 main ()
2187 {
2188
2189   ;
2190   return 0;
2191 }
2192 _ACEOF
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195   (eval $ac_compile) 2>conftest.er1
2196   ac_status=$?
2197   grep -v '^ *+' conftest.er1 >conftest.err
2198   rm -f conftest.er1
2199   cat conftest.err >&5
2200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); } &&
2202          { ac_try='test -z "$ac_cxx_werror_flag"
2203                          || test ! -s conftest.err'
2204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205   (eval $ac_try) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }; } &&
2209          { ac_try='test -s conftest.$ac_objext'
2210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211   (eval $ac_try) 2>&5
2212   ac_status=$?
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); }; }; then
2215   ac_cv_prog_cxx_g=yes
2216 else
2217   echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220 ac_cv_prog_cxx_g=no
2221 fi
2222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2223 fi
2224 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2225 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2226 if test "$ac_test_CXXFLAGS" = set; then
2227   CXXFLAGS=$ac_save_CXXFLAGS
2228 elif test $ac_cv_prog_cxx_g = yes; then
2229   if test "$GXX" = yes; then
2230     CXXFLAGS="-g -O2"
2231   else
2232     CXXFLAGS="-g"
2233   fi
2234 else
2235   if test "$GXX" = yes; then
2236     CXXFLAGS="-O2"
2237   else
2238     CXXFLAGS=
2239   fi
2240 fi
2241 for ac_declaration in \
2242    '' \
2243    'extern "C" void std::exit (int) throw (); using std::exit;' \
2244    'extern "C" void std::exit (int); using std::exit;' \
2245    'extern "C" void exit (int) throw ();' \
2246    'extern "C" void exit (int);' \
2247    'void exit (int);'
2248 do
2249   cat >conftest.$ac_ext <<_ACEOF
2250 /* confdefs.h.  */
2251 _ACEOF
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h.  */
2255 $ac_declaration
2256 #include <stdlib.h>
2257 int
2258 main ()
2259 {
2260 exit (42);
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267   (eval $ac_compile) 2>conftest.er1
2268   ac_status=$?
2269   grep -v '^ *+' conftest.er1 >conftest.err
2270   rm -f conftest.er1
2271   cat conftest.err >&5
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); } &&
2274          { ac_try='test -z "$ac_cxx_werror_flag"
2275                          || test ! -s conftest.err'
2276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277   (eval $ac_try) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; } &&
2281          { ac_try='test -s conftest.$ac_objext'
2282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283   (eval $ac_try) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); }; }; then
2287   :
2288 else
2289   echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2291
2292 continue
2293 fi
2294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2295   cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301 $ac_declaration
2302 int
2303 main ()
2304 {
2305 exit (42);
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312   (eval $ac_compile) 2>conftest.er1
2313   ac_status=$?
2314   grep -v '^ *+' conftest.er1 >conftest.err
2315   rm -f conftest.er1
2316   cat conftest.err >&5
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); } &&
2319          { ac_try='test -z "$ac_cxx_werror_flag"
2320                          || test ! -s conftest.err'
2321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322   (eval $ac_try) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; } &&
2326          { ac_try='test -s conftest.$ac_objext'
2327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328   (eval $ac_try) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; }; then
2332   break
2333 else
2334   echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2336
2337 fi
2338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2339 done
2340 rm -f conftest*
2341 if test -n "$ac_declaration"; then
2342   echo '#ifdef __cplusplus' >>confdefs.h
2343   echo $ac_declaration      >>confdefs.h
2344   echo '#endif'             >>confdefs.h
2345 fi
2346
2347 ac_ext=c
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352 DEPDIR="${am__leading_dot}deps"
2353
2354           ac_config_commands="$ac_config_commands depfiles"
2355
2356
2357 am_make=${MAKE-make}
2358 cat > confinc << 'END'
2359 am__doit:
2360         @echo done
2361 .PHONY: am__doit
2362 END
2363 # If we don't find an include directive, just comment out the code.
2364 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2365 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2366 am__include="#"
2367 am__quote=
2368 _am_result=none
2369 # First try GNU make style include.
2370 echo "include confinc" > confmf
2371 # We grep out `Entering directory' and `Leaving directory'
2372 # messages which can occur if `w' ends up in MAKEFLAGS.
2373 # In particular we don't look at `^make:' because GNU make might
2374 # be invoked under some other name (usually "gmake"), in which
2375 # case it prints its new name instead of `make'.
2376 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2377    am__include=include
2378    am__quote=
2379    _am_result=GNU
2380 fi
2381 # Now try BSD make style include.
2382 if test "$am__include" = "#"; then
2383    echo '.include "confinc"' > confmf
2384    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2385       am__include=.include
2386       am__quote="\""
2387       _am_result=BSD
2388    fi
2389 fi
2390
2391
2392 echo "$as_me:$LINENO: result: $_am_result" >&5
2393 echo "${ECHO_T}$_am_result" >&6
2394 rm -f confinc confmf
2395
2396 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2397 if test "${enable_dependency_tracking+set}" = set; then
2398   enableval="$enable_dependency_tracking"
2399
2400 fi;
2401 if test "x$enable_dependency_tracking" != xno; then
2402   am_depcomp="$ac_aux_dir/depcomp"
2403   AMDEPBACKSLASH='\'
2404 fi
2405
2406
2407 if test "x$enable_dependency_tracking" != xno; then
2408   AMDEP_TRUE=
2409   AMDEP_FALSE='#'
2410 else
2411   AMDEP_TRUE='#'
2412   AMDEP_FALSE=
2413 fi
2414
2415
2416
2417
2418 depcc="$CXX"  am_compiler_list=
2419
2420 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2421 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2422 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2423   echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2426   # We make a subdir and do the tests there.  Otherwise we can end up
2427   # making bogus files that we don't know about and never remove.  For
2428   # instance it was reported that on HP-UX the gcc test will end up
2429   # making a dummy file named `D' -- because `-MD' means `put the output
2430   # in D'.
2431   mkdir conftest.dir
2432   # Copy depcomp to subdir because otherwise we won't find it if we're
2433   # using a relative directory.
2434   cp "$am_depcomp" conftest.dir
2435   cd conftest.dir
2436   # We will build objects and dependencies in a subdirectory because
2437   # it helps to detect inapplicable dependency modes.  For instance
2438   # both Tru64's cc and ICC support -MD to output dependencies as a
2439   # side effect of compilation, but ICC will put the dependencies in
2440   # the current directory while Tru64 will put them in the object
2441   # directory.
2442   mkdir sub
2443
2444   am_cv_CXX_dependencies_compiler_type=none
2445   if test "$am_compiler_list" = ""; then
2446      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2447   fi
2448   for depmode in $am_compiler_list; do
2449     # Setup a source with many dependencies, because some compilers
2450     # like to wrap large dependency lists on column 80 (with \), and
2451     # we should not choose a depcomp mode which is confused by this.
2452     #
2453     # We need to recreate these files for each test, as the compiler may
2454     # overwrite some of them when testing with obscure command lines.
2455     # This happens at least with the AIX C compiler.
2456     : > sub/conftest.c
2457     for i in 1 2 3 4 5 6; do
2458       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2459       : > sub/conftst$i.h
2460     done
2461     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2462
2463     case $depmode in
2464     nosideeffect)
2465       # after this tag, mechanisms are not by side-effect, so they'll
2466       # only be used when explicitly requested
2467       if test "x$enable_dependency_tracking" = xyes; then
2468         continue
2469       else
2470         break
2471       fi
2472       ;;
2473     none) break ;;
2474     esac
2475     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2476     # mode.  It turns out that the SunPro C++ compiler does not properly
2477     # handle `-M -o', and we need to detect this.
2478     if depmode=$depmode \
2479        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2480        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2481        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2482          >/dev/null 2>conftest.err &&
2483        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2484        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2485        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2486       # icc doesn't choke on unknown options, it will just issue warnings
2487       # (even with -Werror).  So we grep stderr for any message
2488       # that says an option was ignored.
2489       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2490         am_cv_CXX_dependencies_compiler_type=$depmode
2491         break
2492       fi
2493     fi
2494   done
2495
2496   cd ..
2497   rm -rf conftest.dir
2498 else
2499   am_cv_CXX_dependencies_compiler_type=none
2500 fi
2501
2502 fi
2503 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2504 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2505 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2506
2507
2508
2509 if
2510   test "x$enable_dependency_tracking" != xno \
2511   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2512   am__fastdepCXX_TRUE=
2513   am__fastdepCXX_FALSE='#'
2514 else
2515   am__fastdepCXX_TRUE='#'
2516   am__fastdepCXX_FALSE=
2517 fi
2518
2519
2520 ac_ext=c
2521 ac_cpp='$CPP $CPPFLAGS'
2522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2525 if test -n "$ac_tool_prefix"; then
2526   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2527 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2528 echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2530 if test "${ac_cv_prog_CC+set}" = set; then
2531   echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533   if test -n "$CC"; then
2534   ac_cv_prog_CC="$CC" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539   IFS=$as_save_IFS
2540   test -z "$as_dir" && as_dir=.
2541   for ac_exec_ext in '' $ac_executable_extensions; do
2542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545     break 2
2546   fi
2547 done
2548 done
2549
2550 fi
2551 fi
2552 CC=$ac_cv_prog_CC
2553 if test -n "$CC"; then
2554   echo "$as_me:$LINENO: result: $CC" >&5
2555 echo "${ECHO_T}$CC" >&6
2556 else
2557   echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6
2559 fi
2560
2561 fi
2562 if test -z "$ac_cv_prog_CC"; then
2563   ac_ct_CC=$CC
2564   # Extract the first word of "gcc", so it can be a program name with args.
2565 set dummy gcc; ac_word=$2
2566 echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2569   echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571   if test -n "$ac_ct_CC"; then
2572   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577   IFS=$as_save_IFS
2578   test -z "$as_dir" && as_dir=.
2579   for ac_exec_ext in '' $ac_executable_extensions; do
2580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2581     ac_cv_prog_ac_ct_CC="gcc"
2582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583     break 2
2584   fi
2585 done
2586 done
2587
2588 fi
2589 fi
2590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2591 if test -n "$ac_ct_CC"; then
2592   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2593 echo "${ECHO_T}$ac_ct_CC" >&6
2594 else
2595   echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6
2597 fi
2598
2599   CC=$ac_ct_CC
2600 else
2601   CC="$ac_cv_prog_CC"
2602 fi
2603
2604 if test -z "$CC"; then
2605   if test -n "$ac_tool_prefix"; then
2606   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2607 set dummy ${ac_tool_prefix}cc; ac_word=$2
2608 echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2610 if test "${ac_cv_prog_CC+set}" = set; then
2611   echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613   if test -n "$CC"; then
2614   ac_cv_prog_CC="$CC" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619   IFS=$as_save_IFS
2620   test -z "$as_dir" && as_dir=.
2621   for ac_exec_ext in '' $ac_executable_extensions; do
2622   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2623     ac_cv_prog_CC="${ac_tool_prefix}cc"
2624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625     break 2
2626   fi
2627 done
2628 done
2629
2630 fi
2631 fi
2632 CC=$ac_cv_prog_CC
2633 if test -n "$CC"; then
2634   echo "$as_me:$LINENO: result: $CC" >&5
2635 echo "${ECHO_T}$CC" >&6
2636 else
2637   echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6
2639 fi
2640
2641 fi
2642 if test -z "$ac_cv_prog_CC"; then
2643   ac_ct_CC=$CC
2644   # Extract the first word of "cc", so it can be a program name with args.
2645 set dummy cc; ac_word=$2
2646 echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2649   echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651   if test -n "$ac_ct_CC"; then
2652   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657   IFS=$as_save_IFS
2658   test -z "$as_dir" && as_dir=.
2659   for ac_exec_ext in '' $ac_executable_extensions; do
2660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661     ac_cv_prog_ac_ct_CC="cc"
2662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663     break 2
2664   fi
2665 done
2666 done
2667
2668 fi
2669 fi
2670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2671 if test -n "$ac_ct_CC"; then
2672   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2673 echo "${ECHO_T}$ac_ct_CC" >&6
2674 else
2675   echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6
2677 fi
2678
2679   CC=$ac_ct_CC
2680 else
2681   CC="$ac_cv_prog_CC"
2682 fi
2683
2684 fi
2685 if test -z "$CC"; then
2686   # Extract the first word of "cc", so it can be a program name with args.
2687 set dummy cc; ac_word=$2
2688 echo "$as_me:$LINENO: checking for $ac_word" >&5
2689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2690 if test "${ac_cv_prog_CC+set}" = set; then
2691   echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693   if test -n "$CC"; then
2694   ac_cv_prog_CC="$CC" # Let the user override the test.
2695 else
2696   ac_prog_rejected=no
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700   IFS=$as_save_IFS
2701   test -z "$as_dir" && as_dir=.
2702   for ac_exec_ext in '' $ac_executable_extensions; do
2703   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2705        ac_prog_rejected=yes
2706        continue
2707      fi
2708     ac_cv_prog_CC="cc"
2709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710     break 2
2711   fi
2712 done
2713 done
2714
2715 if test $ac_prog_rejected = yes; then
2716   # We found a bogon in the path, so make sure we never use it.
2717   set dummy $ac_cv_prog_CC
2718   shift
2719   if test $# != 0; then
2720     # We chose a different compiler from the bogus one.
2721     # However, it has the same basename, so the bogon will be chosen
2722     # first if we set CC to just the basename; use the full file name.
2723     shift
2724     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2725   fi
2726 fi
2727 fi
2728 fi
2729 CC=$ac_cv_prog_CC
2730 if test -n "$CC"; then
2731   echo "$as_me:$LINENO: result: $CC" >&5
2732 echo "${ECHO_T}$CC" >&6
2733 else
2734   echo "$as_me:$LINENO: result: no" >&5
2735 echo "${ECHO_T}no" >&6
2736 fi
2737
2738 fi
2739 if test -z "$CC"; then
2740   if test -n "$ac_tool_prefix"; then
2741   for ac_prog in cl
2742   do
2743     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2745 echo "$as_me:$LINENO: checking for $ac_word" >&5
2746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2747 if test "${ac_cv_prog_CC+set}" = set; then
2748   echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750   if test -n "$CC"; then
2751   ac_cv_prog_CC="$CC" # Let the user override the test.
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2755 do
2756   IFS=$as_save_IFS
2757   test -z "$as_dir" && as_dir=.
2758   for ac_exec_ext in '' $ac_executable_extensions; do
2759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2760     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762     break 2
2763   fi
2764 done
2765 done
2766
2767 fi
2768 fi
2769 CC=$ac_cv_prog_CC
2770 if test -n "$CC"; then
2771   echo "$as_me:$LINENO: result: $CC" >&5
2772 echo "${ECHO_T}$CC" >&6
2773 else
2774   echo "$as_me:$LINENO: result: no" >&5
2775 echo "${ECHO_T}no" >&6
2776 fi
2777
2778     test -n "$CC" && break
2779   done
2780 fi
2781 if test -z "$CC"; then
2782   ac_ct_CC=$CC
2783   for ac_prog in cl
2784 do
2785   # Extract the first word of "$ac_prog", so it can be a program name with args.
2786 set dummy $ac_prog; ac_word=$2
2787 echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2790   echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792   if test -n "$ac_ct_CC"; then
2793   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798   IFS=$as_save_IFS
2799   test -z "$as_dir" && as_dir=.
2800   for ac_exec_ext in '' $ac_executable_extensions; do
2801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802     ac_cv_prog_ac_ct_CC="$ac_prog"
2803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804     break 2
2805   fi
2806 done
2807 done
2808
2809 fi
2810 fi
2811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2812 if test -n "$ac_ct_CC"; then
2813   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2814 echo "${ECHO_T}$ac_ct_CC" >&6
2815 else
2816   echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6
2818 fi
2819
2820   test -n "$ac_ct_CC" && break
2821 done
2822
2823   CC=$ac_ct_CC
2824 fi
2825
2826 fi
2827
2828
2829 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2830 See \`config.log' for more details." >&5
2831 echo "$as_me: error: no acceptable C compiler found in \$PATH
2832 See \`config.log' for more details." >&2;}
2833    { (exit 1); exit 1; }; }
2834
2835 # Provide some information about the compiler.
2836 echo "$as_me:$LINENO:" \
2837      "checking for C compiler version" >&5
2838 ac_compiler=`set X $ac_compile; echo $2`
2839 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2840   (eval $ac_compiler --version </dev/null >&5) 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); }
2844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2845   (eval $ac_compiler -v </dev/null >&5) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }
2849 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2850   (eval $ac_compiler -V </dev/null >&5) 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); }
2854
2855 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2856 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2857 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860   cat >conftest.$ac_ext <<_ACEOF
2861 /* confdefs.h.  */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h.  */
2866
2867 int
2868 main ()
2869 {
2870 #ifndef __GNUC__
2871        choke me
2872 #endif
2873
2874   ;
2875   return 0;
2876 }
2877 _ACEOF
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880   (eval $ac_compile) 2>conftest.er1
2881   ac_status=$?
2882   grep -v '^ *+' conftest.er1 >conftest.err
2883   rm -f conftest.er1
2884   cat conftest.err >&5
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); } &&
2887          { ac_try='test -z "$ac_c_werror_flag"
2888                          || test ! -s conftest.err'
2889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890   (eval $ac_try) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; } &&
2894          { ac_try='test -s conftest.$ac_objext'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; }; then
2900   ac_compiler_gnu=yes
2901 else
2902   echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905 ac_compiler_gnu=no
2906 fi
2907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2909
2910 fi
2911 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2912 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2913 GCC=`test $ac_compiler_gnu = yes && echo yes`
2914 ac_test_CFLAGS=${CFLAGS+set}
2915 ac_save_CFLAGS=$CFLAGS
2916 CFLAGS="-g"
2917 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2918 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2919 if test "${ac_cv_prog_cc_g+set}" = set; then
2920   echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922   cat >conftest.$ac_ext <<_ACEOF
2923 /* confdefs.h.  */
2924 _ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h.  */
2928
2929 int
2930 main ()
2931 {
2932
2933   ;
2934   return 0;
2935 }
2936 _ACEOF
2937 rm -f conftest.$ac_objext
2938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2939   (eval $ac_compile) 2>conftest.er1
2940   ac_status=$?
2941   grep -v '^ *+' conftest.er1 >conftest.err
2942   rm -f conftest.er1
2943   cat conftest.err >&5
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); } &&
2946          { ac_try='test -z "$ac_c_werror_flag"
2947                          || test ! -s conftest.err'
2948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949   (eval $ac_try) 2>&5
2950   ac_status=$?
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); }; } &&
2953          { ac_try='test -s conftest.$ac_objext'
2954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955   (eval $ac_try) 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }; }; then
2959   ac_cv_prog_cc_g=yes
2960 else
2961   echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2963
2964 ac_cv_prog_cc_g=no
2965 fi
2966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2967 fi
2968 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2969 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2970 if test "$ac_test_CFLAGS" = set; then
2971   CFLAGS=$ac_save_CFLAGS
2972 elif test $ac_cv_prog_cc_g = yes; then
2973   if test "$GCC" = yes; then
2974     CFLAGS="-g -O2"
2975   else
2976     CFLAGS="-g"
2977   fi
2978 else
2979   if test "$GCC" = yes; then
2980     CFLAGS="-O2"
2981   else
2982     CFLAGS=
2983   fi
2984 fi
2985 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2986 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2987 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2988   echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990   ac_cv_prog_cc_stdc=no
2991 ac_save_CC=$CC
2992 cat >conftest.$ac_ext <<_ACEOF
2993 /* confdefs.h.  */
2994 _ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h.  */
2998 #include <stdarg.h>
2999 #include <stdio.h>
3000 #include <sys/types.h>
3001 #include <sys/stat.h>
3002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3003 struct buf { int x; };
3004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3005 static char *e (p, i)
3006      char **p;
3007      int i;
3008 {
3009   return p[i];
3010 }
3011 static char *f (char * (*g) (char **, int), char **p, ...)
3012 {
3013   char *s;
3014   va_list v;
3015   va_start (v,p);
3016   s = g (p, va_arg (v,int));
3017   va_end (v);
3018   return s;
3019 }
3020
3021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3022    function prototypes and stuff, but not '\xHH' hex character constants.
3023    These don't provoke an error unfortunately, instead are silently treated
3024    as 'x'.  The following induces an error, until -std1 is added to get
3025    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3026    array size at least.  It's necessary to write '\x00'==0 to get something
3027    that's true only with -std1.  */
3028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3029
3030 int test (int i, double x);
3031 struct s1 {int (*f) (int a);};
3032 struct s2 {int (*f) (double a);};
3033 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3034 int argc;
3035 char **argv;
3036 int
3037 main ()
3038 {
3039 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 # Don't try gcc -ansi; that turns off useful extensions and
3045 # breaks some systems' header files.
3046 # AIX                   -qlanglvl=ansi
3047 # Ultrix and OSF/1      -std1
3048 # HP-UX 10.20 and later -Ae
3049 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3050 # SVR4                  -Xc -D__EXTENSIONS__
3051 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3052 do
3053   CC="$ac_save_CC $ac_arg"
3054   rm -f conftest.$ac_objext
3055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3056   (eval $ac_compile) 2>conftest.er1
3057   ac_status=$?
3058   grep -v '^ *+' conftest.er1 >conftest.err
3059   rm -f conftest.er1
3060   cat conftest.err >&5
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); } &&
3063          { ac_try='test -z "$ac_c_werror_flag"
3064                          || test ! -s conftest.err'
3065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066   (eval $ac_try) 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); }; } &&
3070          { ac_try='test -s conftest.$ac_objext'
3071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072   (eval $ac_try) 2>&5
3073   ac_status=$?
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); }; }; then
3076   ac_cv_prog_cc_stdc=$ac_arg
3077 break
3078 else
3079   echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3081
3082 fi
3083 rm -f conftest.err conftest.$ac_objext
3084 done
3085 rm -f conftest.$ac_ext conftest.$ac_objext
3086 CC=$ac_save_CC
3087
3088 fi
3089
3090 case "x$ac_cv_prog_cc_stdc" in
3091   x|xno)
3092     echo "$as_me:$LINENO: result: none needed" >&5
3093 echo "${ECHO_T}none needed" >&6 ;;
3094   *)
3095     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3096 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3097     CC="$CC $ac_cv_prog_cc_stdc" ;;
3098 esac
3099
3100 # Some people use a C++ compiler to compile C.  Since we use `exit',
3101 # in C++ we need to declare it.  In case someone uses the same compiler
3102 # for both compiling C and C++ we need to have the C++ compiler decide
3103 # the declaration of exit, since it's the most demanding environment.
3104 cat >conftest.$ac_ext <<_ACEOF
3105 #ifndef __cplusplus
3106   choke me
3107 #endif
3108 _ACEOF
3109 rm -f conftest.$ac_objext
3110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111   (eval $ac_compile) 2>conftest.er1
3112   ac_status=$?
3113   grep -v '^ *+' conftest.er1 >conftest.err
3114   rm -f conftest.er1
3115   cat conftest.err >&5
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); } &&
3118          { ac_try='test -z "$ac_c_werror_flag"
3119                          || test ! -s conftest.err'
3120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121   (eval $ac_try) 2>&5
3122   ac_status=$?
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); }; } &&
3125          { ac_try='test -s conftest.$ac_objext'
3126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127   (eval $ac_try) 2>&5
3128   ac_status=$?
3129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130   (exit $ac_status); }; }; then
3131   for ac_declaration in \
3132    '' \
3133    'extern "C" void std::exit (int) throw (); using std::exit;' \
3134    'extern "C" void std::exit (int); using std::exit;' \
3135    'extern "C" void exit (int) throw ();' \
3136    'extern "C" void exit (int);' \
3137    'void exit (int);'
3138 do
3139   cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h.  */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h.  */
3145 $ac_declaration
3146 #include <stdlib.h>
3147 int
3148 main ()
3149 {
3150 exit (42);
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157   (eval $ac_compile) 2>conftest.er1
3158   ac_status=$?
3159   grep -v '^ *+' conftest.er1 >conftest.err
3160   rm -f conftest.er1
3161   cat conftest.err >&5
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); } &&
3164          { ac_try='test -z "$ac_c_werror_flag"
3165                          || test ! -s conftest.err'
3166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167   (eval $ac_try) 2>&5
3168   ac_status=$?
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); }; } &&
3171          { ac_try='test -s conftest.$ac_objext'
3172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173   (eval $ac_try) 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); }; }; then
3177   :
3178 else
3179   echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3181
3182 continue
3183 fi
3184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3185   cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h.  */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h.  */
3191 $ac_declaration
3192 int
3193 main ()
3194 {
3195 exit (42);
3196   ;
3197   return 0;
3198 }
3199 _ACEOF
3200 rm -f conftest.$ac_objext
3201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3202   (eval $ac_compile) 2>conftest.er1
3203   ac_status=$?
3204   grep -v '^ *+' conftest.er1 >conftest.err
3205   rm -f conftest.er1
3206   cat conftest.err >&5
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); } &&
3209          { ac_try='test -z "$ac_c_werror_flag"
3210                          || test ! -s conftest.err'
3211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212   (eval $ac_try) 2>&5
3213   ac_status=$?
3214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215   (exit $ac_status); }; } &&
3216          { ac_try='test -s conftest.$ac_objext'
3217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218   (eval $ac_try) 2>&5
3219   ac_status=$?
3220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221   (exit $ac_status); }; }; then
3222   break
3223 else
3224   echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3226
3227 fi
3228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3229 done
3230 rm -f conftest*
3231 if test -n "$ac_declaration"; then
3232   echo '#ifdef __cplusplus' >>confdefs.h
3233   echo $ac_declaration      >>confdefs.h
3234   echo '#endif'             >>confdefs.h
3235 fi
3236
3237 else
3238   echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241 fi
3242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_ext=c
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248
3249 depcc="$CC"   am_compiler_list=
3250
3251 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3252 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3253 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3254   echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3257   # We make a subdir and do the tests there.  Otherwise we can end up
3258   # making bogus files that we don't know about and never remove.  For
3259   # instance it was reported that on HP-UX the gcc test will end up
3260   # making a dummy file named `D' -- because `-MD' means `put the output
3261   # in D'.
3262   mkdir conftest.dir
3263   # Copy depcomp to subdir because otherwise we won't find it if we're
3264   # using a relative directory.
3265   cp "$am_depcomp" conftest.dir
3266   cd conftest.dir
3267   # We will build objects and dependencies in a subdirectory because
3268   # it helps to detect inapplicable dependency modes.  For instance
3269   # both Tru64's cc and ICC support -MD to output dependencies as a
3270   # side effect of compilation, but ICC will put the dependencies in
3271   # the current directory while Tru64 will put them in the object
3272   # directory.
3273   mkdir sub
3274
3275   am_cv_CC_dependencies_compiler_type=none
3276   if test "$am_compiler_list" = ""; then
3277      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3278   fi
3279   for depmode in $am_compiler_list; do
3280     # Setup a source with many dependencies, because some compilers
3281     # like to wrap large dependency lists on column 80 (with \), and
3282     # we should not choose a depcomp mode which is confused by this.
3283     #
3284     # We need to recreate these files for each test, as the compiler may
3285     # overwrite some of them when testing with obscure command lines.
3286     # This happens at least with the AIX C compiler.
3287     : > sub/conftest.c
3288     for i in 1 2 3 4 5 6; do
3289       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3290       : > sub/conftst$i.h
3291     done
3292     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3293
3294     case $depmode in
3295     nosideeffect)
3296       # after this tag, mechanisms are not by side-effect, so they'll
3297       # only be used when explicitly requested
3298       if test "x$enable_dependency_tracking" = xyes; then
3299         continue
3300       else
3301         break
3302       fi
3303       ;;
3304     none) break ;;
3305     esac
3306     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3307     # mode.  It turns out that the SunPro C++ compiler does not properly
3308     # handle `-M -o', and we need to detect this.
3309     if depmode=$depmode \
3310        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3311        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3312        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3313          >/dev/null 2>conftest.err &&
3314        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3315        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3316        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3317       # icc doesn't choke on unknown options, it will just issue warnings
3318       # (even with -Werror).  So we grep stderr for any message
3319       # that says an option was ignored.
3320       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3321         am_cv_CC_dependencies_compiler_type=$depmode
3322         break
3323       fi
3324     fi
3325   done
3326
3327   cd ..
3328   rm -rf conftest.dir
3329 else
3330   am_cv_CC_dependencies_compiler_type=none
3331 fi
3332
3333 fi
3334 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3335 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3336 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3337
3338
3339
3340 if
3341   test "x$enable_dependency_tracking" != xno \
3342   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3343   am__fastdepCC_TRUE=
3344   am__fastdepCC_FALSE='#'
3345 else
3346   am__fastdepCC_TRUE='#'
3347   am__fastdepCC_FALSE=
3348 fi
3349
3350
3351 # Find a good install program.  We prefer a C program (faster),
3352 # so one script is as good as another.  But avoid the broken or
3353 # incompatible versions:
3354 # SysV /etc/install, /usr/sbin/install
3355 # SunOS /usr/etc/install
3356 # IRIX /sbin/install
3357 # AIX /bin/install
3358 # AmigaOS /C/install, which installs bootblocks on floppy discs
3359 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3360 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3361 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3362 # OS/2's system install, which has a completely different semantic
3363 # ./install, which can be erroneously created by make from ./install.sh.
3364 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3365 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3366 if test -z "$INSTALL"; then
3367 if test "${ac_cv_path_install+set}" = set; then
3368   echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373   IFS=$as_save_IFS
3374   test -z "$as_dir" && as_dir=.
3375   # Account for people who put trailing slashes in PATH elements.
3376 case $as_dir/ in
3377   ./ | .// | /cC/* | \
3378   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3379   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3380   /usr/ucb/* ) ;;
3381   *)
3382     # OSF1 and SCO ODT 3.0 have their own names for install.
3383     # Don't use installbsd from OSF since it installs stuff as root
3384     # by default.
3385     for ac_prog in ginstall scoinst install; do
3386       for ac_exec_ext in '' $ac_executable_extensions; do
3387         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3388           if test $ac_prog = install &&
3389             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3390             # AIX install.  It has an incompatible calling convention.
3391             :
3392           elif test $ac_prog = install &&
3393             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3394             # program-specific install script used by HP pwplus--don't use.
3395             :
3396           else
3397             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3398             break 3
3399           fi
3400         fi
3401       done
3402     done
3403     ;;
3404 esac
3405 done
3406
3407
3408 fi
3409   if test "${ac_cv_path_install+set}" = set; then
3410     INSTALL=$ac_cv_path_install
3411   else
3412     # As a last resort, use the slow shell script.  We don't cache a
3413     # path for INSTALL within a source directory, because that will
3414     # break other packages using the cache if that directory is
3415     # removed, or if the path is relative.
3416     INSTALL=$ac_install_sh
3417   fi
3418 fi
3419 echo "$as_me:$LINENO: result: $INSTALL" >&5
3420 echo "${ECHO_T}$INSTALL" >&6
3421
3422 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3423 # It thinks the first close brace ends the variable substitution.
3424 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3425
3426 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3427
3428 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3429
3430 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3431 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3432 LN_S=$as_ln_s
3433 if test "$LN_S" = "ln -s"; then
3434   echo "$as_me:$LINENO: result: yes" >&5
3435 echo "${ECHO_T}yes" >&6
3436 else
3437   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3438 echo "${ECHO_T}no, using $LN_S" >&6
3439 fi
3440
3441 if test -n "$ac_tool_prefix"; then
3442   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3443 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3444 echo "$as_me:$LINENO: checking for $ac_word" >&5
3445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446 if test "${ac_cv_prog_RANLIB+set}" = set; then
3447   echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449   if test -n "$RANLIB"; then
3450   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3451 else
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3454 do
3455   IFS=$as_save_IFS
3456   test -z "$as_dir" && as_dir=.
3457   for ac_exec_ext in '' $ac_executable_extensions; do
3458   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461     break 2
3462   fi
3463 done
3464 done
3465
3466 fi
3467 fi
3468 RANLIB=$ac_cv_prog_RANLIB
3469 if test -n "$RANLIB"; then
3470   echo "$as_me:$LINENO: result: $RANLIB" >&5
3471 echo "${ECHO_T}$RANLIB" >&6
3472 else
3473   echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6
3475 fi
3476
3477 fi
3478 if test -z "$ac_cv_prog_RANLIB"; then
3479   ac_ct_RANLIB=$RANLIB
3480   # Extract the first word of "ranlib", so it can be a program name with args.
3481 set dummy ranlib; ac_word=$2
3482 echo "$as_me:$LINENO: checking for $ac_word" >&5
3483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3484 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3485   echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487   if test -n "$ac_ct_RANLIB"; then
3488   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3489 else
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 for as_dir in $PATH
3492 do
3493   IFS=$as_save_IFS
3494   test -z "$as_dir" && as_dir=.
3495   for ac_exec_ext in '' $ac_executable_extensions; do
3496   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3497     ac_cv_prog_ac_ct_RANLIB="ranlib"
3498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3499     break 2
3500   fi
3501 done
3502 done
3503
3504   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3505 fi
3506 fi
3507 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3508 if test -n "$ac_ct_RANLIB"; then
3509   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3510 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3511 else
3512   echo "$as_me:$LINENO: result: no" >&5
3513 echo "${ECHO_T}no" >&6
3514 fi
3515
3516   RANLIB=$ac_ct_RANLIB
3517 else
3518   RANLIB="$ac_cv_prog_RANLIB"
3519 fi
3520
3521 if test "x$CC" != xcc; then
3522   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3523 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3524 else
3525   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3526 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3527 fi
3528 set dummy $CC; ac_cc=`echo $2 |
3529                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3530 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3531   echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533   cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h.  */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h.  */
3539
3540 int
3541 main ()
3542 {
3543
3544   ;
3545   return 0;
3546 }
3547 _ACEOF
3548 # Make sure it works both with $CC and with simple cc.
3549 # We do the test twice because some compilers refuse to overwrite an
3550 # existing .o file with -o, though they will create one.
3551 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3552 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553   (eval $ac_try) 2>&5
3554   ac_status=$?
3555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556   (exit $ac_status); } &&
3557    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558   (eval $ac_try) 2>&5
3559   ac_status=$?
3560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561   (exit $ac_status); };
3562 then
3563   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3564   if test "x$CC" != xcc; then
3565     # Test first that cc exists at all.
3566     if { ac_try='cc -c conftest.$ac_ext >&5'
3567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568   (eval $ac_try) 2>&5
3569   ac_status=$?
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); }; }; then
3572       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3573       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574   (eval $ac_try) 2>&5
3575   ac_status=$?
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); } &&
3578          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579   (eval $ac_try) 2>&5
3580   ac_status=$?
3581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); };
3583       then
3584         # cc works too.
3585         :
3586       else
3587         # cc exists but doesn't like -o.
3588         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3589       fi
3590     fi
3591   fi
3592 else
3593   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3594 fi
3595 rm -f conftest*
3596
3597 fi
3598 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3599   echo "$as_me:$LINENO: result: yes" >&5
3600 echo "${ECHO_T}yes" >&6
3601 else
3602   echo "$as_me:$LINENO: result: no" >&5
3603 echo "${ECHO_T}no" >&6
3604
3605 cat >>confdefs.h <<\_ACEOF
3606 #define NO_MINUS_C_MINUS_O 1
3607 _ACEOF
3608
3609 fi
3610
3611 # FIXME: we rely on the cache variable name because
3612 # there is no other way.
3613 set dummy $CC
3614 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3615 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3616    # Losing compiler, so override with the script.
3617    # FIXME: It is wrong to rewrite CC.
3618    # But if we don't then we get into trouble of one sort or another.
3619    # A longer-term fix would be to have automake use am__CC in this case,
3620    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3621    CC="$am_aux_dir/compile $CC"
3622 fi
3623
3624
3625
3626
3627
3628         warn_flags="-Werror -W"
3629         echo "$as_me:$LINENO: checking whether the C-compiler accepts ${warn_flags}" >&5
3630 echo $ECHO_N "checking whether the C-compiler accepts ${warn_flags}... $ECHO_C" >&6
3631         ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636
3637         old_CFLAGS="${CFLAGS}"
3638         CFLAGS="$warn_flags"
3639         cat >conftest.$ac_ext <<_ACEOF
3640 /* confdefs.h.  */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h.  */
3645 inline static void f(){}
3646 int
3647 main ()
3648 {
3649
3650   ;
3651   return 0;
3652 }
3653 _ACEOF
3654 rm -f conftest.$ac_objext
3655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3656   (eval $ac_compile) 2>conftest.er1
3657   ac_status=$?
3658   grep -v '^ *+' conftest.er1 >conftest.err
3659   rm -f conftest.er1
3660   cat conftest.err >&5
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); } &&
3663          { ac_try='test -z "$ac_c_werror_flag"
3664                          || test ! -s conftest.err'
3665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666   (eval $ac_try) 2>&5
3667   ac_status=$?
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); }; } &&
3670          { ac_try='test -s conftest.$ac_objext'
3671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672   (eval $ac_try) 2>&5
3673   ac_status=$?
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); }; }; then
3676   ensc_sys_compilerwarnflags_C=${warn_flags}
3677 else
3678   echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3680
3681 ensc_sys_compilerwarnflags_C=
3682 fi
3683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3684         ac_ext=c
3685 ac_cpp='$CPP $CPPFLAGS'
3686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689
3690         CFLAGS="$old_CFLAGS"
3691
3692         if test x"${ensc_sys_compilerwarnflags_C}" = x; then
3693                 echo "$as_me:$LINENO: result: no" >&5
3694 echo "${ECHO_T}no" >&6
3695         else
3696                 echo "$as_me:$LINENO: result: yes" >&5
3697 echo "${ECHO_T}yes" >&6
3698         fi
3699
3700
3701
3702
3703
3704 echo 'void f(){}' > conftest.c
3705   for i in -std=c99 -Wall -pedantic -W -Wno-unused-parameter
3706   do
3707     echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
3708 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
3709     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
3710     then
3711       CFLAGS="${CFLAGS} $i"
3712       echo "$as_me:$LINENO: result: yes" >&5
3713 echo "${ECHO_T}yes" >&6
3714     else
3715       echo "$as_me:$LINENO: result: no" >&5
3716 echo "${ECHO_T}no" >&6
3717     fi
3718   done
3719   rm -f conftest.c conftest.o
3720
3721
3722
3723
3724         warn_flags="-Werror -W"
3725         echo "$as_me:$LINENO: checking whether the C++-compiler accepts ${warn_flags}" >&5
3726 echo $ECHO_N "checking whether the C++-compiler accepts ${warn_flags}... $ECHO_C" >&6
3727         ac_ext=cc
3728 ac_cpp='$CXXCPP $CPPFLAGS'
3729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3732
3733         old_CFLAGS="${CXXFLAGS}"
3734         CXXFLAGS="$warn_flags"
3735         cat >conftest.$ac_ext <<_ACEOF
3736 /* confdefs.h.  */
3737 _ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h.  */
3741 inline static void f(){}
3742 int
3743 main ()
3744 {
3745
3746   ;
3747   return 0;
3748 }
3749 _ACEOF
3750 rm -f conftest.$ac_objext
3751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3752   (eval $ac_compile) 2>conftest.er1
3753   ac_status=$?
3754   grep -v '^ *+' conftest.er1 >conftest.err
3755   rm -f conftest.er1
3756   cat conftest.err >&5
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); } &&
3759          { ac_try='test -z "$ac_cxx_werror_flag"
3760                          || test ! -s conftest.err'
3761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762   (eval $ac_try) 2>&5
3763   ac_status=$?
3764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765   (exit $ac_status); }; } &&
3766          { ac_try='test -s conftest.$ac_objext'
3767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768   (eval $ac_try) 2>&5
3769   ac_status=$?
3770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771   (exit $ac_status); }; }; then
3772   ensc_sys_compilerwarnflags_CXX=${warn_flags}
3773 else
3774   echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3776
3777 ensc_sys_compilerwarnflags_CXX=
3778 fi
3779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3780         ac_ext=c
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785
3786         CXXFLAGS="$old_CFLAGS"
3787
3788         if test x"${ensc_sys_compilerwarnflags_CXX}" = x; then
3789                 echo "$as_me:$LINENO: result: no" >&5
3790 echo "${ECHO_T}no" >&6
3791         else
3792                 echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3794         fi
3795
3796
3797
3798
3799
3800   echo 'void f(){}' > conftest.cc
3801   for i in -ansi   -Wall -pedantic -W -fmessage-length=0
3802   do
3803     echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
3804 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
3805     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
3806     then
3807       CXXFLAGS="${CXXFLAGS} $i"
3808       echo "$as_me:$LINENO: result: yes" >&5
3809 echo "${ECHO_T}yes" >&6
3810     else
3811       echo "$as_me:$LINENO: result: no" >&5
3812 echo "${ECHO_T}no" >&6
3813     fi
3814   done
3815   rm -f conftest.cc conftest.o
3816
3817
3818
3819
3820         echo "$as_me:$LINENO: checking for linux kernel dir" >&5
3821 echo $ECHO_N "checking for linux kernel dir... $ECHO_C" >&6
3822 if test "${ensc_cv_path_kerneldir+set}" = set; then
3823   echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825
3826
3827 # Check whether --with-kerneldir or --without-kerneldir was given.
3828 if test "${with_kerneldir+set}" = set; then
3829   withval="$with_kerneldir"
3830   case "$withval" in
3831                 yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for kerneldir" >&5
3832 echo "$as_me: error: '$withval' is not a valid value for kerneldir" >&2;}
3833    { (exit 1); exit 1; }; };;
3834                 *)      ensc_cv_path_kerneldir=$withval;;
3835              esac
3836 else
3837   ensc_cv_path_kerneldir=
3838              for i in /lib/modules/$(uname -r)/build /usr/src/linux /usr; do
3839                 test -e $i/include/linux/version.h && { ensc_cv_path_kerneldir=$i; break; }
3840              done
3841 fi;
3842
3843 fi
3844 echo "$as_me:$LINENO: result: $ensc_cv_path_kerneldir" >&5
3845 echo "${ECHO_T}$ensc_cv_path_kerneldir" >&6
3846
3847         test "$ensc_cv_path_kerneldir" -a -e "$ensc_cv_path_kerneldir"/include/linux/version.h || {
3848                 { { echo "$as_me:$LINENO: error: Can not find kernelsources" >&5
3849 echo "$as_me: error: Can not find kernelsources" >&2;}
3850    { (exit 1); exit 1; }; }
3851         }
3852
3853
3854
3855
3856         echo "$as_me:$LINENO: checking for linux kernel headers" >&5
3857 echo $ECHO_N "checking for linux kernel headers... $ECHO_C" >&6
3858 if test "${ensc_cv_path_kernelheaders+set}" = set; then
3859   echo $ECHO_N "(cached) $ECHO_C" >&6
3860 else
3861
3862                 ensc_cv_path_kernelheaders=$ensc_cv_path_kerneldir/include
3863
3864 fi
3865 echo "$as_me:$LINENO: result: $ensc_cv_path_kernelheaders" >&5
3866 echo "${ECHO_T}$ensc_cv_path_kernelheaders" >&6
3867
3868         kernelincludedir=$ensc_cv_path_kernelheaders
3869
3870
3871
3872         echo "$as_me:$LINENO: checking which vserver-rootdir is to use" >&5
3873 echo $ECHO_N "checking which vserver-rootdir is to use... $ECHO_C" >&6
3874
3875 # Check whether --with-vrootdir or --without-vrootdir was given.
3876 if test "${with_vrootdir+set}" = set; then
3877   withval="$with_vrootdir"
3878   case "$withval" in
3879                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for vrootdir" >&5
3880 echo "$as_me: error: '$withval' is not a valid value for vrootdir" >&2;}
3881    { (exit 1); exit 1; }; };;
3882                         *)      ensc_uv_path_vrootdir=$withval;;
3883                      esac
3884 else
3885   ensc_uv_path_vrootdir=/vservers
3886 fi;
3887         echo "$as_me:$LINENO: result: $ensc_uv_path_vrootdir" >&5
3888 echo "${ECHO_T}$ensc_uv_path_vrootdir" >&6
3889
3890         if test x"vserverdir" != x; then
3891                 vserverdir=$ensc_uv_path_vrootdir
3892
3893         fi
3894
3895
3896         if test x"SYSCALL_SWITCH" != x; then
3897                 CVS2CL_TAG='-F SYSCALL_SWITCH'
3898
3899         fi
3900
3901         for ac_prog in cvs2cl
3902 do
3903   # Extract the first word of "$ac_prog", so it can be a program name with args.
3904 set dummy $ac_prog; ac_word=$2
3905 echo "$as_me:$LINENO: checking for $ac_word" >&5
3906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907 if test "${ac_cv_prog_CVS2CL+set}" = set; then
3908   echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910   if test -n "$CVS2CL"; then
3911   ac_cv_prog_CVS2CL="$CVS2CL" # Let the user override the test.
3912 else
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH
3915 do
3916   IFS=$as_save_IFS
3917   test -z "$as_dir" && as_dir=.
3918   for ac_exec_ext in '' $ac_executable_extensions; do
3919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920     ac_cv_prog_CVS2CL="$ac_prog"
3921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922     break 2
3923   fi
3924 done
3925 done
3926
3927 fi
3928 fi
3929 CVS2CL=$ac_cv_prog_CVS2CL
3930 if test -n "$CVS2CL"; then
3931   echo "$as_me:$LINENO: result: $CVS2CL" >&5
3932 echo "${ECHO_T}$CVS2CL" >&6
3933 else
3934   echo "$as_me:$LINENO: result: no" >&5
3935 echo "${ECHO_T}no" >&6
3936 fi
3937
3938   test -n "$CVS2CL" && break
3939 done
3940
3941
3942
3943 if test x"$CVS2CL" != x; then
3944   HAVE_CVS2CL_TRUE=
3945   HAVE_CVS2CL_FALSE='#'
3946 else
3947   HAVE_CVS2CL_TRUE='#'
3948   HAVE_CVS2CL_FALSE=
3949 fi
3950
3951
3952         for ac_prog in rcs2log
3953 do
3954   # Extract the first word of "$ac_prog", so it can be a program name with args.
3955 set dummy $ac_prog; ac_word=$2
3956 echo "$as_me:$LINENO: checking for $ac_word" >&5
3957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958 if test "${ac_cv_prog_RCS2LOG+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   if test -n "$RCS2LOG"; then
3962   ac_cv_prog_RCS2LOG="$RCS2LOG" # Let the user override the test.
3963 else
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH
3966 do
3967   IFS=$as_save_IFS
3968   test -z "$as_dir" && as_dir=.
3969   for ac_exec_ext in '' $ac_executable_extensions; do
3970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971     ac_cv_prog_RCS2LOG="$ac_prog"
3972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973     break 2
3974   fi
3975 done
3976 done
3977
3978 fi
3979 fi
3980 RCS2LOG=$ac_cv_prog_RCS2LOG
3981 if test -n "$RCS2LOG"; then
3982   echo "$as_me:$LINENO: result: $RCS2LOG" >&5
3983 echo "${ECHO_T}$RCS2LOG" >&6
3984 else
3985   echo "$as_me:$LINENO: result: no" >&5
3986 echo "${ECHO_T}no" >&6
3987 fi
3988
3989   test -n "$RCS2LOG" && break
3990 done
3991
3992
3993
3994 if test x"$RCS2LOG" != x; then
3995   HAVE_RCS2LOG_TRUE=
3996   HAVE_RCS2LOG_FALSE='#'
3997 else
3998   HAVE_RCS2LOG_TRUE='#'
3999   HAVE_RCS2LOG_FALSE=
4000 fi
4001
4002
4003
4004 echo "$as_me:$LINENO: checking whether to enable linuxconf modules" >&5
4005 echo $ECHO_N "checking whether to enable linuxconf modules... $ECHO_C" >&6
4006 # Check whether --enable-linuxconf or --disable-linuxconf was given.
4007 if test "${enable_linuxconf+set}" = set; then
4008   enableval="$enable_linuxconf"
4009   case "$enableval" in
4010                   yes|no) ;;
4011                   *)      { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--enable-linuxconf'" >&5
4012 echo "$as_me: error: '$i' is not a supported value for '--enable-linuxconf'" >&2;}
4013    { (exit 1); exit 1; }; };;
4014                esac
4015 else
4016   enable_linuxconf=no
4017 fi;
4018
4019
4020
4021 if test x"$enable_linuxconf" = xyes; then
4022   ENSC_ENABLE_LINUXCONF_TRUE=
4023   ENSC_ENABLE_LINUXCONF_FALSE='#'
4024 else
4025   ENSC_ENABLE_LINUXCONF_TRUE='#'
4026   ENSC_ENABLE_LINUXCONF_FALSE=
4027 fi
4028
4029 echo "$as_me:$LINENO: result: $enable_linuxconf" >&5
4030 echo "${ECHO_T}$enable_linuxconf" >&6
4031
4032
4033 echo "$as_me:$LINENO: checking whether to use internal kernel headers" >&5
4034 echo $ECHO_N "checking whether to use internal kernel headers... $ECHO_C" >&6
4035 # Check whether --enable-internal-headers or --disable-internal-headers was given.
4036 if test "${enable_internal_headers+set}" = set; then
4037   enableval="$enable_internal_headers"
4038   case "$enableval" in
4039                   yes|no) ;;
4040                   *)      { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--disable-internal-headers'" >&5
4041 echo "$as_me: error: '$i' is not a supported value for '--disable-internal-headers'" >&2;}
4042    { (exit 1); exit 1; }; };;
4043                esac
4044 else
4045   enable_internal_headers=yes
4046 fi;
4047
4048
4049
4050 if test x"$enable_internal_headers" = xyes; then
4051   ENSC_ENABLE_INTERNAL_HEADERS_TRUE=
4052   ENSC_ENABLE_INTERNAL_HEADERS_FALSE='#'
4053 else
4054   ENSC_ENABLE_INTERNAL_HEADERS_TRUE='#'
4055   ENSC_ENABLE_INTERNAL_HEADERS_FALSE=
4056 fi
4057
4058 echo "$as_me:$LINENO: result: $enable_internal_headers" >&5
4059 echo "${ECHO_T}$enable_internal_headers" >&6
4060
4061
4062 echo "$as_me:$LINENO: checking for supported APIs" >&5
4063 echo $ECHO_N "checking for supported APIs... $ECHO_C" >&6
4064 # Check whether --enable-apis or --disable-apis was given.
4065 if test "${enable_apis+set}" = set; then
4066   enableval="$enable_apis"
4067
4068 else
4069   enable_apis=ALL
4070 fi;
4071
4072 test x"$enable_apis" != xALL || enable_apis='legacy,compat,v11'
4073 old_IFS=$IFS
4074 IFS=,;
4075 for i in $enable_apis; do
4076         case "$i" in
4077                 compat)
4078 cat >>confdefs.h <<\_ACEOF
4079 #define VC_ENABLE_API_COMPAT 1
4080 _ACEOF
4081 ;;
4082                 legacy)
4083 cat >>confdefs.h <<\_ACEOF
4084 #define VC_ENABLE_API_LEGACY 1
4085 _ACEOF
4086 ;;
4087                 v11)
4088 cat >>confdefs.h <<\_ACEOF
4089 #define VC_ENABLE_API_V11 1
4090 _ACEOF
4091 ;;
4092                 *)      { { echo "$as_me:$LINENO: error: '$i' is not a supported API" >&5
4093 echo "$as_me: error: '$i' is not a supported API" >&2;}
4094    { (exit 1); exit 1; }; };;
4095         esac
4096 done
4097 IFS=$old_IFS
4098 echo "$as_me:$LINENO: result: $enable_apis" >&5
4099 echo "${ECHO_T}$enable_apis" >&6
4100
4101
4102
4103         echo "$as_me:$LINENO: checking for syscall(2) invocation method" >&5
4104 echo $ECHO_N "checking for syscall(2) invocation method... $ECHO_C" >&6
4105
4106 # Check whether --with-syscall or --without-syscall was given.
4107 if test "${with_syscall+set}" = set; then
4108   withval="$with_syscall"
4109
4110 else
4111   with_syscall=auto
4112 fi;
4113         echo "$as_me:$LINENO: result: $with_syscall" >&5
4114 echo "${ECHO_T}$with_syscall" >&6
4115
4116         case x"$with_syscall" in
4117             xauto)
4118                 echo "$as_me:$LINENO: checking which syscall(2) invocation works" >&5
4119 echo $ECHO_N "checking which syscall(2) invocation works... $ECHO_C" >&6
4120 if test "${ensc_cv_test_syscall+set}" = set; then
4121   echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123
4124                                 old_CPPFLAGS=$CPPFLAGS
4125                                 CPPFLAGS="-I$ensc_cv_path_kernelheaders"
4126                                 ac_ext=c
4127 ac_cpp='$CPP $CPPFLAGS'
4128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131
4132                                 cat >conftest.$ac_ext <<_ACEOF
4133
4134 #include <asm/unistd.h>
4135 #include <syscall.h>
4136 #include <errno.h>
4137 #define __NR_foo0       300
4138 #define __NR_foo1       301
4139 #define __NR_foo2       302
4140 #define __NR_foo3       303
4141 #define __NR_foo4       304
4142 #define __NR_foo5       305
4143 inline static _syscall0(int, foo0)
4144 inline static _syscall1(int, foo1, int, a)
4145 inline static _syscall2(int, foo2, int, a, int, b)
4146 inline static _syscall3(int, foo3, int, a, int, b, int, c)
4147 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
4148 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
4149
4150 int main() {
4151   return foo0() || \
4152          foo1(1) || \
4153          foo2(1,2) || \
4154          foo3(1,2,3) || \
4155          foo4(1,2,3,4) || \
4156          foo5(1,2,3,4,5);
4157 }
4158
4159 _ACEOF
4160 rm -f conftest.$ac_objext
4161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4162   (eval $ac_compile) 2>conftest.er1
4163   ac_status=$?
4164   grep -v '^ *+' conftest.er1 >conftest.err
4165   rm -f conftest.er1
4166   cat conftest.err >&5
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); } &&
4169          { ac_try='test -z "$ac_c_werror_flag"
4170                          || test ! -s conftest.err'
4171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172   (eval $ac_try) 2>&5
4173   ac_status=$?
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); }; } &&
4176          { ac_try='test -s conftest.$ac_objext'
4177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178   (eval $ac_try) 2>&5
4179   ac_status=$?
4180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); }; }; then
4182   ensc_cv_test_syscall=fast
4183 else
4184   echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4186
4187 ensc_cv_test_syscall=traditional
4188 fi
4189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4190
4191                                 ac_ext=c
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196
4197                                 CPPFLAGS=$old_CPPFLAGS
4198
4199 fi
4200 echo "$as_me:$LINENO: result: $ensc_cv_test_syscall" >&5
4201 echo "${ECHO_T}$ensc_cv_test_syscall" >&6
4202                 with_syscall=$ensc_cv_test_syscall
4203                 ;;
4204             xfast|xtraditional)
4205                 ;;
4206             *)
4207                 { { echo "$as_me:$LINENO: error: '$with_syscall' is not a valid value for '--with-syscall'" >&5
4208 echo "$as_me: error: '$with_syscall' is not a valid value for '--with-syscall'" >&2;}
4209    { (exit 1); exit 1; }; }
4210                 ;;
4211         esac
4212
4213         if test x"$with_syscall" = xtraditional; then
4214
4215 cat >>confdefs.h <<\_ACEOF
4216 #define ENSC_SYSCALL_TRADITIONAL 1
4217 _ACEOF
4218
4219         fi
4220
4221
4222
4223
4224 ac_ext=cc
4225 ac_cpp='$CXXCPP $CPPFLAGS'
4226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4229 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4230 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4231 if test -z "$CXXCPP"; then
4232   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4233   echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235       # Double quotes because CXXCPP needs to be expanded
4236     for CXXCPP in "$CXX -E" "/lib/cpp"
4237     do
4238       ac_preproc_ok=false
4239 for ac_cxx_preproc_warn_flag in '' yes
4240 do
4241   # Use a header file that comes with gcc, so configuring glibc
4242   # with a fresh cross-compiler works.
4243   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4244   # <limits.h> exists even on freestanding compilers.
4245   # On the NeXT, cc -E runs the code through the compiler's parser,
4246   # not just through cpp. "Syntax error" is here to catch this case.
4247   cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h.  */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h.  */
4253 #ifdef __STDC__
4254 # include <limits.h>
4255 #else
4256 # include <assert.h>
4257 #endif
4258                      Syntax error
4259 _ACEOF
4260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4261   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4262   ac_status=$?
4263   grep -v '^ *+' conftest.er1 >conftest.err
4264   rm -f conftest.er1
4265   cat conftest.err >&5
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); } >/dev/null; then
4268   if test -s conftest.err; then
4269     ac_cpp_err=$ac_cxx_preproc_warn_flag
4270     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4271   else
4272     ac_cpp_err=
4273   fi
4274 else
4275   ac_cpp_err=yes
4276 fi
4277 if test -z "$ac_cpp_err"; then
4278   :
4279 else
4280   echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4282
4283   # Broken: fails on valid input.
4284 continue
4285 fi
4286 rm -f conftest.err conftest.$ac_ext
4287
4288   # OK, works on sane cases.  Now check whether non-existent headers
4289   # can be detected and how.
4290   cat >conftest.$ac_ext <<_ACEOF
4291 /* confdefs.h.  */
4292 _ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h.  */
4296 #include <ac_nonexistent.h>
4297 _ACEOF
4298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4299   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4300   ac_status=$?
4301   grep -v '^ *+' conftest.er1 >conftest.err
4302   rm -f conftest.er1
4303   cat conftest.err >&5
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); } >/dev/null; then
4306   if test -s conftest.err; then
4307     ac_cpp_err=$ac_cxx_preproc_warn_flag
4308     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4309   else
4310     ac_cpp_err=
4311   fi
4312 else
4313   ac_cpp_err=yes
4314 fi
4315 if test -z "$ac_cpp_err"; then
4316   # Broken: success on invalid input.
4317 continue
4318 else
4319   echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4321
4322   # Passes both tests.
4323 ac_preproc_ok=:
4324 break
4325 fi
4326 rm -f conftest.err conftest.$ac_ext
4327
4328 done
4329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4330 rm -f conftest.err conftest.$ac_ext
4331 if $ac_preproc_ok; then
4332   break
4333 fi
4334
4335     done
4336     ac_cv_prog_CXXCPP=$CXXCPP
4337
4338 fi
4339   CXXCPP=$ac_cv_prog_CXXCPP
4340 else
4341   ac_cv_prog_CXXCPP=$CXXCPP
4342 fi
4343 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4344 echo "${ECHO_T}$CXXCPP" >&6
4345 ac_preproc_ok=false
4346 for ac_cxx_preproc_warn_flag in '' yes
4347 do
4348   # Use a header file that comes with gcc, so configuring glibc
4349   # with a fresh cross-compiler works.
4350   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4351   # <limits.h> exists even on freestanding compilers.
4352   # On the NeXT, cc -E runs the code through the compiler's parser,
4353   # not just through cpp. "Syntax error" is here to catch this case.
4354   cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h.  */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h.  */
4360 #ifdef __STDC__
4361 # include <limits.h>
4362 #else
4363 # include <assert.h>
4364 #endif
4365                      Syntax error
4366 _ACEOF
4367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4368   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4369   ac_status=$?
4370   grep -v '^ *+' conftest.er1 >conftest.err
4371   rm -f conftest.er1
4372   cat conftest.err >&5
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); } >/dev/null; then
4375   if test -s conftest.err; then
4376     ac_cpp_err=$ac_cxx_preproc_warn_flag
4377     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4378   else
4379     ac_cpp_err=
4380   fi
4381 else
4382   ac_cpp_err=yes
4383 fi
4384 if test -z "$ac_cpp_err"; then
4385   :
4386 else
4387   echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4389
4390   # Broken: fails on valid input.
4391 continue
4392 fi
4393 rm -f conftest.err conftest.$ac_ext
4394
4395   # OK, works on sane cases.  Now check whether non-existent headers
4396   # can be detected and how.
4397   cat >conftest.$ac_ext <<_ACEOF
4398 /* confdefs.h.  */
4399 _ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h.  */
4403 #include <ac_nonexistent.h>
4404 _ACEOF
4405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4406   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4407   ac_status=$?
4408   grep -v '^ *+' conftest.er1 >conftest.err
4409   rm -f conftest.er1
4410   cat conftest.err >&5
4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); } >/dev/null; then
4413   if test -s conftest.err; then
4414     ac_cpp_err=$ac_cxx_preproc_warn_flag
4415     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4416   else
4417     ac_cpp_err=
4418   fi
4419 else
4420   ac_cpp_err=yes
4421 fi
4422 if test -z "$ac_cpp_err"; then
4423   # Broken: success on invalid input.
4424 continue
4425 else
4426   echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4428
4429   # Passes both tests.
4430 ac_preproc_ok=:
4431 break
4432 fi
4433 rm -f conftest.err conftest.$ac_ext
4434
4435 done
4436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4437 rm -f conftest.err conftest.$ac_ext
4438 if $ac_preproc_ok; then
4439   :
4440 else
4441   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4442 See \`config.log' for more details." >&5
4443 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4444 See \`config.log' for more details." >&2;}
4445    { (exit 1); exit 1; }; }
4446 fi
4447
4448 ac_ext=cc
4449 ac_cpp='$CXXCPP $CPPFLAGS'
4450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4453
4454
4455 echo "$as_me:$LINENO: checking for egrep" >&5
4456 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4457 if test "${ac_cv_prog_egrep+set}" = set; then
4458   echo $ECHO_N "(cached) $ECHO_C" >&6
4459 else
4460   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4461     then ac_cv_prog_egrep='grep -E'
4462     else ac_cv_prog_egrep='egrep'
4463     fi
4464 fi
4465 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4466 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4467  EGREP=$ac_cv_prog_egrep
4468
4469
4470 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4471 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4472 if test "${ac_cv_header_stdc+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475   cat >conftest.$ac_ext <<_ACEOF
4476 /* confdefs.h.  */
4477 _ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h.  */
4481 #include <stdlib.h>
4482 #include <stdarg.h>
4483 #include <string.h>
4484 #include <float.h>
4485
4486 int
4487 main ()
4488 {
4489
4490   ;
4491   return 0;
4492 }
4493 _ACEOF
4494 rm -f conftest.$ac_objext
4495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496   (eval $ac_compile) 2>conftest.er1
4497   ac_status=$?
4498   grep -v '^ *+' conftest.er1 >conftest.err
4499   rm -f conftest.er1
4500   cat conftest.err >&5
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); } &&
4503          { ac_try='test -z "$ac_cxx_werror_flag"
4504                          || test ! -s conftest.err'
4505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506   (eval $ac_try) 2>&5
4507   ac_status=$?
4508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509   (exit $ac_status); }; } &&
4510          { ac_try='test -s conftest.$ac_objext'
4511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512   (eval $ac_try) 2>&5
4513   ac_status=$?
4514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515   (exit $ac_status); }; }; then
4516   ac_cv_header_stdc=yes
4517 else
4518   echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4520
4521 ac_cv_header_stdc=no
4522 fi
4523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4524
4525 if test $ac_cv_header_stdc = yes; then
4526   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4527   cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h.  */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h.  */
4533 #include <string.h>
4534
4535 _ACEOF
4536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4537   $EGREP "memchr" >/dev/null 2>&1; then
4538   :
4539 else
4540   ac_cv_header_stdc=no
4541 fi
4542 rm -f conftest*
4543
4544 fi
4545
4546 if test $ac_cv_header_stdc = yes; then
4547   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4548   cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h.  */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h.  */
4554 #include <stdlib.h>
4555
4556 _ACEOF
4557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4558   $EGREP "free" >/dev/null 2>&1; then
4559   :
4560 else
4561   ac_cv_header_stdc=no
4562 fi
4563 rm -f conftest*
4564
4565 fi
4566
4567 if test $ac_cv_header_stdc = yes; then
4568   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4569   if test "$cross_compiling" = yes; then
4570   :
4571 else
4572   cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h.  */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h.  */
4578 #include <ctype.h>
4579 #if ((' ' & 0x0FF) == 0x020)
4580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4582 #else
4583 # define ISLOWER(c) \
4584                    (('a' <= (c) && (c) <= 'i') \
4585                      || ('j' <= (c) && (c) <= 'r') \
4586                      || ('s' <= (c) && (c) <= 'z'))
4587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4588 #endif
4589
4590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4591 int
4592 main ()
4593 {
4594   int i;
4595   for (i = 0; i < 256; i++)
4596     if (XOR (islower (i), ISLOWER (i))
4597         || toupper (i) != TOUPPER (i))
4598       exit(2);
4599   exit (0);
4600 }
4601 _ACEOF
4602 rm -f conftest$ac_exeext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4604   (eval $ac_link) 2>&5
4605   ac_status=$?
4606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609   (eval $ac_try) 2>&5
4610   ac_status=$?
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); }; }; then
4613   :
4614 else
4615   echo "$as_me: program exited with status $ac_status" >&5
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4618
4619 ( exit $ac_status )
4620 ac_cv_header_stdc=no
4621 fi
4622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4623 fi
4624 fi
4625 fi
4626 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4627 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4628 if test $ac_cv_header_stdc = yes; then
4629
4630 cat >>confdefs.h <<\_ACEOF
4631 #define STDC_HEADERS 1
4632 _ACEOF
4633
4634 fi
4635
4636 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4647                   inttypes.h stdint.h unistd.h
4648 do
4649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4650 echo "$as_me:$LINENO: checking for $ac_header" >&5
4651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4653   echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655   cat >conftest.$ac_ext <<_ACEOF
4656 /* confdefs.h.  */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h.  */
4661 $ac_includes_default
4662
4663 #include <$ac_header>
4664 _ACEOF
4665 rm -f conftest.$ac_objext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4667   (eval $ac_compile) 2>conftest.er1
4668   ac_status=$?
4669   grep -v '^ *+' conftest.er1 >conftest.err
4670   rm -f conftest.er1
4671   cat conftest.err >&5
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); } &&
4674          { ac_try='test -z "$ac_cxx_werror_flag"
4675                          || test ! -s conftest.err'
4676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677   (eval $ac_try) 2>&5
4678   ac_status=$?
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); }; } &&
4681          { ac_try='test -s conftest.$ac_objext'
4682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683   (eval $ac_try) 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); }; }; then
4687   eval "$as_ac_Header=yes"
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692 eval "$as_ac_Header=no"
4693 fi
4694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4695 fi
4696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4699   cat >>confdefs.h <<_ACEOF
4700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4701 _ACEOF
4702
4703 fi
4704
4705 done
4706
4707
4708
4709     ac_ext=cc
4710 ac_cpp='$CXXCPP $CPPFLAGS'
4711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4714
4715     echo "$as_me:$LINENO: checking for ext2fs-headers" >&5
4716 echo $ECHO_N "checking for ext2fs-headers... $ECHO_C" >&6
4717 if test "${ensc_cv_test_ext2fs_header+set}" = set; then
4718   echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720
4721         cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h.  */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h.  */
4727 #include <ext2fs/ext2_fs.h>
4728                                           int main() { return 0; }
4729 _ACEOF
4730 rm -f conftest.$ac_objext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4732   (eval $ac_compile) 2>conftest.er1
4733   ac_status=$?
4734   grep -v '^ *+' conftest.er1 >conftest.err
4735   rm -f conftest.er1
4736   cat conftest.err >&5
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); } &&
4739          { ac_try='test -z "$ac_cxx_werror_flag"
4740                          || test ! -s conftest.err'
4741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742   (eval $ac_try) 2>&5
4743   ac_status=$?
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); }; } &&
4746          { ac_try='test -s conftest.$ac_objext'
4747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748   (eval $ac_try) 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }; }; then
4752   ensc_cv_test_ext2fs_header=e2fsprogs
4753 else
4754   echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4756
4757
4758         cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h.  */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h.  */
4764 #include <linux/ext2_fs.h>
4765                                           int main() { return 0; }
4766 _ACEOF
4767 rm -f conftest.$ac_objext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769   (eval $ac_compile) 2>conftest.er1
4770   ac_status=$?
4771   grep -v '^ *+' conftest.er1 >conftest.err
4772   rm -f conftest.er1
4773   cat conftest.err >&5
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); } &&
4776          { ac_try='test -z "$ac_cxx_werror_flag"
4777                          || test ! -s conftest.err'
4778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779   (eval $ac_try) 2>&5
4780   ac_status=$?
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); }; } &&
4783          { ac_try='test -s conftest.$ac_objext'
4784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785   (eval $ac_try) 2>&5
4786   ac_status=$?
4787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788   (exit $ac_status); }; }; then
4789   ensc_cv_test_ext2fs_header=kernel
4790 else
4791   echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4793
4794
4795         ensc_cv_test_ext2fs_header=none
4796 fi
4797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4798 fi
4799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4800 fi
4801 echo "$as_me:$LINENO: result: $ensc_cv_test_ext2fs_header" >&5
4802 echo "${ECHO_T}$ensc_cv_test_ext2fs_header" >&6
4803
4804     case x"$ensc_cv_test_ext2fs_header" in
4805         (xe2fsprogs)
4806                 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
4807   echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
4808 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
4809 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
4810   echo $ECHO_N "(cached) $ECHO_C" >&6
4811 fi
4812 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
4813 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
4814 else
4815   # Is the header compilable?
4816 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h usability" >&5
4817 echo $ECHO_N "checking ext2fs/ext2_fs.h usability... $ECHO_C" >&6
4818 cat >conftest.$ac_ext <<_ACEOF
4819 /* confdefs.h.  */
4820 _ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h.  */
4824 $ac_includes_default
4825 #include <ext2fs/ext2_fs.h>
4826 _ACEOF
4827 rm -f conftest.$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829   (eval $ac_compile) 2>conftest.er1
4830   ac_status=$?
4831   grep -v '^ *+' conftest.er1 >conftest.err
4832   rm -f conftest.er1
4833   cat conftest.err >&5
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); } &&
4836          { ac_try='test -z "$ac_cxx_werror_flag"
4837                          || test ! -s conftest.err'
4838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839   (eval $ac_try) 2>&5
4840   ac_status=$?
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); }; } &&
4843          { ac_try='test -s conftest.$ac_objext'
4844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845   (eval $ac_try) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); }; }; then
4849   ac_header_compiler=yes
4850 else
4851   echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4853
4854 ac_header_compiler=no
4855 fi
4856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4858 echo "${ECHO_T}$ac_header_compiler" >&6
4859
4860 # Is the header present?
4861 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h presence" >&5
4862 echo $ECHO_N "checking ext2fs/ext2_fs.h presence... $ECHO_C" >&6
4863 cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h.  */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h.  */
4869 #include <ext2fs/ext2_fs.h>
4870 _ACEOF
4871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4872   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4873   ac_status=$?
4874   grep -v '^ *+' conftest.er1 >conftest.err
4875   rm -f conftest.er1
4876   cat conftest.err >&5
4877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); } >/dev/null; then
4879   if test -s conftest.err; then
4880     ac_cpp_err=$ac_cxx_preproc_warn_flag
4881     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4882   else
4883     ac_cpp_err=
4884   fi
4885 else
4886   ac_cpp_err=yes
4887 fi
4888 if test -z "$ac_cpp_err"; then
4889   ac_header_preproc=yes
4890 else
4891   echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4893
4894   ac_header_preproc=no
4895 fi
4896 rm -f conftest.err conftest.$ac_ext
4897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4898 echo "${ECHO_T}$ac_header_preproc" >&6
4899
4900 # So?  What about this header?
4901 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4902   yes:no: )
4903     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
4904 echo "$as_me: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4905     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&5
4906 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&2;}
4907     ac_header_preproc=yes
4908     ;;
4909   no:yes:* )
4910     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&5
4911 echo "$as_me: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&2;}
4912     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&5
4913 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
4914     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&5
4915 echo "$as_me: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&2;}
4916     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
4917 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4918     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&5
4919 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
4920     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&5
4921 echo "$as_me: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
4922     (
4923       cat <<\_ASBOX
4924 ## ------------------------------------------------------ ##
4925 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
4926 ## ------------------------------------------------------ ##
4927 _ASBOX
4928     ) |
4929       sed "s/^/$as_me: WARNING:     /" >&2
4930     ;;
4931 esac
4932 echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
4933 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
4934 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
4935   echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937   ac_cv_header_ext2fs_ext2_fs_h=$ac_header_preproc
4938 fi
4939 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
4940 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
4941
4942 fi
4943 if test $ac_cv_header_ext2fs_ext2_fs_h = yes; then
4944
4945 cat >>confdefs.h <<\_ACEOF
4946 #define ENSC_HAVE_EXT2FS_EXT2_FS_H 1
4947 _ACEOF
4948
4949 else
4950   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
4951 See \`config.log' for more details." >&5
4952 echo "$as_me: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
4953 See \`config.log' for more details." >&2;}
4954    { (exit 1); exit 1; }; }
4955 fi
4956
4957
4958                 ;;
4959         (xkernel)
4960                 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
4961   echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
4962 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
4963 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
4964   echo $ECHO_N "(cached) $ECHO_C" >&6
4965 fi
4966 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
4967 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
4968 else
4969   # Is the header compilable?
4970 echo "$as_me:$LINENO: checking linux/ext2_fs.h usability" >&5
4971 echo $ECHO_N "checking linux/ext2_fs.h usability... $ECHO_C" >&6
4972 cat >conftest.$ac_ext <<_ACEOF
4973 /* confdefs.h.  */
4974 _ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h.  */
4978 $ac_includes_default
4979 #include <linux/ext2_fs.h>
4980 _ACEOF
4981 rm -f conftest.$ac_objext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983   (eval $ac_compile) 2>conftest.er1
4984   ac_status=$?
4985   grep -v '^ *+' conftest.er1 >conftest.err
4986   rm -f conftest.er1
4987   cat conftest.err >&5
4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); } &&
4990          { ac_try='test -z "$ac_cxx_werror_flag"
4991                          || test ! -s conftest.err'
4992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993   (eval $ac_try) 2>&5
4994   ac_status=$?
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); }; } &&
4997          { ac_try='test -s conftest.$ac_objext'
4998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999   (eval $ac_try) 2>&5
5000   ac_status=$?
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); }; }; then
5003   ac_header_compiler=yes
5004 else
5005   echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5007
5008 ac_header_compiler=no
5009 fi
5010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5012 echo "${ECHO_T}$ac_header_compiler" >&6
5013
5014 # Is the header present?
5015 echo "$as_me:$LINENO: checking linux/ext2_fs.h presence" >&5
5016 echo $ECHO_N "checking linux/ext2_fs.h presence... $ECHO_C" >&6
5017 cat >conftest.$ac_ext <<_ACEOF
5018 /* confdefs.h.  */
5019 _ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h.  */
5023 #include <linux/ext2_fs.h>
5024 _ACEOF
5025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5027   ac_status=$?
5028   grep -v '^ *+' conftest.er1 >conftest.err
5029   rm -f conftest.er1
5030   cat conftest.err >&5
5031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032   (exit $ac_status); } >/dev/null; then
5033   if test -s conftest.err; then
5034     ac_cpp_err=$ac_cxx_preproc_warn_flag
5035     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5036   else
5037     ac_cpp_err=
5038   fi
5039 else
5040   ac_cpp_err=yes
5041 fi
5042 if test -z "$ac_cpp_err"; then
5043   ac_header_preproc=yes
5044 else
5045   echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048   ac_header_preproc=no
5049 fi
5050 rm -f conftest.err conftest.$ac_ext
5051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5052 echo "${ECHO_T}$ac_header_preproc" >&6
5053
5054 # So?  What about this header?
5055 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5056   yes:no: )
5057     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
5058 echo "$as_me: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5059     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&5
5060 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&2;}
5061     ac_header_preproc=yes
5062     ;;
5063   no:yes:* )
5064     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&5
5065 echo "$as_me: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&2;}
5066     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&5
5067 echo "$as_me: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
5068     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&5
5069 echo "$as_me: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&2;}
5070     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
5071 echo "$as_me: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5072     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&5
5073 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
5074     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&5
5075 echo "$as_me: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
5076     (
5077       cat <<\_ASBOX
5078 ## ------------------------------------------------------ ##
5079 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
5080 ## ------------------------------------------------------ ##
5081 _ASBOX
5082     ) |
5083       sed "s/^/$as_me: WARNING:     /" >&2
5084     ;;
5085 esac
5086 echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
5087 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
5088 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
5089   echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091   ac_cv_header_linux_ext2_fs_h=$ac_header_preproc
5092 fi
5093 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
5094 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
5095
5096 fi
5097 if test $ac_cv_header_linux_ext2_fs_h = yes; then
5098
5099 cat >>confdefs.h <<\_ACEOF
5100 #define ENSC_HAVE_LINUX_EXT2_FS_H 1
5101 _ACEOF
5102
5103 else
5104   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <linux/ext2_fs.h>
5105 See \`config.log' for more details." >&5
5106 echo "$as_me: error: unexpected error while checkin for <linux/ext2_fs.h>
5107 See \`config.log' for more details." >&2;}
5108    { (exit 1); exit 1; }; }
5109 fi
5110
5111
5112                 ;;
5113         (*)
5114                 { { echo "$as_me:$LINENO: error:
5115 ext2fs headers were not found, or they are not usable. This can have
5116 the following reasons:
5117
5118 * you have neither the e2fsprogs nor the kernel headers installed
5119
5120 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
5121   and you do not have e2fsprogs headers installed; please try to
5122   install e2fsprogs-devel (for Red Hat) or e2fsprogs-dev (for Debian)
5123   in this case
5124
5125 * kernel headers are broken and your e2fsprogs headers are too old;
5126   until version 1.27 (inclusive), they are using reserved C++ keywords
5127
5128 * kernel headers are broken and your e2fsprogs headers are too new;
5129   recent (January 2004) BK snapshots of e2fsprogs are unusable for
5130   C++, for details and a solution see
5131   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
5132
5133
5134 In the latter two cases you have the following options:
5135 * fix the headers manually, or
5136 * install a stable version of e2fsprogs (e.g. 1.34), or
5137 * use good kernel headers (from linux 2.4.x)
5138
5139 See \`config.log' for more details." >&5
5140 echo "$as_me: error:
5141 ext2fs headers were not found, or they are not usable. This can have
5142 the following reasons:
5143
5144 * you have neither the e2fsprogs nor the kernel headers installed
5145
5146 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
5147   and you do not have e2fsprogs headers installed; please try to
5148   install e2fsprogs-devel (for Red Hat) or e2fsprogs-dev (for Debian)
5149   in this case
5150
5151 * kernel headers are broken and your e2fsprogs headers are too old;
5152   until version 1.27 (inclusive), they are using reserved C++ keywords
5153
5154 * kernel headers are broken and your e2fsprogs headers are too new;
5155   recent (January 2004) BK snapshots of e2fsprogs are unusable for
5156   C++, for details and a solution see
5157   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
5158
5159
5160 In the latter two cases you have the following options:
5161 * fix the headers manually, or
5162 * install a stable version of e2fsprogs (e.g. 1.34), or
5163 * use good kernel headers (from linux 2.4.x)
5164
5165 See \`config.log' for more details." >&2;}
5166    { (exit 1); exit 1; }; }
5167                 ;;
5168     esac
5169     ac_ext=c
5170 ac_cpp='$CPP $CPPFLAGS'
5171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5174
5175
5176
5177 for ac_func in vserver
5178 do
5179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5180 echo "$as_me:$LINENO: checking for $ac_func" >&5
5181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5182 if eval "test \"\${$as_ac_var+set}\" = set"; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h.  */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h.  */
5191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5193 #define $ac_func innocuous_$ac_func
5194
5195 /* System header to define __stub macros and hopefully few prototypes,
5196     which can conflict with char $ac_func (); below.
5197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5198     <limits.h> exists even on freestanding compilers.  */
5199
5200 #ifdef __STDC__
5201 # include <limits.h>
5202 #else
5203 # include <assert.h>
5204 #endif
5205
5206 #undef $ac_func
5207
5208 /* Override any gcc2 internal prototype to avoid an error.  */
5209 #ifdef __cplusplus
5210 extern "C"
5211 {
5212 #endif
5213 /* We use char because int might match the return type of a gcc2
5214    builtin and then its argument prototype would still apply.  */
5215 char $ac_func ();
5216 /* The GNU C library defines this for functions which it implements
5217     to always fail with ENOSYS.  Some functions are actually named
5218     something starting with __ and the normal name is an alias.  */
5219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5220 choke me
5221 #else
5222 char (*f) () = $ac_func;
5223 #endif
5224 #ifdef __cplusplus
5225 }
5226 #endif
5227
5228 int
5229 main ()
5230 {
5231 return f != $ac_func;
5232   ;
5233   return 0;
5234 }
5235 _ACEOF
5236 rm -f conftest.$ac_objext conftest$ac_exeext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5238   (eval $ac_link) 2>conftest.er1
5239   ac_status=$?
5240   grep -v '^ *+' conftest.er1 >conftest.err
5241   rm -f conftest.er1
5242   cat conftest.err >&5
5243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244   (exit $ac_status); } &&
5245          { ac_try='test -z "$ac_c_werror_flag"
5246                          || test ! -s conftest.err'
5247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248   (eval $ac_try) 2>&5
5249   ac_status=$?
5250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251   (exit $ac_status); }; } &&
5252          { ac_try='test -s conftest$ac_exeext'
5253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254   (eval $ac_try) 2>&5
5255   ac_status=$?
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); }; }; then
5258   eval "$as_ac_var=yes"
5259 else
5260   echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5262
5263 eval "$as_ac_var=no"
5264 fi
5265 rm -f conftest.err conftest.$ac_objext \
5266       conftest$ac_exeext conftest.$ac_ext
5267 fi
5268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5270 if test `eval echo '${'$as_ac_var'}'` = yes; then
5271   cat >>confdefs.h <<_ACEOF
5272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5273 _ACEOF
5274
5275 fi
5276 done
5277
5278 echo "$as_me:$LINENO: checking whether MS_MOVE is declared" >&5
5279 echo $ECHO_N "checking whether MS_MOVE is declared... $ECHO_C" >&6
5280 if test "${ac_cv_have_decl_MS_MOVE+set}" = set; then
5281   echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5283   cat >conftest.$ac_ext <<_ACEOF
5284 /* confdefs.h.  */
5285 _ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h.  */
5289 #include <linux/fs.h>
5290
5291 int
5292 main ()
5293 {
5294 #ifndef MS_MOVE
5295   char *p = (char *) MS_MOVE;
5296 #endif
5297
5298   ;
5299   return 0;
5300 }
5301 _ACEOF
5302 rm -f conftest.$ac_objext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5304   (eval $ac_compile) 2>conftest.er1
5305   ac_status=$?
5306   grep -v '^ *+' conftest.er1 >conftest.err
5307   rm -f conftest.er1
5308   cat conftest.err >&5
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); } &&
5311          { ac_try='test -z "$ac_c_werror_flag"
5312                          || test ! -s conftest.err'
5313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314   (eval $ac_try) 2>&5
5315   ac_status=$?
5316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317   (exit $ac_status); }; } &&
5318          { ac_try='test -s conftest.$ac_objext'
5319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320   (eval $ac_try) 2>&5
5321   ac_status=$?
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); }; }; then
5324   ac_cv_have_decl_MS_MOVE=yes
5325 else
5326   echo "$as_me: failed program was:" >&5
5327 sed 's/^/| /' conftest.$ac_ext >&5
5328
5329 ac_cv_have_decl_MS_MOVE=no
5330 fi
5331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5332 fi
5333 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MS_MOVE" >&5
5334 echo "${ECHO_T}$ac_cv_have_decl_MS_MOVE" >&6
5335 if test $ac_cv_have_decl_MS_MOVE = yes; then
5336
5337 cat >>confdefs.h <<_ACEOF
5338 #define HAVE_DECL_MS_MOVE 1
5339 _ACEOF
5340
5341
5342 else
5343   cat >>confdefs.h <<_ACEOF
5344 #define HAVE_DECL_MS_MOVE 0
5345 _ACEOF
5346
5347
5348 fi
5349
5350
5351 echo "$as_me:$LINENO: checking for xid_t" >&5
5352 echo $ECHO_N "checking for xid_t... $ECHO_C" >&6
5353 if test "${ac_cv_type_xid_t+set}" = set; then
5354   echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356   cat >conftest.$ac_ext <<_ACEOF
5357 /* confdefs.h.  */
5358 _ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h.  */
5362 #include <sys/types.h>
5363
5364 int
5365 main ()
5366 {
5367 if ((xid_t *) 0)
5368   return 0;
5369 if (sizeof (xid_t))
5370   return 0;
5371   ;
5372   return 0;
5373 }
5374 _ACEOF
5375 rm -f conftest.$ac_objext
5376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5377   (eval $ac_compile) 2>conftest.er1
5378   ac_status=$?
5379   grep -v '^ *+' conftest.er1 >conftest.err
5380   rm -f conftest.er1
5381   cat conftest.err >&5
5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383   (exit $ac_status); } &&
5384          { ac_try='test -z "$ac_c_werror_flag"
5385                          || test ! -s conftest.err'
5386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387   (eval $ac_try) 2>&5
5388   ac_status=$?
5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390   (exit $ac_status); }; } &&
5391          { ac_try='test -s conftest.$ac_objext'
5392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393   (eval $ac_try) 2>&5
5394   ac_status=$?
5395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); }; }; then
5397   ac_cv_type_xid_t=yes
5398 else
5399   echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5401
5402 ac_cv_type_xid_t=no
5403 fi
5404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5405 fi
5406 echo "$as_me:$LINENO: result: $ac_cv_type_xid_t" >&5
5407 echo "${ECHO_T}$ac_cv_type_xid_t" >&6
5408 if test $ac_cv_type_xid_t = yes; then
5409
5410 cat >>confdefs.h <<_ACEOF
5411 #define HAVE_XID_T 1
5412 _ACEOF
5413
5414
5415 fi
5416
5417
5418                     ac_config_files="$ac_config_files util-vserver.spec Makefile"
5419
5420 cat >confcache <<\_ACEOF
5421 # This file is a shell script that caches the results of configure
5422 # tests run on this system so they can be shared between configure
5423 # scripts and configure runs, see configure's option --config-cache.
5424 # It is not useful on other systems.  If it contains results you don't
5425 # want to keep, you may remove or edit it.
5426 #
5427 # config.status only pays attention to the cache file if you give it
5428 # the --recheck option to rerun configure.
5429 #
5430 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5431 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5432 # following values.
5433
5434 _ACEOF
5435
5436 # The following way of writing the cache mishandles newlines in values,
5437 # but we know of no workaround that is simple, portable, and efficient.
5438 # So, don't put newlines in cache variables' values.
5439 # Ultrix sh set writes to stderr and can't be redirected directly,
5440 # and sets the high bit in the cache file unless we assign to the vars.
5441 {
5442   (set) 2>&1 |
5443     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5444     *ac_space=\ *)
5445       # `set' does not quote correctly, so add quotes (double-quote
5446       # substitution turns \\\\ into \\, and sed turns \\ into \).
5447       sed -n \
5448         "s/'/'\\\\''/g;
5449           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5450       ;;
5451     *)
5452       # `set' quotes correctly as required by POSIX, so do not add quotes.
5453       sed -n \
5454         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5455       ;;
5456     esac;
5457 } |
5458   sed '
5459      t clear
5460      : clear
5461      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5462      t end
5463      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5464      : end' >>confcache
5465 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5466   if test -w $cache_file; then
5467     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5468     cat confcache >$cache_file
5469   else
5470     echo "not updating unwritable cache $cache_file"
5471   fi
5472 fi
5473 rm -f confcache
5474
5475 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5476 # Let make expand exec_prefix.
5477 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5478
5479 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5480 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5481 # trailing colons and then remove the whole line if VPATH becomes empty
5482 # (actually we leave an empty line to preserve line numbers).
5483 if test "x$srcdir" = x.; then
5484   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5485 s/:*\$(srcdir):*/:/;
5486 s/:*\${srcdir}:*/:/;
5487 s/:*@srcdir@:*/:/;
5488 s/^\([^=]*=[     ]*\):*/\1/;
5489 s/:*$//;
5490 s/^[^=]*=[       ]*$//;
5491 }'
5492 fi
5493
5494 DEFS=-DHAVE_CONFIG_H
5495
5496 ac_libobjs=
5497 ac_ltlibobjs=
5498 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5499   # 1. Remove the extension, and $U if already installed.
5500   ac_i=`echo "$ac_i" |
5501          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5502   # 2. Add them.
5503   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5504   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5505 done
5506 LIBOBJS=$ac_libobjs
5507
5508 LTLIBOBJS=$ac_ltlibobjs
5509
5510
5511 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5512   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5513 Usually this means the macro was only invoked conditionally." >&5
5514 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5515 Usually this means the macro was only invoked conditionally." >&2;}
5516    { (exit 1); exit 1; }; }
5517 fi
5518 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5519   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5520 Usually this means the macro was only invoked conditionally." >&5
5521 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5522 Usually this means the macro was only invoked conditionally." >&2;}
5523    { (exit 1); exit 1; }; }
5524 fi
5525 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5526   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
5527 Usually this means the macro was only invoked conditionally." >&5
5528 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
5529 Usually this means the macro was only invoked conditionally." >&2;}
5530    { (exit 1); exit 1; }; }
5531 fi
5532 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5533   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5534 Usually this means the macro was only invoked conditionally." >&5
5535 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5536 Usually this means the macro was only invoked conditionally." >&2;}
5537    { (exit 1); exit 1; }; }
5538 fi
5539 if test -z "${HAVE_CVS2CL_TRUE}" && test -z "${HAVE_CVS2CL_FALSE}"; then
5540   { { echo "$as_me:$LINENO: error: conditional \"HAVE_CVS2CL\" was never defined.
5541 Usually this means the macro was only invoked conditionally." >&5
5542 echo "$as_me: error: conditional \"HAVE_CVS2CL\" was never defined.
5543 Usually this means the macro was only invoked conditionally." >&2;}
5544    { (exit 1); exit 1; }; }
5545 fi
5546 if test -z "${HAVE_RCS2LOG_TRUE}" && test -z "${HAVE_RCS2LOG_FALSE}"; then
5547   { { echo "$as_me:$LINENO: error: conditional \"HAVE_RCS2LOG\" was never defined.
5548 Usually this means the macro was only invoked conditionally." >&5
5549 echo "$as_me: error: conditional \"HAVE_RCS2LOG\" was never defined.
5550 Usually this means the macro was only invoked conditionally." >&2;}
5551    { (exit 1); exit 1; }; }
5552 fi
5553 if test -z "${ENSC_ENABLE_LINUXCONF_TRUE}" && test -z "${ENSC_ENABLE_LINUXCONF_FALSE}"; then
5554   { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_LINUXCONF\" was never defined.
5555 Usually this means the macro was only invoked conditionally." >&5
5556 echo "$as_me: error: conditional \"ENSC_ENABLE_LINUXCONF\" was never defined.
5557 Usually this means the macro was only invoked conditionally." >&2;}
5558    { (exit 1); exit 1; }; }
5559 fi
5560 if test -z "${ENSC_ENABLE_INTERNAL_HEADERS_TRUE}" && test -z "${ENSC_ENABLE_INTERNAL_HEADERS_FALSE}"; then
5561   { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
5562 Usually this means the macro was only invoked conditionally." >&5
5563 echo "$as_me: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
5564 Usually this means the macro was only invoked conditionally." >&2;}
5565    { (exit 1); exit 1; }; }
5566 fi
5567
5568 : ${CONFIG_STATUS=./config.status}
5569 ac_clean_files_save=$ac_clean_files
5570 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5571 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5572 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5573 cat >$CONFIG_STATUS <<_ACEOF
5574 #! $SHELL
5575 # Generated by $as_me.
5576 # Run this file to recreate the current configuration.
5577 # Compiler output produced by configure, useful for debugging
5578 # configure, is in config.log if it exists.
5579
5580 debug=false
5581 ac_cs_recheck=false
5582 ac_cs_silent=false
5583 SHELL=\${CONFIG_SHELL-$SHELL}
5584 _ACEOF
5585
5586 cat >>$CONFIG_STATUS <<\_ACEOF
5587 ## --------------------- ##
5588 ## M4sh Initialization.  ##
5589 ## --------------------- ##
5590
5591 # Be Bourne compatible
5592 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5593   emulate sh
5594   NULLCMD=:
5595   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5596   # is contrary to our usage.  Disable this feature.
5597   alias -g '${1+"$@"}'='"$@"'
5598 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5599   set -o posix
5600 fi
5601 DUALCASE=1; export DUALCASE # for MKS sh
5602
5603 # Support unset when possible.
5604 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5605   as_unset=unset
5606 else
5607   as_unset=false
5608 fi
5609
5610
5611 # Work around bugs in pre-3.0 UWIN ksh.
5612 $as_unset ENV MAIL MAILPATH
5613 PS1='$ '
5614 PS2='> '
5615 PS4='+ '
5616
5617 # NLS nuisances.
5618 for as_var in \
5619   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5620   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5621   LC_TELEPHONE LC_TIME
5622 do
5623   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5624     eval $as_var=C; export $as_var
5625   else
5626     $as_unset $as_var
5627   fi
5628 done
5629
5630 # Required to use basename.
5631 if expr a : '\(a\)' >/dev/null 2>&1; then
5632   as_expr=expr
5633 else
5634   as_expr=false
5635 fi
5636
5637 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5638   as_basename=basename
5639 else
5640   as_basename=false
5641 fi
5642
5643
5644 # Name of the executable.
5645 as_me=`$as_basename "$0" ||
5646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5647          X"$0" : 'X\(//\)$' \| \
5648          X"$0" : 'X\(/\)$' \| \
5649          .     : '\(.\)' 2>/dev/null ||
5650 echo X/"$0" |
5651     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5652           /^X\/\(\/\/\)$/{ s//\1/; q; }
5653           /^X\/\(\/\).*/{ s//\1/; q; }
5654           s/.*/./; q'`
5655
5656
5657 # PATH needs CR, and LINENO needs CR and PATH.
5658 # Avoid depending upon Character Ranges.
5659 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5660 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5661 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5662 as_cr_digits='0123456789'
5663 as_cr_alnum=$as_cr_Letters$as_cr_digits
5664
5665 # The user is always right.
5666 if test "${PATH_SEPARATOR+set}" != set; then
5667   echo "#! /bin/sh" >conf$$.sh
5668   echo  "exit 0"   >>conf$$.sh
5669   chmod +x conf$$.sh
5670   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5671     PATH_SEPARATOR=';'
5672   else
5673     PATH_SEPARATOR=:
5674   fi
5675   rm -f conf$$.sh
5676 fi
5677
5678
5679   as_lineno_1=$LINENO
5680   as_lineno_2=$LINENO
5681   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5682   test "x$as_lineno_1" != "x$as_lineno_2" &&
5683   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5684   # Find who we are.  Look in the path if we contain no path at all
5685   # relative or not.
5686   case $0 in
5687     *[\\/]* ) as_myself=$0 ;;
5688     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5690 do
5691   IFS=$as_save_IFS
5692   test -z "$as_dir" && as_dir=.
5693   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5694 done
5695
5696        ;;
5697   esac
5698   # We did not find ourselves, most probably we were run as `sh COMMAND'
5699   # in which case we are not to be found in the path.
5700   if test "x$as_myself" = x; then
5701     as_myself=$0
5702   fi
5703   if test ! -f "$as_myself"; then
5704     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5705 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5706    { (exit 1); exit 1; }; }
5707   fi
5708   case $CONFIG_SHELL in
5709   '')
5710     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5712 do
5713   IFS=$as_save_IFS
5714   test -z "$as_dir" && as_dir=.
5715   for as_base in sh bash ksh sh5; do
5716          case $as_dir in
5717          /*)
5718            if ("$as_dir/$as_base" -c '
5719   as_lineno_1=$LINENO
5720   as_lineno_2=$LINENO
5721   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5722   test "x$as_lineno_1" != "x$as_lineno_2" &&
5723   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5724              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5725              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5726              CONFIG_SHELL=$as_dir/$as_base
5727              export CONFIG_SHELL
5728              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5729            fi;;
5730          esac
5731        done
5732 done
5733 ;;
5734   esac
5735
5736   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5737   # uniformly replaced by the line number.  The first 'sed' inserts a
5738   # line-number line before each line; the second 'sed' does the real
5739   # work.  The second script uses 'N' to pair each line-number line
5740   # with the numbered line, and appends trailing '-' during
5741   # substitution so that $LINENO is not a special case at line end.
5742   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5743   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5744   sed '=' <$as_myself |
5745     sed '
5746       N
5747       s,$,-,
5748       : loop
5749       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5750       t loop
5751       s,-$,,
5752       s,^['$as_cr_digits']*\n,,
5753     ' >$as_me.lineno &&
5754   chmod +x $as_me.lineno ||
5755     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5756 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5757    { (exit 1); exit 1; }; }
5758
5759   # Don't try to exec as it changes $[0], causing all sort of problems
5760   # (the dirname of $[0] is not the place where we might find the
5761   # original and so on.  Autoconf is especially sensible to this).
5762   . ./$as_me.lineno
5763   # Exit status is that of the last command.
5764   exit
5765 }
5766
5767
5768 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5769   *c*,-n*) ECHO_N= ECHO_C='
5770 ' ECHO_T='      ' ;;
5771   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5772   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5773 esac
5774
5775 if expr a : '\(a\)' >/dev/null 2>&1; then
5776   as_expr=expr
5777 else
5778   as_expr=false
5779 fi
5780
5781 rm -f conf$$ conf$$.exe conf$$.file
5782 echo >conf$$.file
5783 if ln -s conf$$.file conf$$ 2>/dev/null; then
5784   # We could just check for DJGPP; but this test a) works b) is more generic
5785   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5786   if test -f conf$$.exe; then
5787     # Don't use ln at all; we don't have any links
5788     as_ln_s='cp -p'
5789   else
5790     as_ln_s='ln -s'
5791   fi
5792 elif ln conf$$.file conf$$ 2>/dev/null; then
5793   as_ln_s=ln
5794 else
5795   as_ln_s='cp -p'
5796 fi
5797 rm -f conf$$ conf$$.exe conf$$.file
5798
5799 if mkdir -p . 2>/dev/null; then
5800   as_mkdir_p=:
5801 else
5802   test -d ./-p && rmdir ./-p
5803   as_mkdir_p=false
5804 fi
5805
5806 as_executable_p="test -f"
5807
5808 # Sed expression to map a string onto a valid CPP name.
5809 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5810
5811 # Sed expression to map a string onto a valid variable name.
5812 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5813
5814
5815 # IFS
5816 # We need space, tab and new line, in precisely that order.
5817 as_nl='
5818 '
5819 IFS="   $as_nl"
5820
5821 # CDPATH.
5822 $as_unset CDPATH
5823
5824 exec 6>&1
5825
5826 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5827 # report actual input values of CONFIG_FILES etc. instead of their
5828 # values after options handling.  Logging --version etc. is OK.
5829 exec 5>>config.log
5830 {
5831   echo
5832   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5833 ## Running $as_me. ##
5834 _ASBOX
5835 } >&5
5836 cat >&5 <<_CSEOF
5837
5838 This file was extended by util-vserver $as_me 0.29, which was
5839 generated by GNU Autoconf 2.59.  Invocation command line was
5840
5841   CONFIG_FILES    = $CONFIG_FILES
5842   CONFIG_HEADERS  = $CONFIG_HEADERS
5843   CONFIG_LINKS    = $CONFIG_LINKS
5844   CONFIG_COMMANDS = $CONFIG_COMMANDS
5845   $ $0 $@
5846
5847 _CSEOF
5848 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5849 echo >&5
5850 _ACEOF
5851
5852 # Files that config.status was made for.
5853 if test -n "$ac_config_files"; then
5854   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5855 fi
5856
5857 if test -n "$ac_config_headers"; then
5858   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5859 fi
5860
5861 if test -n "$ac_config_links"; then
5862   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5863 fi
5864
5865 if test -n "$ac_config_commands"; then
5866   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5867 fi
5868
5869 cat >>$CONFIG_STATUS <<\_ACEOF
5870
5871 ac_cs_usage="\
5872 \`$as_me' instantiates files from templates according to the
5873 current configuration.
5874
5875 Usage: $0 [OPTIONS] [FILE]...
5876
5877   -h, --help       print this help, then exit
5878   -V, --version    print version number, then exit
5879   -q, --quiet      do not print progress messages
5880   -d, --debug      don't remove temporary files
5881       --recheck    update $as_me by reconfiguring in the same conditions
5882   --file=FILE[:TEMPLATE]
5883                    instantiate the configuration file FILE
5884   --header=FILE[:TEMPLATE]
5885                    instantiate the configuration header FILE
5886
5887 Configuration files:
5888 $config_files
5889
5890 Configuration headers:
5891 $config_headers
5892
5893 Configuration commands:
5894 $config_commands
5895
5896 Report bugs to <bug-autoconf@gnu.org>."
5897 _ACEOF
5898
5899 cat >>$CONFIG_STATUS <<_ACEOF
5900 ac_cs_version="\\
5901 util-vserver config.status 0.29
5902 configured by $0, generated by GNU Autoconf 2.59,
5903   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5904
5905 Copyright (C) 2003 Free Software Foundation, Inc.
5906 This config.status script is free software; the Free Software Foundation
5907 gives unlimited permission to copy, distribute and modify it."
5908 srcdir=$srcdir
5909 INSTALL="$INSTALL"
5910 _ACEOF
5911
5912 cat >>$CONFIG_STATUS <<\_ACEOF
5913 # If no file are specified by the user, then we need to provide default
5914 # value.  By we need to know if files were specified by the user.
5915 ac_need_defaults=:
5916 while test $# != 0
5917 do
5918   case $1 in
5919   --*=*)
5920     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5921     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5922     ac_shift=:
5923     ;;
5924   -*)
5925     ac_option=$1
5926     ac_optarg=$2
5927     ac_shift=shift
5928     ;;
5929   *) # This is not an option, so the user has probably given explicit
5930      # arguments.
5931      ac_option=$1
5932      ac_need_defaults=false;;
5933   esac
5934
5935   case $ac_option in
5936   # Handling of the options.
5937 _ACEOF
5938 cat >>$CONFIG_STATUS <<\_ACEOF
5939   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5940     ac_cs_recheck=: ;;
5941   --version | --vers* | -V )
5942     echo "$ac_cs_version"; exit 0 ;;
5943   --he | --h)
5944     # Conflict between --help and --header
5945     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5946 Try \`$0 --help' for more information." >&5
5947 echo "$as_me: error: ambiguous option: $1
5948 Try \`$0 --help' for more information." >&2;}
5949    { (exit 1); exit 1; }; };;
5950   --help | --hel | -h )
5951     echo "$ac_cs_usage"; exit 0 ;;
5952   --debug | --d* | -d )
5953     debug=: ;;
5954   --file | --fil | --fi | --f )
5955     $ac_shift
5956     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5957     ac_need_defaults=false;;
5958   --header | --heade | --head | --hea )
5959     $ac_shift
5960     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5961     ac_need_defaults=false;;
5962   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5963   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5964     ac_cs_silent=: ;;
5965
5966   # This is an error.
5967   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5968 Try \`$0 --help' for more information." >&5
5969 echo "$as_me: error: unrecognized option: $1
5970 Try \`$0 --help' for more information." >&2;}
5971    { (exit 1); exit 1; }; } ;;
5972
5973   *) ac_config_targets="$ac_config_targets $1" ;;
5974
5975   esac
5976   shift
5977 done
5978
5979 ac_configure_extra_args=
5980
5981 if $ac_cs_silent; then
5982   exec 6>/dev/null
5983   ac_configure_extra_args="$ac_configure_extra_args --silent"
5984 fi
5985
5986 _ACEOF
5987 cat >>$CONFIG_STATUS <<_ACEOF
5988 if \$ac_cs_recheck; then
5989   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5990   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5991 fi
5992
5993 _ACEOF
5994
5995 cat >>$CONFIG_STATUS <<_ACEOF
5996 #
5997 # INIT-COMMANDS section.
5998 #
5999
6000 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6001
6002 _ACEOF
6003
6004
6005
6006 cat >>$CONFIG_STATUS <<\_ACEOF
6007 for ac_config_target in $ac_config_targets
6008 do
6009   case "$ac_config_target" in
6010   # Handling of arguments.
6011   "util-vserver.spec" ) CONFIG_FILES="$CONFIG_FILES util-vserver.spec" ;;
6012   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6013   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6014   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6015   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6016 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6017    { (exit 1); exit 1; }; };;
6018   esac
6019 done
6020
6021 # If the user did not use the arguments to specify the items to instantiate,
6022 # then the envvar interface is used.  Set only those that are not.
6023 # We use the long form for the default assignment because of an extremely
6024 # bizarre bug on SunOS 4.1.3.
6025 if $ac_need_defaults; then
6026   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6027   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6028   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6029 fi
6030
6031 # Have a temporary directory for convenience.  Make it in the build tree
6032 # simply because there is no reason to put it here, and in addition,
6033 # creating and moving files from /tmp can sometimes cause problems.
6034 # Create a temporary directory, and hook for its removal unless debugging.
6035 $debug ||
6036 {
6037   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6038   trap '{ (exit 1); exit 1; }' 1 2 13 15
6039 }
6040
6041 # Create a (secure) tmp directory for tmp files.
6042
6043 {
6044   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6045   test -n "$tmp" && test -d "$tmp"
6046 }  ||
6047 {
6048   tmp=./confstat$$-$RANDOM
6049   (umask 077 && mkdir $tmp)
6050 } ||
6051 {
6052    echo "$me: cannot create a temporary directory in ." >&2
6053    { (exit 1); exit 1; }
6054 }
6055
6056 _ACEOF
6057
6058 cat >>$CONFIG_STATUS <<_ACEOF
6059
6060 #
6061 # CONFIG_FILES section.
6062 #
6063
6064 # No need to generate the scripts if there are no CONFIG_FILES.
6065 # This happens for instance when ./config.status config.h
6066 if test -n "\$CONFIG_FILES"; then
6067   # Protect against being on the right side of a sed subst in config.status.
6068   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6069    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6070 s,@SHELL@,$SHELL,;t t
6071 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6072 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6073 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6074 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6075 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6076 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6077 s,@exec_prefix@,$exec_prefix,;t t
6078 s,@prefix@,$prefix,;t t
6079 s,@program_transform_name@,$program_transform_name,;t t
6080 s,@bindir@,$bindir,;t t
6081 s,@sbindir@,$sbindir,;t t
6082 s,@libexecdir@,$libexecdir,;t t
6083 s,@datadir@,$datadir,;t t
6084 s,@sysconfdir@,$sysconfdir,;t t
6085 s,@sharedstatedir@,$sharedstatedir,;t t
6086 s,@localstatedir@,$localstatedir,;t t
6087 s,@libdir@,$libdir,;t t
6088 s,@includedir@,$includedir,;t t
6089 s,@oldincludedir@,$oldincludedir,;t t
6090 s,@infodir@,$infodir,;t t
6091 s,@mandir@,$mandir,;t t
6092 s,@build_alias@,$build_alias,;t t
6093 s,@host_alias@,$host_alias,;t t
6094 s,@target_alias@,$target_alias,;t t
6095 s,@DEFS@,$DEFS,;t t
6096 s,@ECHO_C@,$ECHO_C,;t t
6097 s,@ECHO_N@,$ECHO_N,;t t
6098 s,@ECHO_T@,$ECHO_T,;t t
6099 s,@LIBS@,$LIBS,;t t
6100 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6101 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6102 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6103 s,@CYGPATH_W@,$CYGPATH_W,;t t
6104 s,@PACKAGE@,$PACKAGE,;t t
6105 s,@VERSION@,$VERSION,;t t
6106 s,@ACLOCAL@,$ACLOCAL,;t t
6107 s,@AUTOCONF@,$AUTOCONF,;t t
6108 s,@AUTOMAKE@,$AUTOMAKE,;t t
6109 s,@AUTOHEADER@,$AUTOHEADER,;t t
6110 s,@MAKEINFO@,$MAKEINFO,;t t
6111 s,@AMTAR@,$AMTAR,;t t
6112 s,@install_sh@,$install_sh,;t t
6113 s,@STRIP@,$STRIP,;t t
6114 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6115 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6116 s,@mkdir_p@,$mkdir_p,;t t
6117 s,@AWK@,$AWK,;t t
6118 s,@SET_MAKE@,$SET_MAKE,;t t
6119 s,@am__leading_dot@,$am__leading_dot,;t t
6120 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6121 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6122 s,@MAINT@,$MAINT,;t t
6123 s,@CXX@,$CXX,;t t
6124 s,@CXXFLAGS@,$CXXFLAGS,;t t
6125 s,@LDFLAGS@,$LDFLAGS,;t t
6126 s,@CPPFLAGS@,$CPPFLAGS,;t t
6127 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6128 s,@EXEEXT@,$EXEEXT,;t t
6129 s,@OBJEXT@,$OBJEXT,;t t
6130 s,@DEPDIR@,$DEPDIR,;t t
6131 s,@am__include@,$am__include,;t t
6132 s,@am__quote@,$am__quote,;t t
6133 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6134 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6135 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6136 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
6137 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
6138 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
6139 s,@CC@,$CC,;t t
6140 s,@CFLAGS@,$CFLAGS,;t t
6141 s,@ac_ct_CC@,$ac_ct_CC,;t t
6142 s,@CCDEPMODE@,$CCDEPMODE,;t t
6143 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6144 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6145 s,@LN_S@,$LN_S,;t t
6146 s,@RANLIB@,$RANLIB,;t t
6147 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6148 s,@kernelincludedir@,$kernelincludedir,;t t
6149 s,@vserverdir@,$vserverdir,;t t
6150 s,@CVS2CL_TAG@,$CVS2CL_TAG,;t t
6151 s,@CVS2CL@,$CVS2CL,;t t
6152 s,@HAVE_CVS2CL_TRUE@,$HAVE_CVS2CL_TRUE,;t t
6153 s,@HAVE_CVS2CL_FALSE@,$HAVE_CVS2CL_FALSE,;t t
6154 s,@RCS2LOG@,$RCS2LOG,;t t
6155 s,@HAVE_RCS2LOG_TRUE@,$HAVE_RCS2LOG_TRUE,;t t
6156 s,@HAVE_RCS2LOG_FALSE@,$HAVE_RCS2LOG_FALSE,;t t
6157 s,@ENSC_ENABLE_LINUXCONF_TRUE@,$ENSC_ENABLE_LINUXCONF_TRUE,;t t
6158 s,@ENSC_ENABLE_LINUXCONF_FALSE@,$ENSC_ENABLE_LINUXCONF_FALSE,;t t
6159 s,@ENSC_ENABLE_INTERNAL_HEADERS_TRUE@,$ENSC_ENABLE_INTERNAL_HEADERS_TRUE,;t t
6160 s,@ENSC_ENABLE_INTERNAL_HEADERS_FALSE@,$ENSC_ENABLE_INTERNAL_HEADERS_FALSE,;t t
6161 s,@CXXCPP@,$CXXCPP,;t t
6162 s,@EGREP@,$EGREP,;t t
6163 s,@LIBOBJS@,$LIBOBJS,;t t
6164 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6165 CEOF
6166
6167 _ACEOF
6168
6169   cat >>$CONFIG_STATUS <<\_ACEOF
6170   # Split the substitutions into bite-sized pieces for seds with
6171   # small command number limits, like on Digital OSF/1 and HP-UX.
6172   ac_max_sed_lines=48
6173   ac_sed_frag=1 # Number of current file.
6174   ac_beg=1 # First line for current file.
6175   ac_end=$ac_max_sed_lines # Line after last line for current file.
6176   ac_more_lines=:
6177   ac_sed_cmds=
6178   while $ac_more_lines; do
6179     if test $ac_beg -gt 1; then
6180       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6181     else
6182       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6183     fi
6184     if test ! -s $tmp/subs.frag; then
6185       ac_more_lines=false
6186     else
6187       # The purpose of the label and of the branching condition is to
6188       # speed up the sed processing (if there are no `@' at all, there
6189       # is no need to browse any of the substitutions).
6190       # These are the two extra sed commands mentioned above.
6191       (echo ':t
6192   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6193       if test -z "$ac_sed_cmds"; then
6194         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6195       else
6196         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6197       fi
6198       ac_sed_frag=`expr $ac_sed_frag + 1`
6199       ac_beg=$ac_end
6200       ac_end=`expr $ac_end + $ac_max_sed_lines`
6201     fi
6202   done
6203   if test -z "$ac_sed_cmds"; then
6204     ac_sed_cmds=cat
6205   fi
6206 fi # test -n "$CONFIG_FILES"
6207
6208 _ACEOF
6209 cat >>$CONFIG_STATUS <<\_ACEOF
6210 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6211   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6212   case $ac_file in
6213   - | *:- | *:-:* ) # input from stdin
6214         cat >$tmp/stdin
6215         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6216         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6217   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6218         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6219   * )   ac_file_in=$ac_file.in ;;
6220   esac
6221
6222   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6223   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6224 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6225          X"$ac_file" : 'X\(//\)[^/]' \| \
6226          X"$ac_file" : 'X\(//\)$' \| \
6227          X"$ac_file" : 'X\(/\)' \| \
6228          .     : '\(.\)' 2>/dev/null ||
6229 echo X"$ac_file" |
6230     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6231           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6232           /^X\(\/\/\)$/{ s//\1/; q; }
6233           /^X\(\/\).*/{ s//\1/; q; }
6234           s/.*/./; q'`
6235   { if $as_mkdir_p; then
6236     mkdir -p "$ac_dir"
6237   else
6238     as_dir="$ac_dir"
6239     as_dirs=
6240     while test ! -d "$as_dir"; do
6241       as_dirs="$as_dir $as_dirs"
6242       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6243 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6244          X"$as_dir" : 'X\(//\)[^/]' \| \
6245          X"$as_dir" : 'X\(//\)$' \| \
6246          X"$as_dir" : 'X\(/\)' \| \
6247          .     : '\(.\)' 2>/dev/null ||
6248 echo X"$as_dir" |
6249     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6250           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6251           /^X\(\/\/\)$/{ s//\1/; q; }
6252           /^X\(\/\).*/{ s//\1/; q; }
6253           s/.*/./; q'`
6254     done
6255     test ! -n "$as_dirs" || mkdir $as_dirs
6256   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6257 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6258    { (exit 1); exit 1; }; }; }
6259
6260   ac_builddir=.
6261
6262 if test "$ac_dir" != .; then
6263   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6264   # A "../" for each directory in $ac_dir_suffix.
6265   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6266 else
6267   ac_dir_suffix= ac_top_builddir=
6268 fi
6269
6270 case $srcdir in
6271   .)  # No --srcdir option.  We are building in place.
6272     ac_srcdir=.
6273     if test -z "$ac_top_builddir"; then
6274        ac_top_srcdir=.
6275     else
6276        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6277     fi ;;
6278   [\\/]* | ?:[\\/]* )  # Absolute path.
6279     ac_srcdir=$srcdir$ac_dir_suffix;
6280     ac_top_srcdir=$srcdir ;;
6281   *) # Relative path.
6282     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6283     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6284 esac
6285
6286 # Do not use `cd foo && pwd` to compute absolute paths, because
6287 # the directories may not exist.
6288 case `pwd` in
6289 .) ac_abs_builddir="$ac_dir";;
6290 *)
6291   case "$ac_dir" in
6292   .) ac_abs_builddir=`pwd`;;
6293   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6294   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6295   esac;;
6296 esac
6297 case $ac_abs_builddir in
6298 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6299 *)
6300   case ${ac_top_builddir}. in
6301   .) ac_abs_top_builddir=$ac_abs_builddir;;
6302   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6303   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6304   esac;;
6305 esac
6306 case $ac_abs_builddir in
6307 .) ac_abs_srcdir=$ac_srcdir;;
6308 *)
6309   case $ac_srcdir in
6310   .) ac_abs_srcdir=$ac_abs_builddir;;
6311   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6312   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6313   esac;;
6314 esac
6315 case $ac_abs_builddir in
6316 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6317 *)
6318   case $ac_top_srcdir in
6319   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6320   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6321   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6322   esac;;
6323 esac
6324
6325
6326   case $INSTALL in
6327   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6328   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6329   esac
6330
6331   if test x"$ac_file" != x-; then
6332     { echo "$as_me:$LINENO: creating $ac_file" >&5
6333 echo "$as_me: creating $ac_file" >&6;}
6334     rm -f "$ac_file"
6335   fi
6336   # Let's still pretend it is `configure' which instantiates (i.e., don't
6337   # use $as_me), people would be surprised to read:
6338   #    /* config.h.  Generated by config.status.  */
6339   if test x"$ac_file" = x-; then
6340     configure_input=
6341   else
6342     configure_input="$ac_file.  "
6343   fi
6344   configure_input=$configure_input"Generated from `echo $ac_file_in |
6345                                      sed 's,.*/,,'` by configure."
6346
6347   # First look for the input files in the build tree, otherwise in the
6348   # src tree.
6349   ac_file_inputs=`IFS=:
6350     for f in $ac_file_in; do
6351       case $f in
6352       -) echo $tmp/stdin ;;
6353       [\\/$]*)
6354          # Absolute (can't be DOS-style, as IFS=:)
6355          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6356 echo "$as_me: error: cannot find input file: $f" >&2;}
6357    { (exit 1); exit 1; }; }
6358          echo "$f";;
6359       *) # Relative
6360          if test -f "$f"; then
6361            # Build tree
6362            echo "$f"
6363          elif test -f "$srcdir/$f"; then
6364            # Source tree
6365            echo "$srcdir/$f"
6366          else
6367            # /dev/null tree
6368            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6369 echo "$as_me: error: cannot find input file: $f" >&2;}
6370    { (exit 1); exit 1; }; }
6371          fi;;
6372       esac
6373     done` || { (exit 1); exit 1; }
6374 _ACEOF
6375 cat >>$CONFIG_STATUS <<_ACEOF
6376   sed "$ac_vpsub
6377 $extrasub
6378 _ACEOF
6379 cat >>$CONFIG_STATUS <<\_ACEOF
6380 :t
6381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6382 s,@configure_input@,$configure_input,;t t
6383 s,@srcdir@,$ac_srcdir,;t t
6384 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6385 s,@top_srcdir@,$ac_top_srcdir,;t t
6386 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6387 s,@builddir@,$ac_builddir,;t t
6388 s,@abs_builddir@,$ac_abs_builddir,;t t
6389 s,@top_builddir@,$ac_top_builddir,;t t
6390 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6391 s,@INSTALL@,$ac_INSTALL,;t t
6392 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6393   rm -f $tmp/stdin
6394   if test x"$ac_file" != x-; then
6395     mv $tmp/out $ac_file
6396   else
6397     cat $tmp/out
6398     rm -f $tmp/out
6399   fi
6400
6401 done
6402 _ACEOF
6403 cat >>$CONFIG_STATUS <<\_ACEOF
6404
6405 #
6406 # CONFIG_HEADER section.
6407 #
6408
6409 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6410 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6411 #
6412 # ac_d sets the value in "#define NAME VALUE" lines.
6413 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
6414 ac_dB='[         ].*$,\1#\2'
6415 ac_dC=' '
6416 ac_dD=',;t'
6417 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6418 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6419 ac_uB='$,\1#\2define\3'
6420 ac_uC=' '
6421 ac_uD=',;t'
6422
6423 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6424   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6425   case $ac_file in
6426   - | *:- | *:-:* ) # input from stdin
6427         cat >$tmp/stdin
6428         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6429         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6430   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6431         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6432   * )   ac_file_in=$ac_file.in ;;
6433   esac
6434
6435   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6436 echo "$as_me: creating $ac_file" >&6;}
6437
6438   # First look for the input files in the build tree, otherwise in the
6439   # src tree.
6440   ac_file_inputs=`IFS=:
6441     for f in $ac_file_in; do
6442       case $f in
6443       -) echo $tmp/stdin ;;
6444       [\\/$]*)
6445          # Absolute (can't be DOS-style, as IFS=:)
6446          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6447 echo "$as_me: error: cannot find input file: $f" >&2;}
6448    { (exit 1); exit 1; }; }
6449          # Do quote $f, to prevent DOS paths from being IFS'd.
6450          echo "$f";;
6451       *) # Relative
6452          if test -f "$f"; then
6453            # Build tree
6454            echo "$f"
6455          elif test -f "$srcdir/$f"; then
6456            # Source tree
6457            echo "$srcdir/$f"
6458          else
6459            # /dev/null tree
6460            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6461 echo "$as_me: error: cannot find input file: $f" >&2;}
6462    { (exit 1); exit 1; }; }
6463          fi;;
6464       esac
6465     done` || { (exit 1); exit 1; }
6466   # Remove the trailing spaces.
6467   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
6468
6469 _ACEOF
6470
6471 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6472 # `conftest.undefs', that substitutes the proper values into
6473 # config.h.in to produce config.h.  The first handles `#define'
6474 # templates, and the second `#undef' templates.
6475 # And first: Protect against being on the right side of a sed subst in
6476 # config.status.  Protect against being in an unquoted here document
6477 # in config.status.
6478 rm -f conftest.defines conftest.undefs
6479 # Using a here document instead of a string reduces the quoting nightmare.
6480 # Putting comments in sed scripts is not portable.
6481 #
6482 # `end' is used to avoid that the second main sed command (meant for
6483 # 0-ary CPP macros) applies to n-ary macro definitions.
6484 # See the Autoconf documentation for `clear'.
6485 cat >confdef2sed.sed <<\_ACEOF
6486 s/[\\&,]/\\&/g
6487 s,[\\$`],\\&,g
6488 t clear
6489 : clear
6490 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6491 t end
6492 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6493 : end
6494 _ACEOF
6495 # If some macros were called several times there might be several times
6496 # the same #defines, which is useless.  Nevertheless, we may not want to
6497 # sort them, since we want the *last* AC-DEFINE to be honored.
6498 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6499 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6500 rm -f confdef2sed.sed
6501
6502 # This sed command replaces #undef with comments.  This is necessary, for
6503 # example, in the case of _POSIX_SOURCE, which is predefined and required
6504 # on some systems where configure will not decide to define it.
6505 cat >>conftest.undefs <<\_ACEOF
6506 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6507 _ACEOF
6508
6509 # Break up conftest.defines because some shells have a limit on the size
6510 # of here documents, and old seds have small limits too (100 cmds).
6511 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6512 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6513 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6514 echo '  :' >>$CONFIG_STATUS
6515 rm -f conftest.tail
6516 while grep . conftest.defines >/dev/null
6517 do
6518   # Write a limited-size here document to $tmp/defines.sed.
6519   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6520   # Speed up: don't consider the non `#define' lines.
6521   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
6522   # Work around the forget-to-reset-the-flag bug.
6523   echo 't clr' >>$CONFIG_STATUS
6524   echo ': clr' >>$CONFIG_STATUS
6525   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6526   echo 'CEOF
6527   sed -f $tmp/defines.sed $tmp/in >$tmp/out
6528   rm -f $tmp/in
6529   mv $tmp/out $tmp/in
6530 ' >>$CONFIG_STATUS
6531   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6532   rm -f conftest.defines
6533   mv conftest.tail conftest.defines
6534 done
6535 rm -f conftest.defines
6536 echo '  fi # grep' >>$CONFIG_STATUS
6537 echo >>$CONFIG_STATUS
6538
6539 # Break up conftest.undefs because some shells have a limit on the size
6540 # of here documents, and old seds have small limits too (100 cmds).
6541 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6542 rm -f conftest.tail
6543 while grep . conftest.undefs >/dev/null
6544 do
6545   # Write a limited-size here document to $tmp/undefs.sed.
6546   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6547   # Speed up: don't consider the non `#undef'
6548   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6549   # Work around the forget-to-reset-the-flag bug.
6550   echo 't clr' >>$CONFIG_STATUS
6551   echo ': clr' >>$CONFIG_STATUS
6552   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6553   echo 'CEOF
6554   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6555   rm -f $tmp/in
6556   mv $tmp/out $tmp/in
6557 ' >>$CONFIG_STATUS
6558   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6559   rm -f conftest.undefs
6560   mv conftest.tail conftest.undefs
6561 done
6562 rm -f conftest.undefs
6563
6564 cat >>$CONFIG_STATUS <<\_ACEOF
6565   # Let's still pretend it is `configure' which instantiates (i.e., don't
6566   # use $as_me), people would be surprised to read:
6567   #    /* config.h.  Generated by config.status.  */
6568   if test x"$ac_file" = x-; then
6569     echo "/* Generated by configure.  */" >$tmp/config.h
6570   else
6571     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6572   fi
6573   cat $tmp/in >>$tmp/config.h
6574   rm -f $tmp/in
6575   if test x"$ac_file" != x-; then
6576     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6577       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6578 echo "$as_me: $ac_file is unchanged" >&6;}
6579     else
6580       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6581 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6582          X"$ac_file" : 'X\(//\)[^/]' \| \
6583          X"$ac_file" : 'X\(//\)$' \| \
6584          X"$ac_file" : 'X\(/\)' \| \
6585          .     : '\(.\)' 2>/dev/null ||
6586 echo X"$ac_file" |
6587     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6588           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6589           /^X\(\/\/\)$/{ s//\1/; q; }
6590           /^X\(\/\).*/{ s//\1/; q; }
6591           s/.*/./; q'`
6592       { if $as_mkdir_p; then
6593     mkdir -p "$ac_dir"
6594   else
6595     as_dir="$ac_dir"
6596     as_dirs=
6597     while test ! -d "$as_dir"; do
6598       as_dirs="$as_dir $as_dirs"
6599       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6600 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6601          X"$as_dir" : 'X\(//\)[^/]' \| \
6602          X"$as_dir" : 'X\(//\)$' \| \
6603          X"$as_dir" : 'X\(/\)' \| \
6604          .     : '\(.\)' 2>/dev/null ||
6605 echo X"$as_dir" |
6606     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6607           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6608           /^X\(\/\/\)$/{ s//\1/; q; }
6609           /^X\(\/\).*/{ s//\1/; q; }
6610           s/.*/./; q'`
6611     done
6612     test ! -n "$as_dirs" || mkdir $as_dirs
6613   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6614 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6615    { (exit 1); exit 1; }; }; }
6616
6617       rm -f $ac_file
6618       mv $tmp/config.h $ac_file
6619     fi
6620   else
6621     cat $tmp/config.h
6622     rm -f $tmp/config.h
6623   fi
6624 # Compute $ac_file's index in $config_headers.
6625 _am_stamp_count=1
6626 for _am_header in $config_headers :; do
6627   case $_am_header in
6628     $ac_file | $ac_file:* )
6629       break ;;
6630     * )
6631       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6632   esac
6633 done
6634 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6635 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6636          X$ac_file : 'X\(//\)[^/]' \| \
6637          X$ac_file : 'X\(//\)$' \| \
6638          X$ac_file : 'X\(/\)' \| \
6639          .     : '\(.\)' 2>/dev/null ||
6640 echo X$ac_file |
6641     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6642           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6643           /^X\(\/\/\)$/{ s//\1/; q; }
6644           /^X\(\/\).*/{ s//\1/; q; }
6645           s/.*/./; q'`/stamp-h$_am_stamp_count
6646 done
6647 _ACEOF
6648 cat >>$CONFIG_STATUS <<\_ACEOF
6649
6650 #
6651 # CONFIG_COMMANDS section.
6652 #
6653 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6654   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6655   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6656   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6657 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6658          X"$ac_dest" : 'X\(//\)[^/]' \| \
6659          X"$ac_dest" : 'X\(//\)$' \| \
6660          X"$ac_dest" : 'X\(/\)' \| \
6661          .     : '\(.\)' 2>/dev/null ||
6662 echo X"$ac_dest" |
6663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6664           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6665           /^X\(\/\/\)$/{ s//\1/; q; }
6666           /^X\(\/\).*/{ s//\1/; q; }
6667           s/.*/./; q'`
6668   { if $as_mkdir_p; then
6669     mkdir -p "$ac_dir"
6670   else
6671     as_dir="$ac_dir"
6672     as_dirs=
6673     while test ! -d "$as_dir"; do
6674       as_dirs="$as_dir $as_dirs"
6675       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6676 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6677          X"$as_dir" : 'X\(//\)[^/]' \| \
6678          X"$as_dir" : 'X\(//\)$' \| \
6679          X"$as_dir" : 'X\(/\)' \| \
6680          .     : '\(.\)' 2>/dev/null ||
6681 echo X"$as_dir" |
6682     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6683           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6684           /^X\(\/\/\)$/{ s//\1/; q; }
6685           /^X\(\/\).*/{ s//\1/; q; }
6686           s/.*/./; q'`
6687     done
6688     test ! -n "$as_dirs" || mkdir $as_dirs
6689   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6690 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6691    { (exit 1); exit 1; }; }; }
6692
6693   ac_builddir=.
6694
6695 if test "$ac_dir" != .; then
6696   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6697   # A "../" for each directory in $ac_dir_suffix.
6698   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6699 else
6700   ac_dir_suffix= ac_top_builddir=
6701 fi
6702
6703 case $srcdir in
6704   .)  # No --srcdir option.  We are building in place.
6705     ac_srcdir=.
6706     if test -z "$ac_top_builddir"; then
6707        ac_top_srcdir=.
6708     else
6709        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6710     fi ;;
6711   [\\/]* | ?:[\\/]* )  # Absolute path.
6712     ac_srcdir=$srcdir$ac_dir_suffix;
6713     ac_top_srcdir=$srcdir ;;
6714   *) # Relative path.
6715     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6716     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6717 esac
6718
6719 # Do not use `cd foo && pwd` to compute absolute paths, because
6720 # the directories may not exist.
6721 case `pwd` in
6722 .) ac_abs_builddir="$ac_dir";;
6723 *)
6724   case "$ac_dir" in
6725   .) ac_abs_builddir=`pwd`;;
6726   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6727   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6728   esac;;
6729 esac
6730 case $ac_abs_builddir in
6731 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6732 *)
6733   case ${ac_top_builddir}. in
6734   .) ac_abs_top_builddir=$ac_abs_builddir;;
6735   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6736   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6737   esac;;
6738 esac
6739 case $ac_abs_builddir in
6740 .) ac_abs_srcdir=$ac_srcdir;;
6741 *)
6742   case $ac_srcdir in
6743   .) ac_abs_srcdir=$ac_abs_builddir;;
6744   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6745   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6746   esac;;
6747 esac
6748 case $ac_abs_builddir in
6749 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6750 *)
6751   case $ac_top_srcdir in
6752   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6753   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6754   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6755   esac;;
6756 esac
6757
6758
6759   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6760 echo "$as_me: executing $ac_dest commands" >&6;}
6761   case $ac_dest in
6762     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6763   # Strip MF so we end up with the name of the file.
6764   mf=`echo "$mf" | sed -e 's/:.*$//'`
6765   # Check whether this is an Automake generated Makefile or not.
6766   # We used to match only the files named `Makefile.in', but
6767   # some people rename them; so instead we look at the file content.
6768   # Grep'ing the first line is not enough: some people post-process
6769   # each Makefile.in and add a new line on top of each file to say so.
6770   # So let's grep whole file.
6771   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6772     dirpart=`(dirname "$mf") 2>/dev/null ||
6773 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6774          X"$mf" : 'X\(//\)[^/]' \| \
6775          X"$mf" : 'X\(//\)$' \| \
6776          X"$mf" : 'X\(/\)' \| \
6777          .     : '\(.\)' 2>/dev/null ||
6778 echo X"$mf" |
6779     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6780           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6781           /^X\(\/\/\)$/{ s//\1/; q; }
6782           /^X\(\/\).*/{ s//\1/; q; }
6783           s/.*/./; q'`
6784   else
6785     continue
6786   fi
6787   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6788   # Extract the definition of DEP_FILES from the Makefile without
6789   # running `make'.
6790   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6791   test -z "$DEPDIR" && continue
6792   # When using ansi2knr, U may be empty or an underscore; expand it
6793   U=`sed -n -e '/^U = / s///p' < "$mf"`
6794   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6795   # We invoke sed twice because it is the simplest approach to
6796   # changing $(DEPDIR) to its actual value in the expansion.
6797   for file in `sed -n -e '
6798     /^DEP_FILES = .*\\\\$/ {
6799       s/^DEP_FILES = //
6800       :loop
6801         s/\\\\$//
6802         p
6803         n
6804         /\\\\$/ b loop
6805       p
6806     }
6807     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6808        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6809     # Make sure the directory exists.
6810     test -f "$dirpart/$file" && continue
6811     fdir=`(dirname "$file") 2>/dev/null ||
6812 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6813          X"$file" : 'X\(//\)[^/]' \| \
6814          X"$file" : 'X\(//\)$' \| \
6815          X"$file" : 'X\(/\)' \| \
6816          .     : '\(.\)' 2>/dev/null ||
6817 echo X"$file" |
6818     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6819           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6820           /^X\(\/\/\)$/{ s//\1/; q; }
6821           /^X\(\/\).*/{ s//\1/; q; }
6822           s/.*/./; q'`
6823     { if $as_mkdir_p; then
6824     mkdir -p $dirpart/$fdir
6825   else
6826     as_dir=$dirpart/$fdir
6827     as_dirs=
6828     while test ! -d "$as_dir"; do
6829       as_dirs="$as_dir $as_dirs"
6830       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6831 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6832          X"$as_dir" : 'X\(//\)[^/]' \| \
6833          X"$as_dir" : 'X\(//\)$' \| \
6834          X"$as_dir" : 'X\(/\)' \| \
6835          .     : '\(.\)' 2>/dev/null ||
6836 echo X"$as_dir" |
6837     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6838           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6839           /^X\(\/\/\)$/{ s//\1/; q; }
6840           /^X\(\/\).*/{ s//\1/; q; }
6841           s/.*/./; q'`
6842     done
6843     test ! -n "$as_dirs" || mkdir $as_dirs
6844   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6845 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6846    { (exit 1); exit 1; }; }; }
6847
6848     # echo "creating $dirpart/$file"
6849     echo '# dummy' > "$dirpart/$file"
6850   done
6851 done
6852  ;;
6853   esac
6854 done
6855 _ACEOF
6856
6857 cat >>$CONFIG_STATUS <<\_ACEOF
6858
6859 { (exit 0); exit 0; }
6860 _ACEOF
6861 chmod +x $CONFIG_STATUS
6862 ac_clean_files=$ac_clean_files_save
6863
6864
6865 # configure is writing to config.log, and then calls config.status.
6866 # config.status does its own redirection, appending to config.log.
6867 # Unfortunately, on DOS this fails, as config.log is still kept open
6868 # by configure, so config.status won't be able to write to it; its
6869 # output is simply discarded.  So we exec the FD to /dev/null,
6870 # effectively closing config.log, so it can be properly (re)opened and
6871 # appended to by config.status.  When coming back to configure, we
6872 # need to make the FD available again.
6873 if test "$no_create" != yes; then
6874   ac_cs_success=:
6875   ac_config_status_args=
6876   test "$silent" = yes &&
6877     ac_config_status_args="$ac_config_status_args --quiet"
6878   exec 5>/dev/null
6879   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6880   exec 5>>config.log
6881   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6882   # would make configure fail if this is the last instruction.
6883   $ac_cs_success || { (exit 1); exit 1; }
6884 fi
6885