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