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