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