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