Added SILC Thread Queue API
[silc.git] / util / robodoc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40 do
41   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42     eval $as_var=C; export $as_var
43   else
44     $as_unset $as_var
45   fi
46 done
47
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50   as_expr=expr
51 else
52   as_expr=false
53 fi
54
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56   as_basename=basename
57 else
58   as_basename=false
59 fi
60
61
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65          X"$0" : 'X\(//\)$' \| \
66          X"$0" : 'X\(/\)$' \| \
67          .     : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70           /^X\/\(\/\/\)$/{ s//\1/; q; }
71           /^X\/\(\/\).*/{ s//\1/; q; }
72           s/.*/./; q'`
73
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
97   as_lineno_1=$LINENO
98   as_lineno_2=$LINENO
99   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100   test "x$as_lineno_1" != "x$as_lineno_2" &&
101   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102   # Find who we are.  Look in the path if we contain no path at all
103   # relative or not.
104   case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114        ;;
115   esac
116   # We did not find ourselves, most probably we were run as `sh COMMAND'
117   # in which case we are not to be found in the path.
118   if test "x$as_myself" = x; then
119     as_myself=$0
120   fi
121   if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123    { (exit 1); exit 1; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130   IFS=$as_save_IFS
131   test -z "$as_dir" && as_dir=.
132   for as_base in sh bash ksh sh5; do
133          case $as_dir in
134          /*)
135            if ("$as_dir/$as_base" -c '
136   as_lineno_1=$LINENO
137   as_lineno_2=$LINENO
138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139   test "x$as_lineno_1" != "x$as_lineno_2" &&
140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143              CONFIG_SHELL=$as_dir/$as_base
144              export CONFIG_SHELL
145              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146            fi;;
147          esac
148        done
149 done
150 ;;
151   esac
152
153   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154   # uniformly replaced by the line number.  The first 'sed' inserts a
155   # line-number line before each line; the second 'sed' does the real
156   # work.  The second script uses 'N' to pair each line-number line
157   # with the numbered line, and appends trailing '-' during
158   # substitution so that $LINENO is not a special case at line end.
159   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
161   sed '=' <$as_myself |
162     sed '
163       N
164       s,$,-,
165       : loop
166       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167       t loop
168       s,-$,,
169       s,^['$as_cr_digits']*\n,,
170     ' >$as_me.lineno &&
171   chmod +x $as_me.lineno ||
172     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173    { (exit 1); exit 1; }; }
174
175   # Don't try to exec as it changes $[0], causing all sort of problems
176   # (the dirname of $[0] is not the place where we might find the
177   # original and so on.  Autoconf is especially sensible to this).
178   . ./$as_me.lineno
179   # Exit status is that of the last command.
180   exit
181 }
182
183
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185   *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T='      ' ;;
187   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
190
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192   as_expr=expr
193 else
194   as_expr=false
195 fi
196
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200   # We could just check for DJGPP; but this test a) works b) is more generic
201   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202   if test -f conf$$.exe; then
203     # Don't use ln at all; we don't have any links
204     as_ln_s='cp -p'
205   else
206     as_ln_s='ln -s'
207   fi
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209   as_ln_s=ln
210 else
211   as_ln_s='cp -p'
212 fi
213 rm -f conf$$ conf$$.exe conf$$.file
214
215 if mkdir -p . 2>/dev/null; then
216   as_mkdir_p=:
217 else
218   as_mkdir_p=false
219 fi
220
221 as_executable_p="test -f"
222
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
233 '
234 IFS="   $as_nl"
235
236 # CDPATH.
237 $as_unset CDPATH
238
239
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244
245 exec 6>&1
246
247 #
248 # Initializations.
249 #
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete.  It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
262
263 # Identity of this package.
264 PACKAGE_NAME=
265 PACKAGE_TARNAME=
266 PACKAGE_VERSION=
267 PACKAGE_STRING=
268 PACKAGE_BUGREPORT=
269
270 ac_unique_file="Source/robodoc.h"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
273 #include <stdio.h>
274 #if HAVE_SYS_TYPES_H
275 # include <sys/types.h>
276 #endif
277 #if HAVE_SYS_STAT_H
278 # include <sys/stat.h>
279 #endif
280 #if STDC_HEADERS
281 # include <stdlib.h>
282 # include <stddef.h>
283 #else
284 # if HAVE_STDLIB_H
285 #  include <stdlib.h>
286 # endif
287 #endif
288 #if HAVE_STRING_H
289 # if !STDC_HEADERS && HAVE_MEMORY_H
290 #  include <memory.h>
291 # endif
292 # include <string.h>
293 #endif
294 #if HAVE_STRINGS_H
295 # include <strings.h>
296 #endif
297 #if HAVE_INTTYPES_H
298 # include <inttypes.h>
299 #else
300 # if HAVE_STDINT_H
301 #  include <stdint.h>
302 # endif
303 #endif
304 #if HAVE_UNISTD_H
305 # include <unistd.h>
306 #endif"
307
308 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 AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBOBJS LTLIBOBJS'
309 ac_subst_files=''
310
311 # Initialize some variables set by options.
312 ac_init_help=
313 ac_init_version=false
314 # The variables have the same names as the options, with
315 # dashes changed to underlines.
316 cache_file=/dev/null
317 exec_prefix=NONE
318 no_create=
319 no_recursion=
320 prefix=NONE
321 program_prefix=NONE
322 program_suffix=NONE
323 program_transform_name=s,x,x,
324 silent=
325 site=
326 srcdir=
327 verbose=
328 x_includes=NONE
329 x_libraries=NONE
330
331 # Installation directory options.
332 # These are left unexpanded so users can "make install exec_prefix=/foo"
333 # and all the variables that are supposed to be based on exec_prefix
334 # by default will actually change.
335 # Use braces instead of parens because sh, perl, etc. also accept them.
336 bindir='${exec_prefix}/bin'
337 sbindir='${exec_prefix}/sbin'
338 libexecdir='${exec_prefix}/libexec'
339 datadir='${prefix}/share'
340 sysconfdir='${prefix}/etc'
341 sharedstatedir='${prefix}/com'
342 localstatedir='${prefix}/var'
343 libdir='${exec_prefix}/lib'
344 includedir='${prefix}/include'
345 oldincludedir='/usr/include'
346 infodir='${prefix}/info'
347 mandir='${prefix}/man'
348
349 ac_prev=
350 for ac_option
351 do
352   # If the previous option needs an argument, assign it.
353   if test -n "$ac_prev"; then
354     eval "$ac_prev=\$ac_option"
355     ac_prev=
356     continue
357   fi
358
359   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
360
361   # Accept the important Cygnus configure options, so we can diagnose typos.
362
363   case $ac_option in
364
365   -bindir | --bindir | --bindi | --bind | --bin | --bi)
366     ac_prev=bindir ;;
367   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
368     bindir=$ac_optarg ;;
369
370   -build | --build | --buil | --bui | --bu)
371     ac_prev=build_alias ;;
372   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
373     build_alias=$ac_optarg ;;
374
375   -cache-file | --cache-file | --cache-fil | --cache-fi \
376   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377     ac_prev=cache_file ;;
378   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
380     cache_file=$ac_optarg ;;
381
382   --config-cache | -C)
383     cache_file=config.cache ;;
384
385   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
386     ac_prev=datadir ;;
387   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
388   | --da=*)
389     datadir=$ac_optarg ;;
390
391   -disable-* | --disable-*)
392     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
393     # Reject names that are not valid shell variable names.
394     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396    { (exit 1); exit 1; }; }
397     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398     eval "enable_$ac_feature=no" ;;
399
400   -enable-* | --enable-*)
401     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
402     # Reject names that are not valid shell variable names.
403     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405    { (exit 1); exit 1; }; }
406     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407     case $ac_option in
408       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
409       *) ac_optarg=yes ;;
410     esac
411     eval "enable_$ac_feature='$ac_optarg'" ;;
412
413   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
414   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
415   | --exec | --exe | --ex)
416     ac_prev=exec_prefix ;;
417   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
418   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
419   | --exec=* | --exe=* | --ex=*)
420     exec_prefix=$ac_optarg ;;
421
422   -gas | --gas | --ga | --g)
423     # Obsolete; use --with-gas.
424     with_gas=yes ;;
425
426   -help | --help | --hel | --he | -h)
427     ac_init_help=long ;;
428   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
429     ac_init_help=recursive ;;
430   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
431     ac_init_help=short ;;
432
433   -host | --host | --hos | --ho)
434     ac_prev=host_alias ;;
435   -host=* | --host=* | --hos=* | --ho=*)
436     host_alias=$ac_optarg ;;
437
438   -includedir | --includedir | --includedi | --included | --include \
439   | --includ | --inclu | --incl | --inc)
440     ac_prev=includedir ;;
441   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
442   | --includ=* | --inclu=* | --incl=* | --inc=*)
443     includedir=$ac_optarg ;;
444
445   -infodir | --infodir | --infodi | --infod | --info | --inf)
446     ac_prev=infodir ;;
447   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
448     infodir=$ac_optarg ;;
449
450   -libdir | --libdir | --libdi | --libd)
451     ac_prev=libdir ;;
452   -libdir=* | --libdir=* | --libdi=* | --libd=*)
453     libdir=$ac_optarg ;;
454
455   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
456   | --libexe | --libex | --libe)
457     ac_prev=libexecdir ;;
458   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
459   | --libexe=* | --libex=* | --libe=*)
460     libexecdir=$ac_optarg ;;
461
462   -localstatedir | --localstatedir | --localstatedi | --localstated \
463   | --localstate | --localstat | --localsta | --localst \
464   | --locals | --local | --loca | --loc | --lo)
465     ac_prev=localstatedir ;;
466   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
467   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
468   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
469     localstatedir=$ac_optarg ;;
470
471   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
472     ac_prev=mandir ;;
473   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
474     mandir=$ac_optarg ;;
475
476   -nfp | --nfp | --nf)
477     # Obsolete; use --without-fp.
478     with_fp=no ;;
479
480   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481   | --no-cr | --no-c | -n)
482     no_create=yes ;;
483
484   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
486     no_recursion=yes ;;
487
488   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
489   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
490   | --oldin | --oldi | --old | --ol | --o)
491     ac_prev=oldincludedir ;;
492   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
493   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
494   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
495     oldincludedir=$ac_optarg ;;
496
497   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
498     ac_prev=prefix ;;
499   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
500     prefix=$ac_optarg ;;
501
502   -program-prefix | --program-prefix | --program-prefi | --program-pref \
503   | --program-pre | --program-pr | --program-p)
504     ac_prev=program_prefix ;;
505   -program-prefix=* | --program-prefix=* | --program-prefi=* \
506   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
507     program_prefix=$ac_optarg ;;
508
509   -program-suffix | --program-suffix | --program-suffi | --program-suff \
510   | --program-suf | --program-su | --program-s)
511     ac_prev=program_suffix ;;
512   -program-suffix=* | --program-suffix=* | --program-suffi=* \
513   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
514     program_suffix=$ac_optarg ;;
515
516   -program-transform-name | --program-transform-name \
517   | --program-transform-nam | --program-transform-na \
518   | --program-transform-n | --program-transform- \
519   | --program-transform | --program-transfor \
520   | --program-transfo | --program-transf \
521   | --program-trans | --program-tran \
522   | --progr-tra | --program-tr | --program-t)
523     ac_prev=program_transform_name ;;
524   -program-transform-name=* | --program-transform-name=* \
525   | --program-transform-nam=* | --program-transform-na=* \
526   | --program-transform-n=* | --program-transform-=* \
527   | --program-transform=* | --program-transfor=* \
528   | --program-transfo=* | --program-transf=* \
529   | --program-trans=* | --program-tran=* \
530   | --progr-tra=* | --program-tr=* | --program-t=*)
531     program_transform_name=$ac_optarg ;;
532
533   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534   | -silent | --silent | --silen | --sile | --sil)
535     silent=yes ;;
536
537   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
538     ac_prev=sbindir ;;
539   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
540   | --sbi=* | --sb=*)
541     sbindir=$ac_optarg ;;
542
543   -sharedstatedir | --sharedstatedir | --sharedstatedi \
544   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
545   | --sharedst | --shareds | --shared | --share | --shar \
546   | --sha | --sh)
547     ac_prev=sharedstatedir ;;
548   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
549   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
550   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
551   | --sha=* | --sh=*)
552     sharedstatedir=$ac_optarg ;;
553
554   -site | --site | --sit)
555     ac_prev=site ;;
556   -site=* | --site=* | --sit=*)
557     site=$ac_optarg ;;
558
559   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
560     ac_prev=srcdir ;;
561   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
562     srcdir=$ac_optarg ;;
563
564   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
565   | --syscon | --sysco | --sysc | --sys | --sy)
566     ac_prev=sysconfdir ;;
567   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
568   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
569     sysconfdir=$ac_optarg ;;
570
571   -target | --target | --targe | --targ | --tar | --ta | --t)
572     ac_prev=target_alias ;;
573   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
574     target_alias=$ac_optarg ;;
575
576   -v | -verbose | --verbose | --verbos | --verbo | --verb)
577     verbose=yes ;;
578
579   -version | --version | --versio | --versi | --vers | -V)
580     ac_init_version=: ;;
581
582   -with-* | --with-*)
583     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
584     # Reject names that are not valid shell variable names.
585     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586       { echo "$as_me: error: invalid package name: $ac_package" >&2
587    { (exit 1); exit 1; }; }
588     ac_package=`echo $ac_package| sed 's/-/_/g'`
589     case $ac_option in
590       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
591       *) ac_optarg=yes ;;
592     esac
593     eval "with_$ac_package='$ac_optarg'" ;;
594
595   -without-* | --without-*)
596     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
597     # Reject names that are not valid shell variable names.
598     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599       { echo "$as_me: error: invalid package name: $ac_package" >&2
600    { (exit 1); exit 1; }; }
601     ac_package=`echo $ac_package | sed 's/-/_/g'`
602     eval "with_$ac_package=no" ;;
603
604   --x)
605     # Obsolete; use --with-x.
606     with_x=yes ;;
607
608   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
609   | --x-incl | --x-inc | --x-in | --x-i)
610     ac_prev=x_includes ;;
611   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
612   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
613     x_includes=$ac_optarg ;;
614
615   -x-libraries | --x-libraries | --x-librarie | --x-librari \
616   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
617     ac_prev=x_libraries ;;
618   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
619   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
620     x_libraries=$ac_optarg ;;
621
622   -*) { echo "$as_me: error: unrecognized option: $ac_option
623 Try \`$0 --help' for more information." >&2
624    { (exit 1); exit 1; }; }
625     ;;
626
627   *=*)
628     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
629     # Reject names that are not valid shell variable names.
630     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
631       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
632    { (exit 1); exit 1; }; }
633     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
634     eval "$ac_envvar='$ac_optarg'"
635     export $ac_envvar ;;
636
637   *)
638     # FIXME: should be removed in autoconf 3.0.
639     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
640     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
641       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
642     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
643     ;;
644
645   esac
646 done
647
648 if test -n "$ac_prev"; then
649   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
650   { echo "$as_me: error: missing argument to $ac_option" >&2
651    { (exit 1); exit 1; }; }
652 fi
653
654 # Be sure to have absolute paths.
655 for ac_var in exec_prefix prefix
656 do
657   eval ac_val=$`echo $ac_var`
658   case $ac_val in
659     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
660     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661    { (exit 1); exit 1; }; };;
662   esac
663 done
664
665 # Be sure to have absolute paths.
666 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667               localstatedir libdir includedir oldincludedir infodir mandir
668 do
669   eval ac_val=$`echo $ac_var`
670   case $ac_val in
671     [\\/$]* | ?:[\\/]* ) ;;
672     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673    { (exit 1); exit 1; }; };;
674   esac
675 done
676
677 # There might be people who depend on the old broken behavior: `$host'
678 # used to hold the argument of --host etc.
679 # FIXME: To remove some day.
680 build=$build_alias
681 host=$host_alias
682 target=$target_alias
683
684 # FIXME: To remove some day.
685 if test "x$host_alias" != x; then
686   if test "x$build_alias" = x; then
687     cross_compiling=maybe
688     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
689     If a cross compiler is detected then cross compile mode will be used." >&2
690   elif test "x$build_alias" != "x$host_alias"; then
691     cross_compiling=yes
692   fi
693 fi
694
695 ac_tool_prefix=
696 test -n "$host_alias" && ac_tool_prefix=$host_alias-
697
698 test "$silent" = yes && exec 6>/dev/null
699
700
701 # Find the source files, if location was not specified.
702 if test -z "$srcdir"; then
703   ac_srcdir_defaulted=yes
704   # Try the directory containing this script, then its parent.
705   ac_confdir=`(dirname "$0") 2>/dev/null ||
706 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
707          X"$0" : 'X\(//\)[^/]' \| \
708          X"$0" : 'X\(//\)$' \| \
709          X"$0" : 'X\(/\)' \| \
710          .     : '\(.\)' 2>/dev/null ||
711 echo X"$0" |
712     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
713           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
714           /^X\(\/\/\)$/{ s//\1/; q; }
715           /^X\(\/\).*/{ s//\1/; q; }
716           s/.*/./; q'`
717   srcdir=$ac_confdir
718   if test ! -r $srcdir/$ac_unique_file; then
719     srcdir=..
720   fi
721 else
722   ac_srcdir_defaulted=no
723 fi
724 if test ! -r $srcdir/$ac_unique_file; then
725   if test "$ac_srcdir_defaulted" = yes; then
726     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
727    { (exit 1); exit 1; }; }
728   else
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
730    { (exit 1); exit 1; }; }
731   fi
732 fi
733 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
734   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
735    { (exit 1); exit 1; }; }
736 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
737 ac_env_build_alias_set=${build_alias+set}
738 ac_env_build_alias_value=$build_alias
739 ac_cv_env_build_alias_set=${build_alias+set}
740 ac_cv_env_build_alias_value=$build_alias
741 ac_env_host_alias_set=${host_alias+set}
742 ac_env_host_alias_value=$host_alias
743 ac_cv_env_host_alias_set=${host_alias+set}
744 ac_cv_env_host_alias_value=$host_alias
745 ac_env_target_alias_set=${target_alias+set}
746 ac_env_target_alias_value=$target_alias
747 ac_cv_env_target_alias_set=${target_alias+set}
748 ac_cv_env_target_alias_value=$target_alias
749 ac_env_CC_set=${CC+set}
750 ac_env_CC_value=$CC
751 ac_cv_env_CC_set=${CC+set}
752 ac_cv_env_CC_value=$CC
753 ac_env_CFLAGS_set=${CFLAGS+set}
754 ac_env_CFLAGS_value=$CFLAGS
755 ac_cv_env_CFLAGS_set=${CFLAGS+set}
756 ac_cv_env_CFLAGS_value=$CFLAGS
757 ac_env_LDFLAGS_set=${LDFLAGS+set}
758 ac_env_LDFLAGS_value=$LDFLAGS
759 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_cv_env_LDFLAGS_value=$LDFLAGS
761 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
762 ac_env_CPPFLAGS_value=$CPPFLAGS
763 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
765 ac_env_CPP_set=${CPP+set}
766 ac_env_CPP_value=$CPP
767 ac_cv_env_CPP_set=${CPP+set}
768 ac_cv_env_CPP_value=$CPP
769
770 #
771 # Report the --help message.
772 #
773 if test "$ac_init_help" = "long"; then
774   # Omit some internal or obsolete options to make the list less imposing.
775   # This message is too long to be a string in the A/UX 3.1 sh.
776   cat <<_ACEOF
777 \`configure' configures this package to adapt to many kinds of systems.
778
779 Usage: $0 [OPTION]... [VAR=VALUE]...
780
781 To assign environment variables (e.g., CC, CFLAGS...), specify them as
782 VAR=VALUE.  See below for descriptions of some of the useful variables.
783
784 Defaults for the options are specified in brackets.
785
786 Configuration:
787   -h, --help              display this help and exit
788       --help=short        display options specific to this package
789       --help=recursive    display the short help of all the included packages
790   -V, --version           display version information and exit
791   -q, --quiet, --silent   do not print \`checking...' messages
792       --cache-file=FILE   cache test results in FILE [disabled]
793   -C, --config-cache      alias for \`--cache-file=config.cache'
794   -n, --no-create         do not create output files
795       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
796
797 _ACEOF
798
799   cat <<_ACEOF
800 Installation directories:
801   --prefix=PREFIX         install architecture-independent files in PREFIX
802                           [$ac_default_prefix]
803   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
804                           [PREFIX]
805
806 By default, \`make install' will install all the files in
807 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
808 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
809 for instance \`--prefix=\$HOME'.
810
811 For better control, use the options below.
812
813 Fine tuning of the installation directories:
814   --bindir=DIR           user executables [EPREFIX/bin]
815   --sbindir=DIR          system admin executables [EPREFIX/sbin]
816   --libexecdir=DIR       program executables [EPREFIX/libexec]
817   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
818   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
819   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
820   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
821   --libdir=DIR           object code libraries [EPREFIX/lib]
822   --includedir=DIR       C header files [PREFIX/include]
823   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
824   --infodir=DIR          info documentation [PREFIX/info]
825   --mandir=DIR           man documentation [PREFIX/man]
826 _ACEOF
827
828   cat <<\_ACEOF
829
830 Program names:
831   --program-prefix=PREFIX            prepend PREFIX to installed program names
832   --program-suffix=SUFFIX            append SUFFIX to installed program names
833   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
834 _ACEOF
835 fi
836
837 if test -n "$ac_init_help"; then
838
839   cat <<\_ACEOF
840
841 Optional Features:
842   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
843   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
844   --disable-dependency-tracking Speeds up one-time builds
845   --enable-dependency-tracking  Do not reject slow dependency extractors
846
847 Some influential environment variables:
848   CC          C compiler command
849   CFLAGS      C compiler flags
850   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
851               nonstandard directory <lib dir>
852   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
853               headers in a nonstandard directory <include dir>
854   CPP         C preprocessor
855
856 Use these variables to override the choices made by `configure' or to help
857 it to find libraries and programs with nonstandard names/locations.
858
859 _ACEOF
860 fi
861
862 if test "$ac_init_help" = "recursive"; then
863   # If there are subdirs, report their specific --help.
864   ac_popdir=`pwd`
865   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
866     test -d $ac_dir || continue
867     ac_builddir=.
868
869 if test "$ac_dir" != .; then
870   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
871   # A "../" for each directory in $ac_dir_suffix.
872   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
873 else
874   ac_dir_suffix= ac_top_builddir=
875 fi
876
877 case $srcdir in
878   .)  # No --srcdir option.  We are building in place.
879     ac_srcdir=.
880     if test -z "$ac_top_builddir"; then
881        ac_top_srcdir=.
882     else
883        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
884     fi ;;
885   [\\/]* | ?:[\\/]* )  # Absolute path.
886     ac_srcdir=$srcdir$ac_dir_suffix;
887     ac_top_srcdir=$srcdir ;;
888   *) # Relative path.
889     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
890     ac_top_srcdir=$ac_top_builddir$srcdir ;;
891 esac
892 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
893 # absolute.
894 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
895 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
896 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
897 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
898
899     cd $ac_dir
900     # Check for guested configure; otherwise get Cygnus style configure.
901     if test -f $ac_srcdir/configure.gnu; then
902       echo
903       $SHELL $ac_srcdir/configure.gnu  --help=recursive
904     elif test -f $ac_srcdir/configure; then
905       echo
906       $SHELL $ac_srcdir/configure  --help=recursive
907     elif test -f $ac_srcdir/configure.ac ||
908            test -f $ac_srcdir/configure.in; then
909       echo
910       $ac_configure --help
911     else
912       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
913     fi
914     cd $ac_popdir
915   done
916 fi
917
918 test -n "$ac_init_help" && exit 0
919 if $ac_init_version; then
920   cat <<\_ACEOF
921
922 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
923 Free Software Foundation, Inc.
924 This configure script is free software; the Free Software Foundation
925 gives unlimited permission to copy, distribute and modify it.
926 _ACEOF
927   exit 0
928 fi
929 exec 5>config.log
930 cat >&5 <<_ACEOF
931 This file contains any messages produced by compilers while
932 running configure, to aid debugging if configure makes a mistake.
933
934 It was created by $as_me, which was
935 generated by GNU Autoconf 2.54.  Invocation command line was
936
937   $ $0 $@
938
939 _ACEOF
940 {
941 cat <<_ASUNAME
942 ## --------- ##
943 ## Platform. ##
944 ## --------- ##
945
946 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
947 uname -m = `(uname -m) 2>/dev/null || echo unknown`
948 uname -r = `(uname -r) 2>/dev/null || echo unknown`
949 uname -s = `(uname -s) 2>/dev/null || echo unknown`
950 uname -v = `(uname -v) 2>/dev/null || echo unknown`
951
952 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
953 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
954
955 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
956 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
957 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
958 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
959 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
960 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
961 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
962
963 _ASUNAME
964
965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
966 for as_dir in $PATH
967 do
968   IFS=$as_save_IFS
969   test -z "$as_dir" && as_dir=.
970   echo "PATH: $as_dir"
971 done
972
973 } >&5
974
975 cat >&5 <<_ACEOF
976
977
978 ## ----------- ##
979 ## Core tests. ##
980 ## ----------- ##
981
982 _ACEOF
983
984
985 # Keep a trace of the command line.
986 # Strip out --no-create and --no-recursion so they do not pile up.
987 # Also quote any args containing shell meta-characters.
988 ac_configure_args=
989 ac_sep=
990 for ac_arg
991 do
992   case $ac_arg in
993   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994   | --no-cr | --no-c | -n ) continue ;;
995   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
996   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
997     continue ;;
998   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
999     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1000   esac
1001   ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1002   # Get rid of the leading space.
1003   ac_sep=" "
1004 done
1005
1006 # When interrupted or exit'd, cleanup temporary files, and complete
1007 # config.log.  We remove comments because anyway the quotes in there
1008 # would cause problems or look ugly.
1009 # WARNING: Be sure not to use single quotes in there, as some shells,
1010 # such as our DU 5.0 friend, will then `close' the trap.
1011 trap 'exit_status=$?
1012   # Save into config.log some information that might help in debugging.
1013   {
1014     echo
1015
1016     cat <<\_ASBOX
1017 ## ---------------- ##
1018 ## Cache variables. ##
1019 ## ---------------- ##
1020 _ASBOX
1021     echo
1022     # The following way of writing the cache mishandles newlines in values,
1023 {
1024   (set) 2>&1 |
1025     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1026     *ac_space=\ *)
1027       sed -n \
1028         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1029           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1030       ;;
1031     *)
1032       sed -n \
1033         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1034       ;;
1035     esac;
1036 }
1037     echo
1038
1039     cat <<\_ASBOX
1040 ## ----------------- ##
1041 ## Output variables. ##
1042 ## ----------------- ##
1043 _ASBOX
1044     echo
1045     for ac_var in $ac_subst_vars
1046     do
1047       eval ac_val=$`echo $ac_var`
1048       echo "$ac_var='"'"'$ac_val'"'"'"
1049     done | sort
1050     echo
1051
1052     if test -n "$ac_subst_files"; then
1053       cat <<\_ASBOX
1054 ## ------------- ##
1055 ## Output files. ##
1056 ## ------------- ##
1057 _ASBOX
1058       echo
1059       for ac_var in $ac_subst_files
1060       do
1061         eval ac_val=$`echo $ac_var`
1062         echo "$ac_var='"'"'$ac_val'"'"'"
1063       done | sort
1064       echo
1065     fi
1066
1067     if test -s confdefs.h; then
1068       cat <<\_ASBOX
1069 ## ----------- ##
1070 ## confdefs.h. ##
1071 ## ----------- ##
1072 _ASBOX
1073       echo
1074       sed "/^$/d" confdefs.h | sort
1075       echo
1076     fi
1077     test "$ac_signal" != 0 &&
1078       echo "$as_me: caught signal $ac_signal"
1079     echo "$as_me: exit $exit_status"
1080   } >&5
1081   rm -f core core.* *.core &&
1082   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1083     exit $exit_status
1084      ' 0
1085 for ac_signal in 1 2 13 15; do
1086   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1087 done
1088 ac_signal=0
1089
1090 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1091 rm -rf conftest* confdefs.h
1092 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1093 echo >confdefs.h
1094
1095 # Predefined preprocessor variables.
1096
1097 cat >>confdefs.h <<_ACEOF
1098 #define PACKAGE_NAME "$PACKAGE_NAME"
1099 _ACEOF
1100
1101
1102 cat >>confdefs.h <<_ACEOF
1103 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1104 _ACEOF
1105
1106
1107 cat >>confdefs.h <<_ACEOF
1108 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1109 _ACEOF
1110
1111
1112 cat >>confdefs.h <<_ACEOF
1113 #define PACKAGE_STRING "$PACKAGE_STRING"
1114 _ACEOF
1115
1116
1117 cat >>confdefs.h <<_ACEOF
1118 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1119 _ACEOF
1120
1121
1122 # Let the site file select an alternate cache file if it wants to.
1123 # Prefer explicitly selected file to automatically selected ones.
1124 if test -z "$CONFIG_SITE"; then
1125   if test "x$prefix" != xNONE; then
1126     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1127   else
1128     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1129   fi
1130 fi
1131 for ac_site_file in $CONFIG_SITE; do
1132   if test -r "$ac_site_file"; then
1133     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1134 echo "$as_me: loading site script $ac_site_file" >&6;}
1135     sed 's/^/| /' "$ac_site_file" >&5
1136     . "$ac_site_file"
1137   fi
1138 done
1139
1140 if test -r "$cache_file"; then
1141   # Some versions of bash will fail to source /dev/null (special
1142   # files actually), so we avoid doing that.
1143   if test -f "$cache_file"; then
1144     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1145 echo "$as_me: loading cache $cache_file" >&6;}
1146     case $cache_file in
1147       [\\/]* | ?:[\\/]* ) . $cache_file;;
1148       *)                      . ./$cache_file;;
1149     esac
1150   fi
1151 else
1152   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1153 echo "$as_me: creating cache $cache_file" >&6;}
1154   >$cache_file
1155 fi
1156
1157 # Check that the precious variables saved in the cache have kept the same
1158 # value.
1159 ac_cache_corrupted=false
1160 for ac_var in `(set) 2>&1 |
1161                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1162   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1163   eval ac_new_set=\$ac_env_${ac_var}_set
1164   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1165   eval ac_new_val="\$ac_env_${ac_var}_value"
1166   case $ac_old_set,$ac_new_set in
1167     set,)
1168       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1169 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1170       ac_cache_corrupted=: ;;
1171     ,set)
1172       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1173 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1174       ac_cache_corrupted=: ;;
1175     ,);;
1176     *)
1177       if test "x$ac_old_val" != "x$ac_new_val"; then
1178         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1179 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1180         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1181 echo "$as_me:   former value:  $ac_old_val" >&2;}
1182         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1183 echo "$as_me:   current value: $ac_new_val" >&2;}
1184         ac_cache_corrupted=:
1185       fi;;
1186   esac
1187   # Pass precious variables to config.status.
1188   if test "$ac_new_set" = set; then
1189     case $ac_new_val in
1190     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1191       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1192     *) ac_arg=$ac_var=$ac_new_val ;;
1193     esac
1194     case " $ac_configure_args " in
1195       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1196       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1197     esac
1198   fi
1199 done
1200 if $ac_cache_corrupted; then
1201   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1202 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1203   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1204 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1205    { (exit 1); exit 1; }; }
1206 fi
1207
1208 ac_ext=c
1209 ac_cpp='$CPP $CPPFLAGS'
1210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233           ac_config_headers="$ac_config_headers Source/config.h"
1234
1235
1236 am__api_version="1.7"
1237 ac_aux_dir=
1238 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1239   if test -f $ac_dir/install-sh; then
1240     ac_aux_dir=$ac_dir
1241     ac_install_sh="$ac_aux_dir/install-sh -c"
1242     break
1243   elif test -f $ac_dir/install.sh; then
1244     ac_aux_dir=$ac_dir
1245     ac_install_sh="$ac_aux_dir/install.sh -c"
1246     break
1247   elif test -f $ac_dir/shtool; then
1248     ac_aux_dir=$ac_dir
1249     ac_install_sh="$ac_aux_dir/shtool install -c"
1250     break
1251   fi
1252 done
1253 if test -z "$ac_aux_dir"; then
1254   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1255 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1256    { (exit 1); exit 1; }; }
1257 fi
1258 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1259 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1260 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1261
1262 # Find a good install program.  We prefer a C program (faster),
1263 # so one script is as good as another.  But avoid the broken or
1264 # incompatible versions:
1265 # SysV /etc/install, /usr/sbin/install
1266 # SunOS /usr/etc/install
1267 # IRIX /sbin/install
1268 # AIX /bin/install
1269 # AmigaOS /C/install, which installs bootblocks on floppy discs
1270 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1271 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1272 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1273 # ./install, which can be erroneously created by make from ./install.sh.
1274 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1275 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1276 if test -z "$INSTALL"; then
1277 if test "${ac_cv_path_install+set}" = set; then
1278   echo $ECHO_N "(cached) $ECHO_C" >&6
1279 else
1280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1281 for as_dir in $PATH
1282 do
1283   IFS=$as_save_IFS
1284   test -z "$as_dir" && as_dir=.
1285   # Account for people who put trailing slashes in PATH elements.
1286 case $as_dir/ in
1287   ./ | .// | /cC/* | \
1288   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1289   /usr/ucb/* ) ;;
1290   *)
1291     # OSF1 and SCO ODT 3.0 have their own names for install.
1292     # Don't use installbsd from OSF since it installs stuff as root
1293     # by default.
1294     for ac_prog in ginstall scoinst install; do
1295       for ac_exec_ext in '' $ac_executable_extensions; do
1296         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1297           if test $ac_prog = install &&
1298             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1299             # AIX install.  It has an incompatible calling convention.
1300             :
1301           elif test $ac_prog = install &&
1302             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1303             # program-specific install script used by HP pwplus--don't use.
1304             :
1305           else
1306             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1307             break 3
1308           fi
1309         fi
1310       done
1311     done
1312     ;;
1313 esac
1314 done
1315
1316
1317 fi
1318   if test "${ac_cv_path_install+set}" = set; then
1319     INSTALL=$ac_cv_path_install
1320   else
1321     # As a last resort, use the slow shell script.  We don't cache a
1322     # path for INSTALL within a source directory, because that will
1323     # break other packages using the cache if that directory is
1324     # removed, or if the path is relative.
1325     INSTALL=$ac_install_sh
1326   fi
1327 fi
1328 echo "$as_me:$LINENO: result: $INSTALL" >&5
1329 echo "${ECHO_T}$INSTALL" >&6
1330
1331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1332 # It thinks the first close brace ends the variable substitution.
1333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1334
1335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1336
1337 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1338
1339 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1340 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1341 # Just in case
1342 sleep 1
1343 echo timestamp > conftest.file
1344 # Do `set' in a subshell so we don't clobber the current shell's
1345 # arguments.  Must try -L first in case configure is actually a
1346 # symlink; some systems play weird games with the mod time of symlinks
1347 # (eg FreeBSD returns the mod time of the symlink's containing
1348 # directory).
1349 if (
1350    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1351    if test "$*" = "X"; then
1352       # -L didn't work.
1353       set X `ls -t $srcdir/configure conftest.file`
1354    fi
1355    rm -f conftest.file
1356    if test "$*" != "X $srcdir/configure conftest.file" \
1357       && test "$*" != "X conftest.file $srcdir/configure"; then
1358
1359       # If neither matched, then we have a broken ls.  This can happen
1360       # if, for instance, CONFIG_SHELL is bash and it inherits a
1361       # broken ls alias from the environment.  This has actually
1362       # happened.  Such a system could not be considered "sane".
1363       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1364 alias in your environment" >&5
1365 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1366 alias in your environment" >&2;}
1367    { (exit 1); exit 1; }; }
1368    fi
1369
1370    test "$2" = conftest.file
1371    )
1372 then
1373    # Ok.
1374    :
1375 else
1376    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1377 Check your system clock" >&5
1378 echo "$as_me: error: newly created file is older than distributed files!
1379 Check your system clock" >&2;}
1380    { (exit 1); exit 1; }; }
1381 fi
1382 echo "$as_me:$LINENO: result: yes" >&5
1383 echo "${ECHO_T}yes" >&6
1384 test "$program_prefix" != NONE &&
1385   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1386 # Use a double $ so make ignores it.
1387 test "$program_suffix" != NONE &&
1388   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1389 # Double any \ or $.  echo might interpret backslashes.
1390 # By default was `s,x,x', remove it if useless.
1391 cat <<\_ACEOF >conftest.sed
1392 s/[\\$]/&&/g;s/;s,x,x,$//
1393 _ACEOF
1394 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1395 rm conftest.sed
1396
1397
1398 # expand $ac_aux_dir to an absolute path
1399 am_aux_dir=`cd $ac_aux_dir && pwd`
1400
1401 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1402 # Use eval to expand $SHELL
1403 if eval "$MISSING --run true"; then
1404   am_missing_run="$MISSING --run "
1405 else
1406   am_missing_run=
1407   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1408 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1409 fi
1410
1411 for ac_prog in gawk mawk nawk awk
1412 do
1413   # Extract the first word of "$ac_prog", so it can be a program name with args.
1414 set dummy $ac_prog; ac_word=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_prog_AWK+set}" = set; then
1418   echo $ECHO_N "(cached) $ECHO_C" >&6
1419 else
1420   if test -n "$AWK"; then
1421   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1422 else
1423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424 for as_dir in $PATH
1425 do
1426   IFS=$as_save_IFS
1427   test -z "$as_dir" && as_dir=.
1428   for ac_exec_ext in '' $ac_executable_extensions; do
1429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1430     ac_cv_prog_AWK="$ac_prog"
1431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432     break 2
1433   fi
1434 done
1435 done
1436
1437 fi
1438 fi
1439 AWK=$ac_cv_prog_AWK
1440 if test -n "$AWK"; then
1441   echo "$as_me:$LINENO: result: $AWK" >&5
1442 echo "${ECHO_T}$AWK" >&6
1443 else
1444   echo "$as_me:$LINENO: result: no" >&5
1445 echo "${ECHO_T}no" >&6
1446 fi
1447
1448   test -n "$AWK" && break
1449 done
1450
1451 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1452 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1453 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1454 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1455   echo $ECHO_N "(cached) $ECHO_C" >&6
1456 else
1457   cat >conftest.make <<\_ACEOF
1458 all:
1459         @echo 'ac_maketemp="${MAKE}"'
1460 _ACEOF
1461 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1462 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1463 if test -n "$ac_maketemp"; then
1464   eval ac_cv_prog_make_${ac_make}_set=yes
1465 else
1466   eval ac_cv_prog_make_${ac_make}_set=no
1467 fi
1468 rm -f conftest.make
1469 fi
1470 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1471   echo "$as_me:$LINENO: result: yes" >&5
1472 echo "${ECHO_T}yes" >&6
1473   SET_MAKE=
1474 else
1475   echo "$as_me:$LINENO: result: no" >&5
1476 echo "${ECHO_T}no" >&6
1477   SET_MAKE="MAKE=${MAKE-make}"
1478 fi
1479
1480  # test to see if srcdir already configured
1481 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1482    test -f $srcdir/config.status; then
1483   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1484 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1485    { (exit 1); exit 1; }; }
1486 fi
1487
1488 # test whether we have cygpath
1489 if test -z "$CYGPATH_W"; then
1490   if (cygpath --version) >/dev/null 2>/dev/null; then
1491     CYGPATH_W='cygpath -w'
1492   else
1493     CYGPATH_W=echo
1494   fi
1495 fi
1496
1497
1498 # Define the identity of the package.
1499  PACKAGE=robodoc
1500  VERSION=3.2.3
1501
1502
1503 cat >>confdefs.h <<_ACEOF
1504 #define PACKAGE "$PACKAGE"
1505 _ACEOF
1506
1507
1508 cat >>confdefs.h <<_ACEOF
1509 #define VERSION "$VERSION"
1510 _ACEOF
1511
1512 # Some tools Automake needs.
1513
1514 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1515
1516
1517 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1518
1519
1520 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1521
1522
1523 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1524
1525
1526 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1527
1528
1529 AMTAR=${AMTAR-"${am_missing_run}tar"}
1530
1531 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1532
1533 # Installed binaries are usually stripped using `strip' when the user
1534 # run `make install-strip'.  However `strip' might not be the right
1535 # tool to use in cross-compilation environments, therefore Automake
1536 # will honor the `STRIP' environment variable to overrule this program.
1537 if test "$cross_compiling" != no; then
1538   if test -n "$ac_tool_prefix"; then
1539   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1540 set dummy ${ac_tool_prefix}strip; ac_word=$2
1541 echo "$as_me:$LINENO: checking for $ac_word" >&5
1542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543 if test "${ac_cv_prog_STRIP+set}" = set; then
1544   echo $ECHO_N "(cached) $ECHO_C" >&6
1545 else
1546   if test -n "$STRIP"; then
1547   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1548 else
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 for as_dir in $PATH
1551 do
1552   IFS=$as_save_IFS
1553   test -z "$as_dir" && as_dir=.
1554   for ac_exec_ext in '' $ac_executable_extensions; do
1555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558     break 2
1559   fi
1560 done
1561 done
1562
1563 fi
1564 fi
1565 STRIP=$ac_cv_prog_STRIP
1566 if test -n "$STRIP"; then
1567   echo "$as_me:$LINENO: result: $STRIP" >&5
1568 echo "${ECHO_T}$STRIP" >&6
1569 else
1570   echo "$as_me:$LINENO: result: no" >&5
1571 echo "${ECHO_T}no" >&6
1572 fi
1573
1574 fi
1575 if test -z "$ac_cv_prog_STRIP"; then
1576   ac_ct_STRIP=$STRIP
1577   # Extract the first word of "strip", so it can be a program name with args.
1578 set dummy strip; ac_word=$2
1579 echo "$as_me:$LINENO: checking for $ac_word" >&5
1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1582   echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584   if test -n "$ac_ct_STRIP"; then
1585   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1586 else
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 for as_dir in $PATH
1589 do
1590   IFS=$as_save_IFS
1591   test -z "$as_dir" && as_dir=.
1592   for ac_exec_ext in '' $ac_executable_extensions; do
1593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594     ac_cv_prog_ac_ct_STRIP="strip"
1595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1596     break 2
1597   fi
1598 done
1599 done
1600
1601   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1602 fi
1603 fi
1604 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1605 if test -n "$ac_ct_STRIP"; then
1606   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1607 echo "${ECHO_T}$ac_ct_STRIP" >&6
1608 else
1609   echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1611 fi
1612
1613   STRIP=$ac_ct_STRIP
1614 else
1615   STRIP="$ac_cv_prog_STRIP"
1616 fi
1617
1618 fi
1619 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1620
1621 # We need awk for the "check" target.  The system "awk" is bad on
1622 # some platforms.
1623
1624
1625
1626
1627 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1628 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1629 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1630 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1631   echo $ECHO_N "(cached) $ECHO_C" >&6
1632 else
1633   cat >conftest.make <<\_ACEOF
1634 all:
1635         @echo 'ac_maketemp="${MAKE}"'
1636 _ACEOF
1637 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1638 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1639 if test -n "$ac_maketemp"; then
1640   eval ac_cv_prog_make_${ac_make}_set=yes
1641 else
1642   eval ac_cv_prog_make_${ac_make}_set=no
1643 fi
1644 rm -f conftest.make
1645 fi
1646 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1647   echo "$as_me:$LINENO: result: yes" >&5
1648 echo "${ECHO_T}yes" >&6
1649   SET_MAKE=
1650 else
1651   echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1653   SET_MAKE="MAKE=${MAKE-make}"
1654 fi
1655
1656
1657 ac_ext=c
1658 ac_cpp='$CPP $CPPFLAGS'
1659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1662 if test -n "$ac_tool_prefix"; then
1663   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1664 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1665 echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667 if test "${ac_cv_prog_CC+set}" = set; then
1668   echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670   if test -n "$CC"; then
1671   ac_cv_prog_CC="$CC" # Let the user override the test.
1672 else
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1675 do
1676   IFS=$as_save_IFS
1677   test -z "$as_dir" && as_dir=.
1678   for ac_exec_ext in '' $ac_executable_extensions; do
1679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682     break 2
1683   fi
1684 done
1685 done
1686
1687 fi
1688 fi
1689 CC=$ac_cv_prog_CC
1690 if test -n "$CC"; then
1691   echo "$as_me:$LINENO: result: $CC" >&5
1692 echo "${ECHO_T}$CC" >&6
1693 else
1694   echo "$as_me:$LINENO: result: no" >&5
1695 echo "${ECHO_T}no" >&6
1696 fi
1697
1698 fi
1699 if test -z "$ac_cv_prog_CC"; then
1700   ac_ct_CC=$CC
1701   # Extract the first word of "gcc", so it can be a program name with args.
1702 set dummy gcc; ac_word=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1706   echo $ECHO_N "(cached) $ECHO_C" >&6
1707 else
1708   if test -n "$ac_ct_CC"; then
1709   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1710 else
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714   IFS=$as_save_IFS
1715   test -z "$as_dir" && as_dir=.
1716   for ac_exec_ext in '' $ac_executable_extensions; do
1717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718     ac_cv_prog_ac_ct_CC="gcc"
1719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720     break 2
1721   fi
1722 done
1723 done
1724
1725 fi
1726 fi
1727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1728 if test -n "$ac_ct_CC"; then
1729   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1730 echo "${ECHO_T}$ac_ct_CC" >&6
1731 else
1732   echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1734 fi
1735
1736   CC=$ac_ct_CC
1737 else
1738   CC="$ac_cv_prog_CC"
1739 fi
1740
1741 if test -z "$CC"; then
1742   if test -n "$ac_tool_prefix"; then
1743   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1744 set dummy ${ac_tool_prefix}cc; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_CC+set}" = set; then
1748   echo $ECHO_N "(cached) $ECHO_C" >&6
1749 else
1750   if test -n "$CC"; then
1751   ac_cv_prog_CC="$CC" # Let the user override the test.
1752 else
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 for as_dir in $PATH
1755 do
1756   IFS=$as_save_IFS
1757   test -z "$as_dir" && as_dir=.
1758   for ac_exec_ext in '' $ac_executable_extensions; do
1759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760     ac_cv_prog_CC="${ac_tool_prefix}cc"
1761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762     break 2
1763   fi
1764 done
1765 done
1766
1767 fi
1768 fi
1769 CC=$ac_cv_prog_CC
1770 if test -n "$CC"; then
1771   echo "$as_me:$LINENO: result: $CC" >&5
1772 echo "${ECHO_T}$CC" >&6
1773 else
1774   echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1776 fi
1777
1778 fi
1779 if test -z "$ac_cv_prog_CC"; then
1780   ac_ct_CC=$CC
1781   # Extract the first word of "cc", so it can be a program name with args.
1782 set dummy cc; ac_word=$2
1783 echo "$as_me:$LINENO: checking for $ac_word" >&5
1784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1785 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1786   echo $ECHO_N "(cached) $ECHO_C" >&6
1787 else
1788   if test -n "$ac_ct_CC"; then
1789   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1790 else
1791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792 for as_dir in $PATH
1793 do
1794   IFS=$as_save_IFS
1795   test -z "$as_dir" && as_dir=.
1796   for ac_exec_ext in '' $ac_executable_extensions; do
1797   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1798     ac_cv_prog_ac_ct_CC="cc"
1799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800     break 2
1801   fi
1802 done
1803 done
1804
1805 fi
1806 fi
1807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1808 if test -n "$ac_ct_CC"; then
1809   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1810 echo "${ECHO_T}$ac_ct_CC" >&6
1811 else
1812   echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1814 fi
1815
1816   CC=$ac_ct_CC
1817 else
1818   CC="$ac_cv_prog_CC"
1819 fi
1820
1821 fi
1822 if test -z "$CC"; then
1823   # Extract the first word of "cc", so it can be a program name with args.
1824 set dummy cc; ac_word=$2
1825 echo "$as_me:$LINENO: checking for $ac_word" >&5
1826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827 if test "${ac_cv_prog_CC+set}" = set; then
1828   echo $ECHO_N "(cached) $ECHO_C" >&6
1829 else
1830   if test -n "$CC"; then
1831   ac_cv_prog_CC="$CC" # Let the user override the test.
1832 else
1833   ac_prog_rejected=no
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 for as_dir in $PATH
1836 do
1837   IFS=$as_save_IFS
1838   test -z "$as_dir" && as_dir=.
1839   for ac_exec_ext in '' $ac_executable_extensions; do
1840   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1842        ac_prog_rejected=yes
1843        continue
1844      fi
1845     ac_cv_prog_CC="cc"
1846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847     break 2
1848   fi
1849 done
1850 done
1851
1852 if test $ac_prog_rejected = yes; then
1853   # We found a bogon in the path, so make sure we never use it.
1854   set dummy $ac_cv_prog_CC
1855   shift
1856   if test $# != 0; then
1857     # We chose a different compiler from the bogus one.
1858     # However, it has the same basename, so the bogon will be chosen
1859     # first if we set CC to just the basename; use the full file name.
1860     shift
1861     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1862   fi
1863 fi
1864 fi
1865 fi
1866 CC=$ac_cv_prog_CC
1867 if test -n "$CC"; then
1868   echo "$as_me:$LINENO: result: $CC" >&5
1869 echo "${ECHO_T}$CC" >&6
1870 else
1871   echo "$as_me:$LINENO: result: no" >&5
1872 echo "${ECHO_T}no" >&6
1873 fi
1874
1875 fi
1876 if test -z "$CC"; then
1877   if test -n "$ac_tool_prefix"; then
1878   for ac_prog in cl
1879   do
1880     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_CC+set}" = set; then
1885   echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887   if test -n "$CC"; then
1888   ac_cv_prog_CC="$CC" # Let the user override the test.
1889 else
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1892 do
1893   IFS=$as_save_IFS
1894   test -z "$as_dir" && as_dir=.
1895   for ac_exec_ext in '' $ac_executable_extensions; do
1896   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899     break 2
1900   fi
1901 done
1902 done
1903
1904 fi
1905 fi
1906 CC=$ac_cv_prog_CC
1907 if test -n "$CC"; then
1908   echo "$as_me:$LINENO: result: $CC" >&5
1909 echo "${ECHO_T}$CC" >&6
1910 else
1911   echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1913 fi
1914
1915     test -n "$CC" && break
1916   done
1917 fi
1918 if test -z "$CC"; then
1919   ac_ct_CC=$CC
1920   for ac_prog in cl
1921 do
1922   # Extract the first word of "$ac_prog", so it can be a program name with args.
1923 set dummy $ac_prog; ac_word=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1927   echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929   if test -n "$ac_ct_CC"; then
1930   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1931 else
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 for as_dir in $PATH
1934 do
1935   IFS=$as_save_IFS
1936   test -z "$as_dir" && as_dir=.
1937   for ac_exec_ext in '' $ac_executable_extensions; do
1938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939     ac_cv_prog_ac_ct_CC="$ac_prog"
1940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941     break 2
1942   fi
1943 done
1944 done
1945
1946 fi
1947 fi
1948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1949 if test -n "$ac_ct_CC"; then
1950   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1951 echo "${ECHO_T}$ac_ct_CC" >&6
1952 else
1953   echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1955 fi
1956
1957   test -n "$ac_ct_CC" && break
1958 done
1959
1960   CC=$ac_ct_CC
1961 fi
1962
1963 fi
1964
1965
1966 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1967 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1968    { (exit 1); exit 1; }; }
1969
1970 # Provide some information about the compiler.
1971 echo "$as_me:$LINENO:" \
1972      "checking for C compiler version" >&5
1973 ac_compiler=`set X $ac_compile; echo $2`
1974 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1975   (eval $ac_compiler --version </dev/null >&5) 2>&5
1976   ac_status=$?
1977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978   (exit $ac_status); }
1979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1980   (eval $ac_compiler -v </dev/null >&5) 2>&5
1981   ac_status=$?
1982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983   (exit $ac_status); }
1984 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1985   (eval $ac_compiler -V </dev/null >&5) 2>&5
1986   ac_status=$?
1987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988   (exit $ac_status); }
1989
1990 cat >conftest.$ac_ext <<_ACEOF
1991 #line $LINENO "configure"
1992 #include "confdefs.h"
1993
1994 int
1995 main ()
1996 {
1997
1998   ;
1999   return 0;
2000 }
2001 _ACEOF
2002 ac_clean_files_save=$ac_clean_files
2003 ac_clean_files="$ac_clean_files a.out a.exe"
2004 # Try to create an executable without -o first, disregard a.out.
2005 # It will help us diagnose broken compilers, and finding out an intuition
2006 # of exeext.
2007 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2008 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2009 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2010 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2011   (eval $ac_link_default) 2>&5
2012   ac_status=$?
2013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014   (exit $ac_status); }; then
2015   # Find the output, starting from the most likely.  This scheme is
2016 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2017 # resort.
2018
2019 # Be careful to initialize this variable, since it used to be cached.
2020 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2021 ac_cv_exeext=
2022 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
2023   test -f "$ac_file" || continue
2024   case $ac_file in
2025     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2026     a.out ) # We found the default executable, but exeext='' is most
2027             # certainly right.
2028             break;;
2029     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2030           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2031           export ac_cv_exeext
2032           break;;
2033     * ) break;;
2034   esac
2035 done
2036 else
2037   echo "$as_me: failed program was:" >&5
2038 cat conftest.$ac_ext >&5
2039 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2040 check \`config.log' for details." >&5
2041 echo "$as_me: error: C compiler cannot create executables
2042 check \`config.log' for details." >&2;}
2043    { (exit 77); exit 77; }; }
2044 fi
2045
2046 ac_exeext=$ac_cv_exeext
2047 echo "$as_me:$LINENO: result: $ac_file" >&5
2048 echo "${ECHO_T}$ac_file" >&6
2049
2050 # Check the compiler produces executables we can run.  If not, either
2051 # the compiler is broken, or we cross compile.
2052 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2053 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2054 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2055 # If not cross compiling, check that we can run a simple program.
2056 if test "$cross_compiling" != yes; then
2057   if { ac_try='./$ac_file'
2058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059   (eval $ac_try) 2>&5
2060   ac_status=$?
2061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062   (exit $ac_status); }; }; then
2063     cross_compiling=no
2064   else
2065     if test "$cross_compiling" = maybe; then
2066         cross_compiling=yes
2067     else
2068         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2069 If you meant to cross compile, use \`--host'." >&5
2070 echo "$as_me: error: cannot run C compiled programs.
2071 If you meant to cross compile, use \`--host'." >&2;}
2072    { (exit 1); exit 1; }; }
2073     fi
2074   fi
2075 fi
2076 echo "$as_me:$LINENO: result: yes" >&5
2077 echo "${ECHO_T}yes" >&6
2078
2079 rm -f a.out a.exe conftest$ac_cv_exeext
2080 ac_clean_files=$ac_clean_files_save
2081 # Check the compiler produces executables we can run.  If not, either
2082 # the compiler is broken, or we cross compile.
2083 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2084 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2085 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2086 echo "${ECHO_T}$cross_compiling" >&6
2087
2088 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2089 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2091   (eval $ac_link) 2>&5
2092   ac_status=$?
2093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094   (exit $ac_status); }; then
2095   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2096 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2097 # work properly (i.e., refer to `conftest.exe'), while it won't with
2098 # `rm'.
2099 for ac_file in conftest.exe conftest conftest.*; do
2100   test -f "$ac_file" || continue
2101   case $ac_file in
2102     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2103     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2104           export ac_cv_exeext
2105           break;;
2106     * ) break;;
2107   esac
2108 done
2109 else
2110   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2111 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2112    { (exit 1); exit 1; }; }
2113 fi
2114
2115 rm -f conftest$ac_cv_exeext
2116 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2117 echo "${ECHO_T}$ac_cv_exeext" >&6
2118
2119 rm -f conftest.$ac_ext
2120 EXEEXT=$ac_cv_exeext
2121 ac_exeext=$EXEEXT
2122 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2123 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2124 if test "${ac_cv_objext+set}" = set; then
2125   echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127   cat >conftest.$ac_ext <<_ACEOF
2128 #line $LINENO "configure"
2129 #include "confdefs.h"
2130
2131 int
2132 main ()
2133 {
2134
2135   ;
2136   return 0;
2137 }
2138 _ACEOF
2139 rm -f conftest.o conftest.obj
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141   (eval $ac_compile) 2>&5
2142   ac_status=$?
2143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144   (exit $ac_status); }; then
2145   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2146   case $ac_file in
2147     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2148     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2149        break;;
2150   esac
2151 done
2152 else
2153   echo "$as_me: failed program was:" >&5
2154 cat conftest.$ac_ext >&5
2155 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2156 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2157    { (exit 1); exit 1; }; }
2158 fi
2159
2160 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2161 fi
2162 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2163 echo "${ECHO_T}$ac_cv_objext" >&6
2164 OBJEXT=$ac_cv_objext
2165 ac_objext=$OBJEXT
2166 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2167 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2168 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2169   echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171   cat >conftest.$ac_ext <<_ACEOF
2172 #line $LINENO "configure"
2173 #include "confdefs.h"
2174
2175 int
2176 main ()
2177 {
2178 #ifndef __GNUC__
2179        choke me
2180 #endif
2181
2182   ;
2183   return 0;
2184 }
2185 _ACEOF
2186 rm -f conftest.$ac_objext
2187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188   (eval $ac_compile) 2>&5
2189   ac_status=$?
2190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191   (exit $ac_status); } &&
2192          { ac_try='test -s conftest.$ac_objext'
2193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194   (eval $ac_try) 2>&5
2195   ac_status=$?
2196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197   (exit $ac_status); }; }; then
2198   ac_compiler_gnu=yes
2199 else
2200   echo "$as_me: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2202 ac_compiler_gnu=no
2203 fi
2204 rm -f conftest.$ac_objext conftest.$ac_ext
2205 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2206
2207 fi
2208 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2209 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2210 GCC=`test $ac_compiler_gnu = yes && echo yes`
2211 ac_test_CFLAGS=${CFLAGS+set}
2212 ac_save_CFLAGS=$CFLAGS
2213 CFLAGS="-g"
2214 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2215 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2216 if test "${ac_cv_prog_cc_g+set}" = set; then
2217   echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219   cat >conftest.$ac_ext <<_ACEOF
2220 #line $LINENO "configure"
2221 #include "confdefs.h"
2222
2223 int
2224 main ()
2225 {
2226
2227   ;
2228   return 0;
2229 }
2230 _ACEOF
2231 rm -f conftest.$ac_objext
2232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233   (eval $ac_compile) 2>&5
2234   ac_status=$?
2235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236   (exit $ac_status); } &&
2237          { ac_try='test -s conftest.$ac_objext'
2238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239   (eval $ac_try) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }; }; then
2243   ac_cv_prog_cc_g=yes
2244 else
2245   echo "$as_me: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2247 ac_cv_prog_cc_g=no
2248 fi
2249 rm -f conftest.$ac_objext conftest.$ac_ext
2250 fi
2251 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2252 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2253 if test "$ac_test_CFLAGS" = set; then
2254   CFLAGS=$ac_save_CFLAGS
2255 elif test $ac_cv_prog_cc_g = yes; then
2256   if test "$GCC" = yes; then
2257     CFLAGS="-g -O2"
2258   else
2259     CFLAGS="-g"
2260   fi
2261 else
2262   if test "$GCC" = yes; then
2263     CFLAGS="-O2"
2264   else
2265     CFLAGS=
2266   fi
2267 fi
2268 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2269 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2270 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2271   echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273   ac_cv_prog_cc_stdc=no
2274 ac_save_CC=$CC
2275 cat >conftest.$ac_ext <<_ACEOF
2276 #line $LINENO "configure"
2277 #include "confdefs.h"
2278 #include <stdarg.h>
2279 #include <stdio.h>
2280 #include <sys/types.h>
2281 #include <sys/stat.h>
2282 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2283 struct buf { int x; };
2284 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2285 static char *e (p, i)
2286      char **p;
2287      int i;
2288 {
2289   return p[i];
2290 }
2291 static char *f (char * (*g) (char **, int), char **p, ...)
2292 {
2293   char *s;
2294   va_list v;
2295   va_start (v,p);
2296   s = g (p, va_arg (v,int));
2297   va_end (v);
2298   return s;
2299 }
2300 int test (int i, double x);
2301 struct s1 {int (*f) (int a);};
2302 struct s2 {int (*f) (double a);};
2303 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2304 int argc;
2305 char **argv;
2306 int
2307 main ()
2308 {
2309 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 # Don't try gcc -ansi; that turns off useful extensions and
2315 # breaks some systems' header files.
2316 # AIX                   -qlanglvl=ansi
2317 # Ultrix and OSF/1      -std1
2318 # HP-UX 10.20 and later -Ae
2319 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2320 # SVR4                  -Xc -D__EXTENSIONS__
2321 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2322 do
2323   CC="$ac_save_CC $ac_arg"
2324   rm -f conftest.$ac_objext
2325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326   (eval $ac_compile) 2>&5
2327   ac_status=$?
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); } &&
2330          { ac_try='test -s conftest.$ac_objext'
2331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332   (eval $ac_try) 2>&5
2333   ac_status=$?
2334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335   (exit $ac_status); }; }; then
2336   ac_cv_prog_cc_stdc=$ac_arg
2337 break
2338 else
2339   echo "$as_me: failed program was:" >&5
2340 cat conftest.$ac_ext >&5
2341 fi
2342 rm -f conftest.$ac_objext
2343 done
2344 rm -f conftest.$ac_ext conftest.$ac_objext
2345 CC=$ac_save_CC
2346
2347 fi
2348
2349 case "x$ac_cv_prog_cc_stdc" in
2350   x|xno)
2351     echo "$as_me:$LINENO: result: none needed" >&5
2352 echo "${ECHO_T}none needed" >&6 ;;
2353   *)
2354     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2355 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2356     CC="$CC $ac_cv_prog_cc_stdc" ;;
2357 esac
2358
2359 # Some people use a C++ compiler to compile C.  Since we use `exit',
2360 # in C++ we need to declare it.  In case someone uses the same compiler
2361 # for both compiling C and C++ we need to have the C++ compiler decide
2362 # the declaration of exit, since it's the most demanding environment.
2363 cat >conftest.$ac_ext <<_ACEOF
2364 #ifndef __cplusplus
2365   choke me
2366 #endif
2367 _ACEOF
2368 rm -f conftest.$ac_objext
2369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370   (eval $ac_compile) 2>&5
2371   ac_status=$?
2372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373   (exit $ac_status); } &&
2374          { ac_try='test -s conftest.$ac_objext'
2375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376   (eval $ac_try) 2>&5
2377   ac_status=$?
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); }; }; then
2380   for ac_declaration in \
2381    ''\
2382    '#include <stdlib.h>' \
2383    'extern "C" void std::exit (int) throw (); using std::exit;' \
2384    'extern "C" void std::exit (int); using std::exit;' \
2385    'extern "C" void exit (int) throw ();' \
2386    'extern "C" void exit (int);' \
2387    'void exit (int);'
2388 do
2389   cat >conftest.$ac_ext <<_ACEOF
2390 #line $LINENO "configure"
2391 #include "confdefs.h"
2392 #include <stdlib.h>
2393 $ac_declaration
2394 int
2395 main ()
2396 {
2397 exit (42);
2398   ;
2399   return 0;
2400 }
2401 _ACEOF
2402 rm -f conftest.$ac_objext
2403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404   (eval $ac_compile) 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); } &&
2408          { ac_try='test -s conftest.$ac_objext'
2409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410   (eval $ac_try) 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; }; then
2414   :
2415 else
2416   echo "$as_me: failed program was:" >&5
2417 cat conftest.$ac_ext >&5
2418 continue
2419 fi
2420 rm -f conftest.$ac_objext conftest.$ac_ext
2421   cat >conftest.$ac_ext <<_ACEOF
2422 #line $LINENO "configure"
2423 #include "confdefs.h"
2424 $ac_declaration
2425 int
2426 main ()
2427 {
2428 exit (42);
2429   ;
2430   return 0;
2431 }
2432 _ACEOF
2433 rm -f conftest.$ac_objext
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435   (eval $ac_compile) 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); } &&
2439          { ac_try='test -s conftest.$ac_objext'
2440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441   (eval $ac_try) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }; }; then
2445   break
2446 else
2447   echo "$as_me: failed program was:" >&5
2448 cat conftest.$ac_ext >&5
2449 fi
2450 rm -f conftest.$ac_objext conftest.$ac_ext
2451 done
2452 rm -f conftest*
2453 if test -n "$ac_declaration"; then
2454   echo '#ifdef __cplusplus' >>confdefs.h
2455   echo $ac_declaration      >>confdefs.h
2456   echo '#endif'             >>confdefs.h
2457 fi
2458
2459 else
2460   echo "$as_me: failed program was:" >&5
2461 cat conftest.$ac_ext >&5
2462 fi
2463 rm -f conftest.$ac_objext conftest.$ac_ext
2464 ac_ext=c
2465 ac_cpp='$CPP $CPPFLAGS'
2466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469 rm -f .deps 2>/dev/null
2470 mkdir .deps 2>/dev/null
2471 if test -d .deps; then
2472   DEPDIR=.deps
2473 else
2474   # MS-DOS does not allow filenames that begin with a dot.
2475   DEPDIR=_deps
2476 fi
2477 rmdir .deps 2>/dev/null
2478
2479
2480           ac_config_commands="$ac_config_commands depfiles"
2481
2482
2483 am_make=${MAKE-make}
2484 cat > confinc << 'END'
2485 doit:
2486         @echo done
2487 END
2488 # If we don't find an include directive, just comment out the code.
2489 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2490 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2491 am__include="#"
2492 am__quote=
2493 _am_result=none
2494 # First try GNU make style include.
2495 echo "include confinc" > confmf
2496 # We grep out `Entering directory' and `Leaving directory'
2497 # messages which can occur if `w' ends up in MAKEFLAGS.
2498 # In particular we don't look at `^make:' because GNU make might
2499 # be invoked under some other name (usually "gmake"), in which
2500 # case it prints its new name instead of `make'.
2501 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2502    am__include=include
2503    am__quote=
2504    _am_result=GNU
2505 fi
2506 # Now try BSD make style include.
2507 if test "$am__include" = "#"; then
2508    echo '.include "confinc"' > confmf
2509    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2510       am__include=.include
2511       am__quote="\""
2512       _am_result=BSD
2513    fi
2514 fi
2515
2516
2517 echo "$as_me:$LINENO: result: $_am_result" >&5
2518 echo "${ECHO_T}$_am_result" >&6
2519 rm -f confinc confmf
2520
2521 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2522 if test "${enable_dependency_tracking+set}" = set; then
2523   enableval="$enable_dependency_tracking"
2524
2525 fi;
2526 if test "x$enable_dependency_tracking" != xno; then
2527   am_depcomp="$ac_aux_dir/depcomp"
2528   AMDEPBACKSLASH='\'
2529 fi
2530
2531
2532 if test "x$enable_dependency_tracking" != xno; then
2533   AMDEP_TRUE=
2534   AMDEP_FALSE='#'
2535 else
2536   AMDEP_TRUE='#'
2537   AMDEP_FALSE=
2538 fi
2539
2540
2541
2542
2543 depcc="$CC"   am_compiler_list=
2544
2545 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2546 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2547 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2548   echo $ECHO_N "(cached) $ECHO_C" >&6
2549 else
2550   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2551   # We make a subdir and do the tests there.  Otherwise we can end up
2552   # making bogus files that we don't know about and never remove.  For
2553   # instance it was reported that on HP-UX the gcc test will end up
2554   # making a dummy file named `D' -- because `-MD' means `put the output
2555   # in D'.
2556   mkdir conftest.dir
2557   # Copy depcomp to subdir because otherwise we won't find it if we're
2558   # using a relative directory.
2559   cp "$am_depcomp" conftest.dir
2560   cd conftest.dir
2561
2562   am_cv_CC_dependencies_compiler_type=none
2563   if test "$am_compiler_list" = ""; then
2564      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2565   fi
2566   for depmode in $am_compiler_list; do
2567     # We need to recreate these files for each test, as the compiler may
2568     # overwrite some of them when testing with obscure command lines.
2569     # This happens at least with the AIX C compiler.
2570     echo '#include "conftest.h"' > conftest.c
2571     echo 'int i;' > conftest.h
2572     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2573
2574     case $depmode in
2575     nosideeffect)
2576       # after this tag, mechanisms are not by side-effect, so they'll
2577       # only be used when explicitly requested
2578       if test "x$enable_dependency_tracking" = xyes; then
2579         continue
2580       else
2581         break
2582       fi
2583       ;;
2584     none) break ;;
2585     esac
2586     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2587     # mode.  It turns out that the SunPro C++ compiler does not properly
2588     # handle `-M -o', and we need to detect this.
2589     if depmode=$depmode \
2590        source=conftest.c object=conftest.o \
2591        depfile=conftest.Po tmpdepfile=conftest.TPo \
2592        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2593        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2594        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2595       am_cv_CC_dependencies_compiler_type=$depmode
2596       break
2597     fi
2598   done
2599
2600   cd ..
2601   rm -rf conftest.dir
2602 else
2603   am_cv_CC_dependencies_compiler_type=none
2604 fi
2605
2606 fi
2607 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2608 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2609 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2610
2611
2612
2613 if
2614   test "x$enable_dependency_tracking" != xno \
2615   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2616   am__fastdepCC_TRUE=
2617   am__fastdepCC_FALSE='#'
2618 else
2619   am__fastdepCC_TRUE='#'
2620   am__fastdepCC_FALSE=
2621 fi
2622
2623
2624
2625
2626
2627 ac_ext=c
2628 ac_cpp='$CPP $CPPFLAGS'
2629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2633 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2634 # On Suns, sometimes $CPP names a directory.
2635 if test -n "$CPP" && test -d "$CPP"; then
2636   CPP=
2637 fi
2638 if test -z "$CPP"; then
2639   if test "${ac_cv_prog_CPP+set}" = set; then
2640   echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642       # Double quotes because CPP needs to be expanded
2643     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2644     do
2645       ac_preproc_ok=false
2646 for ac_c_preproc_warn_flag in '' yes
2647 do
2648   # Use a header file that comes with gcc, so configuring glibc
2649   # with a fresh cross-compiler works.
2650   # On the NeXT, cc -E runs the code through the compiler's parser,
2651   # not just through cpp. "Syntax error" is here to catch this case.
2652   cat >conftest.$ac_ext <<_ACEOF
2653 #line $LINENO "configure"
2654 #include "confdefs.h"
2655 #include <assert.h>
2656                      Syntax error
2657 _ACEOF
2658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2659   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2660   ac_status=$?
2661   grep -v '^ *+' conftest.er1 >conftest.err
2662   rm -f conftest.er1
2663   cat conftest.err >&5
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); } >/dev/null; then
2666   if test -s conftest.err; then
2667     ac_cpp_err=$ac_c_preproc_warn_flag
2668   else
2669     ac_cpp_err=
2670   fi
2671 else
2672   ac_cpp_err=yes
2673 fi
2674 if test -z "$ac_cpp_err"; then
2675   :
2676 else
2677   echo "$as_me: failed program was:" >&5
2678   cat conftest.$ac_ext >&5
2679   # Broken: fails on valid input.
2680 continue
2681 fi
2682 rm -f conftest.err conftest.$ac_ext
2683
2684   # OK, works on sane cases.  Now check whether non-existent headers
2685   # can be detected and how.
2686   cat >conftest.$ac_ext <<_ACEOF
2687 #line $LINENO "configure"
2688 #include "confdefs.h"
2689 #include <ac_nonexistent.h>
2690 _ACEOF
2691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2693   ac_status=$?
2694   grep -v '^ *+' conftest.er1 >conftest.err
2695   rm -f conftest.er1
2696   cat conftest.err >&5
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); } >/dev/null; then
2699   if test -s conftest.err; then
2700     ac_cpp_err=$ac_c_preproc_warn_flag
2701   else
2702     ac_cpp_err=
2703   fi
2704 else
2705   ac_cpp_err=yes
2706 fi
2707 if test -z "$ac_cpp_err"; then
2708   # Broken: success on invalid input.
2709 continue
2710 else
2711   echo "$as_me: failed program was:" >&5
2712   cat conftest.$ac_ext >&5
2713   # Passes both tests.
2714 ac_preproc_ok=:
2715 break
2716 fi
2717 rm -f conftest.err conftest.$ac_ext
2718
2719 done
2720 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2721 rm -f conftest.err conftest.$ac_ext
2722 if $ac_preproc_ok; then
2723   break
2724 fi
2725
2726     done
2727     ac_cv_prog_CPP=$CPP
2728
2729 fi
2730   CPP=$ac_cv_prog_CPP
2731 else
2732   ac_cv_prog_CPP=$CPP
2733 fi
2734 echo "$as_me:$LINENO: result: $CPP" >&5
2735 echo "${ECHO_T}$CPP" >&6
2736 ac_preproc_ok=false
2737 for ac_c_preproc_warn_flag in '' yes
2738 do
2739   # Use a header file that comes with gcc, so configuring glibc
2740   # with a fresh cross-compiler works.
2741   # On the NeXT, cc -E runs the code through the compiler's parser,
2742   # not just through cpp. "Syntax error" is here to catch this case.
2743   cat >conftest.$ac_ext <<_ACEOF
2744 #line $LINENO "configure"
2745 #include "confdefs.h"
2746 #include <assert.h>
2747                      Syntax error
2748 _ACEOF
2749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2750   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2751   ac_status=$?
2752   grep -v '^ *+' conftest.er1 >conftest.err
2753   rm -f conftest.er1
2754   cat conftest.err >&5
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); } >/dev/null; then
2757   if test -s conftest.err; then
2758     ac_cpp_err=$ac_c_preproc_warn_flag
2759   else
2760     ac_cpp_err=
2761   fi
2762 else
2763   ac_cpp_err=yes
2764 fi
2765 if test -z "$ac_cpp_err"; then
2766   :
2767 else
2768   echo "$as_me: failed program was:" >&5
2769   cat conftest.$ac_ext >&5
2770   # Broken: fails on valid input.
2771 continue
2772 fi
2773 rm -f conftest.err conftest.$ac_ext
2774
2775   # OK, works on sane cases.  Now check whether non-existent headers
2776   # can be detected and how.
2777   cat >conftest.$ac_ext <<_ACEOF
2778 #line $LINENO "configure"
2779 #include "confdefs.h"
2780 #include <ac_nonexistent.h>
2781 _ACEOF
2782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2783   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2784   ac_status=$?
2785   grep -v '^ *+' conftest.er1 >conftest.err
2786   rm -f conftest.er1
2787   cat conftest.err >&5
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); } >/dev/null; then
2790   if test -s conftest.err; then
2791     ac_cpp_err=$ac_c_preproc_warn_flag
2792   else
2793     ac_cpp_err=
2794   fi
2795 else
2796   ac_cpp_err=yes
2797 fi
2798 if test -z "$ac_cpp_err"; then
2799   # Broken: success on invalid input.
2800 continue
2801 else
2802   echo "$as_me: failed program was:" >&5
2803   cat conftest.$ac_ext >&5
2804   # Passes both tests.
2805 ac_preproc_ok=:
2806 break
2807 fi
2808 rm -f conftest.err conftest.$ac_ext
2809
2810 done
2811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2812 rm -f conftest.err conftest.$ac_ext
2813 if $ac_preproc_ok; then
2814   :
2815 else
2816   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2817 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2818    { (exit 1); exit 1; }; }
2819 fi
2820
2821 ac_ext=c
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826
2827
2828 echo "$as_me:$LINENO: checking for egrep" >&5
2829 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2830 if test "${ac_cv_prog_egrep+set}" = set; then
2831   echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2834     then ac_cv_prog_egrep='grep -E'
2835     else ac_cv_prog_egrep='egrep'
2836     fi
2837 fi
2838 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2839 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2840  EGREP=$ac_cv_prog_egrep
2841
2842
2843 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2844 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2845 if test "${ac_cv_header_stdc+set}" = set; then
2846   echo $ECHO_N "(cached) $ECHO_C" >&6
2847 else
2848   cat >conftest.$ac_ext <<_ACEOF
2849 #line $LINENO "configure"
2850 #include "confdefs.h"
2851 #include <stdlib.h>
2852 #include <stdarg.h>
2853 #include <string.h>
2854 #include <float.h>
2855
2856 _ACEOF
2857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2858   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2859   ac_status=$?
2860   grep -v '^ *+' conftest.er1 >conftest.err
2861   rm -f conftest.er1
2862   cat conftest.err >&5
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); } >/dev/null; then
2865   if test -s conftest.err; then
2866     ac_cpp_err=$ac_c_preproc_warn_flag
2867   else
2868     ac_cpp_err=
2869   fi
2870 else
2871   ac_cpp_err=yes
2872 fi
2873 if test -z "$ac_cpp_err"; then
2874   ac_cv_header_stdc=yes
2875 else
2876   echo "$as_me: failed program was:" >&5
2877   cat conftest.$ac_ext >&5
2878   ac_cv_header_stdc=no
2879 fi
2880 rm -f conftest.err conftest.$ac_ext
2881
2882 if test $ac_cv_header_stdc = yes; then
2883   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2884   cat >conftest.$ac_ext <<_ACEOF
2885 #line $LINENO "configure"
2886 #include "confdefs.h"
2887 #include <string.h>
2888
2889 _ACEOF
2890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2891   $EGREP "memchr" >/dev/null 2>&1; then
2892   :
2893 else
2894   ac_cv_header_stdc=no
2895 fi
2896 rm -f conftest*
2897
2898 fi
2899
2900 if test $ac_cv_header_stdc = yes; then
2901   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2902   cat >conftest.$ac_ext <<_ACEOF
2903 #line $LINENO "configure"
2904 #include "confdefs.h"
2905 #include <stdlib.h>
2906
2907 _ACEOF
2908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2909   $EGREP "free" >/dev/null 2>&1; then
2910   :
2911 else
2912   ac_cv_header_stdc=no
2913 fi
2914 rm -f conftest*
2915
2916 fi
2917
2918 if test $ac_cv_header_stdc = yes; then
2919   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2920   if test "$cross_compiling" = yes; then
2921   :
2922 else
2923   cat >conftest.$ac_ext <<_ACEOF
2924 #line $LINENO "configure"
2925 #include "confdefs.h"
2926 #include <ctype.h>
2927 #if ((' ' & 0x0FF) == 0x020)
2928 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2929 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2930 #else
2931 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2932                      || ('j' <= (c) && (c) <= 'r') \
2933                      || ('s' <= (c) && (c) <= 'z'))
2934 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2935 #endif
2936
2937 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2938 int
2939 main ()
2940 {
2941   int i;
2942   for (i = 0; i < 256; i++)
2943     if (XOR (islower (i), ISLOWER (i))
2944         || toupper (i) != TOUPPER (i))
2945       exit(2);
2946   exit (0);
2947 }
2948 _ACEOF
2949 rm -f conftest$ac_exeext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2951   (eval $ac_link) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956   (eval $ac_try) 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); }; }; then
2960   :
2961 else
2962   echo "$as_me: program exited with status $ac_status" >&5
2963 echo "$as_me: failed program was:" >&5
2964 cat conftest.$ac_ext >&5
2965 ( exit $ac_status )
2966 ac_cv_header_stdc=no
2967 fi
2968 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2969 fi
2970 fi
2971 fi
2972 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2973 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2974 if test $ac_cv_header_stdc = yes; then
2975
2976 cat >>confdefs.h <<\_ACEOF
2977 #define STDC_HEADERS 1
2978 _ACEOF
2979
2980 fi
2981
2982
2983 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2984 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2985 if test "${ac_cv_c_const+set}" = set; then
2986   echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988   cat >conftest.$ac_ext <<_ACEOF
2989 #line $LINENO "configure"
2990 #include "confdefs.h"
2991
2992 int
2993 main ()
2994 {
2995 /* FIXME: Include the comments suggested by Paul. */
2996 #ifndef __cplusplus
2997   /* Ultrix mips cc rejects this.  */
2998   typedef int charset[2];
2999   const charset x;
3000   /* SunOS 4.1.1 cc rejects this.  */
3001   char const *const *ccp;
3002   char **p;
3003   /* NEC SVR4.0.2 mips cc rejects this.  */
3004   struct point {int x, y;};
3005   static struct point const zero = {0,0};
3006   /* AIX XL C 1.02.0.0 rejects this.
3007      It does not let you subtract one const X* pointer from another in
3008      an arm of an if-expression whose if-part is not a constant
3009      expression */
3010   const char *g = "string";
3011   ccp = &g + (g ? g-g : 0);
3012   /* HPUX 7.0 cc rejects these. */
3013   ++ccp;
3014   p = (char**) ccp;
3015   ccp = (char const *const *) p;
3016   { /* SCO 3.2v4 cc rejects this.  */
3017     char *t;
3018     char const *s = 0 ? (char *) 0 : (char const *) 0;
3019
3020     *t++ = 0;
3021   }
3022   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3023     int x[] = {25, 17};
3024     const int *foo = &x[0];
3025     ++foo;
3026   }
3027   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3028     typedef const int *iptr;
3029     iptr p = 0;
3030     ++p;
3031   }
3032   { /* AIX XL C 1.02.0.0 rejects this saying
3033        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3034     struct s { int j; const int *ap[3]; };
3035     struct s *b; b->j = 5;
3036   }
3037   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3038     const int foo = 10;
3039   }
3040 #endif
3041
3042   ;
3043   return 0;
3044 }
3045 _ACEOF
3046 rm -f conftest.$ac_objext
3047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3048   (eval $ac_compile) 2>&5
3049   ac_status=$?
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); } &&
3052          { ac_try='test -s conftest.$ac_objext'
3053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054   (eval $ac_try) 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }; }; then
3058   ac_cv_c_const=yes
3059 else
3060   echo "$as_me: failed program was:" >&5
3061 cat conftest.$ac_ext >&5
3062 ac_cv_c_const=no
3063 fi
3064 rm -f conftest.$ac_objext conftest.$ac_ext
3065 fi
3066 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3067 echo "${ECHO_T}$ac_cv_c_const" >&6
3068 if test $ac_cv_c_const = no; then
3069
3070 cat >>confdefs.h <<\_ACEOF
3071 #define const
3072 _ACEOF
3073
3074 fi
3075
3076 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3087                   inttypes.h stdint.h unistd.h
3088 do
3089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3090 echo "$as_me:$LINENO: checking for $ac_header" >&5
3091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3093   echo $ECHO_N "(cached) $ECHO_C" >&6
3094 else
3095   cat >conftest.$ac_ext <<_ACEOF
3096 #line $LINENO "configure"
3097 #include "confdefs.h"
3098 $ac_includes_default
3099
3100 #include <$ac_header>
3101 _ACEOF
3102 rm -f conftest.$ac_objext
3103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3104   (eval $ac_compile) 2>&5
3105   ac_status=$?
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } &&
3108          { ac_try='test -s conftest.$ac_objext'
3109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110   (eval $ac_try) 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }; }; then
3114   eval "$as_ac_Header=yes"
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 cat conftest.$ac_ext >&5
3118 eval "$as_ac_Header=no"
3119 fi
3120 rm -f conftest.$ac_objext conftest.$ac_ext
3121 fi
3122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3125   cat >>confdefs.h <<_ACEOF
3126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3127 _ACEOF
3128
3129 fi
3130
3131 done
3132
3133
3134 echo "$as_me:$LINENO: checking for size_t" >&5
3135 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3136 if test "${ac_cv_type_size_t+set}" = set; then
3137   echo $ECHO_N "(cached) $ECHO_C" >&6
3138 else
3139   cat >conftest.$ac_ext <<_ACEOF
3140 #line $LINENO "configure"
3141 #include "confdefs.h"
3142 $ac_includes_default
3143 int
3144 main ()
3145 {
3146 if ((size_t *) 0)
3147   return 0;
3148 if (sizeof (size_t))
3149   return 0;
3150   ;
3151   return 0;
3152 }
3153 _ACEOF
3154 rm -f conftest.$ac_objext
3155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3156   (eval $ac_compile) 2>&5
3157   ac_status=$?
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); } &&
3160          { ac_try='test -s conftest.$ac_objext'
3161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162   (eval $ac_try) 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }; }; then
3166   ac_cv_type_size_t=yes
3167 else
3168   echo "$as_me: failed program was:" >&5
3169 cat conftest.$ac_ext >&5
3170 ac_cv_type_size_t=no
3171 fi
3172 rm -f conftest.$ac_objext conftest.$ac_ext
3173 fi
3174 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3175 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3176 if test $ac_cv_type_size_t = yes; then
3177   :
3178 else
3179
3180 cat >>confdefs.h <<_ACEOF
3181 #define size_t unsigned
3182 _ACEOF
3183
3184 fi
3185
3186
3187
3188 for ac_func in strftime
3189 do
3190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3191 echo "$as_me:$LINENO: checking for $ac_func" >&5
3192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3193 if eval "test \"\${$as_ac_var+set}\" = set"; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196   cat >conftest.$ac_ext <<_ACEOF
3197 #line $LINENO "configure"
3198 #include "confdefs.h"
3199 /* System header to define __stub macros and hopefully few prototypes,
3200     which can conflict with char $ac_func (); below.  */
3201 #include <assert.h>
3202 /* Override any gcc2 internal prototype to avoid an error.  */
3203 #ifdef __cplusplus
3204 extern "C"
3205 #endif
3206 /* We use char because int might match the return type of a gcc2
3207    builtin and then its argument prototype would still apply.  */
3208 char $ac_func ();
3209 char (*f) ();
3210
3211 int
3212 main ()
3213 {
3214 /* The GNU C library defines this for functions which it implements
3215     to always fail with ENOSYS.  Some functions are actually named
3216     something starting with __ and the normal name is an alias.  */
3217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3218 choke me
3219 #else
3220 f = $ac_func;
3221 #endif
3222
3223   ;
3224   return 0;
3225 }
3226 _ACEOF
3227 rm -f conftest.$ac_objext conftest$ac_exeext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3229   (eval $ac_link) 2>&5
3230   ac_status=$?
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); } &&
3233          { ac_try='test -s conftest$ac_exeext'
3234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235   (eval $ac_try) 2>&5
3236   ac_status=$?
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); }; }; then
3239   eval "$as_ac_var=yes"
3240 else
3241   echo "$as_me: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3243 eval "$as_ac_var=no"
3244 fi
3245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3246 fi
3247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3249 if test `eval echo '${'$as_ac_var'}'` = yes; then
3250   cat >>confdefs.h <<_ACEOF
3251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3252 _ACEOF
3253
3254 else
3255   # strftime is in -lintl on SCO UNIX.
3256 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
3257 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
3258 if test "${ac_cv_lib_intl_strftime+set}" = set; then
3259   echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261   ac_check_lib_save_LIBS=$LIBS
3262 LIBS="-lintl  $LIBS"
3263 cat >conftest.$ac_ext <<_ACEOF
3264 #line $LINENO "configure"
3265 #include "confdefs.h"
3266
3267 /* Override any gcc2 internal prototype to avoid an error.  */
3268 #ifdef __cplusplus
3269 extern "C"
3270 #endif
3271 /* We use char because int might match the return type of a gcc2
3272    builtin and then its argument prototype would still apply.  */
3273 char strftime ();
3274 int
3275 main ()
3276 {
3277 strftime ();
3278   ;
3279   return 0;
3280 }
3281 _ACEOF
3282 rm -f conftest.$ac_objext conftest$ac_exeext
3283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3284   (eval $ac_link) 2>&5
3285   ac_status=$?
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); } &&
3288          { ac_try='test -s conftest$ac_exeext'
3289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290   (eval $ac_try) 2>&5
3291   ac_status=$?
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); }; }; then
3294   ac_cv_lib_intl_strftime=yes
3295 else
3296   echo "$as_me: failed program was:" >&5
3297 cat conftest.$ac_ext >&5
3298 ac_cv_lib_intl_strftime=no
3299 fi
3300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3301 LIBS=$ac_check_lib_save_LIBS
3302 fi
3303 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
3304 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
3305 if test $ac_cv_lib_intl_strftime = yes; then
3306   cat >>confdefs.h <<\_ACEOF
3307 #define HAVE_STRFTIME 1
3308 _ACEOF
3309
3310 LIBS="-lintl $LIBS"
3311 fi
3312
3313 fi
3314 done
3315
3316
3317 for ac_func in vprintf
3318 do
3319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3320 echo "$as_me:$LINENO: checking for $ac_func" >&5
3321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3322 if eval "test \"\${$as_ac_var+set}\" = set"; then
3323   echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325   cat >conftest.$ac_ext <<_ACEOF
3326 #line $LINENO "configure"
3327 #include "confdefs.h"
3328 /* System header to define __stub macros and hopefully few prototypes,
3329     which can conflict with char $ac_func (); below.  */
3330 #include <assert.h>
3331 /* Override any gcc2 internal prototype to avoid an error.  */
3332 #ifdef __cplusplus
3333 extern "C"
3334 #endif
3335 /* We use char because int might match the return type of a gcc2
3336    builtin and then its argument prototype would still apply.  */
3337 char $ac_func ();
3338 char (*f) ();
3339
3340 int
3341 main ()
3342 {
3343 /* The GNU C library defines this for functions which it implements
3344     to always fail with ENOSYS.  Some functions are actually named
3345     something starting with __ and the normal name is an alias.  */
3346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3347 choke me
3348 #else
3349 f = $ac_func;
3350 #endif
3351
3352   ;
3353   return 0;
3354 }
3355 _ACEOF
3356 rm -f conftest.$ac_objext conftest$ac_exeext
3357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3358   (eval $ac_link) 2>&5
3359   ac_status=$?
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); } &&
3362          { ac_try='test -s conftest$ac_exeext'
3363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364   (eval $ac_try) 2>&5
3365   ac_status=$?
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); }; }; then
3368   eval "$as_ac_var=yes"
3369 else
3370   echo "$as_me: failed program was:" >&5
3371 cat conftest.$ac_ext >&5
3372 eval "$as_ac_var=no"
3373 fi
3374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3375 fi
3376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3378 if test `eval echo '${'$as_ac_var'}'` = yes; then
3379   cat >>confdefs.h <<_ACEOF
3380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3381 _ACEOF
3382
3383 echo "$as_me:$LINENO: checking for _doprnt" >&5
3384 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
3385 if test "${ac_cv_func__doprnt+set}" = set; then
3386   echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388   cat >conftest.$ac_ext <<_ACEOF
3389 #line $LINENO "configure"
3390 #include "confdefs.h"
3391 /* System header to define __stub macros and hopefully few prototypes,
3392     which can conflict with char _doprnt (); below.  */
3393 #include <assert.h>
3394 /* Override any gcc2 internal prototype to avoid an error.  */
3395 #ifdef __cplusplus
3396 extern "C"
3397 #endif
3398 /* We use char because int might match the return type of a gcc2
3399    builtin and then its argument prototype would still apply.  */
3400 char _doprnt ();
3401 char (*f) ();
3402
3403 int
3404 main ()
3405 {
3406 /* The GNU C library defines this for functions which it implements
3407     to always fail with ENOSYS.  Some functions are actually named
3408     something starting with __ and the normal name is an alias.  */
3409 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3410 choke me
3411 #else
3412 f = _doprnt;
3413 #endif
3414
3415   ;
3416   return 0;
3417 }
3418 _ACEOF
3419 rm -f conftest.$ac_objext conftest$ac_exeext
3420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3421   (eval $ac_link) 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); } &&
3425          { ac_try='test -s conftest$ac_exeext'
3426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427   (eval $ac_try) 2>&5
3428   ac_status=$?
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); }; }; then
3431   ac_cv_func__doprnt=yes
3432 else
3433   echo "$as_me: failed program was:" >&5
3434 cat conftest.$ac_ext >&5
3435 ac_cv_func__doprnt=no
3436 fi
3437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3438 fi
3439 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
3440 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
3441 if test $ac_cv_func__doprnt = yes; then
3442
3443 cat >>confdefs.h <<\_ACEOF
3444 #define HAVE_DOPRNT 1
3445 _ACEOF
3446
3447 fi
3448
3449 fi
3450 done
3451
3452
3453
3454 for ac_func in strstr
3455 do
3456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3457 echo "$as_me:$LINENO: checking for $ac_func" >&5
3458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3459 if eval "test \"\${$as_ac_var+set}\" = set"; then
3460   echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462   cat >conftest.$ac_ext <<_ACEOF
3463 #line $LINENO "configure"
3464 #include "confdefs.h"
3465 /* System header to define __stub macros and hopefully few prototypes,
3466     which can conflict with char $ac_func (); below.  */
3467 #include <assert.h>
3468 /* Override any gcc2 internal prototype to avoid an error.  */
3469 #ifdef __cplusplus
3470 extern "C"
3471 #endif
3472 /* We use char because int might match the return type of a gcc2
3473    builtin and then its argument prototype would still apply.  */
3474 char $ac_func ();
3475 char (*f) ();
3476
3477 int
3478 main ()
3479 {
3480 /* The GNU C library defines this for functions which it implements
3481     to always fail with ENOSYS.  Some functions are actually named
3482     something starting with __ and the normal name is an alias.  */
3483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3484 choke me
3485 #else
3486 f = $ac_func;
3487 #endif
3488
3489   ;
3490   return 0;
3491 }
3492 _ACEOF
3493 rm -f conftest.$ac_objext conftest$ac_exeext
3494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3495   (eval $ac_link) 2>&5
3496   ac_status=$?
3497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498   (exit $ac_status); } &&
3499          { ac_try='test -s conftest$ac_exeext'
3500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501   (eval $ac_try) 2>&5
3502   ac_status=$?
3503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); }; }; then
3505   eval "$as_ac_var=yes"
3506 else
3507   echo "$as_me: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3509 eval "$as_ac_var=no"
3510 fi
3511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3512 fi
3513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3515 if test `eval echo '${'$as_ac_var'}'` = yes; then
3516   cat >>confdefs.h <<_ACEOF
3517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3518 _ACEOF
3519
3520 fi
3521 done
3522
3523
3524                               ac_config_files="$ac_config_files makefile Docs/makefile Source/makefile"
3525 cat >confcache <<\_ACEOF
3526 # This file is a shell script that caches the results of configure
3527 # tests run on this system so they can be shared between configure
3528 # scripts and configure runs, see configure's option --config-cache.
3529 # It is not useful on other systems.  If it contains results you don't
3530 # want to keep, you may remove or edit it.
3531 #
3532 # config.status only pays attention to the cache file if you give it
3533 # the --recheck option to rerun configure.
3534 #
3535 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3536 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3537 # following values.
3538
3539 _ACEOF
3540
3541 # The following way of writing the cache mishandles newlines in values,
3542 # but we know of no workaround that is simple, portable, and efficient.
3543 # So, don't put newlines in cache variables' values.
3544 # Ultrix sh set writes to stderr and can't be redirected directly,
3545 # and sets the high bit in the cache file unless we assign to the vars.
3546 {
3547   (set) 2>&1 |
3548     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3549     *ac_space=\ *)
3550       # `set' does not quote correctly, so add quotes (double-quote
3551       # substitution turns \\\\ into \\, and sed turns \\ into \).
3552       sed -n \
3553         "s/'/'\\\\''/g;
3554           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3555       ;;
3556     *)
3557       # `set' quotes correctly as required by POSIX, so do not add quotes.
3558       sed -n \
3559         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3560       ;;
3561     esac;
3562 } |
3563   sed '
3564      t clear
3565      : clear
3566      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3567      t end
3568      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3569      : end' >>confcache
3570 if cmp -s $cache_file confcache; then :; else
3571   if test -w $cache_file; then
3572     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3573     cat confcache >$cache_file
3574   else
3575     echo "not updating unwritable cache $cache_file"
3576   fi
3577 fi
3578 rm -f confcache
3579
3580 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3581 # Let make expand exec_prefix.
3582 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3583
3584 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3585 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3586 # trailing colons and then remove the whole line if VPATH becomes empty
3587 # (actually we leave an empty line to preserve line numbers).
3588 if test "x$srcdir" = x.; then
3589   ac_vpsub='/^[         ]*VPATH[        ]*=/{
3590 s/:*\$(srcdir):*/:/;
3591 s/:*\${srcdir}:*/:/;
3592 s/:*@srcdir@:*/:/;
3593 s/^\([^=]*=[    ]*\):*/\1/;
3594 s/:*$//;
3595 s/^[^=]*=[      ]*$//;
3596 }'
3597 fi
3598
3599 DEFS=-DHAVE_CONFIG_H
3600
3601 ac_libobjs=
3602 ac_ltlibobjs=
3603 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3604   # 1. Remove the extension, and $U if already installed.
3605   ac_i=`echo "$ac_i" |
3606          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3607   # 2. Add them.
3608   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3609   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3610 done
3611 LIBOBJS=$ac_libobjs
3612
3613 LTLIBOBJS=$ac_ltlibobjs
3614
3615
3616 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3617   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
3618 Usually this means the macro was only invoked conditionally." >&5
3619 echo "$as_me: error: conditional \"AMDEP\" was never defined.
3620 Usually this means the macro was only invoked conditionally." >&2;}
3621    { (exit 1); exit 1; }; }
3622 fi
3623 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
3624   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
3625 Usually this means the macro was only invoked conditionally." >&5
3626 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
3627 Usually this means the macro was only invoked conditionally." >&2;}
3628    { (exit 1); exit 1; }; }
3629 fi
3630
3631 : ${CONFIG_STATUS=./config.status}
3632 ac_clean_files_save=$ac_clean_files
3633 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3634 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3635 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3636 cat >$CONFIG_STATUS <<_ACEOF
3637 #! $SHELL
3638 # Generated by $as_me.
3639 # Run this file to recreate the current configuration.
3640 # Compiler output produced by configure, useful for debugging
3641 # configure, is in config.log if it exists.
3642
3643 debug=false
3644 SHELL=\${CONFIG_SHELL-$SHELL}
3645 _ACEOF
3646
3647 cat >>$CONFIG_STATUS <<\_ACEOF
3648 ## --------------------- ##
3649 ## M4sh Initialization.  ##
3650 ## --------------------- ##
3651
3652 # Be Bourne compatible
3653 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3654   emulate sh
3655   NULLCMD=:
3656   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3657   # is contrary to our usage.  Disable this feature.
3658   alias -g '${1+"$@"}'='"$@"'
3659 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3660   set -o posix
3661 fi
3662
3663 # Support unset when possible.
3664 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3665   as_unset=unset
3666 else
3667   as_unset=false
3668 fi
3669
3670
3671 # Work around bugs in pre-3.0 UWIN ksh.
3672 $as_unset ENV MAIL MAILPATH
3673 PS1='$ '
3674 PS2='> '
3675 PS4='+ '
3676
3677 # NLS nuisances.
3678 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
3679 do
3680   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
3681     eval $as_var=C; export $as_var
3682   else
3683     $as_unset $as_var
3684   fi
3685 done
3686
3687 # Required to use basename.
3688 if expr a : '\(a\)' >/dev/null 2>&1; then
3689   as_expr=expr
3690 else
3691   as_expr=false
3692 fi
3693
3694 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3695   as_basename=basename
3696 else
3697   as_basename=false
3698 fi
3699
3700
3701 # Name of the executable.
3702 as_me=`$as_basename "$0" ||
3703 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3704          X"$0" : 'X\(//\)$' \| \
3705          X"$0" : 'X\(/\)$' \| \
3706          .     : '\(.\)' 2>/dev/null ||
3707 echo X/"$0" |
3708     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3709           /^X\/\(\/\/\)$/{ s//\1/; q; }
3710           /^X\/\(\/\).*/{ s//\1/; q; }
3711           s/.*/./; q'`
3712
3713
3714 # PATH needs CR, and LINENO needs CR and PATH.
3715 # Avoid depending upon Character Ranges.
3716 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3717 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3718 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3719 as_cr_digits='0123456789'
3720 as_cr_alnum=$as_cr_Letters$as_cr_digits
3721
3722 # The user is always right.
3723 if test "${PATH_SEPARATOR+set}" != set; then
3724   echo "#! /bin/sh" >conftest.sh
3725   echo  "exit 0"   >>conftest.sh
3726   chmod +x conftest.sh
3727   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
3728     PATH_SEPARATOR=';'
3729   else
3730     PATH_SEPARATOR=:
3731   fi
3732   rm -f conftest.sh
3733 fi
3734
3735
3736   as_lineno_1=$LINENO
3737   as_lineno_2=$LINENO
3738   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3739   test "x$as_lineno_1" != "x$as_lineno_2" &&
3740   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3741   # Find who we are.  Look in the path if we contain no path at all
3742   # relative or not.
3743   case $0 in
3744     *[\\/]* ) as_myself=$0 ;;
3745     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748   IFS=$as_save_IFS
3749   test -z "$as_dir" && as_dir=.
3750   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3751 done
3752
3753        ;;
3754   esac
3755   # We did not find ourselves, most probably we were run as `sh COMMAND'
3756   # in which case we are not to be found in the path.
3757   if test "x$as_myself" = x; then
3758     as_myself=$0
3759   fi
3760   if test ! -f "$as_myself"; then
3761     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3762 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3763    { (exit 1); exit 1; }; }
3764   fi
3765   case $CONFIG_SHELL in
3766   '')
3767     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3769 do
3770   IFS=$as_save_IFS
3771   test -z "$as_dir" && as_dir=.
3772   for as_base in sh bash ksh sh5; do
3773          case $as_dir in
3774          /*)
3775            if ("$as_dir/$as_base" -c '
3776   as_lineno_1=$LINENO
3777   as_lineno_2=$LINENO
3778   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3779   test "x$as_lineno_1" != "x$as_lineno_2" &&
3780   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3781              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3782              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3783              CONFIG_SHELL=$as_dir/$as_base
3784              export CONFIG_SHELL
3785              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3786            fi;;
3787          esac
3788        done
3789 done
3790 ;;
3791   esac
3792
3793   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3794   # uniformly replaced by the line number.  The first 'sed' inserts a
3795   # line-number line before each line; the second 'sed' does the real
3796   # work.  The second script uses 'N' to pair each line-number line
3797   # with the numbered line, and appends trailing '-' during
3798   # substitution so that $LINENO is not a special case at line end.
3799   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3800   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3801   sed '=' <$as_myself |
3802     sed '
3803       N
3804       s,$,-,
3805       : loop
3806       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3807       t loop
3808       s,-$,,
3809       s,^['$as_cr_digits']*\n,,
3810     ' >$as_me.lineno &&
3811   chmod +x $as_me.lineno ||
3812     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3813 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3814    { (exit 1); exit 1; }; }
3815
3816   # Don't try to exec as it changes $[0], causing all sort of problems
3817   # (the dirname of $[0] is not the place where we might find the
3818   # original and so on.  Autoconf is especially sensible to this).
3819   . ./$as_me.lineno
3820   # Exit status is that of the last command.
3821   exit
3822 }
3823
3824
3825 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3826   *c*,-n*) ECHO_N= ECHO_C='
3827 ' ECHO_T='      ' ;;
3828   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3829   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3830 esac
3831
3832 if expr a : '\(a\)' >/dev/null 2>&1; then
3833   as_expr=expr
3834 else
3835   as_expr=false
3836 fi
3837
3838 rm -f conf$$ conf$$.exe conf$$.file
3839 echo >conf$$.file
3840 if ln -s conf$$.file conf$$ 2>/dev/null; then
3841   # We could just check for DJGPP; but this test a) works b) is more generic
3842   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3843   if test -f conf$$.exe; then
3844     # Don't use ln at all; we don't have any links
3845     as_ln_s='cp -p'
3846   else
3847     as_ln_s='ln -s'
3848   fi
3849 elif ln conf$$.file conf$$ 2>/dev/null; then
3850   as_ln_s=ln
3851 else
3852   as_ln_s='cp -p'
3853 fi
3854 rm -f conf$$ conf$$.exe conf$$.file
3855
3856 if mkdir -p . 2>/dev/null; then
3857   as_mkdir_p=:
3858 else
3859   as_mkdir_p=false
3860 fi
3861
3862 as_executable_p="test -f"
3863
3864 # Sed expression to map a string onto a valid CPP name.
3865 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3866
3867 # Sed expression to map a string onto a valid variable name.
3868 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3869
3870
3871 # IFS
3872 # We need space, tab and new line, in precisely that order.
3873 as_nl='
3874 '
3875 IFS="   $as_nl"
3876
3877 # CDPATH.
3878 $as_unset CDPATH
3879
3880 exec 6>&1
3881
3882 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3883 # report actual input values of CONFIG_FILES etc. instead of their
3884 # values after options handling.  Logging --version etc. is OK.
3885 exec 5>>config.log
3886 {
3887   echo
3888   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3889 ## Running $as_me. ##
3890 _ASBOX
3891 } >&5
3892 cat >&5 <<_CSEOF
3893
3894 This file was extended by $as_me, which was
3895 generated by GNU Autoconf 2.54.  Invocation command line was
3896
3897   CONFIG_FILES    = $CONFIG_FILES
3898   CONFIG_HEADERS  = $CONFIG_HEADERS
3899   CONFIG_LINKS    = $CONFIG_LINKS
3900   CONFIG_COMMANDS = $CONFIG_COMMANDS
3901   $ $0 $@
3902
3903 _CSEOF
3904 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3905 echo >&5
3906 _ACEOF
3907
3908 # Files that config.status was made for.
3909 if test -n "$ac_config_files"; then
3910   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3911 fi
3912
3913 if test -n "$ac_config_headers"; then
3914   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3915 fi
3916
3917 if test -n "$ac_config_links"; then
3918   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3919 fi
3920
3921 if test -n "$ac_config_commands"; then
3922   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3923 fi
3924
3925 cat >>$CONFIG_STATUS <<\_ACEOF
3926
3927 ac_cs_usage="\
3928 \`$as_me' instantiates files from templates according to the
3929 current configuration.
3930
3931 Usage: $0 [OPTIONS] [FILE]...
3932
3933   -h, --help       print this help, then exit
3934   -V, --version    print version number, then exit
3935   -d, --debug      don't remove temporary files
3936       --recheck    update $as_me by reconfiguring in the same conditions
3937   --file=FILE[:TEMPLATE]
3938                    instantiate the configuration file FILE
3939   --header=FILE[:TEMPLATE]
3940                    instantiate the configuration header FILE
3941
3942 Configuration files:
3943 $config_files
3944
3945 Configuration headers:
3946 $config_headers
3947
3948 Configuration commands:
3949 $config_commands
3950
3951 Report bugs to <bug-autoconf@gnu.org>."
3952 _ACEOF
3953
3954 cat >>$CONFIG_STATUS <<_ACEOF
3955 ac_cs_version="\\
3956 config.status
3957 configured by $0, generated by GNU Autoconf 2.54,
3958   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3959
3960 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3961 Free Software Foundation, Inc.
3962 This config.status script is free software; the Free Software Foundation
3963 gives unlimited permission to copy, distribute and modify it."
3964 srcdir=$srcdir
3965 INSTALL="$INSTALL"
3966 _ACEOF
3967
3968 cat >>$CONFIG_STATUS <<\_ACEOF
3969 # If no file are specified by the user, then we need to provide default
3970 # value.  By we need to know if files were specified by the user.
3971 ac_need_defaults=:
3972 while test $# != 0
3973 do
3974   case $1 in
3975   --*=*)
3976     ac_option=`expr "x$1" : 'x\([^=]*\)='`
3977     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3978     ac_shift=:
3979     ;;
3980   -*)
3981     ac_option=$1
3982     ac_optarg=$2
3983     ac_shift=shift
3984     ;;
3985   *) # This is not an option, so the user has probably given explicit
3986      # arguments.
3987      ac_option=$1
3988      ac_need_defaults=false;;
3989   esac
3990
3991   case $ac_option in
3992   # Handling of the options.
3993 _ACEOF
3994 cat >>$CONFIG_STATUS <<_ACEOF
3995   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3996     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3997     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3998 _ACEOF
3999 cat >>$CONFIG_STATUS <<\_ACEOF
4000   --version | --vers* | -V )
4001     echo "$ac_cs_version"; exit 0 ;;
4002   --he | --h)
4003     # Conflict between --help and --header
4004     { { echo "$as_me:$LINENO: error: ambiguous option: $1
4005 Try \`$0 --help' for more information." >&5
4006 echo "$as_me: error: ambiguous option: $1
4007 Try \`$0 --help' for more information." >&2;}
4008    { (exit 1); exit 1; }; };;
4009   --help | --hel | -h )
4010     echo "$ac_cs_usage"; exit 0 ;;
4011   --debug | --d* | -d )
4012     debug=: ;;
4013   --file | --fil | --fi | --f )
4014     $ac_shift
4015     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4016     ac_need_defaults=false;;
4017   --header | --heade | --head | --hea )
4018     $ac_shift
4019     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4020     ac_need_defaults=false;;
4021
4022   # This is an error.
4023   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4024 Try \`$0 --help' for more information." >&5
4025 echo "$as_me: error: unrecognized option: $1
4026 Try \`$0 --help' for more information." >&2;}
4027    { (exit 1); exit 1; }; } ;;
4028
4029   *) ac_config_targets="$ac_config_targets $1" ;;
4030
4031   esac
4032   shift
4033 done
4034
4035 _ACEOF
4036
4037 cat >>$CONFIG_STATUS <<_ACEOF
4038 #
4039 # INIT-COMMANDS section.
4040 #
4041
4042 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4043
4044 _ACEOF
4045
4046
4047
4048 cat >>$CONFIG_STATUS <<\_ACEOF
4049 for ac_config_target in $ac_config_targets
4050 do
4051   case "$ac_config_target" in
4052   # Handling of arguments.
4053   "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
4054   "Docs/makefile" ) CONFIG_FILES="$CONFIG_FILES Docs/makefile" ;;
4055   "Source/makefile" ) CONFIG_FILES="$CONFIG_FILES Source/makefile" ;;
4056   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4057   "Source/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS Source/config.h" ;;
4058   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4059 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4060    { (exit 1); exit 1; }; };;
4061   esac
4062 done
4063
4064 # If the user did not use the arguments to specify the items to instantiate,
4065 # then the envvar interface is used.  Set only those that are not.
4066 # We use the long form for the default assignment because of an extremely
4067 # bizarre bug on SunOS 4.1.3.
4068 if $ac_need_defaults; then
4069   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4070   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4071   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4072 fi
4073
4074 # Create a temporary directory, and hook for its removal unless debugging.
4075 $debug ||
4076 {
4077   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4078   trap '{ (exit 1); exit 1; }' 1 2 13 15
4079 }
4080
4081 # Create a (secure) tmp directory for tmp files.
4082 : ${TMPDIR=/tmp}
4083 {
4084   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4085   test -n "$tmp" && test -d "$tmp"
4086 }  ||
4087 {
4088   tmp=$TMPDIR/cs$$-$RANDOM
4089   (umask 077 && mkdir $tmp)
4090 } ||
4091 {
4092    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4093    { (exit 1); exit 1; }
4094 }
4095
4096 _ACEOF
4097
4098 cat >>$CONFIG_STATUS <<_ACEOF
4099
4100 #
4101 # CONFIG_FILES section.
4102 #
4103
4104 # No need to generate the scripts if there are no CONFIG_FILES.
4105 # This happens for instance when ./config.status config.h
4106 if test -n "\$CONFIG_FILES"; then
4107   # Protect against being on the right side of a sed subst in config.status.
4108   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4109    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4110 s,@SHELL@,$SHELL,;t t
4111 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4112 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4113 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4114 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4115 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4116 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4117 s,@exec_prefix@,$exec_prefix,;t t
4118 s,@prefix@,$prefix,;t t
4119 s,@program_transform_name@,$program_transform_name,;t t
4120 s,@bindir@,$bindir,;t t
4121 s,@sbindir@,$sbindir,;t t
4122 s,@libexecdir@,$libexecdir,;t t
4123 s,@datadir@,$datadir,;t t
4124 s,@sysconfdir@,$sysconfdir,;t t
4125 s,@sharedstatedir@,$sharedstatedir,;t t
4126 s,@localstatedir@,$localstatedir,;t t
4127 s,@libdir@,$libdir,;t t
4128 s,@includedir@,$includedir,;t t
4129 s,@oldincludedir@,$oldincludedir,;t t
4130 s,@infodir@,$infodir,;t t
4131 s,@mandir@,$mandir,;t t
4132 s,@build_alias@,$build_alias,;t t
4133 s,@host_alias@,$host_alias,;t t
4134 s,@target_alias@,$target_alias,;t t
4135 s,@DEFS@,$DEFS,;t t
4136 s,@ECHO_C@,$ECHO_C,;t t
4137 s,@ECHO_N@,$ECHO_N,;t t
4138 s,@ECHO_T@,$ECHO_T,;t t
4139 s,@LIBS@,$LIBS,;t t
4140 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4141 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4142 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4143 s,@CYGPATH_W@,$CYGPATH_W,;t t
4144 s,@PACKAGE@,$PACKAGE,;t t
4145 s,@VERSION@,$VERSION,;t t
4146 s,@ACLOCAL@,$ACLOCAL,;t t
4147 s,@AUTOCONF@,$AUTOCONF,;t t
4148 s,@AUTOMAKE@,$AUTOMAKE,;t t
4149 s,@AUTOHEADER@,$AUTOHEADER,;t t
4150 s,@MAKEINFO@,$MAKEINFO,;t t
4151 s,@AMTAR@,$AMTAR,;t t
4152 s,@install_sh@,$install_sh,;t t
4153 s,@STRIP@,$STRIP,;t t
4154 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4155 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4156 s,@AWK@,$AWK,;t t
4157 s,@SET_MAKE@,$SET_MAKE,;t t
4158 s,@CC@,$CC,;t t
4159 s,@CFLAGS@,$CFLAGS,;t t
4160 s,@LDFLAGS@,$LDFLAGS,;t t
4161 s,@CPPFLAGS@,$CPPFLAGS,;t t
4162 s,@ac_ct_CC@,$ac_ct_CC,;t t
4163 s,@EXEEXT@,$EXEEXT,;t t
4164 s,@OBJEXT@,$OBJEXT,;t t
4165 s,@DEPDIR@,$DEPDIR,;t t
4166 s,@am__include@,$am__include,;t t
4167 s,@am__quote@,$am__quote,;t t
4168 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4169 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4170 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4171 s,@CCDEPMODE@,$CCDEPMODE,;t t
4172 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
4173 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
4174 s,@CPP@,$CPP,;t t
4175 s,@EGREP@,$EGREP,;t t
4176 s,@LIBOBJS@,$LIBOBJS,;t t
4177 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4178 CEOF
4179
4180 _ACEOF
4181
4182   cat >>$CONFIG_STATUS <<\_ACEOF
4183   # Split the substitutions into bite-sized pieces for seds with
4184   # small command number limits, like on Digital OSF/1 and HP-UX.
4185   ac_max_sed_lines=48
4186   ac_sed_frag=1 # Number of current file.
4187   ac_beg=1 # First line for current file.
4188   ac_end=$ac_max_sed_lines # Line after last line for current file.
4189   ac_more_lines=:
4190   ac_sed_cmds=
4191   while $ac_more_lines; do
4192     if test $ac_beg -gt 1; then
4193       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4194     else
4195       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4196     fi
4197     if test ! -s $tmp/subs.frag; then
4198       ac_more_lines=false
4199     else
4200       # The purpose of the label and of the branching condition is to
4201       # speed up the sed processing (if there are no `@' at all, there
4202       # is no need to browse any of the substitutions).
4203       # These are the two extra sed commands mentioned above.
4204       (echo ':t
4205   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4206       if test -z "$ac_sed_cmds"; then
4207         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4208       else
4209         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4210       fi
4211       ac_sed_frag=`expr $ac_sed_frag + 1`
4212       ac_beg=$ac_end
4213       ac_end=`expr $ac_end + $ac_max_sed_lines`
4214     fi
4215   done
4216   if test -z "$ac_sed_cmds"; then
4217     ac_sed_cmds=cat
4218   fi
4219 fi # test -n "$CONFIG_FILES"
4220
4221 _ACEOF
4222 cat >>$CONFIG_STATUS <<\_ACEOF
4223 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4224   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4225   case $ac_file in
4226   - | *:- | *:-:* ) # input from stdin
4227         cat >$tmp/stdin
4228         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4229         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4230   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4231         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4232   * )   ac_file_in=$ac_file.in ;;
4233   esac
4234
4235   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4236   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4237 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4238          X"$ac_file" : 'X\(//\)[^/]' \| \
4239          X"$ac_file" : 'X\(//\)$' \| \
4240          X"$ac_file" : 'X\(/\)' \| \
4241          .     : '\(.\)' 2>/dev/null ||
4242 echo X"$ac_file" |
4243     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4244           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4245           /^X\(\/\/\)$/{ s//\1/; q; }
4246           /^X\(\/\).*/{ s//\1/; q; }
4247           s/.*/./; q'`
4248   { if $as_mkdir_p; then
4249     mkdir -p "$ac_dir"
4250   else
4251     as_dir="$ac_dir"
4252     as_dirs=
4253     while test ! -d "$as_dir"; do
4254       as_dirs="$as_dir $as_dirs"
4255       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4257          X"$as_dir" : 'X\(//\)[^/]' \| \
4258          X"$as_dir" : 'X\(//\)$' \| \
4259          X"$as_dir" : 'X\(/\)' \| \
4260          .     : '\(.\)' 2>/dev/null ||
4261 echo X"$as_dir" |
4262     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4263           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4264           /^X\(\/\/\)$/{ s//\1/; q; }
4265           /^X\(\/\).*/{ s//\1/; q; }
4266           s/.*/./; q'`
4267     done
4268     test ! -n "$as_dirs" || mkdir $as_dirs
4269   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4270 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4271    { (exit 1); exit 1; }; }; }
4272
4273   ac_builddir=.
4274
4275 if test "$ac_dir" != .; then
4276   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4277   # A "../" for each directory in $ac_dir_suffix.
4278   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4279 else
4280   ac_dir_suffix= ac_top_builddir=
4281 fi
4282
4283 case $srcdir in
4284   .)  # No --srcdir option.  We are building in place.
4285     ac_srcdir=.
4286     if test -z "$ac_top_builddir"; then
4287        ac_top_srcdir=.
4288     else
4289        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4290     fi ;;
4291   [\\/]* | ?:[\\/]* )  # Absolute path.
4292     ac_srcdir=$srcdir$ac_dir_suffix;
4293     ac_top_srcdir=$srcdir ;;
4294   *) # Relative path.
4295     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4296     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4297 esac
4298 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4299 # absolute.
4300 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4301 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4302 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4303 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4304
4305
4306   case $INSTALL in
4307   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4308   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4309   esac
4310
4311   if test x"$ac_file" != x-; then
4312     { echo "$as_me:$LINENO: creating $ac_file" >&5
4313 echo "$as_me: creating $ac_file" >&6;}
4314     rm -f "$ac_file"
4315   fi
4316   # Let's still pretend it is `configure' which instantiates (i.e., don't
4317   # use $as_me), people would be surprised to read:
4318   #    /* config.h.  Generated by config.status.  */
4319   if test x"$ac_file" = x-; then
4320     configure_input=
4321   else
4322     configure_input="$ac_file.  "
4323   fi
4324   configure_input=$configure_input"Generated from `echo $ac_file_in |
4325                                      sed 's,.*/,,'` by configure."
4326
4327   # First look for the input files in the build tree, otherwise in the
4328   # src tree.
4329   ac_file_inputs=`IFS=:
4330     for f in $ac_file_in; do
4331       case $f in
4332       -) echo $tmp/stdin ;;
4333       [\\/$]*)
4334          # Absolute (can't be DOS-style, as IFS=:)
4335          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4336 echo "$as_me: error: cannot find input file: $f" >&2;}
4337    { (exit 1); exit 1; }; }
4338          echo $f;;
4339       *) # Relative
4340          if test -f "$f"; then
4341            # Build tree
4342            echo $f
4343          elif test -f "$srcdir/$f"; then
4344            # Source tree
4345            echo $srcdir/$f
4346          else
4347            # /dev/null tree
4348            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4349 echo "$as_me: error: cannot find input file: $f" >&2;}
4350    { (exit 1); exit 1; }; }
4351          fi;;
4352       esac
4353     done` || { (exit 1); exit 1; }
4354 _ACEOF
4355 cat >>$CONFIG_STATUS <<_ACEOF
4356   sed "$ac_vpsub
4357 $extrasub
4358 _ACEOF
4359 cat >>$CONFIG_STATUS <<\_ACEOF
4360 :t
4361 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4362 s,@configure_input@,$configure_input,;t t
4363 s,@srcdir@,$ac_srcdir,;t t
4364 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4365 s,@top_srcdir@,$ac_top_srcdir,;t t
4366 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4367 s,@builddir@,$ac_builddir,;t t
4368 s,@abs_builddir@,$ac_abs_builddir,;t t
4369 s,@top_builddir@,$ac_top_builddir,;t t
4370 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4371 s,@INSTALL@,$ac_INSTALL,;t t
4372 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4373   rm -f $tmp/stdin
4374   if test x"$ac_file" != x-; then
4375     mv $tmp/out $ac_file
4376   else
4377     cat $tmp/out
4378     rm -f $tmp/out
4379   fi
4380
4381 done
4382 _ACEOF
4383 cat >>$CONFIG_STATUS <<\_ACEOF
4384
4385 #
4386 # CONFIG_HEADER section.
4387 #
4388
4389 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4390 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4391 #
4392 # ac_d sets the value in "#define NAME VALUE" lines.
4393 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4394 ac_dB='[        ].*$,\1#\2'
4395 ac_dC=' '
4396 ac_dD=',;t'
4397 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4398 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4399 ac_uB='$,\1#\2define\3'
4400 ac_uC=' '
4401 ac_uD=',;t'
4402
4403 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4404   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4405   case $ac_file in
4406   - | *:- | *:-:* ) # input from stdin
4407         cat >$tmp/stdin
4408         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4409         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4410   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4411         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4412   * )   ac_file_in=$ac_file.in ;;
4413   esac
4414
4415   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4416 echo "$as_me: creating $ac_file" >&6;}
4417
4418   # First look for the input files in the build tree, otherwise in the
4419   # src tree.
4420   ac_file_inputs=`IFS=:
4421     for f in $ac_file_in; do
4422       case $f in
4423       -) echo $tmp/stdin ;;
4424       [\\/$]*)
4425          # Absolute (can't be DOS-style, as IFS=:)
4426          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4427 echo "$as_me: error: cannot find input file: $f" >&2;}
4428    { (exit 1); exit 1; }; }
4429          echo $f;;
4430       *) # Relative
4431          if test -f "$f"; then
4432            # Build tree
4433            echo $f
4434          elif test -f "$srcdir/$f"; then
4435            # Source tree
4436            echo $srcdir/$f
4437          else
4438            # /dev/null tree
4439            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4440 echo "$as_me: error: cannot find input file: $f" >&2;}
4441    { (exit 1); exit 1; }; }
4442          fi;;
4443       esac
4444     done` || { (exit 1); exit 1; }
4445   # Remove the trailing spaces.
4446   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
4447
4448 _ACEOF
4449
4450 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4451 # `conftest.undefs', that substitutes the proper values into
4452 # config.h.in to produce config.h.  The first handles `#define'
4453 # templates, and the second `#undef' templates.
4454 # And first: Protect against being on the right side of a sed subst in
4455 # config.status.  Protect against being in an unquoted here document
4456 # in config.status.
4457 rm -f conftest.defines conftest.undefs
4458 # Using a here document instead of a string reduces the quoting nightmare.
4459 # Putting comments in sed scripts is not portable.
4460 #
4461 # `end' is used to avoid that the second main sed command (meant for
4462 # 0-ary CPP macros) applies to n-ary macro definitions.
4463 # See the Autoconf documentation for `clear'.
4464 cat >confdef2sed.sed <<\_ACEOF
4465 s/[\\&,]/\\&/g
4466 s,[\\$`],\\&,g
4467 t clear
4468 : clear
4469 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4470 t end
4471 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4472 : end
4473 _ACEOF
4474 # If some macros were called several times there might be several times
4475 # the same #defines, which is useless.  Nevertheless, we may not want to
4476 # sort them, since we want the *last* AC-DEFINE to be honored.
4477 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4478 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4479 rm -f confdef2sed.sed
4480
4481 # This sed command replaces #undef with comments.  This is necessary, for
4482 # example, in the case of _POSIX_SOURCE, which is predefined and required
4483 # on some systems where configure will not decide to define it.
4484 cat >>conftest.undefs <<\_ACEOF
4485 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4486 _ACEOF
4487
4488 # Break up conftest.defines because some shells have a limit on the size
4489 # of here documents, and old seds have small limits too (100 cmds).
4490 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4491 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4492 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4493 echo '  :' >>$CONFIG_STATUS
4494 rm -f conftest.tail
4495 while grep . conftest.defines >/dev/null
4496 do
4497   # Write a limited-size here document to $tmp/defines.sed.
4498   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4499   # Speed up: don't consider the non `#define' lines.
4500   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
4501   # Work around the forget-to-reset-the-flag bug.
4502   echo 't clr' >>$CONFIG_STATUS
4503   echo ': clr' >>$CONFIG_STATUS
4504   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4505   echo 'CEOF
4506   sed -f $tmp/defines.sed $tmp/in >$tmp/out
4507   rm -f $tmp/in
4508   mv $tmp/out $tmp/in
4509 ' >>$CONFIG_STATUS
4510   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4511   rm -f conftest.defines
4512   mv conftest.tail conftest.defines
4513 done
4514 rm -f conftest.defines
4515 echo '  fi # grep' >>$CONFIG_STATUS
4516 echo >>$CONFIG_STATUS
4517
4518 # Break up conftest.undefs because some shells have a limit on the size
4519 # of here documents, and old seds have small limits too (100 cmds).
4520 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
4521 rm -f conftest.tail
4522 while grep . conftest.undefs >/dev/null
4523 do
4524   # Write a limited-size here document to $tmp/undefs.sed.
4525   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4526   # Speed up: don't consider the non `#undef'
4527   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
4528   # Work around the forget-to-reset-the-flag bug.
4529   echo 't clr' >>$CONFIG_STATUS
4530   echo ': clr' >>$CONFIG_STATUS
4531   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4532   echo 'CEOF
4533   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4534   rm -f $tmp/in
4535   mv $tmp/out $tmp/in
4536 ' >>$CONFIG_STATUS
4537   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4538   rm -f conftest.undefs
4539   mv conftest.tail conftest.undefs
4540 done
4541 rm -f conftest.undefs
4542
4543 cat >>$CONFIG_STATUS <<\_ACEOF
4544   # Let's still pretend it is `configure' which instantiates (i.e., don't
4545   # use $as_me), people would be surprised to read:
4546   #    /* config.h.  Generated by config.status.  */
4547   if test x"$ac_file" = x-; then
4548     echo "/* Generated by configure.  */" >$tmp/config.h
4549   else
4550     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
4551   fi
4552   cat $tmp/in >>$tmp/config.h
4553   rm -f $tmp/in
4554   if test x"$ac_file" != x-; then
4555     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4556       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4557 echo "$as_me: $ac_file is unchanged" >&6;}
4558     else
4559       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4560 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4561          X"$ac_file" : 'X\(//\)[^/]' \| \
4562          X"$ac_file" : 'X\(//\)$' \| \
4563          X"$ac_file" : 'X\(/\)' \| \
4564          .     : '\(.\)' 2>/dev/null ||
4565 echo X"$ac_file" |
4566     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4567           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4568           /^X\(\/\/\)$/{ s//\1/; q; }
4569           /^X\(\/\).*/{ s//\1/; q; }
4570           s/.*/./; q'`
4571       { if $as_mkdir_p; then
4572     mkdir -p "$ac_dir"
4573   else
4574     as_dir="$ac_dir"
4575     as_dirs=
4576     while test ! -d "$as_dir"; do
4577       as_dirs="$as_dir $as_dirs"
4578       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4580          X"$as_dir" : 'X\(//\)[^/]' \| \
4581          X"$as_dir" : 'X\(//\)$' \| \
4582          X"$as_dir" : 'X\(/\)' \| \
4583          .     : '\(.\)' 2>/dev/null ||
4584 echo X"$as_dir" |
4585     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4586           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4587           /^X\(\/\/\)$/{ s//\1/; q; }
4588           /^X\(\/\).*/{ s//\1/; q; }
4589           s/.*/./; q'`
4590     done
4591     test ! -n "$as_dirs" || mkdir $as_dirs
4592   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4593 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4594    { (exit 1); exit 1; }; }; }
4595
4596       rm -f $ac_file
4597       mv $tmp/config.h $ac_file
4598     fi
4599   else
4600     cat $tmp/config.h
4601     rm -f $tmp/config.h
4602   fi
4603 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
4604 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
4605 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4606          X$ac_file : 'X\(//\)[^/]' \| \
4607          X$ac_file : 'X\(//\)$' \| \
4608          X$ac_file : 'X\(/\)' \| \
4609          .     : '\(.\)' 2>/dev/null ||
4610 echo X$ac_file |
4611     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4612           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4613           /^X\(\/\/\)$/{ s//\1/; q; }
4614           /^X\(\/\).*/{ s//\1/; q; }
4615           s/.*/./; q'`/stamp-h$_am_stamp_count
4616 done
4617 _ACEOF
4618 cat >>$CONFIG_STATUS <<\_ACEOF
4619
4620 #
4621 # CONFIG_COMMANDS section.
4622 #
4623 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4624   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4625   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4626   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4627 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4628          X"$ac_dest" : 'X\(//\)[^/]' \| \
4629          X"$ac_dest" : 'X\(//\)$' \| \
4630          X"$ac_dest" : 'X\(/\)' \| \
4631          .     : '\(.\)' 2>/dev/null ||
4632 echo X"$ac_dest" |
4633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4634           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4635           /^X\(\/\/\)$/{ s//\1/; q; }
4636           /^X\(\/\).*/{ s//\1/; q; }
4637           s/.*/./; q'`
4638   ac_builddir=.
4639
4640 if test "$ac_dir" != .; then
4641   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4642   # A "../" for each directory in $ac_dir_suffix.
4643   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4644 else
4645   ac_dir_suffix= ac_top_builddir=
4646 fi
4647
4648 case $srcdir in
4649   .)  # No --srcdir option.  We are building in place.
4650     ac_srcdir=.
4651     if test -z "$ac_top_builddir"; then
4652        ac_top_srcdir=.
4653     else
4654        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4655     fi ;;
4656   [\\/]* | ?:[\\/]* )  # Absolute path.
4657     ac_srcdir=$srcdir$ac_dir_suffix;
4658     ac_top_srcdir=$srcdir ;;
4659   *) # Relative path.
4660     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4661     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4662 esac
4663 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4664 # absolute.
4665 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4666 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4667 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4668 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4669
4670
4671   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4672 echo "$as_me: executing $ac_dest commands" >&6;}
4673   case $ac_dest in
4674     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
4675   # Strip MF so we end up with the name of the file.
4676   mf=`echo "$mf" | sed -e 's/:.*$//'`
4677   # Check whether this is an Automake generated Makefile or not.
4678   # We used to match only the files named `Makefile.in', but
4679   # some people rename them; so instead we look at the file content.
4680   # Grep'ing the first line is not enough: some people post-process
4681   # each Makefile.in and add a new line on top of each file to say so.
4682   # So let's grep whole file.
4683   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
4684     dirpart=`(dirname "$mf") 2>/dev/null ||
4685 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4686          X"$mf" : 'X\(//\)[^/]' \| \
4687          X"$mf" : 'X\(//\)$' \| \
4688          X"$mf" : 'X\(/\)' \| \
4689          .     : '\(.\)' 2>/dev/null ||
4690 echo X"$mf" |
4691     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4692           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4693           /^X\(\/\/\)$/{ s//\1/; q; }
4694           /^X\(\/\).*/{ s//\1/; q; }
4695           s/.*/./; q'`
4696   else
4697     continue
4698   fi
4699   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
4700   # Extract the definition of DEP_FILES from the Makefile without
4701   # running `make'.
4702   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
4703   test -z "$DEPDIR" && continue
4704   # When using ansi2knr, U may be empty or an underscore; expand it
4705   U=`sed -n -e '/^U = / s///p' < "$mf"`
4706   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
4707   # We invoke sed twice because it is the simplest approach to
4708   # changing $(DEPDIR) to its actual value in the expansion.
4709   for file in `sed -n -e '
4710     /^DEP_FILES = .*\\\\$/ {
4711       s/^DEP_FILES = //
4712       :loop
4713         s/\\\\$//
4714         p
4715         n
4716         /\\\\$/ b loop
4717       p
4718     }
4719     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
4720        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4721     # Make sure the directory exists.
4722     test -f "$dirpart/$file" && continue
4723     fdir=`(dirname "$file") 2>/dev/null ||
4724 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4725          X"$file" : 'X\(//\)[^/]' \| \
4726          X"$file" : 'X\(//\)$' \| \
4727          X"$file" : 'X\(/\)' \| \
4728          .     : '\(.\)' 2>/dev/null ||
4729 echo X"$file" |
4730     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4731           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4732           /^X\(\/\/\)$/{ s//\1/; q; }
4733           /^X\(\/\).*/{ s//\1/; q; }
4734           s/.*/./; q'`
4735     { if $as_mkdir_p; then
4736     mkdir -p $dirpart/$fdir
4737   else
4738     as_dir=$dirpart/$fdir
4739     as_dirs=
4740     while test ! -d "$as_dir"; do
4741       as_dirs="$as_dir $as_dirs"
4742       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4743 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4744          X"$as_dir" : 'X\(//\)[^/]' \| \
4745          X"$as_dir" : 'X\(//\)$' \| \
4746          X"$as_dir" : 'X\(/\)' \| \
4747          .     : '\(.\)' 2>/dev/null ||
4748 echo X"$as_dir" |
4749     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4750           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4751           /^X\(\/\/\)$/{ s//\1/; q; }
4752           /^X\(\/\).*/{ s//\1/; q; }
4753           s/.*/./; q'`
4754     done
4755     test ! -n "$as_dirs" || mkdir $as_dirs
4756   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
4757 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
4758    { (exit 1); exit 1; }; }; }
4759
4760     # echo "creating $dirpart/$file"
4761     echo '# dummy' > "$dirpart/$file"
4762   done
4763 done
4764  ;;
4765   esac
4766 done
4767 _ACEOF
4768
4769 cat >>$CONFIG_STATUS <<\_ACEOF
4770
4771 { (exit 0); exit 0; }
4772 _ACEOF
4773 chmod +x $CONFIG_STATUS
4774 ac_clean_files=$ac_clean_files_save
4775
4776
4777 # configure is writing to config.log, and then calls config.status.
4778 # config.status does its own redirection, appending to config.log.
4779 # Unfortunately, on DOS this fails, as config.log is still kept open
4780 # by configure, so config.status won't be able to write to it; its
4781 # output is simply discarded.  So we exec the FD to /dev/null,
4782 # effectively closing config.log, so it can be properly (re)opened and
4783 # appended to by config.status.  When coming back to configure, we
4784 # need to make the FD available again.
4785 if test "$no_create" != yes; then
4786   ac_cs_success=:
4787   exec 5>/dev/null
4788   $SHELL $CONFIG_STATUS || ac_cs_success=false
4789   exec 5>>config.log
4790   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4791   # would make configure fail if this is the last instruction.
4792   $ac_cs_success || { (exit 1); exit 1; }
4793 fi
4794
4795