1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 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 more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259	       as_have_required=yes
260	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534	case $1 in
535        -*)set "./$1";;
536	esac;
537	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538	???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552exec 7<&0 </dev/null 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="configure.in"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653INSTALL_PROGRAM
654INSTALL_SCRIPT
655INSTALL_DATA
656CYGPATH_W
657PACKAGE
658VERSION
659ACLOCAL
660AUTOCONF
661AUTOMAKE
662AUTOHEADER
663MAKEINFO
664install_sh
665STRIP
666INSTALL_STRIP_PROGRAM
667mkdir_p
668AWK
669SET_MAKE
670am__leading_dot
671AMTAR
672am__tar
673am__untar
674CC
675CFLAGS
676LDFLAGS
677CPPFLAGS
678ac_ct_CC
679EXEEXT
680OBJEXT
681DEPDIR
682am__include
683am__quote
684AMDEP_TRUE
685AMDEP_FALSE
686AMDEPBACKSLASH
687CCDEPMODE
688am__fastdepCC_TRUE
689am__fastdepCC_FALSE
690RANLIB
691LN_S
692CPP
693GREP
694EGREP
695XTRALIBS_CTRL
696XTRALIBS_MGR
697XTRA_PROG
698kernel_headers
699LIBOBJS
700LTLIBOBJS'
701ac_subst_files=''
702      ac_precious_vars='build_alias
703host_alias
704target_alias
705CC
706CFLAGS
707LDFLAGS
708LIBS
709CPPFLAGS
710CPP'
711
712
713# Initialize some variables set by options.
714ac_init_help=
715ac_init_version=false
716# The variables have the same names as the options, with
717# dashes changed to underlines.
718cache_file=/dev/null
719exec_prefix=NONE
720no_create=
721no_recursion=
722prefix=NONE
723program_prefix=NONE
724program_suffix=NONE
725program_transform_name=s,x,x,
726silent=
727site=
728srcdir=
729verbose=
730x_includes=NONE
731x_libraries=NONE
732
733# Installation directory options.
734# These are left unexpanded so users can "make install exec_prefix=/foo"
735# and all the variables that are supposed to be based on exec_prefix
736# by default will actually change.
737# Use braces instead of parens because sh, perl, etc. also accept them.
738# (The list follows the same order as the GNU Coding Standards.)
739bindir='${exec_prefix}/bin'
740sbindir='${exec_prefix}/sbin'
741libexecdir='${exec_prefix}/libexec'
742datarootdir='${prefix}/share'
743datadir='${datarootdir}'
744sysconfdir='${prefix}/etc'
745sharedstatedir='${prefix}/com'
746localstatedir='${prefix}/var'
747includedir='${prefix}/include'
748oldincludedir='/usr/include'
749docdir='${datarootdir}/doc/${PACKAGE}'
750infodir='${datarootdir}/info'
751htmldir='${docdir}'
752dvidir='${docdir}'
753pdfdir='${docdir}'
754psdir='${docdir}'
755libdir='${exec_prefix}/lib'
756localedir='${datarootdir}/locale'
757mandir='${datarootdir}/man'
758
759ac_prev=
760ac_dashdash=
761for ac_option
762do
763  # If the previous option needs an argument, assign it.
764  if test -n "$ac_prev"; then
765    eval $ac_prev=\$ac_option
766    ac_prev=
767    continue
768  fi
769
770  case $ac_option in
771  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
772  *)	ac_optarg=yes ;;
773  esac
774
775  # Accept the important Cygnus configure options, so we can diagnose typos.
776
777  case $ac_dashdash$ac_option in
778  --)
779    ac_dashdash=yes ;;
780
781  -bindir | --bindir | --bindi | --bind | --bin | --bi)
782    ac_prev=bindir ;;
783  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
784    bindir=$ac_optarg ;;
785
786  -build | --build | --buil | --bui | --bu)
787    ac_prev=build_alias ;;
788  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
789    build_alias=$ac_optarg ;;
790
791  -cache-file | --cache-file | --cache-fil | --cache-fi \
792  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
793    ac_prev=cache_file ;;
794  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
795  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
796    cache_file=$ac_optarg ;;
797
798  --config-cache | -C)
799    cache_file=config.cache ;;
800
801  -datadir | --datadir | --datadi | --datad)
802    ac_prev=datadir ;;
803  -datadir=* | --datadir=* | --datadi=* | --datad=*)
804    datadir=$ac_optarg ;;
805
806  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
807  | --dataroo | --dataro | --datar)
808    ac_prev=datarootdir ;;
809  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
810  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
811    datarootdir=$ac_optarg ;;
812
813  -disable-* | --disable-*)
814    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
815    # Reject names that are not valid shell variable names.
816    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
817      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
818   { (exit 1); exit 1; }; }
819    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
820    eval enable_$ac_feature=no ;;
821
822  -docdir | --docdir | --docdi | --doc | --do)
823    ac_prev=docdir ;;
824  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
825    docdir=$ac_optarg ;;
826
827  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
828    ac_prev=dvidir ;;
829  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
830    dvidir=$ac_optarg ;;
831
832  -enable-* | --enable-*)
833    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
834    # Reject names that are not valid shell variable names.
835    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
836      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
837   { (exit 1); exit 1; }; }
838    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
839    eval enable_$ac_feature=\$ac_optarg ;;
840
841  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
842  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
843  | --exec | --exe | --ex)
844    ac_prev=exec_prefix ;;
845  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
846  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
847  | --exec=* | --exe=* | --ex=*)
848    exec_prefix=$ac_optarg ;;
849
850  -gas | --gas | --ga | --g)
851    # Obsolete; use --with-gas.
852    with_gas=yes ;;
853
854  -help | --help | --hel | --he | -h)
855    ac_init_help=long ;;
856  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
857    ac_init_help=recursive ;;
858  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
859    ac_init_help=short ;;
860
861  -host | --host | --hos | --ho)
862    ac_prev=host_alias ;;
863  -host=* | --host=* | --hos=* | --ho=*)
864    host_alias=$ac_optarg ;;
865
866  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
867    ac_prev=htmldir ;;
868  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
869  | --ht=*)
870    htmldir=$ac_optarg ;;
871
872  -includedir | --includedir | --includedi | --included | --include \
873  | --includ | --inclu | --incl | --inc)
874    ac_prev=includedir ;;
875  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
876  | --includ=* | --inclu=* | --incl=* | --inc=*)
877    includedir=$ac_optarg ;;
878
879  -infodir | --infodir | --infodi | --infod | --info | --inf)
880    ac_prev=infodir ;;
881  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
882    infodir=$ac_optarg ;;
883
884  -libdir | --libdir | --libdi | --libd)
885    ac_prev=libdir ;;
886  -libdir=* | --libdir=* | --libdi=* | --libd=*)
887    libdir=$ac_optarg ;;
888
889  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
890  | --libexe | --libex | --libe)
891    ac_prev=libexecdir ;;
892  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
893  | --libexe=* | --libex=* | --libe=*)
894    libexecdir=$ac_optarg ;;
895
896  -localedir | --localedir | --localedi | --localed | --locale)
897    ac_prev=localedir ;;
898  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
899    localedir=$ac_optarg ;;
900
901  -localstatedir | --localstatedir | --localstatedi | --localstated \
902  | --localstate | --localstat | --localsta | --localst | --locals)
903    ac_prev=localstatedir ;;
904  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
905  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
906    localstatedir=$ac_optarg ;;
907
908  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
909    ac_prev=mandir ;;
910  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
911    mandir=$ac_optarg ;;
912
913  -nfp | --nfp | --nf)
914    # Obsolete; use --without-fp.
915    with_fp=no ;;
916
917  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
918  | --no-cr | --no-c | -n)
919    no_create=yes ;;
920
921  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
922  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
923    no_recursion=yes ;;
924
925  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
926  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
927  | --oldin | --oldi | --old | --ol | --o)
928    ac_prev=oldincludedir ;;
929  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
930  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
931  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
932    oldincludedir=$ac_optarg ;;
933
934  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
935    ac_prev=prefix ;;
936  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
937    prefix=$ac_optarg ;;
938
939  -program-prefix | --program-prefix | --program-prefi | --program-pref \
940  | --program-pre | --program-pr | --program-p)
941    ac_prev=program_prefix ;;
942  -program-prefix=* | --program-prefix=* | --program-prefi=* \
943  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
944    program_prefix=$ac_optarg ;;
945
946  -program-suffix | --program-suffix | --program-suffi | --program-suff \
947  | --program-suf | --program-su | --program-s)
948    ac_prev=program_suffix ;;
949  -program-suffix=* | --program-suffix=* | --program-suffi=* \
950  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
951    program_suffix=$ac_optarg ;;
952
953  -program-transform-name | --program-transform-name \
954  | --program-transform-nam | --program-transform-na \
955  | --program-transform-n | --program-transform- \
956  | --program-transform | --program-transfor \
957  | --program-transfo | --program-transf \
958  | --program-trans | --program-tran \
959  | --progr-tra | --program-tr | --program-t)
960    ac_prev=program_transform_name ;;
961  -program-transform-name=* | --program-transform-name=* \
962  | --program-transform-nam=* | --program-transform-na=* \
963  | --program-transform-n=* | --program-transform-=* \
964  | --program-transform=* | --program-transfor=* \
965  | --program-transfo=* | --program-transf=* \
966  | --program-trans=* | --program-tran=* \
967  | --progr-tra=* | --program-tr=* | --program-t=*)
968    program_transform_name=$ac_optarg ;;
969
970  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
971    ac_prev=pdfdir ;;
972  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
973    pdfdir=$ac_optarg ;;
974
975  -psdir | --psdir | --psdi | --psd | --ps)
976    ac_prev=psdir ;;
977  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
978    psdir=$ac_optarg ;;
979
980  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
981  | -silent | --silent | --silen | --sile | --sil)
982    silent=yes ;;
983
984  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
985    ac_prev=sbindir ;;
986  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
987  | --sbi=* | --sb=*)
988    sbindir=$ac_optarg ;;
989
990  -sharedstatedir | --sharedstatedir | --sharedstatedi \
991  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
992  | --sharedst | --shareds | --shared | --share | --shar \
993  | --sha | --sh)
994    ac_prev=sharedstatedir ;;
995  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
996  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
997  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
998  | --sha=* | --sh=*)
999    sharedstatedir=$ac_optarg ;;
1000
1001  -site | --site | --sit)
1002    ac_prev=site ;;
1003  -site=* | --site=* | --sit=*)
1004    site=$ac_optarg ;;
1005
1006  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1007    ac_prev=srcdir ;;
1008  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1009    srcdir=$ac_optarg ;;
1010
1011  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1012  | --syscon | --sysco | --sysc | --sys | --sy)
1013    ac_prev=sysconfdir ;;
1014  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1015  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1016    sysconfdir=$ac_optarg ;;
1017
1018  -target | --target | --targe | --targ | --tar | --ta | --t)
1019    ac_prev=target_alias ;;
1020  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1021    target_alias=$ac_optarg ;;
1022
1023  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1024    verbose=yes ;;
1025
1026  -version | --version | --versio | --versi | --vers | -V)
1027    ac_init_version=: ;;
1028
1029  -with-* | --with-*)
1030    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1031    # Reject names that are not valid shell variable names.
1032    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033      { echo "$as_me: error: invalid package name: $ac_package" >&2
1034   { (exit 1); exit 1; }; }
1035    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1036    eval with_$ac_package=\$ac_optarg ;;
1037
1038  -without-* | --without-*)
1039    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1040    # Reject names that are not valid shell variable names.
1041    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042      { echo "$as_me: error: invalid package name: $ac_package" >&2
1043   { (exit 1); exit 1; }; }
1044    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1045    eval with_$ac_package=no ;;
1046
1047  --x)
1048    # Obsolete; use --with-x.
1049    with_x=yes ;;
1050
1051  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1052  | --x-incl | --x-inc | --x-in | --x-i)
1053    ac_prev=x_includes ;;
1054  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1055  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1056    x_includes=$ac_optarg ;;
1057
1058  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1059  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1060    ac_prev=x_libraries ;;
1061  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1062  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1063    x_libraries=$ac_optarg ;;
1064
1065  -*) { echo "$as_me: error: unrecognized option: $ac_option
1066Try \`$0 --help' for more information." >&2
1067   { (exit 1); exit 1; }; }
1068    ;;
1069
1070  *=*)
1071    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1072    # Reject names that are not valid shell variable names.
1073    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1074      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1075   { (exit 1); exit 1; }; }
1076    eval $ac_envvar=\$ac_optarg
1077    export $ac_envvar ;;
1078
1079  *)
1080    # FIXME: should be removed in autoconf 3.0.
1081    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1082    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1084    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1085    ;;
1086
1087  esac
1088done
1089
1090if test -n "$ac_prev"; then
1091  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1092  { echo "$as_me: error: missing argument to $ac_option" >&2
1093   { (exit 1); exit 1; }; }
1094fi
1095
1096# Be sure to have absolute directory names.
1097for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1098		datadir sysconfdir sharedstatedir localstatedir includedir \
1099		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1100		libdir localedir mandir
1101do
1102  eval ac_val=\$$ac_var
1103  case $ac_val in
1104    [\\/$]* | ?:[\\/]* )  continue;;
1105    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1106  esac
1107  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1108   { (exit 1); exit 1; }; }
1109done
1110
1111# There might be people who depend on the old broken behavior: `$host'
1112# used to hold the argument of --host etc.
1113# FIXME: To remove some day.
1114build=$build_alias
1115host=$host_alias
1116target=$target_alias
1117
1118# FIXME: To remove some day.
1119if test "x$host_alias" != x; then
1120  if test "x$build_alias" = x; then
1121    cross_compiling=maybe
1122    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1123    If a cross compiler is detected then cross compile mode will be used." >&2
1124  elif test "x$build_alias" != "x$host_alias"; then
1125    cross_compiling=yes
1126  fi
1127fi
1128
1129ac_tool_prefix=
1130test -n "$host_alias" && ac_tool_prefix=$host_alias-
1131
1132test "$silent" = yes && exec 6>/dev/null
1133
1134
1135ac_pwd=`pwd` && test -n "$ac_pwd" &&
1136ac_ls_di=`ls -di .` &&
1137ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1138  { echo "$as_me: error: Working directory cannot be determined" >&2
1139   { (exit 1); exit 1; }; }
1140test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1141  { echo "$as_me: error: pwd does not report name of working directory" >&2
1142   { (exit 1); exit 1; }; }
1143
1144
1145# Find the source files, if location was not specified.
1146if test -z "$srcdir"; then
1147  ac_srcdir_defaulted=yes
1148  # Try the directory containing this script, then the parent directory.
1149  ac_confdir=`$as_dirname -- "$0" ||
1150$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1151	 X"$0" : 'X\(//\)[^/]' \| \
1152	 X"$0" : 'X\(//\)$' \| \
1153	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1154echo X"$0" |
1155    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1156	    s//\1/
1157	    q
1158	  }
1159	  /^X\(\/\/\)[^/].*/{
1160	    s//\1/
1161	    q
1162	  }
1163	  /^X\(\/\/\)$/{
1164	    s//\1/
1165	    q
1166	  }
1167	  /^X\(\/\).*/{
1168	    s//\1/
1169	    q
1170	  }
1171	  s/.*/./; q'`
1172  srcdir=$ac_confdir
1173  if test ! -r "$srcdir/$ac_unique_file"; then
1174    srcdir=..
1175  fi
1176else
1177  ac_srcdir_defaulted=no
1178fi
1179if test ! -r "$srcdir/$ac_unique_file"; then
1180  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1181  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1182   { (exit 1); exit 1; }; }
1183fi
1184ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1185ac_abs_confdir=`(
1186	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1187   { (exit 1); exit 1; }; }
1188	pwd)`
1189# When building in place, set srcdir=.
1190if test "$ac_abs_confdir" = "$ac_pwd"; then
1191  srcdir=.
1192fi
1193# Remove unnecessary trailing slashes from srcdir.
1194# Double slashes in file names in object file debugging info
1195# mess up M-x gdb in Emacs.
1196case $srcdir in
1197*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1198esac
1199for ac_var in $ac_precious_vars; do
1200  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1201  eval ac_env_${ac_var}_value=\$${ac_var}
1202  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1203  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1204done
1205
1206#
1207# Report the --help message.
1208#
1209if test "$ac_init_help" = "long"; then
1210  # Omit some internal or obsolete options to make the list less imposing.
1211  # This message is too long to be a string in the A/UX 3.1 sh.
1212  cat <<_ACEOF
1213\`configure' configures this package to adapt to many kinds of systems.
1214
1215Usage: $0 [OPTION]... [VAR=VALUE]...
1216
1217To assign environment variables (e.g., CC, CFLAGS...), specify them as
1218VAR=VALUE.  See below for descriptions of some of the useful variables.
1219
1220Defaults for the options are specified in brackets.
1221
1222Configuration:
1223  -h, --help              display this help and exit
1224      --help=short        display options specific to this package
1225      --help=recursive    display the short help of all the included packages
1226  -V, --version           display version information and exit
1227  -q, --quiet, --silent   do not print \`checking...' messages
1228      --cache-file=FILE   cache test results in FILE [disabled]
1229  -C, --config-cache      alias for \`--cache-file=config.cache'
1230  -n, --no-create         do not create output files
1231      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1232
1233Installation directories:
1234  --prefix=PREFIX         install architecture-independent files in PREFIX
1235			  [$ac_default_prefix]
1236  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1237			  [PREFIX]
1238
1239By default, \`make install' will install all the files in
1240\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1241an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1242for instance \`--prefix=\$HOME'.
1243
1244For better control, use the options below.
1245
1246Fine tuning of the installation directories:
1247  --bindir=DIR           user executables [EPREFIX/bin]
1248  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1249  --libexecdir=DIR       program executables [EPREFIX/libexec]
1250  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1251  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1252  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1253  --libdir=DIR           object code libraries [EPREFIX/lib]
1254  --includedir=DIR       C header files [PREFIX/include]
1255  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1256  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1257  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1258  --infodir=DIR          info documentation [DATAROOTDIR/info]
1259  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1260  --mandir=DIR           man documentation [DATAROOTDIR/man]
1261  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1262  --htmldir=DIR          html documentation [DOCDIR]
1263  --dvidir=DIR           dvi documentation [DOCDIR]
1264  --pdfdir=DIR           pdf documentation [DOCDIR]
1265  --psdir=DIR            ps documentation [DOCDIR]
1266_ACEOF
1267
1268  cat <<\_ACEOF
1269
1270Program names:
1271  --program-prefix=PREFIX            prepend PREFIX to installed program names
1272  --program-suffix=SUFFIX            append SUFFIX to installed program names
1273  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1274_ACEOF
1275fi
1276
1277if test -n "$ac_init_help"; then
1278
1279  cat <<\_ACEOF
1280
1281Optional Features:
1282  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1283  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1284  --enable-facility=name    Use another syslog facility, default LOG_DAEMON
1285  --enable-bcrelay          Enable broadcast relay function
1286  --disable-dependency-tracking  speeds up one-time build
1287  --enable-dependency-tracking   do not reject slow dependency extractors
1288
1289Optional Packages:
1290  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1291  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1292  --with-libwrap          Use libwrap (tcp wrappers)
1293
1294Some influential environment variables:
1295  CC          C compiler command
1296  CFLAGS      C compiler flags
1297  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1298              nonstandard directory <lib dir>
1299  LIBS        libraries to pass to the linker, e.g. -l<library>
1300  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1301              you have headers in a nonstandard directory <include dir>
1302  CPP         C preprocessor
1303
1304Use these variables to override the choices made by `configure' or to help
1305it to find libraries and programs with nonstandard names/locations.
1306
1307_ACEOF
1308ac_status=$?
1309fi
1310
1311if test "$ac_init_help" = "recursive"; then
1312  # If there are subdirs, report their specific --help.
1313  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1314    test -d "$ac_dir" || continue
1315    ac_builddir=.
1316
1317case "$ac_dir" in
1318.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1319*)
1320  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1321  # A ".." for each directory in $ac_dir_suffix.
1322  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1323  case $ac_top_builddir_sub in
1324  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1325  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1326  esac ;;
1327esac
1328ac_abs_top_builddir=$ac_pwd
1329ac_abs_builddir=$ac_pwd$ac_dir_suffix
1330# for backward compatibility:
1331ac_top_builddir=$ac_top_build_prefix
1332
1333case $srcdir in
1334  .)  # We are building in place.
1335    ac_srcdir=.
1336    ac_top_srcdir=$ac_top_builddir_sub
1337    ac_abs_top_srcdir=$ac_pwd ;;
1338  [\\/]* | ?:[\\/]* )  # Absolute name.
1339    ac_srcdir=$srcdir$ac_dir_suffix;
1340    ac_top_srcdir=$srcdir
1341    ac_abs_top_srcdir=$srcdir ;;
1342  *) # Relative name.
1343    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1344    ac_top_srcdir=$ac_top_build_prefix$srcdir
1345    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1346esac
1347ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1348
1349    cd "$ac_dir" || { ac_status=$?; continue; }
1350    # Check for guested configure.
1351    if test -f "$ac_srcdir/configure.gnu"; then
1352      echo &&
1353      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1354    elif test -f "$ac_srcdir/configure"; then
1355      echo &&
1356      $SHELL "$ac_srcdir/configure" --help=recursive
1357    else
1358      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1359    fi || ac_status=$?
1360    cd "$ac_pwd" || { ac_status=$?; break; }
1361  done
1362fi
1363
1364test -n "$ac_init_help" && exit $ac_status
1365if $ac_init_version; then
1366  cat <<\_ACEOF
1367configure
1368generated by GNU Autoconf 2.61
1369
1370Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13712002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1372This configure script is free software; the Free Software Foundation
1373gives unlimited permission to copy, distribute and modify it.
1374_ACEOF
1375  exit
1376fi
1377cat >config.log <<_ACEOF
1378This file contains any messages produced by compilers while
1379running configure, to aid debugging if configure makes a mistake.
1380
1381It was created by $as_me, which was
1382generated by GNU Autoconf 2.61.  Invocation command line was
1383
1384  $ $0 $@
1385
1386_ACEOF
1387exec 5>>config.log
1388{
1389cat <<_ASUNAME
1390## --------- ##
1391## Platform. ##
1392## --------- ##
1393
1394hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1395uname -m = `(uname -m) 2>/dev/null || echo unknown`
1396uname -r = `(uname -r) 2>/dev/null || echo unknown`
1397uname -s = `(uname -s) 2>/dev/null || echo unknown`
1398uname -v = `(uname -v) 2>/dev/null || echo unknown`
1399
1400/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1401/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1402
1403/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1404/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1405/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1406/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1407/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1408/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1409/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1410
1411_ASUNAME
1412
1413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414for as_dir in $PATH
1415do
1416  IFS=$as_save_IFS
1417  test -z "$as_dir" && as_dir=.
1418  echo "PATH: $as_dir"
1419done
1420IFS=$as_save_IFS
1421
1422} >&5
1423
1424cat >&5 <<_ACEOF
1425
1426
1427## ----------- ##
1428## Core tests. ##
1429## ----------- ##
1430
1431_ACEOF
1432
1433
1434# Keep a trace of the command line.
1435# Strip out --no-create and --no-recursion so they do not pile up.
1436# Strip out --silent because we don't want to record it for future runs.
1437# Also quote any args containing shell meta-characters.
1438# Make two passes to allow for proper duplicate-argument suppression.
1439ac_configure_args=
1440ac_configure_args0=
1441ac_configure_args1=
1442ac_must_keep_next=false
1443for ac_pass in 1 2
1444do
1445  for ac_arg
1446  do
1447    case $ac_arg in
1448    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1449    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1450    | -silent | --silent | --silen | --sile | --sil)
1451      continue ;;
1452    *\'*)
1453      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1454    esac
1455    case $ac_pass in
1456    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1457    2)
1458      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1459      if test $ac_must_keep_next = true; then
1460	ac_must_keep_next=false # Got value, back to normal.
1461      else
1462	case $ac_arg in
1463	  *=* | --config-cache | -C | -disable-* | --disable-* \
1464	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1465	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1466	  | -with-* | --with-* | -without-* | --without-* | --x)
1467	    case "$ac_configure_args0 " in
1468	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1469	    esac
1470	    ;;
1471	  -* ) ac_must_keep_next=true ;;
1472	esac
1473      fi
1474      ac_configure_args="$ac_configure_args '$ac_arg'"
1475      ;;
1476    esac
1477  done
1478done
1479$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1480$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1481
1482# When interrupted or exit'd, cleanup temporary files, and complete
1483# config.log.  We remove comments because anyway the quotes in there
1484# would cause problems or look ugly.
1485# WARNING: Use '\'' to represent an apostrophe within the trap.
1486# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1487trap 'exit_status=$?
1488  # Save into config.log some information that might help in debugging.
1489  {
1490    echo
1491
1492    cat <<\_ASBOX
1493## ---------------- ##
1494## Cache variables. ##
1495## ---------------- ##
1496_ASBOX
1497    echo
1498    # The following way of writing the cache mishandles newlines in values,
1499(
1500  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1501    eval ac_val=\$$ac_var
1502    case $ac_val in #(
1503    *${as_nl}*)
1504      case $ac_var in #(
1505      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1506echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1507      esac
1508      case $ac_var in #(
1509      _ | IFS | as_nl) ;; #(
1510      *) $as_unset $ac_var ;;
1511      esac ;;
1512    esac
1513  done
1514  (set) 2>&1 |
1515    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1516    *${as_nl}ac_space=\ *)
1517      sed -n \
1518	"s/'\''/'\''\\\\'\'''\''/g;
1519	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1520      ;; #(
1521    *)
1522      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1523      ;;
1524    esac |
1525    sort
1526)
1527    echo
1528
1529    cat <<\_ASBOX
1530## ----------------- ##
1531## Output variables. ##
1532## ----------------- ##
1533_ASBOX
1534    echo
1535    for ac_var in $ac_subst_vars
1536    do
1537      eval ac_val=\$$ac_var
1538      case $ac_val in
1539      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1540      esac
1541      echo "$ac_var='\''$ac_val'\''"
1542    done | sort
1543    echo
1544
1545    if test -n "$ac_subst_files"; then
1546      cat <<\_ASBOX
1547## ------------------- ##
1548## File substitutions. ##
1549## ------------------- ##
1550_ASBOX
1551      echo
1552      for ac_var in $ac_subst_files
1553      do
1554	eval ac_val=\$$ac_var
1555	case $ac_val in
1556	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1557	esac
1558	echo "$ac_var='\''$ac_val'\''"
1559      done | sort
1560      echo
1561    fi
1562
1563    if test -s confdefs.h; then
1564      cat <<\_ASBOX
1565## ----------- ##
1566## confdefs.h. ##
1567## ----------- ##
1568_ASBOX
1569      echo
1570      cat confdefs.h
1571      echo
1572    fi
1573    test "$ac_signal" != 0 &&
1574      echo "$as_me: caught signal $ac_signal"
1575    echo "$as_me: exit $exit_status"
1576  } >&5
1577  rm -f core *.core core.conftest.* &&
1578    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1579    exit $exit_status
1580' 0
1581for ac_signal in 1 2 13 15; do
1582  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1583done
1584ac_signal=0
1585
1586# confdefs.h avoids OS command line length limits that DEFS can exceed.
1587rm -f -r conftest* confdefs.h
1588
1589# Predefined preprocessor variables.
1590
1591cat >>confdefs.h <<_ACEOF
1592#define PACKAGE_NAME "$PACKAGE_NAME"
1593_ACEOF
1594
1595
1596cat >>confdefs.h <<_ACEOF
1597#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1598_ACEOF
1599
1600
1601cat >>confdefs.h <<_ACEOF
1602#define PACKAGE_VERSION "$PACKAGE_VERSION"
1603_ACEOF
1604
1605
1606cat >>confdefs.h <<_ACEOF
1607#define PACKAGE_STRING "$PACKAGE_STRING"
1608_ACEOF
1609
1610
1611cat >>confdefs.h <<_ACEOF
1612#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1613_ACEOF
1614
1615
1616# Let the site file select an alternate cache file if it wants to.
1617# Prefer explicitly selected file to automatically selected ones.
1618if test -n "$CONFIG_SITE"; then
1619  set x "$CONFIG_SITE"
1620elif test "x$prefix" != xNONE; then
1621  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1622else
1623  set x "$ac_default_prefix/share/config.site" \
1624	"$ac_default_prefix/etc/config.site"
1625fi
1626shift
1627for ac_site_file
1628do
1629  if test -r "$ac_site_file"; then
1630    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1631echo "$as_me: loading site script $ac_site_file" >&6;}
1632    sed 's/^/| /' "$ac_site_file" >&5
1633    . "$ac_site_file"
1634  fi
1635done
1636
1637if test -r "$cache_file"; then
1638  # Some versions of bash will fail to source /dev/null (special
1639  # files actually), so we avoid doing that.
1640  if test -f "$cache_file"; then
1641    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1642echo "$as_me: loading cache $cache_file" >&6;}
1643    case $cache_file in
1644      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1645      *)                      . "./$cache_file";;
1646    esac
1647  fi
1648else
1649  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1650echo "$as_me: creating cache $cache_file" >&6;}
1651  >$cache_file
1652fi
1653
1654# Check that the precious variables saved in the cache have kept the same
1655# value.
1656ac_cache_corrupted=false
1657for ac_var in $ac_precious_vars; do
1658  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1659  eval ac_new_set=\$ac_env_${ac_var}_set
1660  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1661  eval ac_new_val=\$ac_env_${ac_var}_value
1662  case $ac_old_set,$ac_new_set in
1663    set,)
1664      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1665echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1666      ac_cache_corrupted=: ;;
1667    ,set)
1668      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1669echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1670      ac_cache_corrupted=: ;;
1671    ,);;
1672    *)
1673      if test "x$ac_old_val" != "x$ac_new_val"; then
1674	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1675echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1676	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1677echo "$as_me:   former value:  $ac_old_val" >&2;}
1678	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1679echo "$as_me:   current value: $ac_new_val" >&2;}
1680	ac_cache_corrupted=:
1681      fi;;
1682  esac
1683  # Pass precious variables to config.status.
1684  if test "$ac_new_set" = set; then
1685    case $ac_new_val in
1686    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1687    *) ac_arg=$ac_var=$ac_new_val ;;
1688    esac
1689    case " $ac_configure_args " in
1690      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1691      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1692    esac
1693  fi
1694done
1695if $ac_cache_corrupted; then
1696  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1697echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1698  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1699echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1700   { (exit 1); exit 1; }; }
1701fi
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719ac_ext=c
1720ac_cpp='$CPP $CPPFLAGS'
1721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1723ac_compiler_gnu=$ac_cv_c_compiler_gnu
1724
1725
1726
1727ac_config_headers="$ac_config_headers config.h"
1728
1729am__api_version="1.9"
1730ac_aux_dir=
1731for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1732  if test -f "$ac_dir/install-sh"; then
1733    ac_aux_dir=$ac_dir
1734    ac_install_sh="$ac_aux_dir/install-sh -c"
1735    break
1736  elif test -f "$ac_dir/install.sh"; then
1737    ac_aux_dir=$ac_dir
1738    ac_install_sh="$ac_aux_dir/install.sh -c"
1739    break
1740  elif test -f "$ac_dir/shtool"; then
1741    ac_aux_dir=$ac_dir
1742    ac_install_sh="$ac_aux_dir/shtool install -c"
1743    break
1744  fi
1745done
1746if test -z "$ac_aux_dir"; then
1747  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1748echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1749   { (exit 1); exit 1; }; }
1750fi
1751
1752# These three variables are undocumented and unsupported,
1753# and are intended to be withdrawn in a future Autoconf release.
1754# They can cause serious problems if a builder's source tree is in a directory
1755# whose full name contains unusual characters.
1756ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1757ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1758ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1759
1760
1761# Find a good install program.  We prefer a C program (faster),
1762# so one script is as good as another.  But avoid the broken or
1763# incompatible versions:
1764# SysV /etc/install, /usr/sbin/install
1765# SunOS /usr/etc/install
1766# IRIX /sbin/install
1767# AIX /bin/install
1768# AmigaOS /C/install, which installs bootblocks on floppy discs
1769# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1770# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1771# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1772# OS/2's system install, which has a completely different semantic
1773# ./install, which can be erroneously created by make from ./install.sh.
1774{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1775echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1776if test -z "$INSTALL"; then
1777if test "${ac_cv_path_install+set}" = set; then
1778  echo $ECHO_N "(cached) $ECHO_C" >&6
1779else
1780  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781for as_dir in $PATH
1782do
1783  IFS=$as_save_IFS
1784  test -z "$as_dir" && as_dir=.
1785  # Account for people who put trailing slashes in PATH elements.
1786case $as_dir/ in
1787  ./ | .// | /cC/* | \
1788  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1789  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1790  /usr/ucb/* ) ;;
1791  *)
1792    # OSF1 and SCO ODT 3.0 have their own names for install.
1793    # Don't use installbsd from OSF since it installs stuff as root
1794    # by default.
1795    for ac_prog in ginstall scoinst install; do
1796      for ac_exec_ext in '' $ac_executable_extensions; do
1797	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1798	  if test $ac_prog = install &&
1799	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1800	    # AIX install.  It has an incompatible calling convention.
1801	    :
1802	  elif test $ac_prog = install &&
1803	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1804	    # program-specific install script used by HP pwplus--don't use.
1805	    :
1806	  else
1807	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1808	    break 3
1809	  fi
1810	fi
1811      done
1812    done
1813    ;;
1814esac
1815done
1816IFS=$as_save_IFS
1817
1818
1819fi
1820  if test "${ac_cv_path_install+set}" = set; then
1821    INSTALL=$ac_cv_path_install
1822  else
1823    # As a last resort, use the slow shell script.  Don't cache a
1824    # value for INSTALL within a source directory, because that will
1825    # break other packages using the cache if that directory is
1826    # removed, or if the value is a relative name.
1827    INSTALL=$ac_install_sh
1828  fi
1829fi
1830{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1831echo "${ECHO_T}$INSTALL" >&6; }
1832
1833# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1834# It thinks the first close brace ends the variable substitution.
1835test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1836
1837test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1838
1839test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1840
1841{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1842echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1843# Just in case
1844sleep 1
1845echo timestamp > conftest.file
1846# Do `set' in a subshell so we don't clobber the current shell's
1847# arguments.  Must try -L first in case configure is actually a
1848# symlink; some systems play weird games with the mod time of symlinks
1849# (eg FreeBSD returns the mod time of the symlink's containing
1850# directory).
1851if (
1852   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1853   if test "$*" = "X"; then
1854      # -L didn't work.
1855      set X `ls -t $srcdir/configure conftest.file`
1856   fi
1857   rm -f conftest.file
1858   if test "$*" != "X $srcdir/configure conftest.file" \
1859      && test "$*" != "X conftest.file $srcdir/configure"; then
1860
1861      # If neither matched, then we have a broken ls.  This can happen
1862      # if, for instance, CONFIG_SHELL is bash and it inherits a
1863      # broken ls alias from the environment.  This has actually
1864      # happened.  Such a system could not be considered "sane".
1865      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1866alias in your environment" >&5
1867echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1868alias in your environment" >&2;}
1869   { (exit 1); exit 1; }; }
1870   fi
1871
1872   test "$2" = conftest.file
1873   )
1874then
1875   # Ok.
1876   :
1877else
1878   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1879Check your system clock" >&5
1880echo "$as_me: error: newly created file is older than distributed files!
1881Check your system clock" >&2;}
1882   { (exit 1); exit 1; }; }
1883fi
1884{ echo "$as_me:$LINENO: result: yes" >&5
1885echo "${ECHO_T}yes" >&6; }
1886test "$program_prefix" != NONE &&
1887  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1888# Use a double $ so make ignores it.
1889test "$program_suffix" != NONE &&
1890  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1891# Double any \ or $.  echo might interpret backslashes.
1892# By default was `s,x,x', remove it if useless.
1893cat <<\_ACEOF >conftest.sed
1894s/[\\$]/&&/g;s/;s,x,x,$//
1895_ACEOF
1896program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1897rm -f conftest.sed
1898
1899# expand $ac_aux_dir to an absolute path
1900am_aux_dir=`cd $ac_aux_dir && pwd`
1901
1902test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1903# Use eval to expand $SHELL
1904if eval "$MISSING --run true"; then
1905  am_missing_run="$MISSING --run "
1906else
1907  am_missing_run=
1908  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1909echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1910fi
1911
1912if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1913  # We used to keeping the `.' as first argument, in order to
1914  # allow $(mkdir_p) to be used without argument.  As in
1915  #   $(mkdir_p) $(somedir)
1916  # where $(somedir) is conditionally defined.  However this is wrong
1917  # for two reasons:
1918  #  1. if the package is installed by a user who cannot write `.'
1919  #     make install will fail,
1920  #  2. the above comment should most certainly read
1921  #     $(mkdir_p) $(DESTDIR)$(somedir)
1922  #     so it does not work when $(somedir) is undefined and
1923  #     $(DESTDIR) is not.
1924  #  To support the latter case, we have to write
1925  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1926  #  so the `.' trick is pointless.
1927  mkdir_p='mkdir -p --'
1928else
1929  # On NextStep and OpenStep, the `mkdir' command does not
1930  # recognize any option.  It will interpret all options as
1931  # directories to create, and then abort because `.' already
1932  # exists.
1933  for d in ./-p ./--version;
1934  do
1935    test -d $d && rmdir $d
1936  done
1937  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1938  if test -f "$ac_aux_dir/mkinstalldirs"; then
1939    mkdir_p='$(mkinstalldirs)'
1940  else
1941    mkdir_p='$(install_sh) -d'
1942  fi
1943fi
1944
1945for ac_prog in gawk mawk nawk awk
1946do
1947  # Extract the first word of "$ac_prog", so it can be a program name with args.
1948set dummy $ac_prog; ac_word=$2
1949{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1951if test "${ac_cv_prog_AWK+set}" = set; then
1952  echo $ECHO_N "(cached) $ECHO_C" >&6
1953else
1954  if test -n "$AWK"; then
1955  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1956else
1957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958for as_dir in $PATH
1959do
1960  IFS=$as_save_IFS
1961  test -z "$as_dir" && as_dir=.
1962  for ac_exec_ext in '' $ac_executable_extensions; do
1963  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1964    ac_cv_prog_AWK="$ac_prog"
1965    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966    break 2
1967  fi
1968done
1969done
1970IFS=$as_save_IFS
1971
1972fi
1973fi
1974AWK=$ac_cv_prog_AWK
1975if test -n "$AWK"; then
1976  { echo "$as_me:$LINENO: result: $AWK" >&5
1977echo "${ECHO_T}$AWK" >&6; }
1978else
1979  { echo "$as_me:$LINENO: result: no" >&5
1980echo "${ECHO_T}no" >&6; }
1981fi
1982
1983
1984  test -n "$AWK" && break
1985done
1986
1987{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1988echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1989set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1990if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1991  echo $ECHO_N "(cached) $ECHO_C" >&6
1992else
1993  cat >conftest.make <<\_ACEOF
1994SHELL = /bin/sh
1995all:
1996	@echo '@@@%%%=$(MAKE)=@@@%%%'
1997_ACEOF
1998# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1999case `${MAKE-make} -f conftest.make 2>/dev/null` in
2000  *@@@%%%=?*=@@@%%%*)
2001    eval ac_cv_prog_make_${ac_make}_set=yes;;
2002  *)
2003    eval ac_cv_prog_make_${ac_make}_set=no;;
2004esac
2005rm -f conftest.make
2006fi
2007if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2008  { echo "$as_me:$LINENO: result: yes" >&5
2009echo "${ECHO_T}yes" >&6; }
2010  SET_MAKE=
2011else
2012  { echo "$as_me:$LINENO: result: no" >&5
2013echo "${ECHO_T}no" >&6; }
2014  SET_MAKE="MAKE=${MAKE-make}"
2015fi
2016
2017rm -rf .tst 2>/dev/null
2018mkdir .tst 2>/dev/null
2019if test -d .tst; then
2020  am__leading_dot=.
2021else
2022  am__leading_dot=_
2023fi
2024rmdir .tst 2>/dev/null
2025
2026# test to see if srcdir already configured
2027if test "`cd $srcdir && pwd`" != "`pwd`" &&
2028   test -f $srcdir/config.status; then
2029  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2030echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2031   { (exit 1); exit 1; }; }
2032fi
2033
2034# test whether we have cygpath
2035if test -z "$CYGPATH_W"; then
2036  if (cygpath --version) >/dev/null 2>/dev/null; then
2037    CYGPATH_W='cygpath -w'
2038  else
2039    CYGPATH_W=echo
2040  fi
2041fi
2042
2043
2044# Define the identity of the package.
2045 PACKAGE=pptpd
2046 VERSION=0.8.5
2047
2048
2049cat >>confdefs.h <<_ACEOF
2050#define PACKAGE "$PACKAGE"
2051_ACEOF
2052
2053
2054cat >>confdefs.h <<_ACEOF
2055#define VERSION "$VERSION"
2056_ACEOF
2057
2058# Some tools Automake needs.
2059
2060ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2061
2062
2063AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2064
2065
2066AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2067
2068
2069AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2070
2071
2072MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2073
2074install_sh=${install_sh-"$am_aux_dir/install-sh"}
2075
2076# Installed binaries are usually stripped using `strip' when the user
2077# run `make install-strip'.  However `strip' might not be the right
2078# tool to use in cross-compilation environments, therefore Automake
2079# will honor the `STRIP' environment variable to overrule this program.
2080if test "$cross_compiling" != no; then
2081  if test -n "$ac_tool_prefix"; then
2082  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2083set dummy ${ac_tool_prefix}strip; ac_word=$2
2084{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2086if test "${ac_cv_prog_STRIP+set}" = set; then
2087  echo $ECHO_N "(cached) $ECHO_C" >&6
2088else
2089  if test -n "$STRIP"; then
2090  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2091else
2092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093for as_dir in $PATH
2094do
2095  IFS=$as_save_IFS
2096  test -z "$as_dir" && as_dir=.
2097  for ac_exec_ext in '' $ac_executable_extensions; do
2098  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2099    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2100    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101    break 2
2102  fi
2103done
2104done
2105IFS=$as_save_IFS
2106
2107fi
2108fi
2109STRIP=$ac_cv_prog_STRIP
2110if test -n "$STRIP"; then
2111  { echo "$as_me:$LINENO: result: $STRIP" >&5
2112echo "${ECHO_T}$STRIP" >&6; }
2113else
2114  { echo "$as_me:$LINENO: result: no" >&5
2115echo "${ECHO_T}no" >&6; }
2116fi
2117
2118
2119fi
2120if test -z "$ac_cv_prog_STRIP"; then
2121  ac_ct_STRIP=$STRIP
2122  # Extract the first word of "strip", so it can be a program name with args.
2123set dummy strip; ac_word=$2
2124{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2126if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2127  echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129  if test -n "$ac_ct_STRIP"; then
2130  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2131else
2132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133for as_dir in $PATH
2134do
2135  IFS=$as_save_IFS
2136  test -z "$as_dir" && as_dir=.
2137  for ac_exec_ext in '' $ac_executable_extensions; do
2138  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2139    ac_cv_prog_ac_ct_STRIP="strip"
2140    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141    break 2
2142  fi
2143done
2144done
2145IFS=$as_save_IFS
2146
2147fi
2148fi
2149ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2150if test -n "$ac_ct_STRIP"; then
2151  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2152echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2153else
2154  { echo "$as_me:$LINENO: result: no" >&5
2155echo "${ECHO_T}no" >&6; }
2156fi
2157
2158  if test "x$ac_ct_STRIP" = x; then
2159    STRIP=":"
2160  else
2161    case $cross_compiling:$ac_tool_warned in
2162yes:)
2163{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2164whose name does not start with the host triplet.  If you think this
2165configuration is useful to you, please write to autoconf@gnu.org." >&5
2166echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2167whose name does not start with the host triplet.  If you think this
2168configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2169ac_tool_warned=yes ;;
2170esac
2171    STRIP=$ac_ct_STRIP
2172  fi
2173else
2174  STRIP="$ac_cv_prog_STRIP"
2175fi
2176
2177fi
2178INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2179
2180# We need awk for the "check" target.  The system "awk" is bad on
2181# some platforms.
2182# Always define AMTAR for backward compatibility.
2183
2184AMTAR=${AMTAR-"${am_missing_run}tar"}
2185
2186am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2187
2188
2189
2190
2191
2192
2193
2194cat >>confdefs.h <<\_ACEOF
2195#define BCRELAY
2196_ACEOF
2197
2198
2199cat >>confdefs.h <<\_ACEOF
2200#define PPPD_VERSION
2201_ACEOF
2202
2203
2204cat >>confdefs.h <<\_ACEOF
2205#define PPTP_FACILITY
2206_ACEOF
2207
2208#AC_DEFINE(socklen_t,[],"")
2209# check common command line options early
2210
2211
2212cat >>confdefs.h <<\_ACEOF
2213#define PPP_BINARY "/usr/sbin/pppd"
2214_ACEOF
2215
2216
2217cat >>confdefs.h <<\_ACEOF
2218#define KERNELVERSION
2219_ACEOF
2220
2221
2222
2223{ echo "$as_me:$LINENO: checking command line for syslog facility name" >&5
2224echo $ECHO_N "checking command line for syslog facility name... $ECHO_C" >&6; }
2225# Check whether --enable-facility was given.
2226if test "${enable_facility+set}" = set; then
2227  enableval=$enable_facility;
2228	{ echo "$as_me:$LINENO: result: $enableval" >&5
2229echo "${ECHO_T}$enableval" >&6; }
2230	cat >>confdefs.h <<_ACEOF
2231#define PPTP_FACILITY $enableval
2232_ACEOF
2233
2234
2235else
2236
2237	{ echo "$as_me:$LINENO: result: default LOG_DAEMON" >&5
2238echo "${ECHO_T}default LOG_DAEMON" >&6; }
2239	cat >>confdefs.h <<_ACEOF
2240#define PPTP_FACILITY LOG_DAEMON
2241_ACEOF
2242
2243
2244fi
2245
2246
2247{ echo "$as_me:$LINENO: checking command line for bcrelay build" >&5
2248echo $ECHO_N "checking command line for bcrelay build... $ECHO_C" >&6; }
2249# Check whether --enable-bcrelay was given.
2250if test "${enable_bcrelay+set}" = set; then
2251  enableval=$enable_bcrelay;
2252	    case "$enableval" in
2253		yes)
2254		    { echo "$as_me:$LINENO: result: yes" >&5
2255echo "${ECHO_T}yes" >&6; }
2256		    cat >>confdefs.h <<\_ACEOF
2257#define BCRELAY 1
2258_ACEOF
2259
2260		    BCRELAY=$enableval
2261		    break;
2262		    ;;
2263		no)
2264		    { echo "$as_me:$LINENO: result: explicit no" >&5
2265echo "${ECHO_T}explicit no" >&6; }
2266		    ;;
2267		*)
2268		    # only yes or no are expected for this option
2269		    { echo "$as_me:$LINENO: result: unrecognised... terminating" >&5
2270echo "${ECHO_T}unrecognised... terminating" >&6; }
2271		    exit 1
2272		    ;;
2273	    esac
2274
2275else
2276  { echo "$as_me:$LINENO: result: default no" >&5
2277echo "${ECHO_T}default no" >&6; }
2278fi
2279
2280
2281ac_ext=c
2282ac_cpp='$CPP $CPPFLAGS'
2283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2285ac_compiler_gnu=$ac_cv_c_compiler_gnu
2286if test -n "$ac_tool_prefix"; then
2287  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2288set dummy ${ac_tool_prefix}gcc; ac_word=$2
2289{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2291if test "${ac_cv_prog_CC+set}" = set; then
2292  echo $ECHO_N "(cached) $ECHO_C" >&6
2293else
2294  if test -n "$CC"; then
2295  ac_cv_prog_CC="$CC" # Let the user override the test.
2296else
2297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298for as_dir in $PATH
2299do
2300  IFS=$as_save_IFS
2301  test -z "$as_dir" && as_dir=.
2302  for ac_exec_ext in '' $ac_executable_extensions; do
2303  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2304    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2305    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306    break 2
2307  fi
2308done
2309done
2310IFS=$as_save_IFS
2311
2312fi
2313fi
2314CC=$ac_cv_prog_CC
2315if test -n "$CC"; then
2316  { echo "$as_me:$LINENO: result: $CC" >&5
2317echo "${ECHO_T}$CC" >&6; }
2318else
2319  { echo "$as_me:$LINENO: result: no" >&5
2320echo "${ECHO_T}no" >&6; }
2321fi
2322
2323
2324fi
2325if test -z "$ac_cv_prog_CC"; then
2326  ac_ct_CC=$CC
2327  # Extract the first word of "gcc", so it can be a program name with args.
2328set dummy gcc; ac_word=$2
2329{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2331if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2332  echo $ECHO_N "(cached) $ECHO_C" >&6
2333else
2334  if test -n "$ac_ct_CC"; then
2335  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2336else
2337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338for as_dir in $PATH
2339do
2340  IFS=$as_save_IFS
2341  test -z "$as_dir" && as_dir=.
2342  for ac_exec_ext in '' $ac_executable_extensions; do
2343  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344    ac_cv_prog_ac_ct_CC="gcc"
2345    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346    break 2
2347  fi
2348done
2349done
2350IFS=$as_save_IFS
2351
2352fi
2353fi
2354ac_ct_CC=$ac_cv_prog_ac_ct_CC
2355if test -n "$ac_ct_CC"; then
2356  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2357echo "${ECHO_T}$ac_ct_CC" >&6; }
2358else
2359  { echo "$as_me:$LINENO: result: no" >&5
2360echo "${ECHO_T}no" >&6; }
2361fi
2362
2363  if test "x$ac_ct_CC" = x; then
2364    CC=""
2365  else
2366    case $cross_compiling:$ac_tool_warned in
2367yes:)
2368{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2369whose name does not start with the host triplet.  If you think this
2370configuration is useful to you, please write to autoconf@gnu.org." >&5
2371echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2372whose name does not start with the host triplet.  If you think this
2373configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2374ac_tool_warned=yes ;;
2375esac
2376    CC=$ac_ct_CC
2377  fi
2378else
2379  CC="$ac_cv_prog_CC"
2380fi
2381
2382if test -z "$CC"; then
2383          if test -n "$ac_tool_prefix"; then
2384    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2385set dummy ${ac_tool_prefix}cc; ac_word=$2
2386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2388if test "${ac_cv_prog_CC+set}" = set; then
2389  echo $ECHO_N "(cached) $ECHO_C" >&6
2390else
2391  if test -n "$CC"; then
2392  ac_cv_prog_CC="$CC" # Let the user override the test.
2393else
2394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395for as_dir in $PATH
2396do
2397  IFS=$as_save_IFS
2398  test -z "$as_dir" && as_dir=.
2399  for ac_exec_ext in '' $ac_executable_extensions; do
2400  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2401    ac_cv_prog_CC="${ac_tool_prefix}cc"
2402    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403    break 2
2404  fi
2405done
2406done
2407IFS=$as_save_IFS
2408
2409fi
2410fi
2411CC=$ac_cv_prog_CC
2412if test -n "$CC"; then
2413  { echo "$as_me:$LINENO: result: $CC" >&5
2414echo "${ECHO_T}$CC" >&6; }
2415else
2416  { echo "$as_me:$LINENO: result: no" >&5
2417echo "${ECHO_T}no" >&6; }
2418fi
2419
2420
2421  fi
2422fi
2423if test -z "$CC"; then
2424  # Extract the first word of "cc", so it can be a program name with args.
2425set dummy cc; ac_word=$2
2426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2428if test "${ac_cv_prog_CC+set}" = set; then
2429  echo $ECHO_N "(cached) $ECHO_C" >&6
2430else
2431  if test -n "$CC"; then
2432  ac_cv_prog_CC="$CC" # Let the user override the test.
2433else
2434  ac_prog_rejected=no
2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436for as_dir in $PATH
2437do
2438  IFS=$as_save_IFS
2439  test -z "$as_dir" && as_dir=.
2440  for ac_exec_ext in '' $ac_executable_extensions; do
2441  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2443       ac_prog_rejected=yes
2444       continue
2445     fi
2446    ac_cv_prog_CC="cc"
2447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448    break 2
2449  fi
2450done
2451done
2452IFS=$as_save_IFS
2453
2454if test $ac_prog_rejected = yes; then
2455  # We found a bogon in the path, so make sure we never use it.
2456  set dummy $ac_cv_prog_CC
2457  shift
2458  if test $# != 0; then
2459    # We chose a different compiler from the bogus one.
2460    # However, it has the same basename, so the bogon will be chosen
2461    # first if we set CC to just the basename; use the full file name.
2462    shift
2463    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2464  fi
2465fi
2466fi
2467fi
2468CC=$ac_cv_prog_CC
2469if test -n "$CC"; then
2470  { echo "$as_me:$LINENO: result: $CC" >&5
2471echo "${ECHO_T}$CC" >&6; }
2472else
2473  { echo "$as_me:$LINENO: result: no" >&5
2474echo "${ECHO_T}no" >&6; }
2475fi
2476
2477
2478fi
2479if test -z "$CC"; then
2480  if test -n "$ac_tool_prefix"; then
2481  for ac_prog in cl.exe
2482  do
2483    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2484set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2485{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487if test "${ac_cv_prog_CC+set}" = set; then
2488  echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490  if test -n "$CC"; then
2491  ac_cv_prog_CC="$CC" # Let the user override the test.
2492else
2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494for as_dir in $PATH
2495do
2496  IFS=$as_save_IFS
2497  test -z "$as_dir" && as_dir=.
2498  for ac_exec_ext in '' $ac_executable_extensions; do
2499  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2501    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502    break 2
2503  fi
2504done
2505done
2506IFS=$as_save_IFS
2507
2508fi
2509fi
2510CC=$ac_cv_prog_CC
2511if test -n "$CC"; then
2512  { echo "$as_me:$LINENO: result: $CC" >&5
2513echo "${ECHO_T}$CC" >&6; }
2514else
2515  { echo "$as_me:$LINENO: result: no" >&5
2516echo "${ECHO_T}no" >&6; }
2517fi
2518
2519
2520    test -n "$CC" && break
2521  done
2522fi
2523if test -z "$CC"; then
2524  ac_ct_CC=$CC
2525  for ac_prog in cl.exe
2526do
2527  # Extract the first word of "$ac_prog", so it can be a program name with args.
2528set dummy $ac_prog; ac_word=$2
2529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2532  echo $ECHO_N "(cached) $ECHO_C" >&6
2533else
2534  if test -n "$ac_ct_CC"; then
2535  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2536else
2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538for as_dir in $PATH
2539do
2540  IFS=$as_save_IFS
2541  test -z "$as_dir" && as_dir=.
2542  for ac_exec_ext in '' $ac_executable_extensions; do
2543  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544    ac_cv_prog_ac_ct_CC="$ac_prog"
2545    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546    break 2
2547  fi
2548done
2549done
2550IFS=$as_save_IFS
2551
2552fi
2553fi
2554ac_ct_CC=$ac_cv_prog_ac_ct_CC
2555if test -n "$ac_ct_CC"; then
2556  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2557echo "${ECHO_T}$ac_ct_CC" >&6; }
2558else
2559  { echo "$as_me:$LINENO: result: no" >&5
2560echo "${ECHO_T}no" >&6; }
2561fi
2562
2563
2564  test -n "$ac_ct_CC" && break
2565done
2566
2567  if test "x$ac_ct_CC" = x; then
2568    CC=""
2569  else
2570    case $cross_compiling:$ac_tool_warned in
2571yes:)
2572{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2573whose name does not start with the host triplet.  If you think this
2574configuration is useful to you, please write to autoconf@gnu.org." >&5
2575echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2576whose name does not start with the host triplet.  If you think this
2577configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2578ac_tool_warned=yes ;;
2579esac
2580    CC=$ac_ct_CC
2581  fi
2582fi
2583
2584fi
2585
2586
2587test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2588See \`config.log' for more details." >&5
2589echo "$as_me: error: no acceptable C compiler found in \$PATH
2590See \`config.log' for more details." >&2;}
2591   { (exit 1); exit 1; }; }
2592
2593# Provide some information about the compiler.
2594echo "$as_me:$LINENO: checking for C compiler version" >&5
2595ac_compiler=`set X $ac_compile; echo $2`
2596{ (ac_try="$ac_compiler --version >&5"
2597case "(($ac_try" in
2598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599  *) ac_try_echo=$ac_try;;
2600esac
2601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602  (eval "$ac_compiler --version >&5") 2>&5
2603  ac_status=$?
2604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605  (exit $ac_status); }
2606{ (ac_try="$ac_compiler -v >&5"
2607case "(($ac_try" in
2608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609  *) ac_try_echo=$ac_try;;
2610esac
2611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2612  (eval "$ac_compiler -v >&5") 2>&5
2613  ac_status=$?
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); }
2616{ (ac_try="$ac_compiler -V >&5"
2617case "(($ac_try" in
2618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619  *) ac_try_echo=$ac_try;;
2620esac
2621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622  (eval "$ac_compiler -V >&5") 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }
2626
2627cat >conftest.$ac_ext <<_ACEOF
2628/* confdefs.h.  */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
2632/* end confdefs.h.  */
2633
2634int
2635main ()
2636{
2637
2638  ;
2639  return 0;
2640}
2641_ACEOF
2642ac_clean_files_save=$ac_clean_files
2643ac_clean_files="$ac_clean_files a.out a.exe b.out"
2644# Try to create an executable without -o first, disregard a.out.
2645# It will help us diagnose broken compilers, and finding out an intuition
2646# of exeext.
2647{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2648echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2649ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2650#
2651# List of possible output files, starting from the most likely.
2652# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2653# only as a last resort.  b.out is created by i960 compilers.
2654ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2655#
2656# The IRIX 6 linker writes into existing files which may not be
2657# executable, retaining their permissions.  Remove them first so a
2658# subsequent execution test works.
2659ac_rmfiles=
2660for ac_file in $ac_files
2661do
2662  case $ac_file in
2663    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2664    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2665  esac
2666done
2667rm -f $ac_rmfiles
2668
2669if { (ac_try="$ac_link_default"
2670case "(($ac_try" in
2671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672  *) ac_try_echo=$ac_try;;
2673esac
2674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675  (eval "$ac_link_default") 2>&5
2676  ac_status=$?
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); }; then
2679  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2680# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2681# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2682# so that the user can short-circuit this test for compilers unknown to
2683# Autoconf.
2684for ac_file in $ac_files ''
2685do
2686  test -f "$ac_file" || continue
2687  case $ac_file in
2688    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2689	;;
2690    [ab].out )
2691	# We found the default executable, but exeext='' is most
2692	# certainly right.
2693	break;;
2694    *.* )
2695        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2696	then :; else
2697	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2698	fi
2699	# We set ac_cv_exeext here because the later test for it is not
2700	# safe: cross compilers may not add the suffix if given an `-o'
2701	# argument, so we may need to know it at that point already.
2702	# Even if this section looks crufty: it has the advantage of
2703	# actually working.
2704	break;;
2705    * )
2706	break;;
2707  esac
2708done
2709test "$ac_cv_exeext" = no && ac_cv_exeext=
2710
2711else
2712  ac_file=''
2713fi
2714
2715{ echo "$as_me:$LINENO: result: $ac_file" >&5
2716echo "${ECHO_T}$ac_file" >&6; }
2717if test -z "$ac_file"; then
2718  echo "$as_me: failed program was:" >&5
2719sed 's/^/| /' conftest.$ac_ext >&5
2720
2721{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2722See \`config.log' for more details." >&5
2723echo "$as_me: error: C compiler cannot create executables
2724See \`config.log' for more details." >&2;}
2725   { (exit 77); exit 77; }; }
2726fi
2727
2728ac_exeext=$ac_cv_exeext
2729
2730# Check that the compiler produces executables we can run.  If not, either
2731# the compiler is broken, or we cross compile.
2732{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2733echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2734# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2735# If not cross compiling, check that we can run a simple program.
2736if test "$cross_compiling" != yes; then
2737  if { ac_try='./$ac_file'
2738  { (case "(($ac_try" in
2739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740  *) ac_try_echo=$ac_try;;
2741esac
2742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743  (eval "$ac_try") 2>&5
2744  ac_status=$?
2745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746  (exit $ac_status); }; }; then
2747    cross_compiling=no
2748  else
2749    if test "$cross_compiling" = maybe; then
2750	cross_compiling=yes
2751    else
2752	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2753If you meant to cross compile, use \`--host'.
2754See \`config.log' for more details." >&5
2755echo "$as_me: error: cannot run C compiled programs.
2756If you meant to cross compile, use \`--host'.
2757See \`config.log' for more details." >&2;}
2758   { (exit 1); exit 1; }; }
2759    fi
2760  fi
2761fi
2762{ echo "$as_me:$LINENO: result: yes" >&5
2763echo "${ECHO_T}yes" >&6; }
2764
2765rm -f a.out a.exe conftest$ac_cv_exeext b.out
2766ac_clean_files=$ac_clean_files_save
2767# Check that the compiler produces executables we can run.  If not, either
2768# the compiler is broken, or we cross compile.
2769{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2770echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2771{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2772echo "${ECHO_T}$cross_compiling" >&6; }
2773
2774{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2775echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2776if { (ac_try="$ac_link"
2777case "(($ac_try" in
2778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779  *) ac_try_echo=$ac_try;;
2780esac
2781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782  (eval "$ac_link") 2>&5
2783  ac_status=$?
2784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785  (exit $ac_status); }; then
2786  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2787# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2788# work properly (i.e., refer to `conftest.exe'), while it won't with
2789# `rm'.
2790for ac_file in conftest.exe conftest conftest.*; do
2791  test -f "$ac_file" || continue
2792  case $ac_file in
2793    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2794    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2795	  break;;
2796    * ) break;;
2797  esac
2798done
2799else
2800  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2801See \`config.log' for more details." >&5
2802echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2803See \`config.log' for more details." >&2;}
2804   { (exit 1); exit 1; }; }
2805fi
2806
2807rm -f conftest$ac_cv_exeext
2808{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2809echo "${ECHO_T}$ac_cv_exeext" >&6; }
2810
2811rm -f conftest.$ac_ext
2812EXEEXT=$ac_cv_exeext
2813ac_exeext=$EXEEXT
2814{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2815echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2816if test "${ac_cv_objext+set}" = set; then
2817  echo $ECHO_N "(cached) $ECHO_C" >&6
2818else
2819  cat >conftest.$ac_ext <<_ACEOF
2820/* confdefs.h.  */
2821_ACEOF
2822cat confdefs.h >>conftest.$ac_ext
2823cat >>conftest.$ac_ext <<_ACEOF
2824/* end confdefs.h.  */
2825
2826int
2827main ()
2828{
2829
2830  ;
2831  return 0;
2832}
2833_ACEOF
2834rm -f conftest.o conftest.obj
2835if { (ac_try="$ac_compile"
2836case "(($ac_try" in
2837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838  *) ac_try_echo=$ac_try;;
2839esac
2840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841  (eval "$ac_compile") 2>&5
2842  ac_status=$?
2843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844  (exit $ac_status); }; then
2845  for ac_file in conftest.o conftest.obj conftest.*; do
2846  test -f "$ac_file" || continue;
2847  case $ac_file in
2848    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2849    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2850       break;;
2851  esac
2852done
2853else
2854  echo "$as_me: failed program was:" >&5
2855sed 's/^/| /' conftest.$ac_ext >&5
2856
2857{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2858See \`config.log' for more details." >&5
2859echo "$as_me: error: cannot compute suffix of object files: cannot compile
2860See \`config.log' for more details." >&2;}
2861   { (exit 1); exit 1; }; }
2862fi
2863
2864rm -f conftest.$ac_cv_objext conftest.$ac_ext
2865fi
2866{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2867echo "${ECHO_T}$ac_cv_objext" >&6; }
2868OBJEXT=$ac_cv_objext
2869ac_objext=$OBJEXT
2870{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2871echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2872if test "${ac_cv_c_compiler_gnu+set}" = set; then
2873  echo $ECHO_N "(cached) $ECHO_C" >&6
2874else
2875  cat >conftest.$ac_ext <<_ACEOF
2876/* confdefs.h.  */
2877_ACEOF
2878cat confdefs.h >>conftest.$ac_ext
2879cat >>conftest.$ac_ext <<_ACEOF
2880/* end confdefs.h.  */
2881
2882int
2883main ()
2884{
2885#ifndef __GNUC__
2886       choke me
2887#endif
2888
2889  ;
2890  return 0;
2891}
2892_ACEOF
2893rm -f conftest.$ac_objext
2894if { (ac_try="$ac_compile"
2895case "(($ac_try" in
2896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897  *) ac_try_echo=$ac_try;;
2898esac
2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900  (eval "$ac_compile") 2>conftest.er1
2901  ac_status=$?
2902  grep -v '^ *+' conftest.er1 >conftest.err
2903  rm -f conftest.er1
2904  cat conftest.err >&5
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); } && {
2907	 test -z "$ac_c_werror_flag" ||
2908	 test ! -s conftest.err
2909       } && test -s conftest.$ac_objext; then
2910  ac_compiler_gnu=yes
2911else
2912  echo "$as_me: failed program was:" >&5
2913sed 's/^/| /' conftest.$ac_ext >&5
2914
2915	ac_compiler_gnu=no
2916fi
2917
2918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2919ac_cv_c_compiler_gnu=$ac_compiler_gnu
2920
2921fi
2922{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2923echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2924GCC=`test $ac_compiler_gnu = yes && echo yes`
2925ac_test_CFLAGS=${CFLAGS+set}
2926ac_save_CFLAGS=$CFLAGS
2927{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2928echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2929if test "${ac_cv_prog_cc_g+set}" = set; then
2930  echo $ECHO_N "(cached) $ECHO_C" >&6
2931else
2932  ac_save_c_werror_flag=$ac_c_werror_flag
2933   ac_c_werror_flag=yes
2934   ac_cv_prog_cc_g=no
2935   CFLAGS="-g"
2936   cat >conftest.$ac_ext <<_ACEOF
2937/* confdefs.h.  */
2938_ACEOF
2939cat confdefs.h >>conftest.$ac_ext
2940cat >>conftest.$ac_ext <<_ACEOF
2941/* end confdefs.h.  */
2942
2943int
2944main ()
2945{
2946
2947  ;
2948  return 0;
2949}
2950_ACEOF
2951rm -f conftest.$ac_objext
2952if { (ac_try="$ac_compile"
2953case "(($ac_try" in
2954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955  *) ac_try_echo=$ac_try;;
2956esac
2957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958  (eval "$ac_compile") 2>conftest.er1
2959  ac_status=$?
2960  grep -v '^ *+' conftest.er1 >conftest.err
2961  rm -f conftest.er1
2962  cat conftest.err >&5
2963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964  (exit $ac_status); } && {
2965	 test -z "$ac_c_werror_flag" ||
2966	 test ! -s conftest.err
2967       } && test -s conftest.$ac_objext; then
2968  ac_cv_prog_cc_g=yes
2969else
2970  echo "$as_me: failed program was:" >&5
2971sed 's/^/| /' conftest.$ac_ext >&5
2972
2973	CFLAGS=""
2974      cat >conftest.$ac_ext <<_ACEOF
2975/* confdefs.h.  */
2976_ACEOF
2977cat confdefs.h >>conftest.$ac_ext
2978cat >>conftest.$ac_ext <<_ACEOF
2979/* end confdefs.h.  */
2980
2981int
2982main ()
2983{
2984
2985  ;
2986  return 0;
2987}
2988_ACEOF
2989rm -f conftest.$ac_objext
2990if { (ac_try="$ac_compile"
2991case "(($ac_try" in
2992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993  *) ac_try_echo=$ac_try;;
2994esac
2995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996  (eval "$ac_compile") 2>conftest.er1
2997  ac_status=$?
2998  grep -v '^ *+' conftest.er1 >conftest.err
2999  rm -f conftest.er1
3000  cat conftest.err >&5
3001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002  (exit $ac_status); } && {
3003	 test -z "$ac_c_werror_flag" ||
3004	 test ! -s conftest.err
3005       } && test -s conftest.$ac_objext; then
3006  :
3007else
3008  echo "$as_me: failed program was:" >&5
3009sed 's/^/| /' conftest.$ac_ext >&5
3010
3011	ac_c_werror_flag=$ac_save_c_werror_flag
3012	 CFLAGS="-g"
3013	 cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h.  */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h.  */
3019
3020int
3021main ()
3022{
3023
3024  ;
3025  return 0;
3026}
3027_ACEOF
3028rm -f conftest.$ac_objext
3029if { (ac_try="$ac_compile"
3030case "(($ac_try" in
3031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032  *) ac_try_echo=$ac_try;;
3033esac
3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035  (eval "$ac_compile") 2>conftest.er1
3036  ac_status=$?
3037  grep -v '^ *+' conftest.er1 >conftest.err
3038  rm -f conftest.er1
3039  cat conftest.err >&5
3040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041  (exit $ac_status); } && {
3042	 test -z "$ac_c_werror_flag" ||
3043	 test ! -s conftest.err
3044       } && test -s conftest.$ac_objext; then
3045  ac_cv_prog_cc_g=yes
3046else
3047  echo "$as_me: failed program was:" >&5
3048sed 's/^/| /' conftest.$ac_ext >&5
3049
3050
3051fi
3052
3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054fi
3055
3056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3057fi
3058
3059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3060   ac_c_werror_flag=$ac_save_c_werror_flag
3061fi
3062{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3063echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3064if test "$ac_test_CFLAGS" = set; then
3065  CFLAGS=$ac_save_CFLAGS
3066elif test $ac_cv_prog_cc_g = yes; then
3067  if test "$GCC" = yes; then
3068    CFLAGS="-g -O2"
3069  else
3070    CFLAGS="-g"
3071  fi
3072else
3073  if test "$GCC" = yes; then
3074    CFLAGS="-O2"
3075  else
3076    CFLAGS=
3077  fi
3078fi
3079{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3080echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3081if test "${ac_cv_prog_cc_c89+set}" = set; then
3082  echo $ECHO_N "(cached) $ECHO_C" >&6
3083else
3084  ac_cv_prog_cc_c89=no
3085ac_save_CC=$CC
3086cat >conftest.$ac_ext <<_ACEOF
3087/* confdefs.h.  */
3088_ACEOF
3089cat confdefs.h >>conftest.$ac_ext
3090cat >>conftest.$ac_ext <<_ACEOF
3091/* end confdefs.h.  */
3092#include <stdarg.h>
3093#include <stdio.h>
3094#include <sys/types.h>
3095#include <sys/stat.h>
3096/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3097struct buf { int x; };
3098FILE * (*rcsopen) (struct buf *, struct stat *, int);
3099static char *e (p, i)
3100     char **p;
3101     int i;
3102{
3103  return p[i];
3104}
3105static char *f (char * (*g) (char **, int), char **p, ...)
3106{
3107  char *s;
3108  va_list v;
3109  va_start (v,p);
3110  s = g (p, va_arg (v,int));
3111  va_end (v);
3112  return s;
3113}
3114
3115/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3116   function prototypes and stuff, but not '\xHH' hex character constants.
3117   These don't provoke an error unfortunately, instead are silently treated
3118   as 'x'.  The following induces an error, until -std is added to get
3119   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3120   array size at least.  It's necessary to write '\x00'==0 to get something
3121   that's true only with -std.  */
3122int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3123
3124/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3125   inside strings and character constants.  */
3126#define FOO(x) 'x'
3127int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3128
3129int test (int i, double x);
3130struct s1 {int (*f) (int a);};
3131struct s2 {int (*f) (double a);};
3132int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3133int argc;
3134char **argv;
3135int
3136main ()
3137{
3138return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3139  ;
3140  return 0;
3141}
3142_ACEOF
3143for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3144	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3145do
3146  CC="$ac_save_CC $ac_arg"
3147  rm -f conftest.$ac_objext
3148if { (ac_try="$ac_compile"
3149case "(($ac_try" in
3150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151  *) ac_try_echo=$ac_try;;
3152esac
3153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154  (eval "$ac_compile") 2>conftest.er1
3155  ac_status=$?
3156  grep -v '^ *+' conftest.er1 >conftest.err
3157  rm -f conftest.er1
3158  cat conftest.err >&5
3159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160  (exit $ac_status); } && {
3161	 test -z "$ac_c_werror_flag" ||
3162	 test ! -s conftest.err
3163       } && test -s conftest.$ac_objext; then
3164  ac_cv_prog_cc_c89=$ac_arg
3165else
3166  echo "$as_me: failed program was:" >&5
3167sed 's/^/| /' conftest.$ac_ext >&5
3168
3169
3170fi
3171
3172rm -f core conftest.err conftest.$ac_objext
3173  test "x$ac_cv_prog_cc_c89" != "xno" && break
3174done
3175rm -f conftest.$ac_ext
3176CC=$ac_save_CC
3177
3178fi
3179# AC_CACHE_VAL
3180case "x$ac_cv_prog_cc_c89" in
3181  x)
3182    { echo "$as_me:$LINENO: result: none needed" >&5
3183echo "${ECHO_T}none needed" >&6; } ;;
3184  xno)
3185    { echo "$as_me:$LINENO: result: unsupported" >&5
3186echo "${ECHO_T}unsupported" >&6; } ;;
3187  *)
3188    CC="$CC $ac_cv_prog_cc_c89"
3189    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3190echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3191esac
3192
3193
3194ac_ext=c
3195ac_cpp='$CPP $CPPFLAGS'
3196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199DEPDIR="${am__leading_dot}deps"
3200
3201ac_config_commands="$ac_config_commands depfiles"
3202
3203
3204am_make=${MAKE-make}
3205cat > confinc << 'END'
3206am__doit:
3207	@echo done
3208.PHONY: am__doit
3209END
3210# If we don't find an include directive, just comment out the code.
3211{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3212echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3213am__include="#"
3214am__quote=
3215_am_result=none
3216# First try GNU make style include.
3217echo "include confinc" > confmf
3218# We grep out `Entering directory' and `Leaving directory'
3219# messages which can occur if `w' ends up in MAKEFLAGS.
3220# In particular we don't look at `^make:' because GNU make might
3221# be invoked under some other name (usually "gmake"), in which
3222# case it prints its new name instead of `make'.
3223if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3224   am__include=include
3225   am__quote=
3226   _am_result=GNU
3227fi
3228# Now try BSD make style include.
3229if test "$am__include" = "#"; then
3230   echo '.include "confinc"' > confmf
3231   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3232      am__include=.include
3233      am__quote="\""
3234      _am_result=BSD
3235   fi
3236fi
3237
3238
3239{ echo "$as_me:$LINENO: result: $_am_result" >&5
3240echo "${ECHO_T}$_am_result" >&6; }
3241rm -f confinc confmf
3242
3243# Check whether --enable-dependency-tracking was given.
3244if test "${enable_dependency_tracking+set}" = set; then
3245  enableval=$enable_dependency_tracking;
3246fi
3247
3248if test "x$enable_dependency_tracking" != xno; then
3249  am_depcomp="$ac_aux_dir/depcomp"
3250  AMDEPBACKSLASH='\'
3251fi
3252
3253
3254if test "x$enable_dependency_tracking" != xno; then
3255  AMDEP_TRUE=
3256  AMDEP_FALSE='#'
3257else
3258  AMDEP_TRUE='#'
3259  AMDEP_FALSE=
3260fi
3261
3262
3263
3264
3265depcc="$CC"   am_compiler_list=
3266
3267{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3268echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3269if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3270  echo $ECHO_N "(cached) $ECHO_C" >&6
3271else
3272  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3273  # We make a subdir and do the tests there.  Otherwise we can end up
3274  # making bogus files that we don't know about and never remove.  For
3275  # instance it was reported that on HP-UX the gcc test will end up
3276  # making a dummy file named `D' -- because `-MD' means `put the output
3277  # in D'.
3278  mkdir conftest.dir
3279  # Copy depcomp to subdir because otherwise we won't find it if we're
3280  # using a relative directory.
3281  cp "$am_depcomp" conftest.dir
3282  cd conftest.dir
3283  # We will build objects and dependencies in a subdirectory because
3284  # it helps to detect inapplicable dependency modes.  For instance
3285  # both Tru64's cc and ICC support -MD to output dependencies as a
3286  # side effect of compilation, but ICC will put the dependencies in
3287  # the current directory while Tru64 will put them in the object
3288  # directory.
3289  mkdir sub
3290
3291  am_cv_CC_dependencies_compiler_type=none
3292  if test "$am_compiler_list" = ""; then
3293     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3294  fi
3295  for depmode in $am_compiler_list; do
3296    # Setup a source with many dependencies, because some compilers
3297    # like to wrap large dependency lists on column 80 (with \), and
3298    # we should not choose a depcomp mode which is confused by this.
3299    #
3300    # We need to recreate these files for each test, as the compiler may
3301    # overwrite some of them when testing with obscure command lines.
3302    # This happens at least with the AIX C compiler.
3303    : > sub/conftest.c
3304    for i in 1 2 3 4 5 6; do
3305      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3306      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3307      # Solaris 8's {/usr,}/bin/sh.
3308      touch sub/conftst$i.h
3309    done
3310    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3311
3312    case $depmode in
3313    nosideeffect)
3314      # after this tag, mechanisms are not by side-effect, so they'll
3315      # only be used when explicitly requested
3316      if test "x$enable_dependency_tracking" = xyes; then
3317	continue
3318      else
3319	break
3320      fi
3321      ;;
3322    none) break ;;
3323    esac
3324    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3325    # mode.  It turns out that the SunPro C++ compiler does not properly
3326    # handle `-M -o', and we need to detect this.
3327    if depmode=$depmode \
3328       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3329       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3330       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3331         >/dev/null 2>conftest.err &&
3332       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3333       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3334       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3335      # icc doesn't choke on unknown options, it will just issue warnings
3336      # or remarks (even with -Werror).  So we grep stderr for any message
3337      # that says an option was ignored or not supported.
3338      # When given -MP, icc 7.0 and 7.1 complain thusly:
3339      #   icc: Command line warning: ignoring option '-M'; no argument required
3340      # The diagnosis changed in icc 8.0:
3341      #   icc: Command line remark: option '-MP' not supported
3342      if (grep 'ignoring option' conftest.err ||
3343          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3344        am_cv_CC_dependencies_compiler_type=$depmode
3345        break
3346      fi
3347    fi
3348  done
3349
3350  cd ..
3351  rm -rf conftest.dir
3352else
3353  am_cv_CC_dependencies_compiler_type=none
3354fi
3355
3356fi
3357{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3358echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3359CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3360
3361
3362
3363if
3364  test "x$enable_dependency_tracking" != xno \
3365  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3366  am__fastdepCC_TRUE=
3367  am__fastdepCC_FALSE='#'
3368else
3369  am__fastdepCC_TRUE='#'
3370  am__fastdepCC_FALSE=
3371fi
3372
3373
3374if test -n "$ac_tool_prefix"; then
3375  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3376set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3379if test "${ac_cv_prog_RANLIB+set}" = set; then
3380  echo $ECHO_N "(cached) $ECHO_C" >&6
3381else
3382  if test -n "$RANLIB"; then
3383  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3384else
3385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386for as_dir in $PATH
3387do
3388  IFS=$as_save_IFS
3389  test -z "$as_dir" && as_dir=.
3390  for ac_exec_ext in '' $ac_executable_extensions; do
3391  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3393    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394    break 2
3395  fi
3396done
3397done
3398IFS=$as_save_IFS
3399
3400fi
3401fi
3402RANLIB=$ac_cv_prog_RANLIB
3403if test -n "$RANLIB"; then
3404  { echo "$as_me:$LINENO: result: $RANLIB" >&5
3405echo "${ECHO_T}$RANLIB" >&6; }
3406else
3407  { echo "$as_me:$LINENO: result: no" >&5
3408echo "${ECHO_T}no" >&6; }
3409fi
3410
3411
3412fi
3413if test -z "$ac_cv_prog_RANLIB"; then
3414  ac_ct_RANLIB=$RANLIB
3415  # Extract the first word of "ranlib", so it can be a program name with args.
3416set dummy ranlib; ac_word=$2
3417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3419if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3420  echo $ECHO_N "(cached) $ECHO_C" >&6
3421else
3422  if test -n "$ac_ct_RANLIB"; then
3423  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3424else
3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH
3427do
3428  IFS=$as_save_IFS
3429  test -z "$as_dir" && as_dir=.
3430  for ac_exec_ext in '' $ac_executable_extensions; do
3431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3432    ac_cv_prog_ac_ct_RANLIB="ranlib"
3433    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3434    break 2
3435  fi
3436done
3437done
3438IFS=$as_save_IFS
3439
3440fi
3441fi
3442ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3443if test -n "$ac_ct_RANLIB"; then
3444  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3445echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3446else
3447  { echo "$as_me:$LINENO: result: no" >&5
3448echo "${ECHO_T}no" >&6; }
3449fi
3450
3451  if test "x$ac_ct_RANLIB" = x; then
3452    RANLIB=":"
3453  else
3454    case $cross_compiling:$ac_tool_warned in
3455yes:)
3456{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3457whose name does not start with the host triplet.  If you think this
3458configuration is useful to you, please write to autoconf@gnu.org." >&5
3459echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3460whose name does not start with the host triplet.  If you think this
3461configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3462ac_tool_warned=yes ;;
3463esac
3464    RANLIB=$ac_ct_RANLIB
3465  fi
3466else
3467  RANLIB="$ac_cv_prog_RANLIB"
3468fi
3469
3470# Find a good install program.  We prefer a C program (faster),
3471# so one script is as good as another.  But avoid the broken or
3472# incompatible versions:
3473# SysV /etc/install, /usr/sbin/install
3474# SunOS /usr/etc/install
3475# IRIX /sbin/install
3476# AIX /bin/install
3477# AmigaOS /C/install, which installs bootblocks on floppy discs
3478# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3479# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3480# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3481# OS/2's system install, which has a completely different semantic
3482# ./install, which can be erroneously created by make from ./install.sh.
3483{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3484echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3485if test -z "$INSTALL"; then
3486if test "${ac_cv_path_install+set}" = set; then
3487  echo $ECHO_N "(cached) $ECHO_C" >&6
3488else
3489  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490for as_dir in $PATH
3491do
3492  IFS=$as_save_IFS
3493  test -z "$as_dir" && as_dir=.
3494  # Account for people who put trailing slashes in PATH elements.
3495case $as_dir/ in
3496  ./ | .// | /cC/* | \
3497  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3498  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3499  /usr/ucb/* ) ;;
3500  *)
3501    # OSF1 and SCO ODT 3.0 have their own names for install.
3502    # Don't use installbsd from OSF since it installs stuff as root
3503    # by default.
3504    for ac_prog in ginstall scoinst install; do
3505      for ac_exec_ext in '' $ac_executable_extensions; do
3506	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3507	  if test $ac_prog = install &&
3508	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3509	    # AIX install.  It has an incompatible calling convention.
3510	    :
3511	  elif test $ac_prog = install &&
3512	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3513	    # program-specific install script used by HP pwplus--don't use.
3514	    :
3515	  else
3516	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3517	    break 3
3518	  fi
3519	fi
3520      done
3521    done
3522    ;;
3523esac
3524done
3525IFS=$as_save_IFS
3526
3527
3528fi
3529  if test "${ac_cv_path_install+set}" = set; then
3530    INSTALL=$ac_cv_path_install
3531  else
3532    # As a last resort, use the slow shell script.  Don't cache a
3533    # value for INSTALL within a source directory, because that will
3534    # break other packages using the cache if that directory is
3535    # removed, or if the value is a relative name.
3536    INSTALL=$ac_install_sh
3537  fi
3538fi
3539{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3540echo "${ECHO_T}$INSTALL" >&6; }
3541
3542# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3543# It thinks the first close brace ends the variable substitution.
3544test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3545
3546test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3547
3548test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3549
3550{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3551echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3552LN_S=$as_ln_s
3553if test "$LN_S" = "ln -s"; then
3554  { echo "$as_me:$LINENO: result: yes" >&5
3555echo "${ECHO_T}yes" >&6; }
3556else
3557  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3558echo "${ECHO_T}no, using $LN_S" >&6; }
3559fi
3560
3561{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3562echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3563set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3564if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3565  echo $ECHO_N "(cached) $ECHO_C" >&6
3566else
3567  cat >conftest.make <<\_ACEOF
3568SHELL = /bin/sh
3569all:
3570	@echo '@@@%%%=$(MAKE)=@@@%%%'
3571_ACEOF
3572# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3573case `${MAKE-make} -f conftest.make 2>/dev/null` in
3574  *@@@%%%=?*=@@@%%%*)
3575    eval ac_cv_prog_make_${ac_make}_set=yes;;
3576  *)
3577    eval ac_cv_prog_make_${ac_make}_set=no;;
3578esac
3579rm -f conftest.make
3580fi
3581if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3582  { echo "$as_me:$LINENO: result: yes" >&5
3583echo "${ECHO_T}yes" >&6; }
3584  SET_MAKE=
3585else
3586  { echo "$as_me:$LINENO: result: no" >&5
3587echo "${ECHO_T}no" >&6; }
3588  SET_MAKE="MAKE=${MAKE-make}"
3589fi
3590
3591
3592
3593{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3594echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3595if test "${ac_cv_c_const+set}" = set; then
3596  echo $ECHO_N "(cached) $ECHO_C" >&6
3597else
3598  cat >conftest.$ac_ext <<_ACEOF
3599/* confdefs.h.  */
3600_ACEOF
3601cat confdefs.h >>conftest.$ac_ext
3602cat >>conftest.$ac_ext <<_ACEOF
3603/* end confdefs.h.  */
3604
3605int
3606main ()
3607{
3608/* FIXME: Include the comments suggested by Paul. */
3609#ifndef __cplusplus
3610  /* Ultrix mips cc rejects this.  */
3611  typedef int charset[2];
3612  const charset cs;
3613  /* SunOS 4.1.1 cc rejects this.  */
3614  char const *const *pcpcc;
3615  char **ppc;
3616  /* NEC SVR4.0.2 mips cc rejects this.  */
3617  struct point {int x, y;};
3618  static struct point const zero = {0,0};
3619  /* AIX XL C 1.02.0.0 rejects this.
3620     It does not let you subtract one const X* pointer from another in
3621     an arm of an if-expression whose if-part is not a constant
3622     expression */
3623  const char *g = "string";
3624  pcpcc = &g + (g ? g-g : 0);
3625  /* HPUX 7.0 cc rejects these. */
3626  ++pcpcc;
3627  ppc = (char**) pcpcc;
3628  pcpcc = (char const *const *) ppc;
3629  { /* SCO 3.2v4 cc rejects this.  */
3630    char *t;
3631    char const *s = 0 ? (char *) 0 : (char const *) 0;
3632
3633    *t++ = 0;
3634    if (s) return 0;
3635  }
3636  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3637    int x[] = {25, 17};
3638    const int *foo = &x[0];
3639    ++foo;
3640  }
3641  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3642    typedef const int *iptr;
3643    iptr p = 0;
3644    ++p;
3645  }
3646  { /* AIX XL C 1.02.0.0 rejects this saying
3647       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3648    struct s { int j; const int *ap[3]; };
3649    struct s *b; b->j = 5;
3650  }
3651  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3652    const int foo = 10;
3653    if (!foo) return 0;
3654  }
3655  return !cs[0] && !zero.x;
3656#endif
3657
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662rm -f conftest.$ac_objext
3663if { (ac_try="$ac_compile"
3664case "(($ac_try" in
3665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666  *) ac_try_echo=$ac_try;;
3667esac
3668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669  (eval "$ac_compile") 2>conftest.er1
3670  ac_status=$?
3671  grep -v '^ *+' conftest.er1 >conftest.err
3672  rm -f conftest.er1
3673  cat conftest.err >&5
3674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675  (exit $ac_status); } && {
3676	 test -z "$ac_c_werror_flag" ||
3677	 test ! -s conftest.err
3678       } && test -s conftest.$ac_objext; then
3679  ac_cv_c_const=yes
3680else
3681  echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684	ac_cv_c_const=no
3685fi
3686
3687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688fi
3689{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3690echo "${ECHO_T}$ac_cv_c_const" >&6; }
3691if test $ac_cv_c_const = no; then
3692
3693cat >>confdefs.h <<\_ACEOF
3694#define const
3695_ACEOF
3696
3697fi
3698
3699{ echo "$as_me:$LINENO: checking for inline" >&5
3700echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3701if test "${ac_cv_c_inline+set}" = set; then
3702  echo $ECHO_N "(cached) $ECHO_C" >&6
3703else
3704  ac_cv_c_inline=no
3705for ac_kw in inline __inline__ __inline; do
3706  cat >conftest.$ac_ext <<_ACEOF
3707/* confdefs.h.  */
3708_ACEOF
3709cat confdefs.h >>conftest.$ac_ext
3710cat >>conftest.$ac_ext <<_ACEOF
3711/* end confdefs.h.  */
3712#ifndef __cplusplus
3713typedef int foo_t;
3714static $ac_kw foo_t static_foo () {return 0; }
3715$ac_kw foo_t foo () {return 0; }
3716#endif
3717
3718_ACEOF
3719rm -f conftest.$ac_objext
3720if { (ac_try="$ac_compile"
3721case "(($ac_try" in
3722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723  *) ac_try_echo=$ac_try;;
3724esac
3725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3726  (eval "$ac_compile") 2>conftest.er1
3727  ac_status=$?
3728  grep -v '^ *+' conftest.er1 >conftest.err
3729  rm -f conftest.er1
3730  cat conftest.err >&5
3731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732  (exit $ac_status); } && {
3733	 test -z "$ac_c_werror_flag" ||
3734	 test ! -s conftest.err
3735       } && test -s conftest.$ac_objext; then
3736  ac_cv_c_inline=$ac_kw
3737else
3738  echo "$as_me: failed program was:" >&5
3739sed 's/^/| /' conftest.$ac_ext >&5
3740
3741
3742fi
3743
3744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745  test "$ac_cv_c_inline" != no && break
3746done
3747
3748fi
3749{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3750echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3751
3752
3753case $ac_cv_c_inline in
3754  inline | yes) ;;
3755  *)
3756    case $ac_cv_c_inline in
3757      no) ac_val=;;
3758      *) ac_val=$ac_cv_c_inline;;
3759    esac
3760    cat >>confdefs.h <<_ACEOF
3761#ifndef __cplusplus
3762#define inline $ac_val
3763#endif
3764_ACEOF
3765    ;;
3766esac
3767
3768
3769
3770
3771{ echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
3772echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6; }
3773if test "${ac_cv_sys_interpreter+set}" = set; then
3774  echo $ECHO_N "(cached) $ECHO_C" >&6
3775else
3776  echo '#! /bin/cat
3777exit 69
3778' >conftest
3779chmod u+x conftest
3780(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
3781if test $? -ne 69; then
3782   ac_cv_sys_interpreter=yes
3783else
3784   ac_cv_sys_interpreter=no
3785fi
3786rm -f conftest
3787fi
3788{ echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
3789echo "${ECHO_T}$ac_cv_sys_interpreter" >&6; }
3790interpval=$ac_cv_sys_interpreter
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802for ac_func in setsid daemon setproctitle getservbyname strlcpy fork memmove strerror writev
3803do
3804as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3805{ echo "$as_me:$LINENO: checking for $ac_func" >&5
3806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3807if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3808  echo $ECHO_N "(cached) $ECHO_C" >&6
3809else
3810  cat >conftest.$ac_ext <<_ACEOF
3811/* confdefs.h.  */
3812_ACEOF
3813cat confdefs.h >>conftest.$ac_ext
3814cat >>conftest.$ac_ext <<_ACEOF
3815/* end confdefs.h.  */
3816/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3817   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3818#define $ac_func innocuous_$ac_func
3819
3820/* System header to define __stub macros and hopefully few prototypes,
3821    which can conflict with char $ac_func (); below.
3822    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3823    <limits.h> exists even on freestanding compilers.  */
3824
3825#ifdef __STDC__
3826# include <limits.h>
3827#else
3828# include <assert.h>
3829#endif
3830
3831#undef $ac_func
3832
3833/* Override any GCC internal prototype to avoid an error.
3834   Use char because int might match the return type of a GCC
3835   builtin and then its argument prototype would still apply.  */
3836#ifdef __cplusplus
3837extern "C"
3838#endif
3839char $ac_func ();
3840/* The GNU C library defines this for functions which it implements
3841    to always fail with ENOSYS.  Some functions are actually named
3842    something starting with __ and the normal name is an alias.  */
3843#if defined __stub_$ac_func || defined __stub___$ac_func
3844choke me
3845#endif
3846
3847int
3848main ()
3849{
3850return $ac_func ();
3851  ;
3852  return 0;
3853}
3854_ACEOF
3855rm -f conftest.$ac_objext conftest$ac_exeext
3856if { (ac_try="$ac_link"
3857case "(($ac_try" in
3858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859  *) ac_try_echo=$ac_try;;
3860esac
3861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862  (eval "$ac_link") 2>conftest.er1
3863  ac_status=$?
3864  grep -v '^ *+' conftest.er1 >conftest.err
3865  rm -f conftest.er1
3866  cat conftest.err >&5
3867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868  (exit $ac_status); } && {
3869	 test -z "$ac_c_werror_flag" ||
3870	 test ! -s conftest.err
3871       } && test -s conftest$ac_exeext &&
3872       $as_test_x conftest$ac_exeext; then
3873  eval "$as_ac_var=yes"
3874else
3875  echo "$as_me: failed program was:" >&5
3876sed 's/^/| /' conftest.$ac_ext >&5
3877
3878	eval "$as_ac_var=no"
3879fi
3880
3881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3882      conftest$ac_exeext conftest.$ac_ext
3883fi
3884ac_res=`eval echo '${'$as_ac_var'}'`
3885	       { echo "$as_me:$LINENO: result: $ac_res" >&5
3886echo "${ECHO_T}$ac_res" >&6; }
3887if test `eval echo '${'$as_ac_var'}'` = yes; then
3888  cat >>confdefs.h <<_ACEOF
3889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3890_ACEOF
3891
3892fi
3893done
3894
3895
3896ac_ext=c
3897ac_cpp='$CPP $CPPFLAGS'
3898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3902echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3903# On Suns, sometimes $CPP names a directory.
3904if test -n "$CPP" && test -d "$CPP"; then
3905  CPP=
3906fi
3907if test -z "$CPP"; then
3908  if test "${ac_cv_prog_CPP+set}" = set; then
3909  echo $ECHO_N "(cached) $ECHO_C" >&6
3910else
3911      # Double quotes because CPP needs to be expanded
3912    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3913    do
3914      ac_preproc_ok=false
3915for ac_c_preproc_warn_flag in '' yes
3916do
3917  # Use a header file that comes with gcc, so configuring glibc
3918  # with a fresh cross-compiler works.
3919  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3920  # <limits.h> exists even on freestanding compilers.
3921  # On the NeXT, cc -E runs the code through the compiler's parser,
3922  # not just through cpp. "Syntax error" is here to catch this case.
3923  cat >conftest.$ac_ext <<_ACEOF
3924/* confdefs.h.  */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
3928/* end confdefs.h.  */
3929#ifdef __STDC__
3930# include <limits.h>
3931#else
3932# include <assert.h>
3933#endif
3934		     Syntax error
3935_ACEOF
3936if { (ac_try="$ac_cpp conftest.$ac_ext"
3937case "(($ac_try" in
3938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939  *) ac_try_echo=$ac_try;;
3940esac
3941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3942  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3943  ac_status=$?
3944  grep -v '^ *+' conftest.er1 >conftest.err
3945  rm -f conftest.er1
3946  cat conftest.err >&5
3947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948  (exit $ac_status); } >/dev/null && {
3949	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3950	 test ! -s conftest.err
3951       }; then
3952  :
3953else
3954  echo "$as_me: failed program was:" >&5
3955sed 's/^/| /' conftest.$ac_ext >&5
3956
3957  # Broken: fails on valid input.
3958continue
3959fi
3960
3961rm -f conftest.err conftest.$ac_ext
3962
3963  # OK, works on sane cases.  Now check whether nonexistent headers
3964  # can be detected and how.
3965  cat >conftest.$ac_ext <<_ACEOF
3966/* confdefs.h.  */
3967_ACEOF
3968cat confdefs.h >>conftest.$ac_ext
3969cat >>conftest.$ac_ext <<_ACEOF
3970/* end confdefs.h.  */
3971#include <ac_nonexistent.h>
3972_ACEOF
3973if { (ac_try="$ac_cpp conftest.$ac_ext"
3974case "(($ac_try" in
3975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976  *) ac_try_echo=$ac_try;;
3977esac
3978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3979  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3980  ac_status=$?
3981  grep -v '^ *+' conftest.er1 >conftest.err
3982  rm -f conftest.er1
3983  cat conftest.err >&5
3984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985  (exit $ac_status); } >/dev/null && {
3986	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3987	 test ! -s conftest.err
3988       }; then
3989  # Broken: success on invalid input.
3990continue
3991else
3992  echo "$as_me: failed program was:" >&5
3993sed 's/^/| /' conftest.$ac_ext >&5
3994
3995  # Passes both tests.
3996ac_preproc_ok=:
3997break
3998fi
3999
4000rm -f conftest.err conftest.$ac_ext
4001
4002done
4003# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4004rm -f conftest.err conftest.$ac_ext
4005if $ac_preproc_ok; then
4006  break
4007fi
4008
4009    done
4010    ac_cv_prog_CPP=$CPP
4011
4012fi
4013  CPP=$ac_cv_prog_CPP
4014else
4015  ac_cv_prog_CPP=$CPP
4016fi
4017{ echo "$as_me:$LINENO: result: $CPP" >&5
4018echo "${ECHO_T}$CPP" >&6; }
4019ac_preproc_ok=false
4020for ac_c_preproc_warn_flag in '' yes
4021do
4022  # Use a header file that comes with gcc, so configuring glibc
4023  # with a fresh cross-compiler works.
4024  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4025  # <limits.h> exists even on freestanding compilers.
4026  # On the NeXT, cc -E runs the code through the compiler's parser,
4027  # not just through cpp. "Syntax error" is here to catch this case.
4028  cat >conftest.$ac_ext <<_ACEOF
4029/* confdefs.h.  */
4030_ACEOF
4031cat confdefs.h >>conftest.$ac_ext
4032cat >>conftest.$ac_ext <<_ACEOF
4033/* end confdefs.h.  */
4034#ifdef __STDC__
4035# include <limits.h>
4036#else
4037# include <assert.h>
4038#endif
4039		     Syntax error
4040_ACEOF
4041if { (ac_try="$ac_cpp conftest.$ac_ext"
4042case "(($ac_try" in
4043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044  *) ac_try_echo=$ac_try;;
4045esac
4046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4048  ac_status=$?
4049  grep -v '^ *+' conftest.er1 >conftest.err
4050  rm -f conftest.er1
4051  cat conftest.err >&5
4052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053  (exit $ac_status); } >/dev/null && {
4054	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4055	 test ! -s conftest.err
4056       }; then
4057  :
4058else
4059  echo "$as_me: failed program was:" >&5
4060sed 's/^/| /' conftest.$ac_ext >&5
4061
4062  # Broken: fails on valid input.
4063continue
4064fi
4065
4066rm -f conftest.err conftest.$ac_ext
4067
4068  # OK, works on sane cases.  Now check whether nonexistent headers
4069  # can be detected and how.
4070  cat >conftest.$ac_ext <<_ACEOF
4071/* confdefs.h.  */
4072_ACEOF
4073cat confdefs.h >>conftest.$ac_ext
4074cat >>conftest.$ac_ext <<_ACEOF
4075/* end confdefs.h.  */
4076#include <ac_nonexistent.h>
4077_ACEOF
4078if { (ac_try="$ac_cpp conftest.$ac_ext"
4079case "(($ac_try" in
4080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081  *) ac_try_echo=$ac_try;;
4082esac
4083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4085  ac_status=$?
4086  grep -v '^ *+' conftest.er1 >conftest.err
4087  rm -f conftest.er1
4088  cat conftest.err >&5
4089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090  (exit $ac_status); } >/dev/null && {
4091	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4092	 test ! -s conftest.err
4093       }; then
4094  # Broken: success on invalid input.
4095continue
4096else
4097  echo "$as_me: failed program was:" >&5
4098sed 's/^/| /' conftest.$ac_ext >&5
4099
4100  # Passes both tests.
4101ac_preproc_ok=:
4102break
4103fi
4104
4105rm -f conftest.err conftest.$ac_ext
4106
4107done
4108# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4109rm -f conftest.err conftest.$ac_ext
4110if $ac_preproc_ok; then
4111  :
4112else
4113  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4114See \`config.log' for more details." >&5
4115echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4116See \`config.log' for more details." >&2;}
4117   { (exit 1); exit 1; }; }
4118fi
4119
4120ac_ext=c
4121ac_cpp='$CPP $CPPFLAGS'
4122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125
4126
4127{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4128echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4129if test "${ac_cv_path_GREP+set}" = set; then
4130  echo $ECHO_N "(cached) $ECHO_C" >&6
4131else
4132  # Extract the first word of "grep ggrep" to use in msg output
4133if test -z "$GREP"; then
4134set dummy grep ggrep; ac_prog_name=$2
4135if test "${ac_cv_path_GREP+set}" = set; then
4136  echo $ECHO_N "(cached) $ECHO_C" >&6
4137else
4138  ac_path_GREP_found=false
4139# Loop through the user's path and test for each of PROGNAME-LIST
4140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4142do
4143  IFS=$as_save_IFS
4144  test -z "$as_dir" && as_dir=.
4145  for ac_prog in grep ggrep; do
4146  for ac_exec_ext in '' $ac_executable_extensions; do
4147    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4148    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4149    # Check for GNU ac_path_GREP and select it if it is found.
4150  # Check for GNU $ac_path_GREP
4151case `"$ac_path_GREP" --version 2>&1` in
4152*GNU*)
4153  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4154*)
4155  ac_count=0
4156  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4157  while :
4158  do
4159    cat "conftest.in" "conftest.in" >"conftest.tmp"
4160    mv "conftest.tmp" "conftest.in"
4161    cp "conftest.in" "conftest.nl"
4162    echo 'GREP' >> "conftest.nl"
4163    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4164    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4165    ac_count=`expr $ac_count + 1`
4166    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4167      # Best one so far, save it but keep looking for a better one
4168      ac_cv_path_GREP="$ac_path_GREP"
4169      ac_path_GREP_max=$ac_count
4170    fi
4171    # 10*(2^10) chars as input seems more than enough
4172    test $ac_count -gt 10 && break
4173  done
4174  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4175esac
4176
4177
4178    $ac_path_GREP_found && break 3
4179  done
4180done
4181
4182done
4183IFS=$as_save_IFS
4184
4185
4186fi
4187
4188GREP="$ac_cv_path_GREP"
4189if test -z "$GREP"; then
4190  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4191echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4192   { (exit 1); exit 1; }; }
4193fi
4194
4195else
4196  ac_cv_path_GREP=$GREP
4197fi
4198
4199
4200fi
4201{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4202echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4203 GREP="$ac_cv_path_GREP"
4204
4205
4206{ echo "$as_me:$LINENO: checking for egrep" >&5
4207echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4208if test "${ac_cv_path_EGREP+set}" = set; then
4209  echo $ECHO_N "(cached) $ECHO_C" >&6
4210else
4211  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4212   then ac_cv_path_EGREP="$GREP -E"
4213   else
4214     # Extract the first word of "egrep" to use in msg output
4215if test -z "$EGREP"; then
4216set dummy egrep; ac_prog_name=$2
4217if test "${ac_cv_path_EGREP+set}" = set; then
4218  echo $ECHO_N "(cached) $ECHO_C" >&6
4219else
4220  ac_path_EGREP_found=false
4221# Loop through the user's path and test for each of PROGNAME-LIST
4222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4224do
4225  IFS=$as_save_IFS
4226  test -z "$as_dir" && as_dir=.
4227  for ac_prog in egrep; do
4228  for ac_exec_ext in '' $ac_executable_extensions; do
4229    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4230    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4231    # Check for GNU ac_path_EGREP and select it if it is found.
4232  # Check for GNU $ac_path_EGREP
4233case `"$ac_path_EGREP" --version 2>&1` in
4234*GNU*)
4235  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4236*)
4237  ac_count=0
4238  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4239  while :
4240  do
4241    cat "conftest.in" "conftest.in" >"conftest.tmp"
4242    mv "conftest.tmp" "conftest.in"
4243    cp "conftest.in" "conftest.nl"
4244    echo 'EGREP' >> "conftest.nl"
4245    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4246    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4247    ac_count=`expr $ac_count + 1`
4248    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4249      # Best one so far, save it but keep looking for a better one
4250      ac_cv_path_EGREP="$ac_path_EGREP"
4251      ac_path_EGREP_max=$ac_count
4252    fi
4253    # 10*(2^10) chars as input seems more than enough
4254    test $ac_count -gt 10 && break
4255  done
4256  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4257esac
4258
4259
4260    $ac_path_EGREP_found && break 3
4261  done
4262done
4263
4264done
4265IFS=$as_save_IFS
4266
4267
4268fi
4269
4270EGREP="$ac_cv_path_EGREP"
4271if test -z "$EGREP"; then
4272  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4273echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4274   { (exit 1); exit 1; }; }
4275fi
4276
4277else
4278  ac_cv_path_EGREP=$EGREP
4279fi
4280
4281
4282   fi
4283fi
4284{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4285echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4286 EGREP="$ac_cv_path_EGREP"
4287
4288
4289{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4290echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4291if test "${ac_cv_header_stdc+set}" = set; then
4292  echo $ECHO_N "(cached) $ECHO_C" >&6
4293else
4294  cat >conftest.$ac_ext <<_ACEOF
4295/* confdefs.h.  */
4296_ACEOF
4297cat confdefs.h >>conftest.$ac_ext
4298cat >>conftest.$ac_ext <<_ACEOF
4299/* end confdefs.h.  */
4300#include <stdlib.h>
4301#include <stdarg.h>
4302#include <string.h>
4303#include <float.h>
4304
4305int
4306main ()
4307{
4308
4309  ;
4310  return 0;
4311}
4312_ACEOF
4313rm -f conftest.$ac_objext
4314if { (ac_try="$ac_compile"
4315case "(($ac_try" in
4316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317  *) ac_try_echo=$ac_try;;
4318esac
4319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320  (eval "$ac_compile") 2>conftest.er1
4321  ac_status=$?
4322  grep -v '^ *+' conftest.er1 >conftest.err
4323  rm -f conftest.er1
4324  cat conftest.err >&5
4325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326  (exit $ac_status); } && {
4327	 test -z "$ac_c_werror_flag" ||
4328	 test ! -s conftest.err
4329       } && test -s conftest.$ac_objext; then
4330  ac_cv_header_stdc=yes
4331else
4332  echo "$as_me: failed program was:" >&5
4333sed 's/^/| /' conftest.$ac_ext >&5
4334
4335	ac_cv_header_stdc=no
4336fi
4337
4338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339
4340if test $ac_cv_header_stdc = yes; then
4341  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4342  cat >conftest.$ac_ext <<_ACEOF
4343/* confdefs.h.  */
4344_ACEOF
4345cat confdefs.h >>conftest.$ac_ext
4346cat >>conftest.$ac_ext <<_ACEOF
4347/* end confdefs.h.  */
4348#include <string.h>
4349
4350_ACEOF
4351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4352  $EGREP "memchr" >/dev/null 2>&1; then
4353  :
4354else
4355  ac_cv_header_stdc=no
4356fi
4357rm -f conftest*
4358
4359fi
4360
4361if test $ac_cv_header_stdc = yes; then
4362  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4363  cat >conftest.$ac_ext <<_ACEOF
4364/* confdefs.h.  */
4365_ACEOF
4366cat confdefs.h >>conftest.$ac_ext
4367cat >>conftest.$ac_ext <<_ACEOF
4368/* end confdefs.h.  */
4369#include <stdlib.h>
4370
4371_ACEOF
4372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4373  $EGREP "free" >/dev/null 2>&1; then
4374  :
4375else
4376  ac_cv_header_stdc=no
4377fi
4378rm -f conftest*
4379
4380fi
4381
4382if test $ac_cv_header_stdc = yes; then
4383  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4384  if test "$cross_compiling" = yes; then
4385  :
4386else
4387  cat >conftest.$ac_ext <<_ACEOF
4388/* confdefs.h.  */
4389_ACEOF
4390cat confdefs.h >>conftest.$ac_ext
4391cat >>conftest.$ac_ext <<_ACEOF
4392/* end confdefs.h.  */
4393#include <ctype.h>
4394#include <stdlib.h>
4395#if ((' ' & 0x0FF) == 0x020)
4396# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4397# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4398#else
4399# define ISLOWER(c) \
4400		   (('a' <= (c) && (c) <= 'i') \
4401		     || ('j' <= (c) && (c) <= 'r') \
4402		     || ('s' <= (c) && (c) <= 'z'))
4403# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4404#endif
4405
4406#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4407int
4408main ()
4409{
4410  int i;
4411  for (i = 0; i < 256; i++)
4412    if (XOR (islower (i), ISLOWER (i))
4413	|| toupper (i) != TOUPPER (i))
4414      return 2;
4415  return 0;
4416}
4417_ACEOF
4418rm -f conftest$ac_exeext
4419if { (ac_try="$ac_link"
4420case "(($ac_try" in
4421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422  *) ac_try_echo=$ac_try;;
4423esac
4424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425  (eval "$ac_link") 2>&5
4426  ac_status=$?
4427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4429  { (case "(($ac_try" in
4430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431  *) ac_try_echo=$ac_try;;
4432esac
4433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434  (eval "$ac_try") 2>&5
4435  ac_status=$?
4436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437  (exit $ac_status); }; }; then
4438  :
4439else
4440  echo "$as_me: program exited with status $ac_status" >&5
4441echo "$as_me: failed program was:" >&5
4442sed 's/^/| /' conftest.$ac_ext >&5
4443
4444( exit $ac_status )
4445ac_cv_header_stdc=no
4446fi
4447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4448fi
4449
4450
4451fi
4452fi
4453{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4454echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4455if test $ac_cv_header_stdc = yes; then
4456
4457cat >>confdefs.h <<\_ACEOF
4458#define STDC_HEADERS 1
4459_ACEOF
4460
4461fi
4462
4463# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4474		  inttypes.h stdint.h unistd.h
4475do
4476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4477{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4480  echo $ECHO_N "(cached) $ECHO_C" >&6
4481else
4482  cat >conftest.$ac_ext <<_ACEOF
4483/* confdefs.h.  */
4484_ACEOF
4485cat confdefs.h >>conftest.$ac_ext
4486cat >>conftest.$ac_ext <<_ACEOF
4487/* end confdefs.h.  */
4488$ac_includes_default
4489
4490#include <$ac_header>
4491_ACEOF
4492rm -f conftest.$ac_objext
4493if { (ac_try="$ac_compile"
4494case "(($ac_try" in
4495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496  *) ac_try_echo=$ac_try;;
4497esac
4498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499  (eval "$ac_compile") 2>conftest.er1
4500  ac_status=$?
4501  grep -v '^ *+' conftest.er1 >conftest.err
4502  rm -f conftest.er1
4503  cat conftest.err >&5
4504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505  (exit $ac_status); } && {
4506	 test -z "$ac_c_werror_flag" ||
4507	 test ! -s conftest.err
4508       } && test -s conftest.$ac_objext; then
4509  eval "$as_ac_Header=yes"
4510else
4511  echo "$as_me: failed program was:" >&5
4512sed 's/^/| /' conftest.$ac_ext >&5
4513
4514	eval "$as_ac_Header=no"
4515fi
4516
4517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518fi
4519ac_res=`eval echo '${'$as_ac_Header'}'`
4520	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4521echo "${ECHO_T}$ac_res" >&6; }
4522if test `eval echo '${'$as_ac_Header'}'` = yes; then
4523  cat >>confdefs.h <<_ACEOF
4524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4525_ACEOF
4526
4527fi
4528
4529done
4530
4531
4532
4533for ac_header in string.h
4534do
4535as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4537  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4540  echo $ECHO_N "(cached) $ECHO_C" >&6
4541fi
4542ac_res=`eval echo '${'$as_ac_Header'}'`
4543	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4544echo "${ECHO_T}$ac_res" >&6; }
4545else
4546  # Is the header compilable?
4547{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4548echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4549cat >conftest.$ac_ext <<_ACEOF
4550/* confdefs.h.  */
4551_ACEOF
4552cat confdefs.h >>conftest.$ac_ext
4553cat >>conftest.$ac_ext <<_ACEOF
4554/* end confdefs.h.  */
4555$ac_includes_default
4556#include <$ac_header>
4557_ACEOF
4558rm -f conftest.$ac_objext
4559if { (ac_try="$ac_compile"
4560case "(($ac_try" in
4561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562  *) ac_try_echo=$ac_try;;
4563esac
4564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565  (eval "$ac_compile") 2>conftest.er1
4566  ac_status=$?
4567  grep -v '^ *+' conftest.er1 >conftest.err
4568  rm -f conftest.er1
4569  cat conftest.err >&5
4570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571  (exit $ac_status); } && {
4572	 test -z "$ac_c_werror_flag" ||
4573	 test ! -s conftest.err
4574       } && test -s conftest.$ac_objext; then
4575  ac_header_compiler=yes
4576else
4577  echo "$as_me: failed program was:" >&5
4578sed 's/^/| /' conftest.$ac_ext >&5
4579
4580	ac_header_compiler=no
4581fi
4582
4583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4585echo "${ECHO_T}$ac_header_compiler" >&6; }
4586
4587# Is the header present?
4588{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4589echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4590cat >conftest.$ac_ext <<_ACEOF
4591/* confdefs.h.  */
4592_ACEOF
4593cat confdefs.h >>conftest.$ac_ext
4594cat >>conftest.$ac_ext <<_ACEOF
4595/* end confdefs.h.  */
4596#include <$ac_header>
4597_ACEOF
4598if { (ac_try="$ac_cpp conftest.$ac_ext"
4599case "(($ac_try" in
4600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601  *) ac_try_echo=$ac_try;;
4602esac
4603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4605  ac_status=$?
4606  grep -v '^ *+' conftest.er1 >conftest.err
4607  rm -f conftest.er1
4608  cat conftest.err >&5
4609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610  (exit $ac_status); } >/dev/null && {
4611	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4612	 test ! -s conftest.err
4613       }; then
4614  ac_header_preproc=yes
4615else
4616  echo "$as_me: failed program was:" >&5
4617sed 's/^/| /' conftest.$ac_ext >&5
4618
4619  ac_header_preproc=no
4620fi
4621
4622rm -f conftest.err conftest.$ac_ext
4623{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4624echo "${ECHO_T}$ac_header_preproc" >&6; }
4625
4626# So?  What about this header?
4627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4628  yes:no: )
4629    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4630echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4631    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4632echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4633    ac_header_preproc=yes
4634    ;;
4635  no:yes:* )
4636    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4637echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4638    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4639echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4640    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4641echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4642    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4643echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4644    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4645echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4646    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4647echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4648
4649    ;;
4650esac
4651{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4653if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4654  echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656  eval "$as_ac_Header=\$ac_header_preproc"
4657fi
4658ac_res=`eval echo '${'$as_ac_Header'}'`
4659	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4660echo "${ECHO_T}$ac_res" >&6; }
4661
4662fi
4663if test `eval echo '${'$as_ac_Header'}'` = yes; then
4664  cat >>confdefs.h <<_ACEOF
4665#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4666_ACEOF
4667
4668fi
4669
4670done
4671
4672
4673for ac_header in syslog.h
4674do
4675as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4677  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4680  echo $ECHO_N "(cached) $ECHO_C" >&6
4681fi
4682ac_res=`eval echo '${'$as_ac_Header'}'`
4683	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4684echo "${ECHO_T}$ac_res" >&6; }
4685else
4686  # Is the header compilable?
4687{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4688echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4689cat >conftest.$ac_ext <<_ACEOF
4690/* confdefs.h.  */
4691_ACEOF
4692cat confdefs.h >>conftest.$ac_ext
4693cat >>conftest.$ac_ext <<_ACEOF
4694/* end confdefs.h.  */
4695$ac_includes_default
4696#include <$ac_header>
4697_ACEOF
4698rm -f conftest.$ac_objext
4699if { (ac_try="$ac_compile"
4700case "(($ac_try" in
4701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702  *) ac_try_echo=$ac_try;;
4703esac
4704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4705  (eval "$ac_compile") 2>conftest.er1
4706  ac_status=$?
4707  grep -v '^ *+' conftest.er1 >conftest.err
4708  rm -f conftest.er1
4709  cat conftest.err >&5
4710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711  (exit $ac_status); } && {
4712	 test -z "$ac_c_werror_flag" ||
4713	 test ! -s conftest.err
4714       } && test -s conftest.$ac_objext; then
4715  ac_header_compiler=yes
4716else
4717  echo "$as_me: failed program was:" >&5
4718sed 's/^/| /' conftest.$ac_ext >&5
4719
4720	ac_header_compiler=no
4721fi
4722
4723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4725echo "${ECHO_T}$ac_header_compiler" >&6; }
4726
4727# Is the header present?
4728{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4729echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4730cat >conftest.$ac_ext <<_ACEOF
4731/* confdefs.h.  */
4732_ACEOF
4733cat confdefs.h >>conftest.$ac_ext
4734cat >>conftest.$ac_ext <<_ACEOF
4735/* end confdefs.h.  */
4736#include <$ac_header>
4737_ACEOF
4738if { (ac_try="$ac_cpp conftest.$ac_ext"
4739case "(($ac_try" in
4740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741  *) ac_try_echo=$ac_try;;
4742esac
4743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4745  ac_status=$?
4746  grep -v '^ *+' conftest.er1 >conftest.err
4747  rm -f conftest.er1
4748  cat conftest.err >&5
4749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750  (exit $ac_status); } >/dev/null && {
4751	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4752	 test ! -s conftest.err
4753       }; then
4754  ac_header_preproc=yes
4755else
4756  echo "$as_me: failed program was:" >&5
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
4759  ac_header_preproc=no
4760fi
4761
4762rm -f conftest.err conftest.$ac_ext
4763{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4764echo "${ECHO_T}$ac_header_preproc" >&6; }
4765
4766# So?  What about this header?
4767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4768  yes:no: )
4769    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4770echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4771    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4772echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4773    ac_header_preproc=yes
4774    ;;
4775  no:yes:* )
4776    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4777echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4778    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4779echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4780    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4781echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4782    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4783echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4784    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4786    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4787echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4788
4789    ;;
4790esac
4791{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4794  echo $ECHO_N "(cached) $ECHO_C" >&6
4795else
4796  eval "$as_ac_Header=\$ac_header_preproc"
4797fi
4798ac_res=`eval echo '${'$as_ac_Header'}'`
4799	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4800echo "${ECHO_T}$ac_res" >&6; }
4801
4802fi
4803if test `eval echo '${'$as_ac_Header'}'` = yes; then
4804  cat >>confdefs.h <<_ACEOF
4805#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4806_ACEOF
4807
4808fi
4809
4810done
4811
4812
4813for ac_header in libintl.h
4814do
4815as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4817  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4820  echo $ECHO_N "(cached) $ECHO_C" >&6
4821fi
4822ac_res=`eval echo '${'$as_ac_Header'}'`
4823	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4824echo "${ECHO_T}$ac_res" >&6; }
4825else
4826  # Is the header compilable?
4827{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4828echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4829cat >conftest.$ac_ext <<_ACEOF
4830/* confdefs.h.  */
4831_ACEOF
4832cat confdefs.h >>conftest.$ac_ext
4833cat >>conftest.$ac_ext <<_ACEOF
4834/* end confdefs.h.  */
4835$ac_includes_default
4836#include <$ac_header>
4837_ACEOF
4838rm -f conftest.$ac_objext
4839if { (ac_try="$ac_compile"
4840case "(($ac_try" in
4841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842  *) ac_try_echo=$ac_try;;
4843esac
4844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845  (eval "$ac_compile") 2>conftest.er1
4846  ac_status=$?
4847  grep -v '^ *+' conftest.er1 >conftest.err
4848  rm -f conftest.er1
4849  cat conftest.err >&5
4850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851  (exit $ac_status); } && {
4852	 test -z "$ac_c_werror_flag" ||
4853	 test ! -s conftest.err
4854       } && test -s conftest.$ac_objext; then
4855  ac_header_compiler=yes
4856else
4857  echo "$as_me: failed program was:" >&5
4858sed 's/^/| /' conftest.$ac_ext >&5
4859
4860	ac_header_compiler=no
4861fi
4862
4863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4865echo "${ECHO_T}$ac_header_compiler" >&6; }
4866
4867# Is the header present?
4868{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4869echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4870cat >conftest.$ac_ext <<_ACEOF
4871/* confdefs.h.  */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h.  */
4876#include <$ac_header>
4877_ACEOF
4878if { (ac_try="$ac_cpp conftest.$ac_ext"
4879case "(($ac_try" in
4880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881  *) ac_try_echo=$ac_try;;
4882esac
4883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4885  ac_status=$?
4886  grep -v '^ *+' conftest.er1 >conftest.err
4887  rm -f conftest.er1
4888  cat conftest.err >&5
4889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890  (exit $ac_status); } >/dev/null && {
4891	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4892	 test ! -s conftest.err
4893       }; then
4894  ac_header_preproc=yes
4895else
4896  echo "$as_me: failed program was:" >&5
4897sed 's/^/| /' conftest.$ac_ext >&5
4898
4899  ac_header_preproc=no
4900fi
4901
4902rm -f conftest.err conftest.$ac_ext
4903{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4904echo "${ECHO_T}$ac_header_preproc" >&6; }
4905
4906# So?  What about this header?
4907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4908  yes:no: )
4909    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4910echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4911    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4912echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4913    ac_header_preproc=yes
4914    ;;
4915  no:yes:* )
4916    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4917echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4918    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4919echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4920    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4921echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4922    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4923echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4924    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4925echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4926    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4927echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4928
4929    ;;
4930esac
4931{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4934  echo $ECHO_N "(cached) $ECHO_C" >&6
4935else
4936  eval "$as_ac_Header=\$ac_header_preproc"
4937fi
4938ac_res=`eval echo '${'$as_ac_Header'}'`
4939	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4940echo "${ECHO_T}$ac_res" >&6; }
4941
4942fi
4943if test `eval echo '${'$as_ac_Header'}'` = yes; then
4944  cat >>confdefs.h <<_ACEOF
4945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4946_ACEOF
4947
4948fi
4949
4950done
4951
4952
4953for ac_header in libutil.h
4954do
4955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4957  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4960  echo $ECHO_N "(cached) $ECHO_C" >&6
4961fi
4962ac_res=`eval echo '${'$as_ac_Header'}'`
4963	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4964echo "${ECHO_T}$ac_res" >&6; }
4965else
4966  # Is the header compilable?
4967{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4968echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4969cat >conftest.$ac_ext <<_ACEOF
4970/* confdefs.h.  */
4971_ACEOF
4972cat confdefs.h >>conftest.$ac_ext
4973cat >>conftest.$ac_ext <<_ACEOF
4974/* end confdefs.h.  */
4975$ac_includes_default
4976#include <$ac_header>
4977_ACEOF
4978rm -f conftest.$ac_objext
4979if { (ac_try="$ac_compile"
4980case "(($ac_try" in
4981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982  *) ac_try_echo=$ac_try;;
4983esac
4984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4985  (eval "$ac_compile") 2>conftest.er1
4986  ac_status=$?
4987  grep -v '^ *+' conftest.er1 >conftest.err
4988  rm -f conftest.er1
4989  cat conftest.err >&5
4990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991  (exit $ac_status); } && {
4992	 test -z "$ac_c_werror_flag" ||
4993	 test ! -s conftest.err
4994       } && test -s conftest.$ac_objext; then
4995  ac_header_compiler=yes
4996else
4997  echo "$as_me: failed program was:" >&5
4998sed 's/^/| /' conftest.$ac_ext >&5
4999
5000	ac_header_compiler=no
5001fi
5002
5003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5005echo "${ECHO_T}$ac_header_compiler" >&6; }
5006
5007# Is the header present?
5008{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5009echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5010cat >conftest.$ac_ext <<_ACEOF
5011/* confdefs.h.  */
5012_ACEOF
5013cat confdefs.h >>conftest.$ac_ext
5014cat >>conftest.$ac_ext <<_ACEOF
5015/* end confdefs.h.  */
5016#include <$ac_header>
5017_ACEOF
5018if { (ac_try="$ac_cpp conftest.$ac_ext"
5019case "(($ac_try" in
5020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021  *) ac_try_echo=$ac_try;;
5022esac
5023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5025  ac_status=$?
5026  grep -v '^ *+' conftest.er1 >conftest.err
5027  rm -f conftest.er1
5028  cat conftest.err >&5
5029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030  (exit $ac_status); } >/dev/null && {
5031	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5032	 test ! -s conftest.err
5033       }; then
5034  ac_header_preproc=yes
5035else
5036  echo "$as_me: failed program was:" >&5
5037sed 's/^/| /' conftest.$ac_ext >&5
5038
5039  ac_header_preproc=no
5040fi
5041
5042rm -f conftest.err conftest.$ac_ext
5043{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5044echo "${ECHO_T}$ac_header_preproc" >&6; }
5045
5046# So?  What about this header?
5047case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5048  yes:no: )
5049    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5050echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5051    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5052echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5053    ac_header_preproc=yes
5054    ;;
5055  no:yes:* )
5056    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5057echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5058    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5059echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5060    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5061echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5062    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5063echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5064    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5065echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5066    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5067echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5068
5069    ;;
5070esac
5071{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5074  echo $ECHO_N "(cached) $ECHO_C" >&6
5075else
5076  eval "$as_ac_Header=\$ac_header_preproc"
5077fi
5078ac_res=`eval echo '${'$as_ac_Header'}'`
5079	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5080echo "${ECHO_T}$ac_res" >&6; }
5081
5082fi
5083if test `eval echo '${'$as_ac_Header'}'` = yes; then
5084  cat >>confdefs.h <<_ACEOF
5085#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5086_ACEOF
5087
5088fi
5089
5090done
5091
5092
5093for ac_header in sys/uio.h
5094do
5095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5097  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5100  echo $ECHO_N "(cached) $ECHO_C" >&6
5101fi
5102ac_res=`eval echo '${'$as_ac_Header'}'`
5103	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5104echo "${ECHO_T}$ac_res" >&6; }
5105else
5106  # Is the header compilable?
5107{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5108echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5109cat >conftest.$ac_ext <<_ACEOF
5110/* confdefs.h.  */
5111_ACEOF
5112cat confdefs.h >>conftest.$ac_ext
5113cat >>conftest.$ac_ext <<_ACEOF
5114/* end confdefs.h.  */
5115$ac_includes_default
5116#include <$ac_header>
5117_ACEOF
5118rm -f conftest.$ac_objext
5119if { (ac_try="$ac_compile"
5120case "(($ac_try" in
5121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122  *) ac_try_echo=$ac_try;;
5123esac
5124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125  (eval "$ac_compile") 2>conftest.er1
5126  ac_status=$?
5127  grep -v '^ *+' conftest.er1 >conftest.err
5128  rm -f conftest.er1
5129  cat conftest.err >&5
5130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131  (exit $ac_status); } && {
5132	 test -z "$ac_c_werror_flag" ||
5133	 test ! -s conftest.err
5134       } && test -s conftest.$ac_objext; then
5135  ac_header_compiler=yes
5136else
5137  echo "$as_me: failed program was:" >&5
5138sed 's/^/| /' conftest.$ac_ext >&5
5139
5140	ac_header_compiler=no
5141fi
5142
5143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5145echo "${ECHO_T}$ac_header_compiler" >&6; }
5146
5147# Is the header present?
5148{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5150cat >conftest.$ac_ext <<_ACEOF
5151/* confdefs.h.  */
5152_ACEOF
5153cat confdefs.h >>conftest.$ac_ext
5154cat >>conftest.$ac_ext <<_ACEOF
5155/* end confdefs.h.  */
5156#include <$ac_header>
5157_ACEOF
5158if { (ac_try="$ac_cpp conftest.$ac_ext"
5159case "(($ac_try" in
5160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161  *) ac_try_echo=$ac_try;;
5162esac
5163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5164  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5165  ac_status=$?
5166  grep -v '^ *+' conftest.er1 >conftest.err
5167  rm -f conftest.er1
5168  cat conftest.err >&5
5169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170  (exit $ac_status); } >/dev/null && {
5171	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5172	 test ! -s conftest.err
5173       }; then
5174  ac_header_preproc=yes
5175else
5176  echo "$as_me: failed program was:" >&5
5177sed 's/^/| /' conftest.$ac_ext >&5
5178
5179  ac_header_preproc=no
5180fi
5181
5182rm -f conftest.err conftest.$ac_ext
5183{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5184echo "${ECHO_T}$ac_header_preproc" >&6; }
5185
5186# So?  What about this header?
5187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5188  yes:no: )
5189    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5190echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5191    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5192echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5193    ac_header_preproc=yes
5194    ;;
5195  no:yes:* )
5196    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5198    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5199echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5200    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5201echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5202    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5203echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5204    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5206    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5207echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5208
5209    ;;
5210esac
5211{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5213if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5214  echo $ECHO_N "(cached) $ECHO_C" >&6
5215else
5216  eval "$as_ac_Header=\$ac_header_preproc"
5217fi
5218ac_res=`eval echo '${'$as_ac_Header'}'`
5219	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5220echo "${ECHO_T}$ac_res" >&6; }
5221
5222fi
5223if test `eval echo '${'$as_ac_Header'}'` = yes; then
5224  cat >>confdefs.h <<_ACEOF
5225#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5226_ACEOF
5227
5228fi
5229
5230done
5231
5232
5233{ echo "$as_me:$LINENO: checking for size_t" >&5
5234echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5235if test "${ac_cv_type_size_t+set}" = set; then
5236  echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238  cat >conftest.$ac_ext <<_ACEOF
5239/* confdefs.h.  */
5240_ACEOF
5241cat confdefs.h >>conftest.$ac_ext
5242cat >>conftest.$ac_ext <<_ACEOF
5243/* end confdefs.h.  */
5244$ac_includes_default
5245typedef size_t ac__type_new_;
5246int
5247main ()
5248{
5249if ((ac__type_new_ *) 0)
5250  return 0;
5251if (sizeof (ac__type_new_))
5252  return 0;
5253  ;
5254  return 0;
5255}
5256_ACEOF
5257rm -f conftest.$ac_objext
5258if { (ac_try="$ac_compile"
5259case "(($ac_try" in
5260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261  *) ac_try_echo=$ac_try;;
5262esac
5263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264  (eval "$ac_compile") 2>conftest.er1
5265  ac_status=$?
5266  grep -v '^ *+' conftest.er1 >conftest.err
5267  rm -f conftest.er1
5268  cat conftest.err >&5
5269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270  (exit $ac_status); } && {
5271	 test -z "$ac_c_werror_flag" ||
5272	 test ! -s conftest.err
5273       } && test -s conftest.$ac_objext; then
5274  ac_cv_type_size_t=yes
5275else
5276  echo "$as_me: failed program was:" >&5
5277sed 's/^/| /' conftest.$ac_ext >&5
5278
5279	ac_cv_type_size_t=no
5280fi
5281
5282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283fi
5284{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5285echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5286if test $ac_cv_type_size_t = yes; then
5287  :
5288else
5289
5290cat >>confdefs.h <<_ACEOF
5291#define size_t unsigned int
5292_ACEOF
5293
5294fi
5295
5296{ echo "$as_me:$LINENO: checking for ssize_t" >&5
5297echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
5298if test "${ac_cv_type_ssize_t+set}" = set; then
5299  echo $ECHO_N "(cached) $ECHO_C" >&6
5300else
5301  cat >conftest.$ac_ext <<_ACEOF
5302/* confdefs.h.  */
5303_ACEOF
5304cat confdefs.h >>conftest.$ac_ext
5305cat >>conftest.$ac_ext <<_ACEOF
5306/* end confdefs.h.  */
5307$ac_includes_default
5308typedef ssize_t ac__type_new_;
5309int
5310main ()
5311{
5312if ((ac__type_new_ *) 0)
5313  return 0;
5314if (sizeof (ac__type_new_))
5315  return 0;
5316  ;
5317  return 0;
5318}
5319_ACEOF
5320rm -f conftest.$ac_objext
5321if { (ac_try="$ac_compile"
5322case "(($ac_try" in
5323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324  *) ac_try_echo=$ac_try;;
5325esac
5326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5327  (eval "$ac_compile") 2>conftest.er1
5328  ac_status=$?
5329  grep -v '^ *+' conftest.er1 >conftest.err
5330  rm -f conftest.er1
5331  cat conftest.err >&5
5332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333  (exit $ac_status); } && {
5334	 test -z "$ac_c_werror_flag" ||
5335	 test ! -s conftest.err
5336       } && test -s conftest.$ac_objext; then
5337  ac_cv_type_ssize_t=yes
5338else
5339  echo "$as_me: failed program was:" >&5
5340sed 's/^/| /' conftest.$ac_ext >&5
5341
5342	ac_cv_type_ssize_t=no
5343fi
5344
5345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346fi
5347{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
5348echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
5349if test $ac_cv_type_ssize_t = yes; then
5350  :
5351else
5352
5353cat >>confdefs.h <<_ACEOF
5354#define ssize_t int
5355_ACEOF
5356
5357fi
5358
5359{ echo "$as_me:$LINENO: checking for u_int8_t" >&5
5360echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
5361if test "${ac_cv_type_u_int8_t+set}" = set; then
5362  echo $ECHO_N "(cached) $ECHO_C" >&6
5363else
5364  cat >conftest.$ac_ext <<_ACEOF
5365/* confdefs.h.  */
5366_ACEOF
5367cat confdefs.h >>conftest.$ac_ext
5368cat >>conftest.$ac_ext <<_ACEOF
5369/* end confdefs.h.  */
5370$ac_includes_default
5371typedef u_int8_t ac__type_new_;
5372int
5373main ()
5374{
5375if ((ac__type_new_ *) 0)
5376  return 0;
5377if (sizeof (ac__type_new_))
5378  return 0;
5379  ;
5380  return 0;
5381}
5382_ACEOF
5383rm -f conftest.$ac_objext
5384if { (ac_try="$ac_compile"
5385case "(($ac_try" in
5386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387  *) ac_try_echo=$ac_try;;
5388esac
5389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390  (eval "$ac_compile") 2>conftest.er1
5391  ac_status=$?
5392  grep -v '^ *+' conftest.er1 >conftest.err
5393  rm -f conftest.er1
5394  cat conftest.err >&5
5395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396  (exit $ac_status); } && {
5397	 test -z "$ac_c_werror_flag" ||
5398	 test ! -s conftest.err
5399       } && test -s conftest.$ac_objext; then
5400  ac_cv_type_u_int8_t=yes
5401else
5402  echo "$as_me: failed program was:" >&5
5403sed 's/^/| /' conftest.$ac_ext >&5
5404
5405	ac_cv_type_u_int8_t=no
5406fi
5407
5408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409fi
5410{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
5411echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
5412if test $ac_cv_type_u_int8_t = yes; then
5413  :
5414else
5415
5416cat >>confdefs.h <<_ACEOF
5417#define u_int8_t unsigned char
5418_ACEOF
5419
5420fi
5421
5422{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
5423echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
5424if test "${ac_cv_type_u_int16_t+set}" = set; then
5425  echo $ECHO_N "(cached) $ECHO_C" >&6
5426else
5427  cat >conftest.$ac_ext <<_ACEOF
5428/* confdefs.h.  */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h.  */
5433$ac_includes_default
5434typedef u_int16_t ac__type_new_;
5435int
5436main ()
5437{
5438if ((ac__type_new_ *) 0)
5439  return 0;
5440if (sizeof (ac__type_new_))
5441  return 0;
5442  ;
5443  return 0;
5444}
5445_ACEOF
5446rm -f conftest.$ac_objext
5447if { (ac_try="$ac_compile"
5448case "(($ac_try" in
5449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450  *) ac_try_echo=$ac_try;;
5451esac
5452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453  (eval "$ac_compile") 2>conftest.er1
5454  ac_status=$?
5455  grep -v '^ *+' conftest.er1 >conftest.err
5456  rm -f conftest.er1
5457  cat conftest.err >&5
5458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459  (exit $ac_status); } && {
5460	 test -z "$ac_c_werror_flag" ||
5461	 test ! -s conftest.err
5462       } && test -s conftest.$ac_objext; then
5463  ac_cv_type_u_int16_t=yes
5464else
5465  echo "$as_me: failed program was:" >&5
5466sed 's/^/| /' conftest.$ac_ext >&5
5467
5468	ac_cv_type_u_int16_t=no
5469fi
5470
5471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472fi
5473{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5474echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
5475if test $ac_cv_type_u_int16_t = yes; then
5476  :
5477else
5478
5479cat >>confdefs.h <<_ACEOF
5480#define u_int16_t unsigned short
5481_ACEOF
5482
5483fi
5484
5485{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
5486echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
5487if test "${ac_cv_type_u_int32_t+set}" = set; then
5488  echo $ECHO_N "(cached) $ECHO_C" >&6
5489else
5490  cat >conftest.$ac_ext <<_ACEOF
5491/* confdefs.h.  */
5492_ACEOF
5493cat confdefs.h >>conftest.$ac_ext
5494cat >>conftest.$ac_ext <<_ACEOF
5495/* end confdefs.h.  */
5496$ac_includes_default
5497typedef u_int32_t ac__type_new_;
5498int
5499main ()
5500{
5501if ((ac__type_new_ *) 0)
5502  return 0;
5503if (sizeof (ac__type_new_))
5504  return 0;
5505  ;
5506  return 0;
5507}
5508_ACEOF
5509rm -f conftest.$ac_objext
5510if { (ac_try="$ac_compile"
5511case "(($ac_try" in
5512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513  *) ac_try_echo=$ac_try;;
5514esac
5515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5516  (eval "$ac_compile") 2>conftest.er1
5517  ac_status=$?
5518  grep -v '^ *+' conftest.er1 >conftest.err
5519  rm -f conftest.er1
5520  cat conftest.err >&5
5521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522  (exit $ac_status); } && {
5523	 test -z "$ac_c_werror_flag" ||
5524	 test ! -s conftest.err
5525       } && test -s conftest.$ac_objext; then
5526  ac_cv_type_u_int32_t=yes
5527else
5528  echo "$as_me: failed program was:" >&5
5529sed 's/^/| /' conftest.$ac_ext >&5
5530
5531	ac_cv_type_u_int32_t=no
5532fi
5533
5534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535fi
5536{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5537echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
5538if test $ac_cv_type_u_int32_t = yes; then
5539  :
5540else
5541
5542cat >>confdefs.h <<_ACEOF
5543#define u_int32_t unsigned int
5544_ACEOF
5545
5546fi
5547
5548
5549{ echo "$as_me:$LINENO: checking for socklen_t" >&5
5550echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
5551if test "${ac_cv_type_socklen_t+set}" = set; then
5552  echo $ECHO_N "(cached) $ECHO_C" >&6
5553else
5554
5555  cat >conftest.$ac_ext <<_ACEOF
5556/* confdefs.h.  */
5557_ACEOF
5558cat confdefs.h >>conftest.$ac_ext
5559cat >>conftest.$ac_ext <<_ACEOF
5560/* end confdefs.h.  */
5561#include <sys/types.h>
5562#include <sys/socket.h>
5563#if STDC_HEADERS
5564#include <stdlib.h>
5565#include <stddef.h>
5566#endif
5567_ACEOF
5568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5569  $EGREP "socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5570  ac_cv_type_socklen_t=yes
5571else
5572  ac_cv_type_socklen_t=no
5573fi
5574rm -f conftest*
5575
5576
5577fi
5578{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
5579echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
5580if test $ac_cv_type_socklen_t = no; then
5581
5582cat >>confdefs.h <<\_ACEOF
5583#define socklen_t int
5584_ACEOF
5585
5586fi
5587
5588
5589# Check whether --with-libwrap was given.
5590if test "${with_libwrap+set}" = set; then
5591  withval=$with_libwrap;
5592 if test "$with_libwrap" = "yes"; then
5593 XYZZY_LIBS="$LIBS"
5594 { echo "$as_me:$LINENO: checking for libwrap alone" >&5
5595echo $ECHO_N "checking for libwrap alone... $ECHO_C" >&6; }
5596 LIBS="$XYZZY_LIBS -lwrap"
5597 cat >conftest.$ac_ext <<_ACEOF
5598/* confdefs.h.  */
5599_ACEOF
5600cat confdefs.h >>conftest.$ac_ext
5601cat >>conftest.$ac_ext <<_ACEOF
5602/* end confdefs.h.  */
5603 int allow_severity, deny_severity;
5604int
5605main ()
5606{
5607 hosts_access();
5608  ;
5609  return 0;
5610}
5611_ACEOF
5612rm -f conftest.$ac_objext conftest$ac_exeext
5613if { (ac_try="$ac_link"
5614case "(($ac_try" in
5615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616  *) ac_try_echo=$ac_try;;
5617esac
5618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619  (eval "$ac_link") 2>conftest.er1
5620  ac_status=$?
5621  grep -v '^ *+' conftest.er1 >conftest.err
5622  rm -f conftest.er1
5623  cat conftest.err >&5
5624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625  (exit $ac_status); } && {
5626	 test -z "$ac_c_werror_flag" ||
5627	 test ! -s conftest.err
5628       } && test -s conftest$ac_exeext &&
5629       $as_test_x conftest$ac_exeext; then
5630   { echo "$as_me:$LINENO: result: yes" >&5
5631echo "${ECHO_T}yes" >&6; }
5632
5633cat >>confdefs.h <<\_ACEOF
5634#define HAVE_LIBWRAP
5635_ACEOF
5636
5637	       LIBWRAP="yes"
5638	       XTRALIBS_MGR="-lwrap"
5639else
5640  echo "$as_me: failed program was:" >&5
5641sed 's/^/| /' conftest.$ac_ext >&5
5642
5643	 { echo "$as_me:$LINENO: result: no" >&5
5644echo "${ECHO_T}no" >&6; }
5645   LIBS="$XYZZY_LIBS -lwrap -lnsl"
5646   { echo "$as_me:$LINENO: checking for libwrap with libnsl" >&5
5647echo $ECHO_N "checking for libwrap with libnsl... $ECHO_C" >&6; }
5648   cat >conftest.$ac_ext <<_ACEOF
5649/* confdefs.h.  */
5650_ACEOF
5651cat confdefs.h >>conftest.$ac_ext
5652cat >>conftest.$ac_ext <<_ACEOF
5653/* end confdefs.h.  */
5654 int allow_severity, deny_severity;
5655int
5656main ()
5657{
5658 hosts_access();
5659  ;
5660  return 0;
5661}
5662_ACEOF
5663rm -f conftest.$ac_objext conftest$ac_exeext
5664if { (ac_try="$ac_link"
5665case "(($ac_try" in
5666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667  *) ac_try_echo=$ac_try;;
5668esac
5669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670  (eval "$ac_link") 2>conftest.er1
5671  ac_status=$?
5672  grep -v '^ *+' conftest.er1 >conftest.err
5673  rm -f conftest.er1
5674  cat conftest.err >&5
5675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676  (exit $ac_status); } && {
5677	 test -z "$ac_c_werror_flag" ||
5678	 test ! -s conftest.err
5679       } && test -s conftest$ac_exeext &&
5680       $as_test_x conftest$ac_exeext; then
5681   { echo "$as_me:$LINENO: result: yes" >&5
5682echo "${ECHO_T}yes" >&6; }
5683	         cat >>confdefs.h <<\_ACEOF
5684#define HAVE_LIBWRAP 1
5685_ACEOF
5686
5687		 LIBWRAP="yes"
5688	         XTRALIBS_MGR="-lwrap -lnsl"
5689else
5690  echo "$as_me: failed program was:" >&5
5691sed 's/^/| /' conftest.$ac_ext >&5
5692
5693	 { echo "$as_me:$LINENO: result: no" >&5
5694echo "${ECHO_T}no" >&6; }
5695fi
5696
5697rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5698      conftest$ac_exeext conftest.$ac_ext
5699
5700fi
5701
5702rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5703      conftest$ac_exeext conftest.$ac_ext
5704 LIBS="$XYZZY_LIBS"
5705 fi
5706
5707fi
5708
5709
5710XYZZY_LIBS="$LIBS"
5711
5712{ echo "$as_me:$LINENO: checking for accept in -lc" >&5
5713echo $ECHO_N "checking for accept in -lc... $ECHO_C" >&6; }
5714if test "${ac_cv_lib_c_accept+set}" = set; then
5715  echo $ECHO_N "(cached) $ECHO_C" >&6
5716else
5717  ac_check_lib_save_LIBS=$LIBS
5718LIBS="-lc  $LIBS"
5719cat >conftest.$ac_ext <<_ACEOF
5720/* confdefs.h.  */
5721_ACEOF
5722cat confdefs.h >>conftest.$ac_ext
5723cat >>conftest.$ac_ext <<_ACEOF
5724/* end confdefs.h.  */
5725
5726/* Override any GCC internal prototype to avoid an error.
5727   Use char because int might match the return type of a GCC
5728   builtin and then its argument prototype would still apply.  */
5729#ifdef __cplusplus
5730extern "C"
5731#endif
5732char accept ();
5733int
5734main ()
5735{
5736return accept ();
5737  ;
5738  return 0;
5739}
5740_ACEOF
5741rm -f conftest.$ac_objext conftest$ac_exeext
5742if { (ac_try="$ac_link"
5743case "(($ac_try" in
5744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745  *) ac_try_echo=$ac_try;;
5746esac
5747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748  (eval "$ac_link") 2>conftest.er1
5749  ac_status=$?
5750  grep -v '^ *+' conftest.er1 >conftest.err
5751  rm -f conftest.er1
5752  cat conftest.err >&5
5753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754  (exit $ac_status); } && {
5755	 test -z "$ac_c_werror_flag" ||
5756	 test ! -s conftest.err
5757       } && test -s conftest$ac_exeext &&
5758       $as_test_x conftest$ac_exeext; then
5759  ac_cv_lib_c_accept=yes
5760else
5761  echo "$as_me: failed program was:" >&5
5762sed 's/^/| /' conftest.$ac_ext >&5
5763
5764	ac_cv_lib_c_accept=no
5765fi
5766
5767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5768      conftest$ac_exeext conftest.$ac_ext
5769LIBS=$ac_check_lib_save_LIBS
5770fi
5771{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_accept" >&5
5772echo "${ECHO_T}$ac_cv_lib_c_accept" >&6; }
5773if test $ac_cv_lib_c_accept = yes; then
5774  cat >>confdefs.h <<_ACEOF
5775#define HAVE_LIBC 1
5776_ACEOF
5777
5778  LIBS="-lc $LIBS"
5779
5780fi
5781
5782
5783{ echo "$as_me:$LINENO: checking for gethostbyname in -lc" >&5
5784echo $ECHO_N "checking for gethostbyname in -lc... $ECHO_C" >&6; }
5785if test "${ac_cv_lib_c_gethostbyname+set}" = set; then
5786  echo $ECHO_N "(cached) $ECHO_C" >&6
5787else
5788  ac_check_lib_save_LIBS=$LIBS
5789LIBS="-lc  $LIBS"
5790cat >conftest.$ac_ext <<_ACEOF
5791/* confdefs.h.  */
5792_ACEOF
5793cat confdefs.h >>conftest.$ac_ext
5794cat >>conftest.$ac_ext <<_ACEOF
5795/* end confdefs.h.  */
5796
5797/* Override any GCC internal prototype to avoid an error.
5798   Use char because int might match the return type of a GCC
5799   builtin and then its argument prototype would still apply.  */
5800#ifdef __cplusplus
5801extern "C"
5802#endif
5803char gethostbyname ();
5804int
5805main ()
5806{
5807return gethostbyname ();
5808  ;
5809  return 0;
5810}
5811_ACEOF
5812rm -f conftest.$ac_objext conftest$ac_exeext
5813if { (ac_try="$ac_link"
5814case "(($ac_try" in
5815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816  *) ac_try_echo=$ac_try;;
5817esac
5818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819  (eval "$ac_link") 2>conftest.er1
5820  ac_status=$?
5821  grep -v '^ *+' conftest.er1 >conftest.err
5822  rm -f conftest.er1
5823  cat conftest.err >&5
5824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825  (exit $ac_status); } && {
5826	 test -z "$ac_c_werror_flag" ||
5827	 test ! -s conftest.err
5828       } && test -s conftest$ac_exeext &&
5829       $as_test_x conftest$ac_exeext; then
5830  ac_cv_lib_c_gethostbyname=yes
5831else
5832  echo "$as_me: failed program was:" >&5
5833sed 's/^/| /' conftest.$ac_ext >&5
5834
5835	ac_cv_lib_c_gethostbyname=no
5836fi
5837
5838rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5839      conftest$ac_exeext conftest.$ac_ext
5840LIBS=$ac_check_lib_save_LIBS
5841fi
5842{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_gethostbyname" >&5
5843echo "${ECHO_T}$ac_cv_lib_c_gethostbyname" >&6; }
5844if test $ac_cv_lib_c_gethostbyname = yes; then
5845  cat >>confdefs.h <<_ACEOF
5846#define HAVE_LIBC 1
5847_ACEOF
5848
5849  LIBS="-lc $LIBS"
5850
5851fi
5852
5853
5854{ echo "$as_me:$LINENO: checking for gettext in -lc" >&5
5855echo $ECHO_N "checking for gettext in -lc... $ECHO_C" >&6; }
5856if test "${ac_cv_lib_c_gettext+set}" = set; then
5857  echo $ECHO_N "(cached) $ECHO_C" >&6
5858else
5859  ac_check_lib_save_LIBS=$LIBS
5860LIBS="-lc  $LIBS"
5861cat >conftest.$ac_ext <<_ACEOF
5862/* confdefs.h.  */
5863_ACEOF
5864cat confdefs.h >>conftest.$ac_ext
5865cat >>conftest.$ac_ext <<_ACEOF
5866/* end confdefs.h.  */
5867
5868/* Override any GCC internal prototype to avoid an error.
5869   Use char because int might match the return type of a GCC
5870   builtin and then its argument prototype would still apply.  */
5871#ifdef __cplusplus
5872extern "C"
5873#endif
5874char gettext ();
5875int
5876main ()
5877{
5878return gettext ();
5879  ;
5880  return 0;
5881}
5882_ACEOF
5883rm -f conftest.$ac_objext conftest$ac_exeext
5884if { (ac_try="$ac_link"
5885case "(($ac_try" in
5886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887  *) ac_try_echo=$ac_try;;
5888esac
5889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890  (eval "$ac_link") 2>conftest.er1
5891  ac_status=$?
5892  grep -v '^ *+' conftest.er1 >conftest.err
5893  rm -f conftest.er1
5894  cat conftest.err >&5
5895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896  (exit $ac_status); } && {
5897	 test -z "$ac_c_werror_flag" ||
5898	 test ! -s conftest.err
5899       } && test -s conftest$ac_exeext &&
5900       $as_test_x conftest$ac_exeext; then
5901  ac_cv_lib_c_gettext=yes
5902else
5903  echo "$as_me: failed program was:" >&5
5904sed 's/^/| /' conftest.$ac_ext >&5
5905
5906	ac_cv_lib_c_gettext=no
5907fi
5908
5909rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5910      conftest$ac_exeext conftest.$ac_ext
5911LIBS=$ac_check_lib_save_LIBS
5912fi
5913{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_gettext" >&5
5914echo "${ECHO_T}$ac_cv_lib_c_gettext" >&6; }
5915if test $ac_cv_lib_c_gettext = yes; then
5916  cat >>confdefs.h <<_ACEOF
5917#define HAVE_LIBC 1
5918_ACEOF
5919
5920  LIBS="-lc $LIBS"
5921
5922fi
5923
5924
5925{ echo "$as_me:$LINENO: checking for accept in -lsocket" >&5
5926echo $ECHO_N "checking for accept in -lsocket... $ECHO_C" >&6; }
5927if test "${ac_cv_lib_socket_accept+set}" = set; then
5928  echo $ECHO_N "(cached) $ECHO_C" >&6
5929else
5930  ac_check_lib_save_LIBS=$LIBS
5931LIBS="-lsocket  $LIBS"
5932cat >conftest.$ac_ext <<_ACEOF
5933/* confdefs.h.  */
5934_ACEOF
5935cat confdefs.h >>conftest.$ac_ext
5936cat >>conftest.$ac_ext <<_ACEOF
5937/* end confdefs.h.  */
5938
5939/* Override any GCC internal prototype to avoid an error.
5940   Use char because int might match the return type of a GCC
5941   builtin and then its argument prototype would still apply.  */
5942#ifdef __cplusplus
5943extern "C"
5944#endif
5945char accept ();
5946int
5947main ()
5948{
5949return accept ();
5950  ;
5951  return 0;
5952}
5953_ACEOF
5954rm -f conftest.$ac_objext conftest$ac_exeext
5955if { (ac_try="$ac_link"
5956case "(($ac_try" in
5957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958  *) ac_try_echo=$ac_try;;
5959esac
5960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961  (eval "$ac_link") 2>conftest.er1
5962  ac_status=$?
5963  grep -v '^ *+' conftest.er1 >conftest.err
5964  rm -f conftest.er1
5965  cat conftest.err >&5
5966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967  (exit $ac_status); } && {
5968	 test -z "$ac_c_werror_flag" ||
5969	 test ! -s conftest.err
5970       } && test -s conftest$ac_exeext &&
5971       $as_test_x conftest$ac_exeext; then
5972  ac_cv_lib_socket_accept=yes
5973else
5974  echo "$as_me: failed program was:" >&5
5975sed 's/^/| /' conftest.$ac_ext >&5
5976
5977	ac_cv_lib_socket_accept=no
5978fi
5979
5980rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5981      conftest$ac_exeext conftest.$ac_ext
5982LIBS=$ac_check_lib_save_LIBS
5983fi
5984{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_accept" >&5
5985echo "${ECHO_T}$ac_cv_lib_socket_accept" >&6; }
5986if test $ac_cv_lib_socket_accept = yes; then
5987  cat >>confdefs.h <<_ACEOF
5988#define HAVE_LIBSOCKET 1
5989_ACEOF
5990
5991  LIBS="-lsocket $LIBS"
5992
5993fi
5994
5995
5996{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5997echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5998if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5999  echo $ECHO_N "(cached) $ECHO_C" >&6
6000else
6001  ac_check_lib_save_LIBS=$LIBS
6002LIBS="-lnsl  $LIBS"
6003cat >conftest.$ac_ext <<_ACEOF
6004/* confdefs.h.  */
6005_ACEOF
6006cat confdefs.h >>conftest.$ac_ext
6007cat >>conftest.$ac_ext <<_ACEOF
6008/* end confdefs.h.  */
6009
6010/* Override any GCC internal prototype to avoid an error.
6011   Use char because int might match the return type of a GCC
6012   builtin and then its argument prototype would still apply.  */
6013#ifdef __cplusplus
6014extern "C"
6015#endif
6016char gethostbyname ();
6017int
6018main ()
6019{
6020return gethostbyname ();
6021  ;
6022  return 0;
6023}
6024_ACEOF
6025rm -f conftest.$ac_objext conftest$ac_exeext
6026if { (ac_try="$ac_link"
6027case "(($ac_try" in
6028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029  *) ac_try_echo=$ac_try;;
6030esac
6031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032  (eval "$ac_link") 2>conftest.er1
6033  ac_status=$?
6034  grep -v '^ *+' conftest.er1 >conftest.err
6035  rm -f conftest.er1
6036  cat conftest.err >&5
6037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038  (exit $ac_status); } && {
6039	 test -z "$ac_c_werror_flag" ||
6040	 test ! -s conftest.err
6041       } && test -s conftest$ac_exeext &&
6042       $as_test_x conftest$ac_exeext; then
6043  ac_cv_lib_nsl_gethostbyname=yes
6044else
6045  echo "$as_me: failed program was:" >&5
6046sed 's/^/| /' conftest.$ac_ext >&5
6047
6048	ac_cv_lib_nsl_gethostbyname=no
6049fi
6050
6051rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6052      conftest$ac_exeext conftest.$ac_ext
6053LIBS=$ac_check_lib_save_LIBS
6054fi
6055{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6056echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6057if test $ac_cv_lib_nsl_gethostbyname = yes; then
6058  cat >>confdefs.h <<_ACEOF
6059#define HAVE_LIBNSL 1
6060_ACEOF
6061
6062  LIBS="-lnsl $LIBS"
6063
6064fi
6065
6066
6067{ echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
6068echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
6069if test "${ac_cv_lib_intl_gettext+set}" = set; then
6070  echo $ECHO_N "(cached) $ECHO_C" >&6
6071else
6072  ac_check_lib_save_LIBS=$LIBS
6073LIBS="-lintl  $LIBS"
6074cat >conftest.$ac_ext <<_ACEOF
6075/* confdefs.h.  */
6076_ACEOF
6077cat confdefs.h >>conftest.$ac_ext
6078cat >>conftest.$ac_ext <<_ACEOF
6079/* end confdefs.h.  */
6080
6081/* Override any GCC internal prototype to avoid an error.
6082   Use char because int might match the return type of a GCC
6083   builtin and then its argument prototype would still apply.  */
6084#ifdef __cplusplus
6085extern "C"
6086#endif
6087char gettext ();
6088int
6089main ()
6090{
6091return gettext ();
6092  ;
6093  return 0;
6094}
6095_ACEOF
6096rm -f conftest.$ac_objext conftest$ac_exeext
6097if { (ac_try="$ac_link"
6098case "(($ac_try" in
6099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100  *) ac_try_echo=$ac_try;;
6101esac
6102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103  (eval "$ac_link") 2>conftest.er1
6104  ac_status=$?
6105  grep -v '^ *+' conftest.er1 >conftest.err
6106  rm -f conftest.er1
6107  cat conftest.err >&5
6108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109  (exit $ac_status); } && {
6110	 test -z "$ac_c_werror_flag" ||
6111	 test ! -s conftest.err
6112       } && test -s conftest$ac_exeext &&
6113       $as_test_x conftest$ac_exeext; then
6114  ac_cv_lib_intl_gettext=yes
6115else
6116  echo "$as_me: failed program was:" >&5
6117sed 's/^/| /' conftest.$ac_ext >&5
6118
6119	ac_cv_lib_intl_gettext=no
6120fi
6121
6122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6123      conftest$ac_exeext conftest.$ac_ext
6124LIBS=$ac_check_lib_save_LIBS
6125fi
6126{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
6127echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
6128if test $ac_cv_lib_intl_gettext = yes; then
6129  cat >>confdefs.h <<_ACEOF
6130#define HAVE_LIBINTL 1
6131_ACEOF
6132
6133  LIBS="-lintl $LIBS"
6134
6135fi
6136
6137LIBS="$XYZZY_LIBS"
6138if test "$ac_cv_lib_c_accept" = no; then
6139  if test "$ac_cv_lib_socket_accept" = yes; then
6140	LIBS="$LIBS -lsocket"
6141  else
6142	echo "Couldn't find a usable accept!" 1>&2
6143	exit 1
6144  fi
6145fi
6146if test "$ac_cv_lib_c_gethostbyname" = no; then
6147  if test "$ac_cv_lib_nsl_gethostbyname" = yes; then
6148	LIBS="$LIBS -lnsl"
6149	if test "$XTRALIBS_MGR" = "-lwrap -lnsl"; then
6150	  XTRALIBS_MGR="-lwrap"
6151	fi
6152  else
6153	echo "Couldn't find a usable gethostbyname!" 1>&2
6154	exit 1
6155  fi
6156fi
6157if test "$ac_cv_header_libintl_h" = yes; then
6158  if test "$ac_cv_lib_c_gettext" = no; then
6159    if test "$ac_cv_lib_intl_gettext" = yes; then
6160      XTRALIBS_MGR = "$XTRALIBS_MGR -lintl"
6161    else
6162      echo "Have libintl.h but no usable gettext!" 1>&2
6163      exit 1
6164    fi
6165  fi
6166fi
6167
6168
6169
6170
6171if test "$BCRELAY" = "yes"; then
6172  if test "$BCRELAY" = "yes"; then
6173    XTRA_PROG="bcrelay"
6174    true
6175  else
6176    echo "No BCrelay selected." 1>&2
6177  fi
6178fi
6179
6180
6181
6182{ echo "$as_me:$LINENO: checking for linux kernel herders" >&5
6183echo $ECHO_N "checking for linux kernel herders... $ECHO_C" >&6; }
6184if test -n "${KDIR}"; then
6185	if test -f ${KDIR}/include/linux/version.h; then
6186		header=${KDIR}/include
6187	else
6188		{ echo "$as_me:$LINENO: result: not found" >&5
6189echo "${ECHO_T}not found" >&6; }
6190		{ { echo "$as_me:$LINENO: error: Could not find linux kernel headers" >&5
6191echo "$as_me: error: Could not find linux kernel headers" >&2;}
6192   { (exit 1); exit 1; }; }
6193	fi
6194else
6195	kernel=`uname -r`
6196	if test -f /usr/src/linux/include/linux/version.h; then
6197		header=/usr/src/linux/include
6198	elif test -f /lib/modules/${kernel}/build/include/linux/version.h; then
6199		header=/lib/modules/${kernel}/build/include
6200	else
6201		{ echo "$as_me:$LINENO: result: not found" >&5
6202echo "${ECHO_T}not found" >&6; }
6203		{ { echo "$as_me:$LINENO: error: Could not find linux kernel headers" >&5
6204echo "$as_me: error: Could not find linux kernel headers" >&2;}
6205   { (exit 1); exit 1; }; }
6206	fi
6207fi
6208
6209VERSION=$(cat ${header/include}Makefile | grep '^VERSION = ' | awk '{print $3}')
6210PATCHLEVEL=$(cat ${header/include}Makefile | grep '^PATCHLEVEL = ' | awk '{print $3}')
6211SUBLEVEL=$(cat ${header/include}Makefile | grep '^SUBLEVEL = ' | awk '{print $3}')
6212EXTRAVERSION=$(cat ${header/include}Makefile | grep '^EXTRAVERSION = ' | awk '{print $3}')
6213KERNELVERSION=$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION
6214cat >>confdefs.h <<_ACEOF
6215#define KERNELVERSION "$KERNELVERSION"
6216_ACEOF
6217
6218
6219{ echo "$as_me:$LINENO: result: found ($KERNELVERSION at ${header/include})" >&5
6220echo "${ECHO_T}found ($KERNELVERSION at ${header/include})" >&6; }
6221CFLAGS="${CFLAGS} -I. -I${header}"
6222kernel_headers=${header}
6223
6224
6225#{ echo "$as_me:$LINENO: checking for pppd" >&5
6226#echo $ECHO_N "checking for pppd... $ECHO_C" >&6; }
6227#pppd=`which pppd 2>&1`
6228#if test $? -eq 1; then
6229#	pppd=""
6230#	for path in /usr/sbin /usr/local/sbin /usr/bin /usr/local/bin /sbin; do
6231#		if test -x ${path}/pppd; then
6232#			pppd=${path}/pppd
6233#			break;
6234#		fi
6235#	done
6236#fi
6237
6238#if test -z "${pppd}"; then
6239#    { echo "$as_me:$LINENO: result: not found" >&5
6240#echo "${ECHO_T}not found" >&6; }
6241#    { { echo "$as_me:$LINENO: error: Could not find pppd" >&5
6242#echo "$as_me: error: Could not find pppd" >&2;}
6243#   { (exit 1); exit 1; }; }
6244#fi
6245#pppd_ver=`${pppd} --version 2>&1 | grep version | sed 's/pppd version //'`
6246#{ echo "$as_me:$LINENO: result: $pppd ($pppd_ver)" >&5
6247#echo "${ECHO_T}$pppd ($pppd_ver)" >&6; }
6248pppd_ver="2.4.5"
6249cat >>confdefs.h <<_ACEOF
6250#define PPPD_VERSION "${pppd_ver}"
6251_ACEOF
6252
6253
6254
6255echo '==============================================================================='
6256
6257echo 'Configuration chosen:'
6258
6259echo    '   PPPD:               '${pppd_ver}
6260
6261echo -n '   LIBWRAP security:   '
6262if test "$LIBWRAP" = "yes"; then
6263  echo 'Yes.'
6264else
6265  echo 'No.'
6266fi
6267
6268echo -n '   Broadcast Relay:    '
6269if test "$BCRELAY" = "yes"; then
6270  echo 'Yes.'
6271else
6272  echo 'No.'
6273fi
6274
6275echo    '   linux kernel:       '$KERNELVERSION at ${header/include}
6276
6277cat >confcache <<\_ACEOF
6278# This file is a shell script that caches the results of configure
6279# tests run on this system so they can be shared between configure
6280# scripts and configure runs, see configure's option --config-cache.
6281# It is not useful on other systems.  If it contains results you don't
6282# want to keep, you may remove or edit it.
6283#
6284# config.status only pays attention to the cache file if you give it
6285# the --recheck option to rerun configure.
6286#
6287# `ac_cv_env_foo' variables (set or unset) will be overridden when
6288# loading this file, other *unset* `ac_cv_foo' will be assigned the
6289# following values.
6290
6291_ACEOF
6292
6293# The following way of writing the cache mishandles newlines in values,
6294# but we know of no workaround that is simple, portable, and efficient.
6295# So, we kill variables containing newlines.
6296# Ultrix sh set writes to stderr and can't be redirected directly,
6297# and sets the high bit in the cache file unless we assign to the vars.
6298(
6299  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6300    eval ac_val=\$$ac_var
6301    case $ac_val in #(
6302    *${as_nl}*)
6303      case $ac_var in #(
6304      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6305echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6306      esac
6307      case $ac_var in #(
6308      _ | IFS | as_nl) ;; #(
6309      *) $as_unset $ac_var ;;
6310      esac ;;
6311    esac
6312  done
6313
6314  (set) 2>&1 |
6315    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6316    *${as_nl}ac_space=\ *)
6317      # `set' does not quote correctly, so add quotes (double-quote
6318      # substitution turns \\\\ into \\, and sed turns \\ into \).
6319      sed -n \
6320	"s/'/'\\\\''/g;
6321	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6322      ;; #(
6323    *)
6324      # `set' quotes correctly as required by POSIX, so do not add quotes.
6325      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6326      ;;
6327    esac |
6328    sort
6329) |
6330  sed '
6331     /^ac_cv_env_/b end
6332     t clear
6333     :clear
6334     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6335     t end
6336     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6337     :end' >>confcache
6338if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6339  if test -w "$cache_file"; then
6340    test "x$cache_file" != "x/dev/null" &&
6341      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6342echo "$as_me: updating cache $cache_file" >&6;}
6343    cat confcache >$cache_file
6344  else
6345    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6346echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6347  fi
6348fi
6349rm -f confcache
6350ac_config_files="$ac_config_files Makefile"
6351
6352cat >confcache <<\_ACEOF
6353# This file is a shell script that caches the results of configure
6354# tests run on this system so they can be shared between configure
6355# scripts and configure runs, see configure's option --config-cache.
6356# It is not useful on other systems.  If it contains results you don't
6357# want to keep, you may remove or edit it.
6358#
6359# config.status only pays attention to the cache file if you give it
6360# the --recheck option to rerun configure.
6361#
6362# `ac_cv_env_foo' variables (set or unset) will be overridden when
6363# loading this file, other *unset* `ac_cv_foo' will be assigned the
6364# following values.
6365
6366_ACEOF
6367
6368# The following way of writing the cache mishandles newlines in values,
6369# but we know of no workaround that is simple, portable, and efficient.
6370# So, we kill variables containing newlines.
6371# Ultrix sh set writes to stderr and can't be redirected directly,
6372# and sets the high bit in the cache file unless we assign to the vars.
6373(
6374  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6375    eval ac_val=\$$ac_var
6376    case $ac_val in #(
6377    *${as_nl}*)
6378      case $ac_var in #(
6379      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6380echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6381      esac
6382      case $ac_var in #(
6383      _ | IFS | as_nl) ;; #(
6384      *) $as_unset $ac_var ;;
6385      esac ;;
6386    esac
6387  done
6388
6389  (set) 2>&1 |
6390    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6391    *${as_nl}ac_space=\ *)
6392      # `set' does not quote correctly, so add quotes (double-quote
6393      # substitution turns \\\\ into \\, and sed turns \\ into \).
6394      sed -n \
6395	"s/'/'\\\\''/g;
6396	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6397      ;; #(
6398    *)
6399      # `set' quotes correctly as required by POSIX, so do not add quotes.
6400      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6401      ;;
6402    esac |
6403    sort
6404) |
6405  sed '
6406     /^ac_cv_env_/b end
6407     t clear
6408     :clear
6409     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6410     t end
6411     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6412     :end' >>confcache
6413if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6414  if test -w "$cache_file"; then
6415    test "x$cache_file" != "x/dev/null" &&
6416      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6417echo "$as_me: updating cache $cache_file" >&6;}
6418    cat confcache >$cache_file
6419  else
6420    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6421echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6422  fi
6423fi
6424rm -f confcache
6425
6426test "x$prefix" = xNONE && prefix=$ac_default_prefix
6427# Let make expand exec_prefix.
6428test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6429
6430DEFS=-DHAVE_CONFIG_H
6431
6432ac_libobjs=
6433ac_ltlibobjs=
6434for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6435  # 1. Remove the extension, and $U if already installed.
6436  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6437  ac_i=`echo "$ac_i" | sed "$ac_script"`
6438  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6439  #    will be set to the directory where LIBOBJS objects are built.
6440  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6441  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6442done
6443LIBOBJS=$ac_libobjs
6444
6445LTLIBOBJS=$ac_ltlibobjs
6446
6447
6448if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6449  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6450Usually this means the macro was only invoked conditionally." >&5
6451echo "$as_me: error: conditional \"AMDEP\" was never defined.
6452Usually this means the macro was only invoked conditionally." >&2;}
6453   { (exit 1); exit 1; }; }
6454fi
6455if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6456  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6457Usually this means the macro was only invoked conditionally." >&5
6458echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6459Usually this means the macro was only invoked conditionally." >&2;}
6460   { (exit 1); exit 1; }; }
6461fi
6462
6463: ${CONFIG_STATUS=./config.status}
6464ac_clean_files_save=$ac_clean_files
6465ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6466{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6467echo "$as_me: creating $CONFIG_STATUS" >&6;}
6468cat >$CONFIG_STATUS <<_ACEOF
6469#! $SHELL
6470# Generated by $as_me.
6471# Run this file to recreate the current configuration.
6472# Compiler output produced by configure, useful for debugging
6473# configure, is in config.log if it exists.
6474
6475debug=false
6476ac_cs_recheck=false
6477ac_cs_silent=false
6478SHELL=\${CONFIG_SHELL-$SHELL}
6479_ACEOF
6480
6481cat >>$CONFIG_STATUS <<\_ACEOF
6482## --------------------- ##
6483## M4sh Initialization.  ##
6484## --------------------- ##
6485
6486# Be more Bourne compatible
6487DUALCASE=1; export DUALCASE # for MKS sh
6488if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6489  emulate sh
6490  NULLCMD=:
6491  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6492  # is contrary to our usage.  Disable this feature.
6493  alias -g '${1+"$@"}'='"$@"'
6494  setopt NO_GLOB_SUBST
6495else
6496  case `(set -o) 2>/dev/null` in
6497  *posix*) set -o posix ;;
6498esac
6499
6500fi
6501
6502
6503
6504
6505# PATH needs CR
6506# Avoid depending upon Character Ranges.
6507as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6508as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6509as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6510as_cr_digits='0123456789'
6511as_cr_alnum=$as_cr_Letters$as_cr_digits
6512
6513# The user is always right.
6514if test "${PATH_SEPARATOR+set}" != set; then
6515  echo "#! /bin/sh" >conf$$.sh
6516  echo  "exit 0"   >>conf$$.sh
6517  chmod +x conf$$.sh
6518  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6519    PATH_SEPARATOR=';'
6520  else
6521    PATH_SEPARATOR=:
6522  fi
6523  rm -f conf$$.sh
6524fi
6525
6526# Support unset when possible.
6527if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6528  as_unset=unset
6529else
6530  as_unset=false
6531fi
6532
6533
6534# IFS
6535# We need space, tab and new line, in precisely that order.  Quoting is
6536# there to prevent editors from complaining about space-tab.
6537# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6538# splitting by setting IFS to empty value.)
6539as_nl='
6540'
6541IFS=" ""	$as_nl"
6542
6543# Find who we are.  Look in the path if we contain no directory separator.
6544case $0 in
6545  *[\\/]* ) as_myself=$0 ;;
6546  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547for as_dir in $PATH
6548do
6549  IFS=$as_save_IFS
6550  test -z "$as_dir" && as_dir=.
6551  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6552done
6553IFS=$as_save_IFS
6554
6555     ;;
6556esac
6557# We did not find ourselves, most probably we were run as `sh COMMAND'
6558# in which case we are not to be found in the path.
6559if test "x$as_myself" = x; then
6560  as_myself=$0
6561fi
6562if test ! -f "$as_myself"; then
6563  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6564  { (exit 1); exit 1; }
6565fi
6566
6567# Work around bugs in pre-3.0 UWIN ksh.
6568for as_var in ENV MAIL MAILPATH
6569do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6570done
6571PS1='$ '
6572PS2='> '
6573PS4='+ '
6574
6575# NLS nuisances.
6576for as_var in \
6577  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6578  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6579  LC_TELEPHONE LC_TIME
6580do
6581  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6582    eval $as_var=C; export $as_var
6583  else
6584    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6585  fi
6586done
6587
6588# Required to use basename.
6589if expr a : '\(a\)' >/dev/null 2>&1 &&
6590   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6591  as_expr=expr
6592else
6593  as_expr=false
6594fi
6595
6596if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6597  as_basename=basename
6598else
6599  as_basename=false
6600fi
6601
6602
6603# Name of the executable.
6604as_me=`$as_basename -- "$0" ||
6605$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6606	 X"$0" : 'X\(//\)$' \| \
6607	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6608echo X/"$0" |
6609    sed '/^.*\/\([^/][^/]*\)\/*$/{
6610	    s//\1/
6611	    q
6612	  }
6613	  /^X\/\(\/\/\)$/{
6614	    s//\1/
6615	    q
6616	  }
6617	  /^X\/\(\/\).*/{
6618	    s//\1/
6619	    q
6620	  }
6621	  s/.*/./; q'`
6622
6623# CDPATH.
6624$as_unset CDPATH
6625
6626
6627
6628  as_lineno_1=$LINENO
6629  as_lineno_2=$LINENO
6630  test "x$as_lineno_1" != "x$as_lineno_2" &&
6631  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6632
6633  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6634  # uniformly replaced by the line number.  The first 'sed' inserts a
6635  # line-number line after each line using $LINENO; the second 'sed'
6636  # does the real work.  The second script uses 'N' to pair each
6637  # line-number line with the line containing $LINENO, and appends
6638  # trailing '-' during substitution so that $LINENO is not a special
6639  # case at line end.
6640  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6641  # scripts with optimization help from Paolo Bonzini.  Blame Lee
6642  # E. McMahon (1931-1989) for sed's syntax.  :-)
6643  sed -n '
6644    p
6645    /[$]LINENO/=
6646  ' <$as_myself |
6647    sed '
6648      s/[$]LINENO.*/&-/
6649      t lineno
6650      b
6651      :lineno
6652      N
6653      :loop
6654      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6655      t loop
6656      s/-\n.*//
6657    ' >$as_me.lineno &&
6658  chmod +x "$as_me.lineno" ||
6659    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6660   { (exit 1); exit 1; }; }
6661
6662  # Don't try to exec as it changes $[0], causing all sort of problems
6663  # (the dirname of $[0] is not the place where we might find the
6664  # original and so on.  Autoconf is especially sensitive to this).
6665  . "./$as_me.lineno"
6666  # Exit status is that of the last command.
6667  exit
6668}
6669
6670
6671if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6672  as_dirname=dirname
6673else
6674  as_dirname=false
6675fi
6676
6677ECHO_C= ECHO_N= ECHO_T=
6678case `echo -n x` in
6679-n*)
6680  case `echo 'x\c'` in
6681  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
6682  *)   ECHO_C='\c';;
6683  esac;;
6684*)
6685  ECHO_N='-n';;
6686esac
6687
6688if expr a : '\(a\)' >/dev/null 2>&1 &&
6689   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6690  as_expr=expr
6691else
6692  as_expr=false
6693fi
6694
6695rm -f conf$$ conf$$.exe conf$$.file
6696if test -d conf$$.dir; then
6697  rm -f conf$$.dir/conf$$.file
6698else
6699  rm -f conf$$.dir
6700  mkdir conf$$.dir
6701fi
6702echo >conf$$.file
6703if ln -s conf$$.file conf$$ 2>/dev/null; then
6704  as_ln_s='ln -s'
6705  # ... but there are two gotchas:
6706  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6707  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6708  # In both cases, we have to default to `cp -p'.
6709  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6710    as_ln_s='cp -p'
6711elif ln conf$$.file conf$$ 2>/dev/null; then
6712  as_ln_s=ln
6713else
6714  as_ln_s='cp -p'
6715fi
6716rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6717rmdir conf$$.dir 2>/dev/null
6718
6719if mkdir -p . 2>/dev/null; then
6720  as_mkdir_p=:
6721else
6722  test -d ./-p && rmdir ./-p
6723  as_mkdir_p=false
6724fi
6725
6726if test -x / >/dev/null 2>&1; then
6727  as_test_x='test -x'
6728else
6729  if ls -dL / >/dev/null 2>&1; then
6730    as_ls_L_option=L
6731  else
6732    as_ls_L_option=
6733  fi
6734  as_test_x='
6735    eval sh -c '\''
6736      if test -d "$1"; then
6737        test -d "$1/.";
6738      else
6739	case $1 in
6740        -*)set "./$1";;
6741	esac;
6742	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6743	???[sx]*):;;*)false;;esac;fi
6744    '\'' sh
6745  '
6746fi
6747as_executable_p=$as_test_x
6748
6749# Sed expression to map a string onto a valid CPP name.
6750as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6751
6752# Sed expression to map a string onto a valid variable name.
6753as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6754
6755
6756exec 6>&1
6757
6758# Save the log message, to keep $[0] and so on meaningful, and to
6759# report actual input values of CONFIG_FILES etc. instead of their
6760# values after options handling.
6761ac_log="
6762This file was extended by $as_me, which was
6763generated by GNU Autoconf 2.61.  Invocation command line was
6764
6765  CONFIG_FILES    = $CONFIG_FILES
6766  CONFIG_HEADERS  = $CONFIG_HEADERS
6767  CONFIG_LINKS    = $CONFIG_LINKS
6768  CONFIG_COMMANDS = $CONFIG_COMMANDS
6769  $ $0 $@
6770
6771on `(hostname || uname -n) 2>/dev/null | sed 1q`
6772"
6773
6774_ACEOF
6775
6776cat >>$CONFIG_STATUS <<_ACEOF
6777# Files that config.status was made for.
6778config_files="$ac_config_files"
6779config_headers="$ac_config_headers"
6780config_commands="$ac_config_commands"
6781
6782_ACEOF
6783
6784cat >>$CONFIG_STATUS <<\_ACEOF
6785ac_cs_usage="\
6786\`$as_me' instantiates files from templates according to the
6787current configuration.
6788
6789Usage: $0 [OPTIONS] [FILE]...
6790
6791  -h, --help       print this help, then exit
6792  -V, --version    print version number and configuration settings, then exit
6793  -q, --quiet      do not print progress messages
6794  -d, --debug      don't remove temporary files
6795      --recheck    update $as_me by reconfiguring in the same conditions
6796  --file=FILE[:TEMPLATE]
6797		   instantiate the configuration file FILE
6798  --header=FILE[:TEMPLATE]
6799		   instantiate the configuration header FILE
6800
6801Configuration files:
6802$config_files
6803
6804Configuration headers:
6805$config_headers
6806
6807Configuration commands:
6808$config_commands
6809
6810Report bugs to <bug-autoconf@gnu.org>."
6811
6812_ACEOF
6813cat >>$CONFIG_STATUS <<_ACEOF
6814ac_cs_version="\\
6815config.status
6816configured by $0, generated by GNU Autoconf 2.61,
6817  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6818
6819Copyright (C) 2006 Free Software Foundation, Inc.
6820This config.status script is free software; the Free Software Foundation
6821gives unlimited permission to copy, distribute and modify it."
6822
6823ac_pwd='$ac_pwd'
6824srcdir='$srcdir'
6825INSTALL='$INSTALL'
6826_ACEOF
6827
6828cat >>$CONFIG_STATUS <<\_ACEOF
6829# If no file are specified by the user, then we need to provide default
6830# value.  By we need to know if files were specified by the user.
6831ac_need_defaults=:
6832while test $# != 0
6833do
6834  case $1 in
6835  --*=*)
6836    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6837    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6838    ac_shift=:
6839    ;;
6840  *)
6841    ac_option=$1
6842    ac_optarg=$2
6843    ac_shift=shift
6844    ;;
6845  esac
6846
6847  case $ac_option in
6848  # Handling of the options.
6849  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6850    ac_cs_recheck=: ;;
6851  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6852    echo "$ac_cs_version"; exit ;;
6853  --debug | --debu | --deb | --de | --d | -d )
6854    debug=: ;;
6855  --file | --fil | --fi | --f )
6856    $ac_shift
6857    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6858    ac_need_defaults=false;;
6859  --header | --heade | --head | --hea )
6860    $ac_shift
6861    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6862    ac_need_defaults=false;;
6863  --he | --h)
6864    # Conflict between --help and --header
6865    { echo "$as_me: error: ambiguous option: $1
6866Try \`$0 --help' for more information." >&2
6867   { (exit 1); exit 1; }; };;
6868  --help | --hel | -h )
6869    echo "$ac_cs_usage"; exit ;;
6870  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6871  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6872    ac_cs_silent=: ;;
6873
6874  # This is an error.
6875  -*) { echo "$as_me: error: unrecognized option: $1
6876Try \`$0 --help' for more information." >&2
6877   { (exit 1); exit 1; }; } ;;
6878
6879  *) ac_config_targets="$ac_config_targets $1"
6880     ac_need_defaults=false ;;
6881
6882  esac
6883  shift
6884done
6885
6886ac_configure_extra_args=
6887
6888if $ac_cs_silent; then
6889  exec 6>/dev/null
6890  ac_configure_extra_args="$ac_configure_extra_args --silent"
6891fi
6892
6893_ACEOF
6894cat >>$CONFIG_STATUS <<_ACEOF
6895if \$ac_cs_recheck; then
6896  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6897  CONFIG_SHELL=$SHELL
6898  export CONFIG_SHELL
6899  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6900fi
6901
6902_ACEOF
6903cat >>$CONFIG_STATUS <<\_ACEOF
6904exec 5>>config.log
6905{
6906  echo
6907  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6908## Running $as_me. ##
6909_ASBOX
6910  echo "$ac_log"
6911} >&5
6912
6913_ACEOF
6914cat >>$CONFIG_STATUS <<_ACEOF
6915#
6916# INIT-COMMANDS
6917#
6918AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6919
6920_ACEOF
6921
6922cat >>$CONFIG_STATUS <<\_ACEOF
6923
6924# Handling of arguments.
6925for ac_config_target in $ac_config_targets
6926do
6927  case $ac_config_target in
6928    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6929    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6930    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6931
6932  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6933echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6934   { (exit 1); exit 1; }; };;
6935  esac
6936done
6937
6938
6939# If the user did not use the arguments to specify the items to instantiate,
6940# then the envvar interface is used.  Set only those that are not.
6941# We use the long form for the default assignment because of an extremely
6942# bizarre bug on SunOS 4.1.3.
6943if $ac_need_defaults; then
6944  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6945  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6946  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6947fi
6948
6949# Have a temporary directory for convenience.  Make it in the build tree
6950# simply because there is no reason against having it here, and in addition,
6951# creating and moving files from /tmp can sometimes cause problems.
6952# Hook for its removal unless debugging.
6953# Note that there is a small window in which the directory will not be cleaned:
6954# after its creation but before its name has been assigned to `$tmp'.
6955$debug ||
6956{
6957  tmp=
6958  trap 'exit_status=$?
6959  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6960' 0
6961  trap '{ (exit 1); exit 1; }' 1 2 13 15
6962}
6963# Create a (secure) tmp directory for tmp files.
6964
6965{
6966  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6967  test -n "$tmp" && test -d "$tmp"
6968}  ||
6969{
6970  tmp=./conf$$-$RANDOM
6971  (umask 077 && mkdir "$tmp")
6972} ||
6973{
6974   echo "$me: cannot create a temporary directory in ." >&2
6975   { (exit 1); exit 1; }
6976}
6977
6978#
6979# Set up the sed scripts for CONFIG_FILES section.
6980#
6981
6982# No need to generate the scripts if there are no CONFIG_FILES.
6983# This happens for instance when ./config.status config.h
6984if test -n "$CONFIG_FILES"; then
6985
6986_ACEOF
6987
6988
6989
6990ac_delim='%!_!# '
6991for ac_last_try in false false false false false :; do
6992  cat >conf$$subs.sed <<_ACEOF
6993SHELL!$SHELL$ac_delim
6994PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6995PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6996PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6997PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6998PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6999PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7000exec_prefix!$exec_prefix$ac_delim
7001prefix!$prefix$ac_delim
7002program_transform_name!$program_transform_name$ac_delim
7003bindir!$bindir$ac_delim
7004sbindir!$sbindir$ac_delim
7005libexecdir!$libexecdir$ac_delim
7006datarootdir!$datarootdir$ac_delim
7007datadir!$datadir$ac_delim
7008sysconfdir!$sysconfdir$ac_delim
7009sharedstatedir!$sharedstatedir$ac_delim
7010localstatedir!$localstatedir$ac_delim
7011includedir!$includedir$ac_delim
7012oldincludedir!$oldincludedir$ac_delim
7013docdir!$docdir$ac_delim
7014infodir!$infodir$ac_delim
7015htmldir!$htmldir$ac_delim
7016dvidir!$dvidir$ac_delim
7017pdfdir!$pdfdir$ac_delim
7018psdir!$psdir$ac_delim
7019libdir!$libdir$ac_delim
7020localedir!$localedir$ac_delim
7021mandir!$mandir$ac_delim
7022DEFS!$DEFS$ac_delim
7023ECHO_C!$ECHO_C$ac_delim
7024ECHO_N!$ECHO_N$ac_delim
7025ECHO_T!$ECHO_T$ac_delim
7026LIBS!$LIBS$ac_delim
7027build_alias!$build_alias$ac_delim
7028host_alias!$host_alias$ac_delim
7029target_alias!$target_alias$ac_delim
7030INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7031INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7032INSTALL_DATA!$INSTALL_DATA$ac_delim
7033CYGPATH_W!$CYGPATH_W$ac_delim
7034PACKAGE!$PACKAGE$ac_delim
7035VERSION!$VERSION$ac_delim
7036ACLOCAL!$ACLOCAL$ac_delim
7037AUTOCONF!$AUTOCONF$ac_delim
7038AUTOMAKE!$AUTOMAKE$ac_delim
7039AUTOHEADER!$AUTOHEADER$ac_delim
7040MAKEINFO!$MAKEINFO$ac_delim
7041install_sh!$install_sh$ac_delim
7042STRIP!$STRIP$ac_delim
7043INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
7044mkdir_p!$mkdir_p$ac_delim
7045AWK!$AWK$ac_delim
7046SET_MAKE!$SET_MAKE$ac_delim
7047am__leading_dot!$am__leading_dot$ac_delim
7048AMTAR!$AMTAR$ac_delim
7049am__tar!$am__tar$ac_delim
7050am__untar!$am__untar$ac_delim
7051CC!$CC$ac_delim
7052CFLAGS!$CFLAGS$ac_delim
7053LDFLAGS!$LDFLAGS$ac_delim
7054CPPFLAGS!$CPPFLAGS$ac_delim
7055ac_ct_CC!$ac_ct_CC$ac_delim
7056EXEEXT!$EXEEXT$ac_delim
7057OBJEXT!$OBJEXT$ac_delim
7058DEPDIR!$DEPDIR$ac_delim
7059am__include!$am__include$ac_delim
7060am__quote!$am__quote$ac_delim
7061AMDEP_TRUE!$AMDEP_TRUE$ac_delim
7062AMDEP_FALSE!$AMDEP_FALSE$ac_delim
7063AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
7064CCDEPMODE!$CCDEPMODE$ac_delim
7065am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
7066am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
7067RANLIB!$RANLIB$ac_delim
7068LN_S!$LN_S$ac_delim
7069CPP!$CPP$ac_delim
7070GREP!$GREP$ac_delim
7071EGREP!$EGREP$ac_delim
7072XTRALIBS_CTRL!$XTRALIBS_CTRL$ac_delim
7073XTRALIBS_MGR!$XTRALIBS_MGR$ac_delim
7074XTRA_PROG!$XTRA_PROG$ac_delim
7075kernel_headers!$kernel_headers$ac_delim
7076LIBOBJS!$LIBOBJS$ac_delim
7077LTLIBOBJS!$LTLIBOBJS$ac_delim
7078_ACEOF
7079
7080  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
7081    break
7082  elif $ac_last_try; then
7083    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7084echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7085   { (exit 1); exit 1; }; }
7086  else
7087    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7088  fi
7089done
7090
7091ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7092if test -n "$ac_eof"; then
7093  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7094  ac_eof=`expr $ac_eof + 1`
7095fi
7096
7097cat >>$CONFIG_STATUS <<_ACEOF
7098cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7099/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7100_ACEOF
7101sed '
7102s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7103s/^/s,@/; s/!/@,|#_!!_#|/
7104:n
7105t n
7106s/'"$ac_delim"'$/,g/; t
7107s/$/\\/; p
7108N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7109' >>$CONFIG_STATUS <conf$$subs.sed
7110rm -f conf$$subs.sed
7111cat >>$CONFIG_STATUS <<_ACEOF
7112:end
7113s/|#_!!_#|//g
7114CEOF$ac_eof
7115_ACEOF
7116
7117
7118# VPATH may cause trouble with some makes, so we remove $(srcdir),
7119# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7120# trailing colons and then remove the whole line if VPATH becomes empty
7121# (actually we leave an empty line to preserve line numbers).
7122if test "x$srcdir" = x.; then
7123  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
7124s/:*\$(srcdir):*/:/
7125s/:*\${srcdir}:*/:/
7126s/:*@srcdir@:*/:/
7127s/^\([^=]*=[	 ]*\):*/\1/
7128s/:*$//
7129s/^[^=]*=[	 ]*$//
7130}'
7131fi
7132
7133cat >>$CONFIG_STATUS <<\_ACEOF
7134fi # test -n "$CONFIG_FILES"
7135
7136
7137for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
7138do
7139  case $ac_tag in
7140  :[FHLC]) ac_mode=$ac_tag; continue;;
7141  esac
7142  case $ac_mode$ac_tag in
7143  :[FHL]*:*);;
7144  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7145echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7146   { (exit 1); exit 1; }; };;
7147  :[FH]-) ac_tag=-:-;;
7148  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7149  esac
7150  ac_save_IFS=$IFS
7151  IFS=:
7152  set x $ac_tag
7153  IFS=$ac_save_IFS
7154  shift
7155  ac_file=$1
7156  shift
7157
7158  case $ac_mode in
7159  :L) ac_source=$1;;
7160  :[FH])
7161    ac_file_inputs=
7162    for ac_f
7163    do
7164      case $ac_f in
7165      -) ac_f="$tmp/stdin";;
7166      *) # Look for the file first in the build tree, then in the source tree
7167	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
7168	 # because $ac_f cannot contain `:'.
7169	 test -f "$ac_f" ||
7170	   case $ac_f in
7171	   [\\/$]*) false;;
7172	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7173	   esac ||
7174	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7175echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7176   { (exit 1); exit 1; }; };;
7177      esac
7178      ac_file_inputs="$ac_file_inputs $ac_f"
7179    done
7180
7181    # Let's still pretend it is `configure' which instantiates (i.e., don't
7182    # use $as_me), people would be surprised to read:
7183    #    /* config.h.  Generated by config.status.  */
7184    configure_input="Generated from "`IFS=:
7185	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7186    if test x"$ac_file" != x-; then
7187      configure_input="$ac_file.  $configure_input"
7188      { echo "$as_me:$LINENO: creating $ac_file" >&5
7189echo "$as_me: creating $ac_file" >&6;}
7190    fi
7191
7192    case $ac_tag in
7193    *:-:* | *:-) cat >"$tmp/stdin";;
7194    esac
7195    ;;
7196  esac
7197
7198  ac_dir=`$as_dirname -- "$ac_file" ||
7199$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7200	 X"$ac_file" : 'X\(//\)[^/]' \| \
7201	 X"$ac_file" : 'X\(//\)$' \| \
7202	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7203echo X"$ac_file" |
7204    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7205	    s//\1/
7206	    q
7207	  }
7208	  /^X\(\/\/\)[^/].*/{
7209	    s//\1/
7210	    q
7211	  }
7212	  /^X\(\/\/\)$/{
7213	    s//\1/
7214	    q
7215	  }
7216	  /^X\(\/\).*/{
7217	    s//\1/
7218	    q
7219	  }
7220	  s/.*/./; q'`
7221  { as_dir="$ac_dir"
7222  case $as_dir in #(
7223  -*) as_dir=./$as_dir;;
7224  esac
7225  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7226    as_dirs=
7227    while :; do
7228      case $as_dir in #(
7229      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7230      *) as_qdir=$as_dir;;
7231      esac
7232      as_dirs="'$as_qdir' $as_dirs"
7233      as_dir=`$as_dirname -- "$as_dir" ||
7234$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7235	 X"$as_dir" : 'X\(//\)[^/]' \| \
7236	 X"$as_dir" : 'X\(//\)$' \| \
7237	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7238echo X"$as_dir" |
7239    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7240	    s//\1/
7241	    q
7242	  }
7243	  /^X\(\/\/\)[^/].*/{
7244	    s//\1/
7245	    q
7246	  }
7247	  /^X\(\/\/\)$/{
7248	    s//\1/
7249	    q
7250	  }
7251	  /^X\(\/\).*/{
7252	    s//\1/
7253	    q
7254	  }
7255	  s/.*/./; q'`
7256      test -d "$as_dir" && break
7257    done
7258    test -z "$as_dirs" || eval "mkdir $as_dirs"
7259  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7260echo "$as_me: error: cannot create directory $as_dir" >&2;}
7261   { (exit 1); exit 1; }; }; }
7262  ac_builddir=.
7263
7264case "$ac_dir" in
7265.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7266*)
7267  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7268  # A ".." for each directory in $ac_dir_suffix.
7269  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7270  case $ac_top_builddir_sub in
7271  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7272  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7273  esac ;;
7274esac
7275ac_abs_top_builddir=$ac_pwd
7276ac_abs_builddir=$ac_pwd$ac_dir_suffix
7277# for backward compatibility:
7278ac_top_builddir=$ac_top_build_prefix
7279
7280case $srcdir in
7281  .)  # We are building in place.
7282    ac_srcdir=.
7283    ac_top_srcdir=$ac_top_builddir_sub
7284    ac_abs_top_srcdir=$ac_pwd ;;
7285  [\\/]* | ?:[\\/]* )  # Absolute name.
7286    ac_srcdir=$srcdir$ac_dir_suffix;
7287    ac_top_srcdir=$srcdir
7288    ac_abs_top_srcdir=$srcdir ;;
7289  *) # Relative name.
7290    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7291    ac_top_srcdir=$ac_top_build_prefix$srcdir
7292    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7293esac
7294ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7295
7296
7297  case $ac_mode in
7298  :F)
7299  #
7300  # CONFIG_FILE
7301  #
7302
7303  case $INSTALL in
7304  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7305  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7306  esac
7307_ACEOF
7308
7309cat >>$CONFIG_STATUS <<\_ACEOF
7310# If the template does not know about datarootdir, expand it.
7311# FIXME: This hack should be removed a few years after 2.60.
7312ac_datarootdir_hack=; ac_datarootdir_seen=
7313
7314case `sed -n '/datarootdir/ {
7315  p
7316  q
7317}
7318/@datadir@/p
7319/@docdir@/p
7320/@infodir@/p
7321/@localedir@/p
7322/@mandir@/p
7323' $ac_file_inputs` in
7324*datarootdir*) ac_datarootdir_seen=yes;;
7325*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7326  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7327echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7328_ACEOF
7329cat >>$CONFIG_STATUS <<_ACEOF
7330  ac_datarootdir_hack='
7331  s&@datadir@&$datadir&g
7332  s&@docdir@&$docdir&g
7333  s&@infodir@&$infodir&g
7334  s&@localedir@&$localedir&g
7335  s&@mandir@&$mandir&g
7336    s&\\\${datarootdir}&$datarootdir&g' ;;
7337esac
7338_ACEOF
7339
7340# Neutralize VPATH when `$srcdir' = `.'.
7341# Shell code in configure.ac might set extrasub.
7342# FIXME: do we really want to maintain this feature?
7343cat >>$CONFIG_STATUS <<_ACEOF
7344  sed "$ac_vpsub
7345$extrasub
7346_ACEOF
7347cat >>$CONFIG_STATUS <<\_ACEOF
7348:t
7349/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7350s&@configure_input@&$configure_input&;t t
7351s&@top_builddir@&$ac_top_builddir_sub&;t t
7352s&@srcdir@&$ac_srcdir&;t t
7353s&@abs_srcdir@&$ac_abs_srcdir&;t t
7354s&@top_srcdir@&$ac_top_srcdir&;t t
7355s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7356s&@builddir@&$ac_builddir&;t t
7357s&@abs_builddir@&$ac_abs_builddir&;t t
7358s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7359s&@INSTALL@&$ac_INSTALL&;t t
7360$ac_datarootdir_hack
7361" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7362
7363test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7364  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7365  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7366  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7367which seems to be undefined.  Please make sure it is defined." >&5
7368echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7369which seems to be undefined.  Please make sure it is defined." >&2;}
7370
7371  rm -f "$tmp/stdin"
7372  case $ac_file in
7373  -) cat "$tmp/out"; rm -f "$tmp/out";;
7374  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7375  esac
7376 ;;
7377  :H)
7378  #
7379  # CONFIG_HEADER
7380  #
7381_ACEOF
7382
7383# Transform confdefs.h into a sed script `conftest.defines', that
7384# substitutes the proper values into config.h.in to produce config.h.
7385rm -f conftest.defines conftest.tail
7386# First, append a space to every undef/define line, to ease matching.
7387echo 's/$/ /' >conftest.defines
7388# Then, protect against being on the right side of a sed subst, or in
7389# an unquoted here document, in config.status.  If some macros were
7390# called several times there might be several #defines for the same
7391# symbol, which is useless.  But do not sort them, since the last
7392# AC_DEFINE must be honored.
7393ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7394# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7395# NAME is the cpp macro being defined, VALUE is the value it is being given.
7396# PARAMS is the parameter list in the macro definition--in most cases, it's
7397# just an empty string.
7398ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
7399ac_dB='\\)[	 (].*,\\1define\\2'
7400ac_dC=' '
7401ac_dD=' ,'
7402
7403uniq confdefs.h |
7404  sed -n '
7405	t rset
7406	:rset
7407	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
7408	t ok
7409	d
7410	:ok
7411	s/[\\&,]/\\&/g
7412	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7413	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7414  ' >>conftest.defines
7415
7416# Remove the space that was appended to ease matching.
7417# Then replace #undef with comments.  This is necessary, for
7418# example, in the case of _POSIX_SOURCE, which is predefined and required
7419# on some systems where configure will not decide to define it.
7420# (The regexp can be short, since the line contains either #define or #undef.)
7421echo 's/ $//
7422s,^[	 #]*u.*,/* & */,' >>conftest.defines
7423
7424# Break up conftest.defines:
7425ac_max_sed_lines=50
7426
7427# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7428# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7429# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7430# et cetera.
7431ac_in='$ac_file_inputs'
7432ac_out='"$tmp/out1"'
7433ac_nxt='"$tmp/out2"'
7434
7435while :
7436do
7437  # Write a here document:
7438    cat >>$CONFIG_STATUS <<_ACEOF
7439    # First, check the format of the line:
7440    cat >"\$tmp/defines.sed" <<\\CEOF
7441/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
7442/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
7443b
7444:def
7445_ACEOF
7446  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7447  echo 'CEOF
7448    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7449  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7450  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7451  grep . conftest.tail >/dev/null || break
7452  rm -f conftest.defines
7453  mv conftest.tail conftest.defines
7454done
7455rm -f conftest.defines conftest.tail
7456
7457echo "ac_result=$ac_in" >>$CONFIG_STATUS
7458cat >>$CONFIG_STATUS <<\_ACEOF
7459  if test x"$ac_file" != x-; then
7460    echo "/* $configure_input  */" >"$tmp/config.h"
7461    cat "$ac_result" >>"$tmp/config.h"
7462    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7463      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7464echo "$as_me: $ac_file is unchanged" >&6;}
7465    else
7466      rm -f $ac_file
7467      mv "$tmp/config.h" $ac_file
7468    fi
7469  else
7470    echo "/* $configure_input  */"
7471    cat "$ac_result"
7472  fi
7473  rm -f "$tmp/out12"
7474# Compute $ac_file's index in $config_headers.
7475_am_stamp_count=1
7476for _am_header in $config_headers :; do
7477  case $_am_header in
7478    $ac_file | $ac_file:* )
7479      break ;;
7480    * )
7481      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7482  esac
7483done
7484echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
7485$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7486	 X$ac_file : 'X\(//\)[^/]' \| \
7487	 X$ac_file : 'X\(//\)$' \| \
7488	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
7489echo X$ac_file |
7490    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7491	    s//\1/
7492	    q
7493	  }
7494	  /^X\(\/\/\)[^/].*/{
7495	    s//\1/
7496	    q
7497	  }
7498	  /^X\(\/\/\)$/{
7499	    s//\1/
7500	    q
7501	  }
7502	  /^X\(\/\).*/{
7503	    s//\1/
7504	    q
7505	  }
7506	  s/.*/./; q'`/stamp-h$_am_stamp_count
7507 ;;
7508
7509  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
7510echo "$as_me: executing $ac_file commands" >&6;}
7511 ;;
7512  esac
7513
7514
7515  case $ac_file$ac_mode in
7516    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7517  # Strip MF so we end up with the name of the file.
7518  mf=`echo "$mf" | sed -e 's/:.*$//'`
7519  # Check whether this is an Automake generated Makefile or not.
7520  # We used to match only the files named `Makefile.in', but
7521  # some people rename them; so instead we look at the file content.
7522  # Grep'ing the first line is not enough: some people post-process
7523  # each Makefile.in and add a new line on top of each file to say so.
7524  # So let's grep whole file.
7525  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7526    dirpart=`$as_dirname -- "$mf" ||
7527$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7528	 X"$mf" : 'X\(//\)[^/]' \| \
7529	 X"$mf" : 'X\(//\)$' \| \
7530	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7531echo X"$mf" |
7532    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7533	    s//\1/
7534	    q
7535	  }
7536	  /^X\(\/\/\)[^/].*/{
7537	    s//\1/
7538	    q
7539	  }
7540	  /^X\(\/\/\)$/{
7541	    s//\1/
7542	    q
7543	  }
7544	  /^X\(\/\).*/{
7545	    s//\1/
7546	    q
7547	  }
7548	  s/.*/./; q'`
7549  else
7550    continue
7551  fi
7552  # Extract the definition of DEPDIR, am__include, and am__quote
7553  # from the Makefile without running `make'.
7554  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7555  test -z "$DEPDIR" && continue
7556  am__include=`sed -n 's/^am__include = //p' < "$mf"`
7557  test -z "am__include" && continue
7558  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7559  # When using ansi2knr, U may be empty or an underscore; expand it
7560  U=`sed -n 's/^U = //p' < "$mf"`
7561  # Find all dependency output files, they are included files with
7562  # $(DEPDIR) in their names.  We invoke sed twice because it is the
7563  # simplest approach to changing $(DEPDIR) to its actual value in the
7564  # expansion.
7565  for file in `sed -n "
7566    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7567       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7568    # Make sure the directory exists.
7569    test -f "$dirpart/$file" && continue
7570    fdir=`$as_dirname -- "$file" ||
7571$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7572	 X"$file" : 'X\(//\)[^/]' \| \
7573	 X"$file" : 'X\(//\)$' \| \
7574	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7575echo X"$file" |
7576    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7577	    s//\1/
7578	    q
7579	  }
7580	  /^X\(\/\/\)[^/].*/{
7581	    s//\1/
7582	    q
7583	  }
7584	  /^X\(\/\/\)$/{
7585	    s//\1/
7586	    q
7587	  }
7588	  /^X\(\/\).*/{
7589	    s//\1/
7590	    q
7591	  }
7592	  s/.*/./; q'`
7593    { as_dir=$dirpart/$fdir
7594  case $as_dir in #(
7595  -*) as_dir=./$as_dir;;
7596  esac
7597  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7598    as_dirs=
7599    while :; do
7600      case $as_dir in #(
7601      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7602      *) as_qdir=$as_dir;;
7603      esac
7604      as_dirs="'$as_qdir' $as_dirs"
7605      as_dir=`$as_dirname -- "$as_dir" ||
7606$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7607	 X"$as_dir" : 'X\(//\)[^/]' \| \
7608	 X"$as_dir" : 'X\(//\)$' \| \
7609	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7610echo X"$as_dir" |
7611    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7612	    s//\1/
7613	    q
7614	  }
7615	  /^X\(\/\/\)[^/].*/{
7616	    s//\1/
7617	    q
7618	  }
7619	  /^X\(\/\/\)$/{
7620	    s//\1/
7621	    q
7622	  }
7623	  /^X\(\/\).*/{
7624	    s//\1/
7625	    q
7626	  }
7627	  s/.*/./; q'`
7628      test -d "$as_dir" && break
7629    done
7630    test -z "$as_dirs" || eval "mkdir $as_dirs"
7631  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7632echo "$as_me: error: cannot create directory $as_dir" >&2;}
7633   { (exit 1); exit 1; }; }; }
7634    # echo "creating $dirpart/$file"
7635    echo '# dummy' > "$dirpart/$file"
7636  done
7637done
7638 ;;
7639
7640  esac
7641done # for ac_tag
7642
7643
7644{ (exit 0); exit 0; }
7645_ACEOF
7646chmod +x $CONFIG_STATUS
7647ac_clean_files=$ac_clean_files_save
7648
7649
7650# configure is writing to config.log, and then calls config.status.
7651# config.status does its own redirection, appending to config.log.
7652# Unfortunately, on DOS this fails, as config.log is still kept open
7653# by configure, so config.status won't be able to write to it; its
7654# output is simply discarded.  So we exec the FD to /dev/null,
7655# effectively closing config.log, so it can be properly (re)opened and
7656# appended to by config.status.  When coming back to configure, we
7657# need to make the FD available again.
7658if test "$no_create" != yes; then
7659  ac_cs_success=:
7660  ac_config_status_args=
7661  test "$silent" = yes &&
7662    ac_config_status_args="$ac_config_status_args --quiet"
7663  exec 5>/dev/null
7664  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7665  exec 5>>config.log
7666  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7667  # would make configure fail if this is the last instruction.
7668  $ac_cs_success || { (exit 1); exit 1; }
7669fi
7670
7671
7672