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