source: vis_dev/vis-2.1/configure @ 11

Last change on this file since 11 was 11, checked in by cecile, 13 years ago

Add vis

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