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