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