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