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