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