root/foundation-apps/grosview-maxx/configure

Revision 2, 181.5 KB (checked in by emasson, 3 years ago)

initial import for the community edition

Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68         X"$0" : 'X\(//\)$' \| \
69         X"$0" : 'X\(/\)$' \| \
70         .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73          /^X\/\(\/\/\)$/{ s//\1/; q; }
74          /^X\/\(\/\).*/{ s//\1/; q; }
75          s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136         case $as_dir in
137         /*)
138           if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146             CONFIG_SHELL=$as_dir/$as_base
147             export CONFIG_SHELL
148             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149           fi;;
150         esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='      ' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS="   $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="xosview.1"
275ac_default_prefix=/usr/X11
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290#  include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295#  include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306#  include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS TOP_SRCDIR build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP x_includes x_libraries INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK RANLIB ac_ct_RANLIB AUTODEPRULE AUTODEPRULE_SUBDIR AUTODEPEND CPP_DEP CXXCPP EGREP LINUX_SMP BTRYMETER EXTRA_CXXFLAGS EXTRALIBS ELF_LINK_FLAGS INSTALL_ARGS MEMSTAT LVERSION USE_MOD_VERSIONS host_dir NetMeter_Default_Setting LIBOBJS LTLIBOBJS'
314ac_subst_files=''
315
316# Initialize some variables set by options.
317ac_init_help=
318ac_init_version=false
319# The variables have the same names as the options, with
320# dashes changed to underlines.
321cache_file=/dev/null
322exec_prefix=NONE
323no_create=
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
332verbose=
333x_includes=NONE
334x_libraries=NONE
335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
354ac_prev=
355for ac_option
356do
357  # If the previous option needs an argument, assign it.
358  if test -n "$ac_prev"; then
359    eval "$ac_prev=\$ac_option"
360    ac_prev=
361    continue
362  fi
363
364  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366  # Accept the important Cygnus configure options, so we can diagnose typos.
367
368  case $ac_option in
369
370  -bindir | --bindir | --bindi | --bind | --bin | --bi)
371    ac_prev=bindir ;;
372  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373    bindir=$ac_optarg ;;
374
375  -build | --build | --buil | --bui | --bu)
376    ac_prev=build_alias ;;
377  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378    build_alias=$ac_optarg ;;
379
380  -cache-file | --cache-file | --cache-fil | --cache-fi \
381  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382    ac_prev=cache_file ;;
383  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385    cache_file=$ac_optarg ;;
386
387  --config-cache | -C)
388    cache_file=config.cache ;;
389
390  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391    ac_prev=datadir ;;
392  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393  | --da=*)
394    datadir=$ac_optarg ;;
395
396  -disable-* | --disable-*)
397    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398    # Reject names that are not valid shell variable names.
399    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401   { (exit 1); exit 1; }; }
402    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403    eval "enable_$ac_feature=no" ;;
404
405  -enable-* | --enable-*)
406    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407    # Reject names that are not valid shell variable names.
408    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410   { (exit 1); exit 1; }; }
411    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412    case $ac_option in
413      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414      *) ac_optarg=yes ;;
415    esac
416    eval "enable_$ac_feature='$ac_optarg'" ;;
417
418  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420  | --exec | --exe | --ex)
421    ac_prev=exec_prefix ;;
422  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424  | --exec=* | --exe=* | --ex=*)
425    exec_prefix=$ac_optarg ;;
426
427  -gas | --gas | --ga | --g)
428    # Obsolete; use --with-gas.
429    with_gas=yes ;;
430
431  -help | --help | --hel | --he | -h)
432    ac_init_help=long ;;
433  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434    ac_init_help=recursive ;;
435  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436    ac_init_help=short ;;
437
438  -host | --host | --hos | --ho)
439    ac_prev=host_alias ;;
440  -host=* | --host=* | --hos=* | --ho=*)
441    host_alias=$ac_optarg ;;
442
443  -includedir | --includedir | --includedi | --included | --include \
444  | --includ | --inclu | --incl | --inc)
445    ac_prev=includedir ;;
446  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447  | --includ=* | --inclu=* | --incl=* | --inc=*)
448    includedir=$ac_optarg ;;
449
450  -infodir | --infodir | --infodi | --infod | --info | --inf)
451    ac_prev=infodir ;;
452  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453    infodir=$ac_optarg ;;
454
455  -libdir | --libdir | --libdi | --libd)
456    ac_prev=libdir ;;
457  -libdir=* | --libdir=* | --libdi=* | --libd=*)
458    libdir=$ac_optarg ;;
459
460  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461  | --libexe | --libex | --libe)
462    ac_prev=libexecdir ;;
463  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464  | --libexe=* | --libex=* | --libe=*)
465    libexecdir=$ac_optarg ;;
466
467  -localstatedir | --localstatedir | --localstatedi | --localstated \
468  | --localstate | --localstat | --localsta | --localst \
469  | --locals | --local | --loca | --loc | --lo)
470    ac_prev=localstatedir ;;
471  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474    localstatedir=$ac_optarg ;;
475
476  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477    ac_prev=mandir ;;
478  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479    mandir=$ac_optarg ;;
480
481  -nfp | --nfp | --nf)
482    # Obsolete; use --without-fp.
483    with_fp=no ;;
484
485  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486  | --no-cr | --no-c | -n)
487    no_create=yes ;;
488
489  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491    no_recursion=yes ;;
492
493  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495  | --oldin | --oldi | --old | --ol | --o)
496    ac_prev=oldincludedir ;;
497  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500    oldincludedir=$ac_optarg ;;
501
502  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503    ac_prev=prefix ;;
504  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505    prefix=$ac_optarg ;;
506
507  -program-prefix | --program-prefix | --program-prefi | --program-pref \
508  | --program-pre | --program-pr | --program-p)
509    ac_prev=program_prefix ;;
510  -program-prefix=* | --program-prefix=* | --program-prefi=* \
511  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512    program_prefix=$ac_optarg ;;
513
514  -program-suffix | --program-suffix | --program-suffi | --program-suff \
515  | --program-suf | --program-su | --program-s)
516    ac_prev=program_suffix ;;
517  -program-suffix=* | --program-suffix=* | --program-suffi=* \
518  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519    program_suffix=$ac_optarg ;;
520
521  -program-transform-name | --program-transform-name \
522  | --program-transform-nam | --program-transform-na \
523  | --program-transform-n | --program-transform- \
524  | --program-transform | --program-transfor \
525  | --program-transfo | --program-transf \
526  | --program-trans | --program-tran \
527  | --progr-tra | --program-tr | --program-t)
528    ac_prev=program_transform_name ;;
529  -program-transform-name=* | --program-transform-name=* \
530  | --program-transform-nam=* | --program-transform-na=* \
531  | --program-transform-n=* | --program-transform-=* \
532  | --program-transform=* | --program-transfor=* \
533  | --program-transfo=* | --program-transf=* \
534  | --program-trans=* | --program-tran=* \
535  | --progr-tra=* | --program-tr=* | --program-t=*)
536    program_transform_name=$ac_optarg ;;
537
538  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539  | -silent | --silent | --silen | --sile | --sil)
540    silent=yes ;;
541
542  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543    ac_prev=sbindir ;;
544  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545  | --sbi=* | --sb=*)
546    sbindir=$ac_optarg ;;
547
548  -sharedstatedir | --sharedstatedir | --sharedstatedi \
549  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550  | --sharedst | --shareds | --shared | --share | --shar \
551  | --sha | --sh)
552    ac_prev=sharedstatedir ;;
553  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556  | --sha=* | --sh=*)
557    sharedstatedir=$ac_optarg ;;
558
559  -site | --site | --sit)
560    ac_prev=site ;;
561  -site=* | --site=* | --sit=*)
562    site=$ac_optarg ;;
563
564  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565    ac_prev=srcdir ;;
566  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567    srcdir=$ac_optarg ;;
568
569  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570  | --syscon | --sysco | --sysc | --sys | --sy)
571    ac_prev=sysconfdir ;;
572  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574    sysconfdir=$ac_optarg ;;
575
576  -target | --target | --targe | --targ | --tar | --ta | --t)
577    ac_prev=target_alias ;;
578  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579    target_alias=$ac_optarg ;;
580
581  -v | -verbose | --verbose | --verbos | --verbo | --verb)
582    verbose=yes ;;
583
584  -version | --version | --versio | --versi | --vers | -V)
585    ac_init_version=: ;;
586
587  -with-* | --with-*)
588    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589    # Reject names that are not valid shell variable names.
590    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591      { echo "$as_me: error: invalid package name: $ac_package" >&2
592   { (exit 1); exit 1; }; }
593    ac_package=`echo $ac_package| sed 's/-/_/g'`
594    case $ac_option in
595      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596      *) ac_optarg=yes ;;
597    esac
598    eval "with_$ac_package='$ac_optarg'" ;;
599
600  -without-* | --without-*)
601    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602    # Reject names that are not valid shell variable names.
603    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604      { echo "$as_me: error: invalid package name: $ac_package" >&2
605   { (exit 1); exit 1; }; }
606    ac_package=`echo $ac_package | sed 's/-/_/g'`
607    eval "with_$ac_package=no" ;;
608
609  --x)
610    # Obsolete; use --with-x.
611    with_x=yes ;;
612
613  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614  | --x-incl | --x-inc | --x-in | --x-i)
615    ac_prev=x_includes ;;
616  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618    x_includes=$ac_optarg ;;
619
620  -x-libraries | --x-libraries | --x-librarie | --x-librari \
621  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622    ac_prev=x_libraries ;;
623  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625    x_libraries=$ac_optarg ;;
626
627  -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629   { (exit 1); exit 1; }; }
630    ;;
631
632  *=*)
633    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634    # Reject names that are not valid shell variable names.
635    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637   { (exit 1); exit 1; }; }
638    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639    eval "$ac_envvar='$ac_optarg'"
640    export $ac_envvar ;;
641
642  *)
643    # FIXME: should be removed in autoconf 3.0.
644    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648    ;;
649
650  esac
651done
652
653if test -n "$ac_prev"; then
654  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655  { echo "$as_me: error: missing argument to $ac_option" >&2
656   { (exit 1); exit 1; }; }
657fi
658
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662  eval ac_val=$`echo $ac_var`
663  case $ac_val in
664    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666   { (exit 1); exit 1; }; };;
667  esac
668done
669
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672              localstatedir libdir includedir oldincludedir infodir mandir
673do
674  eval ac_val=$`echo $ac_var`
675  case $ac_val in
676    [\\/$]* | ?:[\\/]* ) ;;
677    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678   { (exit 1); exit 1; }; };;
679  esac
680done
681
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691  if test "x$build_alias" = x; then
692    cross_compiling=maybe
693    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694    If a cross compiler is detected then cross compile mode will be used." >&2
695  elif test "x$build_alias" != "x$host_alias"; then
696    cross_compiling=yes
697  fi
698fi
699
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
704
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708  ac_srcdir_defaulted=yes
709  # Try the directory containing this script, then its parent.
710  ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712         X"$0" : 'X\(//\)[^/]' \| \
713         X"$0" : 'X\(//\)$' \| \
714         X"$0" : 'X\(/\)' \| \
715         .     : '\(.\)' 2>/dev/null ||
716echo X"$0" |
717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719          /^X\(\/\/\)$/{ s//\1/; q; }
720          /^X\(\/\).*/{ s//\1/; q; }
721          s/.*/./; q'`
722  srcdir=$ac_confdir
723  if test ! -r $srcdir/$ac_unique_file; then
724    srcdir=..
725  fi
726else
727  ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730  if test "$ac_srcdir_defaulted" = yes; then
731    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732   { (exit 1); exit 1; }; }
733  else
734    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735   { (exit 1); exit 1; }; }
736  fi
737fi
738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740   { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CXX_set=${CXX+set}
755ac_env_CXX_value=$CXX
756ac_cv_env_CXX_set=${CXX+set}
757ac_cv_env_CXX_value=$CXX
758ac_env_CXXFLAGS_set=${CXXFLAGS+set}
759ac_env_CXXFLAGS_value=$CXXFLAGS
760ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
761ac_cv_env_CXXFLAGS_value=$CXXFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CC_set=${CC+set}
771ac_env_CC_value=$CC
772ac_cv_env_CC_set=${CC+set}
773ac_cv_env_CC_value=$CC
774ac_env_CFLAGS_set=${CFLAGS+set}
775ac_env_CFLAGS_value=$CFLAGS
776ac_cv_env_CFLAGS_set=${CFLAGS+set}
777ac_cv_env_CFLAGS_value=$CFLAGS
778ac_env_CPP_set=${CPP+set}
779ac_env_CPP_value=$CPP
780ac_cv_env_CPP_set=${CPP+set}
781ac_cv_env_CPP_value=$CPP
782ac_env_CXXCPP_set=${CXXCPP+set}
783ac_env_CXXCPP_value=$CXXCPP
784ac_cv_env_CXXCPP_set=${CXXCPP+set}
785ac_cv_env_CXXCPP_value=$CXXCPP
786
787#
788# Report the --help message.
789#
790if test "$ac_init_help" = "long"; then
791  # Omit some internal or obsolete options to make the list less imposing.
792  # This message is too long to be a string in the A/UX 3.1 sh.
793  cat <<_ACEOF
794\`configure' configures this package to adapt to many kinds of systems.
795
796Usage: $0 [OPTION]... [VAR=VALUE]...
797
798To assign environment variables (e.g., CC, CFLAGS...), specify them as
799VAR=VALUE.  See below for descriptions of some of the useful variables.
800
801Defaults for the options are specified in brackets.
802
803Configuration:
804  -h, --help              display this help and exit
805      --help=short        display options specific to this package
806      --help=recursive    display the short help of all the included packages
807  -V, --version           display version information and exit
808  -q, --quiet, --silent   do not print \`checking...' messages
809      --cache-file=FILE   cache test results in FILE [disabled]
810  -C, --config-cache      alias for \`--cache-file=config.cache'
811  -n, --no-create         do not create output files
812      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
813
814_ACEOF
815
816  cat <<_ACEOF
817Installation directories:
818  --prefix=PREFIX         install architecture-independent files in PREFIX
819                          [$ac_default_prefix]
820  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
821                          [PREFIX]
822
823By default, \`make install' will install all the files in
824\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
825an installation prefix other than \`$ac_default_prefix' using \`--prefix',
826for instance \`--prefix=\$HOME'.
827
828For better control, use the options below.
829
830Fine tuning of the installation directories:
831  --bindir=DIR           user executables [EPREFIX/bin]
832  --sbindir=DIR          system admin executables [EPREFIX/sbin]
833  --libexecdir=DIR       program executables [EPREFIX/libexec]
834  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
835  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
836  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
837  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
838  --libdir=DIR           object code libraries [EPREFIX/lib]
839  --includedir=DIR       C header files [PREFIX/include]
840  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
841  --infodir=DIR          info documentation [PREFIX/info]
842  --mandir=DIR           man documentation [PREFIX/man]
843_ACEOF
844
845  cat <<\_ACEOF
846
847X features:
848  --x-includes=DIR    X include files are in DIR
849  --x-libraries=DIR   X library files are in DIR
850
851System types:
852  --build=BUILD     configure for building on BUILD [guessed]
853  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
854_ACEOF
855fi
856
857if test -n "$ac_init_help"; then
858
859  cat <<\_ACEOF
860
861Optional Features:
862  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
863  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
864  --enable-auto-depend    enable automatic dependencies
865  --enable-linux-syscalls use system calls when possible
866  --enable-linux-memstat  build the linux memstat kernel module
867
868Optional Packages:
869  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
870  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
871  --with-x                use the X Window System
872
873Some influential environment variables:
874  CXX         C++ compiler command
875  CXXFLAGS    C++ compiler flags
876  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
877              nonstandard directory <lib dir>
878  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
879              headers in a nonstandard directory <include dir>
880  CC          C compiler command
881  CFLAGS      C compiler flags
882  CPP         C preprocessor
883  CXXCPP      C++ preprocessor
884
885Use these variables to override the choices made by `configure' or to help
886it to find libraries and programs with nonstandard names/locations.
887
888_ACEOF
889fi
890
891if test "$ac_init_help" = "recursive"; then
892  # If there are subdirs, report their specific --help.
893  ac_popdir=`pwd`
894  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895    test -d $ac_dir || continue
896    ac_builddir=.
897
898if test "$ac_dir" != .; then
899  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900  # A "../" for each directory in $ac_dir_suffix.
901  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902else
903  ac_dir_suffix= ac_top_builddir=
904fi
905
906case $srcdir in
907  .)  # No --srcdir option.  We are building in place.
908    ac_srcdir=.
909    if test -z "$ac_top_builddir"; then
910       ac_top_srcdir=.
911    else
912       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913    fi ;;
914  [\\/]* | ?:[\\/]* )  # Absolute path.
915    ac_srcdir=$srcdir$ac_dir_suffix;
916    ac_top_srcdir=$srcdir ;;
917  *) # Relative path.
918    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919    ac_top_srcdir=$ac_top_builddir$srcdir ;;
920esac
921
922# Do not use `cd foo && pwd` to compute absolute paths, because
923# the directories may not exist.
924case `pwd` in
925.) ac_abs_builddir="$ac_dir";;
926*)
927  case "$ac_dir" in
928  .) ac_abs_builddir=`pwd`;;
929  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930  *) ac_abs_builddir=`pwd`/"$ac_dir";;
931  esac;;
932esac
933case $ac_abs_builddir in
934.) ac_abs_top_builddir=${ac_top_builddir}.;;
935*)
936  case ${ac_top_builddir}. in
937  .) ac_abs_top_builddir=$ac_abs_builddir;;
938  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940  esac;;
941esac
942case $ac_abs_builddir in
943.) ac_abs_srcdir=$ac_srcdir;;
944*)
945  case $ac_srcdir in
946  .) ac_abs_srcdir=$ac_abs_builddir;;
947  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949  esac;;
950esac
951case $ac_abs_builddir in
952.) ac_abs_top_srcdir=$ac_top_srcdir;;
953*)
954  case $ac_top_srcdir in
955  .) ac_abs_top_srcdir=$ac_abs_builddir;;
956  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958  esac;;
959esac
960
961    cd $ac_dir
962    # Check for guested configure; otherwise get Cygnus style configure.
963    if test -f $ac_srcdir/configure.gnu; then
964      echo
965      $SHELL $ac_srcdir/configure.gnu  --help=recursive
966    elif test -f $ac_srcdir/configure; then
967      echo
968      $SHELL $ac_srcdir/configure  --help=recursive
969    elif test -f $ac_srcdir/configure.ac ||
970           test -f $ac_srcdir/configure.in; then
971      echo
972      $ac_configure --help
973    else
974      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975    fi
976    cd $ac_popdir
977  done
978fi
979
980test -n "$ac_init_help" && exit 0
981if $ac_init_version; then
982  cat <<\_ACEOF
983
984Copyright (C) 2003 Free Software Foundation, Inc.
985This configure script is free software; the Free Software Foundation
986gives unlimited permission to copy, distribute and modify it.
987_ACEOF
988  exit 0
989fi
990exec 5>config.log
991cat >&5 <<_ACEOF
992This file contains any messages produced by compilers while
993running configure, to aid debugging if configure makes a mistake.
994
995It was created by $as_me, which was
996generated by GNU Autoconf 2.59.  Invocation command line was
997
998  $ $0 $@
999
1000_ACEOF
1001{
1002cat <<_ASUNAME
1003## --------- ##
1004## Platform. ##
1005## --------- ##
1006
1007hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1015
1016/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1017/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1018/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1020/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1021/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1022/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1023
1024_ASUNAME
1025
1026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027for as_dir in $PATH
1028do
1029  IFS=$as_save_IFS
1030  test -z "$as_dir" && as_dir=.
1031  echo "PATH: $as_dir"
1032done
1033
1034} >&5
1035
1036cat >&5 <<_ACEOF
1037
1038
1039## ----------- ##
1040## Core tests. ##
1041## ----------- ##
1042
1043_ACEOF
1044
1045
1046# Keep a trace of the command line.
1047# Strip out --no-create and --no-recursion so they do not pile up.
1048# Strip out --silent because we don't want to record it for future runs.
1049# Also quote any args containing shell meta-characters.
1050# Make two passes to allow for proper duplicate-argument suppression.
1051ac_configure_args=
1052ac_configure_args0=
1053ac_configure_args1=
1054ac_sep=
1055ac_must_keep_next=false
1056for ac_pass in 1 2
1057do
1058  for ac_arg
1059  do
1060    case $ac_arg in
1061    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063    | -silent | --silent | --silen | --sile | --sil)
1064      continue ;;
1065    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067    esac
1068    case $ac_pass in
1069    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070    2)
1071      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072      if test $ac_must_keep_next = true; then
1073        ac_must_keep_next=false # Got value, back to normal.
1074      else
1075        case $ac_arg in
1076          *=* | --config-cache | -C | -disable-* | --disable-* \
1077          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079          | -with-* | --with-* | -without-* | --without-* | --x)
1080            case "$ac_configure_args0 " in
1081              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082            esac
1083            ;;
1084          -* ) ac_must_keep_next=true ;;
1085        esac
1086      fi
1087      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088      # Get rid of the leading space.
1089      ac_sep=" "
1090      ;;
1091    esac
1092  done
1093done
1094$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097# When interrupted or exit'd, cleanup temporary files, and complete
1098# config.log.  We remove comments because anyway the quotes in there
1099# would cause problems or look ugly.
1100# WARNING: Be sure not to use single quotes in there, as some shells,
1101# such as our DU 5.0 friend, will then `close' the trap.
1102trap 'exit_status=$?
1103  # Save into config.log some information that might help in debugging.
1104  {
1105    echo
1106
1107    cat <<\_ASBOX
1108## ---------------- ##
1109## Cache variables. ##
1110## ---------------- ##
1111_ASBOX
1112    echo
1113    # The following way of writing the cache mishandles newlines in values,
1114{
1115  (set) 2>&1 |
1116    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117    *ac_space=\ *)
1118      sed -n \
1119        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121      ;;
1122    *)
1123      sed -n \
1124        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125      ;;
1126    esac;
1127}
1128    echo
1129
1130    cat <<\_ASBOX
1131## ----------------- ##
1132## Output variables. ##
1133## ----------------- ##
1134_ASBOX
1135    echo
1136    for ac_var in $ac_subst_vars
1137    do
1138      eval ac_val=$`echo $ac_var`
1139      echo "$ac_var='"'"'$ac_val'"'"'"
1140    done | sort
1141    echo
1142
1143    if test -n "$ac_subst_files"; then
1144      cat <<\_ASBOX
1145## ------------- ##
1146## Output files. ##
1147## ------------- ##
1148_ASBOX
1149      echo
1150      for ac_var in $ac_subst_files
1151      do
1152        eval ac_val=$`echo $ac_var`
1153        echo "$ac_var='"'"'$ac_val'"'"'"
1154      done | sort
1155      echo
1156    fi
1157
1158    if test -s confdefs.h; then
1159      cat <<\_ASBOX
1160## ----------- ##
1161## confdefs.h. ##
1162## ----------- ##
1163_ASBOX
1164      echo
1165      sed "/^$/d" confdefs.h | sort
1166      echo
1167    fi
1168    test "$ac_signal" != 0 &&
1169      echo "$as_me: caught signal $ac_signal"
1170    echo "$as_me: exit $exit_status"
1171  } >&5
1172  rm -f core *.core &&
1173  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174    exit $exit_status
1175     ' 0
1176for ac_signal in 1 2 13 15; do
1177  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178done
1179ac_signal=0
1180
1181# confdefs.h avoids OS command line length limits that DEFS can exceed.
1182rm -rf conftest* confdefs.h
1183# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184echo >confdefs.h
1185
1186# Predefined preprocessor variables.
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_NAME "$PACKAGE_NAME"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_VERSION "$PACKAGE_VERSION"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_STRING "$PACKAGE_STRING"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210_ACEOF
1211
1212
1213# Let the site file select an alternate cache file if it wants to.
1214# Prefer explicitly selected file to automatically selected ones.
1215if test -z "$CONFIG_SITE"; then
1216  if test "x$prefix" != xNONE; then
1217    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218  else
1219    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220  fi
1221fi
1222for ac_site_file in $CONFIG_SITE; do
1223  if test -r "$ac_site_file"; then
1224    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225echo "$as_me: loading site script $ac_site_file" >&6;}
1226    sed 's/^/| /' "$ac_site_file" >&5
1227    . "$ac_site_file"
1228  fi
1229done
1230
1231if test -r "$cache_file"; then
1232  # Some versions of bash will fail to source /dev/null (special
1233  # files actually), so we avoid doing that.
1234  if test -f "$cache_file"; then
1235    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236echo "$as_me: loading cache $cache_file" >&6;}
1237    case $cache_file in
1238      [\\/]* | ?:[\\/]* ) . $cache_file;;
1239      *)                      . ./$cache_file;;
1240    esac
1241  fi
1242else
1243  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244echo "$as_me: creating cache $cache_file" >&6;}
1245  >$cache_file
1246fi
1247
1248# Check that the precious variables saved in the cache have kept the same
1249# value.
1250ac_cache_corrupted=false
1251for ac_var in `(set) 2>&1 |
1252               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254  eval ac_new_set=\$ac_env_${ac_var}_set
1255  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256  eval ac_new_val="\$ac_env_${ac_var}_value"
1257  case $ac_old_set,$ac_new_set in
1258    set,)
1259      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261      ac_cache_corrupted=: ;;
1262    ,set)
1263      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265      ac_cache_corrupted=: ;;
1266    ,);;
1267    *)
1268      if test "x$ac_old_val" != "x$ac_new_val"; then
1269        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1272echo "$as_me:   former value:  $ac_old_val" >&2;}
1273        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1274echo "$as_me:   current value: $ac_new_val" >&2;}
1275        ac_cache_corrupted=:
1276      fi;;
1277  esac
1278  # Pass precious variables to config.status.
1279  if test "$ac_new_set" = set; then
1280    case $ac_new_val in
1281    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283    *) ac_arg=$ac_var=$ac_new_val ;;
1284    esac
1285    case " $ac_configure_args " in
1286      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1287      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288    esac
1289  fi
1290done
1291if $ac_cache_corrupted; then
1292  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296   { (exit 1); exit 1; }; }
1297fi
1298
1299ac_ext=c
1300ac_cpp='$CPP $CPPFLAGS'
1301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323TOP_SRCDIR=`cd $srcdir;pwd`
1324
1325
1326ac_aux_dir=
1327for ac_dir in config $srcdir/config; do
1328  if test -f $ac_dir/install-sh; then
1329    ac_aux_dir=$ac_dir
1330    ac_install_sh="$ac_aux_dir/install-sh -c"
1331    break
1332  elif test -f $ac_dir/install.sh; then
1333    ac_aux_dir=$ac_dir
1334    ac_install_sh="$ac_aux_dir/install.sh -c"
1335    break
1336  elif test -f $ac_dir/shtool; then
1337    ac_aux_dir=$ac_dir
1338    ac_install_sh="$ac_aux_dir/shtool install -c"
1339    break
1340  fi
1341done
1342if test -z "$ac_aux_dir"; then
1343  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1344echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1345   { (exit 1); exit 1; }; }
1346fi
1347ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1348ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1349ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1350
1351# Make sure we can run config.sub.
1352$ac_config_sub sun4 >/dev/null 2>&1 ||
1353  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1354echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1355   { (exit 1); exit 1; }; }
1356
1357echo "$as_me:$LINENO: checking build system type" >&5
1358echo $ECHO_N "checking build system type... $ECHO_C" >&6
1359if test "${ac_cv_build+set}" = set; then
1360  echo $ECHO_N "(cached) $ECHO_C" >&6
1361else
1362  ac_cv_build_alias=$build_alias
1363test -z "$ac_cv_build_alias" &&
1364  ac_cv_build_alias=`$ac_config_guess`
1365test -z "$ac_cv_build_alias" &&
1366  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1367echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1368   { (exit 1); exit 1; }; }
1369ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1370  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1371echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1372   { (exit 1); exit 1; }; }
1373
1374fi
1375echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1376echo "${ECHO_T}$ac_cv_build" >&6
1377build=$ac_cv_build
1378build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1379build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1380build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1381
1382
1383echo "$as_me:$LINENO: checking host system type" >&5
1384echo $ECHO_N "checking host system type... $ECHO_C" >&6
1385if test "${ac_cv_host+set}" = set; then
1386  echo $ECHO_N "(cached) $ECHO_C" >&6
1387else
1388  ac_cv_host_alias=$host_alias
1389test -z "$ac_cv_host_alias" &&
1390  ac_cv_host_alias=$ac_cv_build_alias
1391ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1392  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1393echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1394   { (exit 1); exit 1; }; }
1395
1396fi
1397echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1398echo "${ECHO_T}$ac_cv_host" >&6
1399host=$ac_cv_host
1400host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403
1404
1405ac_ext=cc
1406ac_cpp='$CXXCPP $CPPFLAGS'
1407ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1408ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1409ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1410if test -n "$ac_tool_prefix"; then
1411  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1412  do
1413    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1414set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1415echo "$as_me:$LINENO: checking for $ac_word" >&5
1416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417if test "${ac_cv_prog_CXX+set}" = set; then
1418  echo $ECHO_N "(cached) $ECHO_C" >&6
1419else
1420  if test -n "$CXX"; then
1421  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1422else
1423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424for as_dir in $PATH
1425do
1426  IFS=$as_save_IFS
1427  test -z "$as_dir" && as_dir=.
1428  for ac_exec_ext in '' $ac_executable_extensions; do
1429  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1430    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1431    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432    break 2
1433  fi
1434done
1435done
1436
1437fi
1438fi
1439CXX=$ac_cv_prog_CXX
1440if test -n "$CXX"; then
1441  echo "$as_me:$LINENO: result: $CXX" >&5
1442echo "${ECHO_T}$CXX" >&6
1443else
1444  echo "$as_me:$LINENO: result: no" >&5
1445echo "${ECHO_T}no" >&6
1446fi
1447
1448    test -n "$CXX" && break
1449  done
1450fi
1451if test -z "$CXX"; then
1452  ac_ct_CXX=$CXX
1453  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1454do
1455  # Extract the first word of "$ac_prog", so it can be a program name with args.
1456set dummy $ac_prog; ac_word=$2
1457echo "$as_me:$LINENO: checking for $ac_word" >&5
1458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1459if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1460  echo $ECHO_N "(cached) $ECHO_C" >&6
1461else
1462  if test -n "$ac_ct_CXX"; then
1463  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1464else
1465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466for as_dir in $PATH
1467do
1468  IFS=$as_save_IFS
1469  test -z "$as_dir" && as_dir=.
1470  for ac_exec_ext in '' $ac_executable_extensions; do
1471  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472    ac_cv_prog_ac_ct_CXX="$ac_prog"
1473    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1474    break 2
1475  fi
1476done
1477done
1478
1479fi
1480fi
1481ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1482if test -n "$ac_ct_CXX"; then
1483  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1484echo "${ECHO_T}$ac_ct_CXX" >&6
1485else
1486  echo "$as_me:$LINENO: result: no" >&5
1487echo "${ECHO_T}no" >&6
1488fi
1489
1490  test -n "$ac_ct_CXX" && break
1491done
1492test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1493
1494  CXX=$ac_ct_CXX
1495fi
1496
1497
1498# Provide some information about the compiler.
1499echo "$as_me:$LINENO:" \
1500     "checking for C++ compiler version" >&5
1501ac_compiler=`set X $ac_compile; echo $2`
1502{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1503  (eval $ac_compiler --version </dev/null >&5) 2>&5
1504  ac_status=$?
1505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1506  (exit $ac_status); }
1507{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1508  (eval $ac_compiler -v </dev/null >&5) 2>&5
1509  ac_status=$?
1510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1511  (exit $ac_status); }
1512{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1513  (eval $ac_compiler -V </dev/null >&5) 2>&5
1514  ac_status=$?
1515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1516  (exit $ac_status); }
1517
1518cat >conftest.$ac_ext <<_ACEOF
1519/* confdefs.h.  */
1520_ACEOF
1521cat confdefs.h >>conftest.$ac_ext
1522cat >>conftest.$ac_ext <<_ACEOF
1523/* end confdefs.h.  */
1524
1525int
1526main ()
1527{
1528
1529  ;
1530  return 0;
1531}
1532_ACEOF
1533ac_clean_files_save=$ac_clean_files
1534ac_clean_files="$ac_clean_files a.out a.exe b.out"
1535# Try to create an executable without -o first, disregard a.out.
1536# It will help us diagnose broken compilers, and finding out an intuition
1537# of exeext.
1538echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1539echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1540ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1541if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1542  (eval $ac_link_default) 2>&5
1543  ac_status=$?
1544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1545  (exit $ac_status); }; then
1546  # Find the output, starting from the most likely.  This scheme is
1547# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1548# resort.
1549
1550# Be careful to initialize this variable, since it used to be cached.
1551# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1552ac_cv_exeext=
1553# b.out is created by i960 compilers.
1554for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1555do
1556  test -f "$ac_file" || continue
1557  case $ac_file in
1558    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1559        ;;
1560    conftest.$ac_ext )
1561        # This is the source file.
1562        ;;
1563    [ab].out )
1564        # We found the default executable, but exeext='' is most
1565        # certainly right.
1566        break;;
1567    *.* )
1568        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1569        # FIXME: I believe we export ac_cv_exeext for Libtool,
1570        # but it would be cool to find out if it's true.  Does anybody
1571        # maintain Libtool? --akim.
1572        export ac_cv_exeext
1573        break;;
1574    * )
1575        break;;
1576  esac
1577done
1578else
1579  echo "$as_me: failed program was:" >&5
1580sed 's/^/| /' conftest.$ac_ext >&5
1581
1582{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1583See \`config.log' for more details." >&5
1584echo "$as_me: error: C++ compiler cannot create executables
1585See \`config.log' for more details." >&2;}
1586   { (exit 77); exit 77; }; }
1587fi
1588
1589ac_exeext=$ac_cv_exeext
1590echo "$as_me:$LINENO: result: $ac_file" >&5
1591echo "${ECHO_T}$ac_file" >&6
1592
1593# Check the compiler produces executables we can run.  If not, either
1594# the compiler is broken, or we cross compile.
1595echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1596echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1597# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1598# If not cross compiling, check that we can run a simple program.
1599if test "$cross_compiling" != yes; then
1600  if { ac_try='./$ac_file'
1601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1602  (eval $ac_try) 2>&5
1603  ac_status=$?
1604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1605  (exit $ac_status); }; }; then
1606    cross_compiling=no
1607  else
1608    if test "$cross_compiling" = maybe; then
1609        cross_compiling=yes
1610    else
1611        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1612If you meant to cross compile, use \`--host'.
1613See \`config.log' for more details." >&5
1614echo "$as_me: error: cannot run C++ compiled programs.
1615If you meant to cross compile, use \`--host'.
1616See \`config.log' for more details." >&2;}
1617   { (exit 1); exit 1; }; }
1618    fi
1619  fi
1620fi
1621echo "$as_me:$LINENO: result: yes" >&5
1622echo "${ECHO_T}yes" >&6
1623
1624rm -f a.out a.exe conftest$ac_cv_exeext b.out
1625ac_clean_files=$ac_clean_files_save
1626# Check the compiler produces executables we can run.  If not, either
1627# the compiler is broken, or we cross compile.
1628echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1629echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1630echo "$as_me:$LINENO: result: $cross_compiling" >&5
1631echo "${ECHO_T}$cross_compiling" >&6
1632
1633echo "$as_me:$LINENO: checking for suffix of executables" >&5
1634echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1636  (eval $ac_link) 2>&5
1637  ac_status=$?
1638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1639  (exit $ac_status); }; then
1640  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1641# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1642# work properly (i.e., refer to `conftest.exe'), while it won't with
1643# `rm'.
1644for ac_file in conftest.exe conftest conftest.*; do
1645  test -f "$ac_file" || continue
1646  case $ac_file in
1647    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1648    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1649          export ac_cv_exeext
1650          break;;
1651    * ) break;;
1652  esac
1653done
1654else
1655  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1656See \`config.log' for more details." >&5
1657echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1658See \`config.log' for more details." >&2;}
1659   { (exit 1); exit 1; }; }
1660fi
1661
1662rm -f conftest$ac_cv_exeext
1663echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1664echo "${ECHO_T}$ac_cv_exeext" >&6
1665
1666rm -f conftest.$ac_ext
1667EXEEXT=$ac_cv_exeext
1668ac_exeext=$EXEEXT
1669echo "$as_me:$LINENO: checking for suffix of object files" >&5
1670echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1671if test "${ac_cv_objext+set}" = set; then
1672  echo $ECHO_N "(cached) $ECHO_C" >&6
1673else
1674  cat >conftest.$ac_ext <<_ACEOF
1675/* confdefs.h.  */
1676_ACEOF
1677cat confdefs.h >>conftest.$ac_ext
1678cat >>conftest.$ac_ext <<_ACEOF
1679/* end confdefs.h.  */
1680
1681int
1682main ()
1683{
1684
1685  ;
1686  return 0;
1687}
1688_ACEOF
1689rm -f conftest.o conftest.obj
1690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1691  (eval $ac_compile) 2>&5
1692  ac_status=$?
1693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1694  (exit $ac_status); }; then
1695  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1696  case $ac_file in
1697    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1698    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1699       break;;
1700  esac
1701done
1702else
1703  echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1707See \`config.log' for more details." >&5
1708echo "$as_me: error: cannot compute suffix of object files: cannot compile
1709See \`config.log' for more details." >&2;}
1710   { (exit 1); exit 1; }; }
1711fi
1712
1713rm -f conftest.$ac_cv_objext conftest.$ac_ext
1714fi
1715echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1716echo "${ECHO_T}$ac_cv_objext" >&6
1717OBJEXT=$ac_cv_objext
1718ac_objext=$OBJEXT
1719echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1720echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1721if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1722  echo $ECHO_N "(cached) $ECHO_C" >&6
1723else
1724  cat >conftest.$ac_ext <<_ACEOF
1725/* confdefs.h.  */
1726_ACEOF
1727cat confdefs.h >>conftest.$ac_ext
1728cat >>conftest.$ac_ext <<_ACEOF
1729/* end confdefs.h.  */
1730
1731int
1732main ()
1733{
1734#ifndef __GNUC__
1735       choke me
1736#endif
1737
1738  ;
1739  return 0;
1740}
1741_ACEOF
1742rm -f conftest.$ac_objext
1743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1744  (eval $ac_compile) 2>conftest.er1
1745  ac_status=$?
1746  grep -v '^ *+' conftest.er1 >conftest.err
1747  rm -f conftest.er1
1748  cat conftest.err >&5
1749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1750  (exit $ac_status); } &&
1751         { ac_try='test -z "$ac_cxx_werror_flag"
1752                         || test ! -s conftest.err'
1753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1754  (eval $ac_try) 2>&5
1755  ac_status=$?
1756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757  (exit $ac_status); }; } &&
1758         { ac_try='test -s conftest.$ac_objext'
1759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1760  (eval $ac_try) 2>&5
1761  ac_status=$?
1762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763  (exit $ac_status); }; }; then
1764  ac_compiler_gnu=yes
1765else
1766  echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769ac_compiler_gnu=no
1770fi
1771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1772ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1773
1774fi
1775echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1776echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1777GXX=`test $ac_compiler_gnu = yes && echo yes`
1778ac_test_CXXFLAGS=${CXXFLAGS+set}
1779ac_save_CXXFLAGS=$CXXFLAGS
1780CXXFLAGS="-g"
1781echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1782echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1783if test "${ac_cv_prog_cxx_g+set}" = set; then
1784  echo $ECHO_N "(cached) $ECHO_C" >&6
1785else
1786  cat >conftest.$ac_ext <<_ACEOF
1787/* confdefs.h.  */
1788_ACEOF
1789cat confdefs.h >>conftest.$ac_ext
1790cat >>conftest.$ac_ext <<_ACEOF
1791/* end confdefs.h.  */
1792
1793int
1794main ()
1795{
1796
1797  ;
1798  return 0;
1799}
1800_ACEOF
1801rm -f conftest.$ac_objext
1802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1803  (eval $ac_compile) 2>conftest.er1
1804  ac_status=$?
1805  grep -v '^ *+' conftest.er1 >conftest.err
1806  rm -f conftest.er1
1807  cat conftest.err >&5
1808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809  (exit $ac_status); } &&
1810         { ac_try='test -z "$ac_cxx_werror_flag"
1811                         || test ! -s conftest.err'
1812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1813  (eval $ac_try) 2>&5
1814  ac_status=$?
1815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816  (exit $ac_status); }; } &&
1817         { ac_try='test -s conftest.$ac_objext'
1818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1819  (eval $ac_try) 2>&5
1820  ac_status=$?
1821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822  (exit $ac_status); }; }; then
1823  ac_cv_prog_cxx_g=yes
1824else
1825  echo "$as_me: failed program was:" >&5
1826sed 's/^/| /' conftest.$ac_ext >&5
1827
1828ac_cv_prog_cxx_g=no
1829fi
1830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1831fi
1832echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1833echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1834if test "$ac_test_CXXFLAGS" = set; then
1835  CXXFLAGS=$ac_save_CXXFLAGS
1836elif test $ac_cv_prog_cxx_g = yes; then
1837  if test "$GXX" = yes; then
1838    CXXFLAGS="-g -O2"
1839  else
1840    CXXFLAGS="-g"
1841  fi
1842else
1843  if test "$GXX" = yes; then
1844    CXXFLAGS="-O2"
1845  else
1846    CXXFLAGS=
1847  fi
1848fi
1849for ac_declaration in \
1850   '' \
1851   'extern "C" void std::exit (int) throw (); using std::exit;' \
1852   'extern "C" void std::exit (int); using std::exit;' \
1853   'extern "C" void exit (int) throw ();' \
1854   'extern "C" void exit (int);' \
1855   'void exit (int);'
1856do
1857  cat >conftest.$ac_ext <<_ACEOF
1858/* confdefs.h.  */
1859_ACEOF
1860cat confdefs.h >>conftest.$ac_ext
1861cat >>conftest.$ac_ext <<_ACEOF
1862/* end confdefs.h.  */
1863$ac_declaration
1864#include <stdlib.h>
1865int
1866main ()
1867{
1868exit (42);
1869  ;
1870  return 0;
1871}
1872_ACEOF
1873rm -f conftest.$ac_objext
1874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1875  (eval $ac_compile) 2>conftest.er1
1876  ac_status=$?
1877  grep -v '^ *+' conftest.er1 >conftest.err
1878  rm -f conftest.er1
1879  cat conftest.err >&5
1880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881  (exit $ac_status); } &&
1882         { ac_try='test -z "$ac_cxx_werror_flag"
1883                         || test ! -s conftest.err'
1884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1885  (eval $ac_try) 2>&5
1886  ac_status=$?
1887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888  (exit $ac_status); }; } &&
1889         { ac_try='test -s conftest.$ac_objext'
1890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1891  (eval $ac_try) 2>&5
1892  ac_status=$?
1893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894  (exit $ac_status); }; }; then
1895  :
1896else
1897  echo "$as_me: failed program was:" >&5
1898sed 's/^/| /' conftest.$ac_ext >&5
1899
1900continue
1901fi
1902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1903  cat >conftest.$ac_ext <<_ACEOF
1904/* confdefs.h.  */
1905_ACEOF
1906cat confdefs.h >>conftest.$ac_ext
1907cat >>conftest.$ac_ext <<_ACEOF
1908/* end confdefs.h.  */
1909$ac_declaration
1910int
1911main ()
1912{
1913exit (42);
1914  ;
1915  return 0;
1916}
1917_ACEOF
1918rm -f conftest.$ac_objext
1919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1920  (eval $ac_compile) 2>conftest.er1
1921  ac_status=$?
1922  grep -v '^ *+' conftest.er1 >conftest.err
1923  rm -f conftest.er1
1924  cat conftest.err >&5
1925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926  (exit $ac_status); } &&
1927         { ac_try='test -z "$ac_cxx_werror_flag"
1928                         || test ! -s conftest.err'
1929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1930  (eval $ac_try) 2>&5
1931  ac_status=$?
1932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933  (exit $ac_status); }; } &&
1934         { ac_try='test -s conftest.$ac_objext'
1935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1936  (eval $ac_try) 2>&5
1937  ac_status=$?
1938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939  (exit $ac_status); }; }; then
1940  break
1941else
1942  echo "$as_me: failed program was:" >&5
1943sed 's/^/| /' conftest.$ac_ext >&5
1944
1945fi
1946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1947done
1948rm -f conftest*
1949if test -n "$ac_declaration"; then
1950  echo '#ifdef __cplusplus' >>confdefs.h
1951  echo $ac_declaration      >>confdefs.h
1952  echo '#endif'             >>confdefs.h
1953fi
1954
1955ac_ext=c
1956ac_cpp='$CPP $CPPFLAGS'
1957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1959ac_compiler_gnu=$ac_cv_c_compiler_gnu
1960
1961
1962
1963
1964echo "$as_me:$LINENO: checking whether ${CXX} supports bool types" >&5
1965echo $ECHO_N "checking whether ${CXX} supports bool types... $ECHO_C" >&6
1966if test "${ice_cv_have_bool+set}" = set; then
1967  echo $ECHO_N "(cached) $ECHO_C" >&6
1968else
1969
1970
1971
1972ac_ext=cc
1973ac_cpp='$CXXCPP $CPPFLAGS'
1974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1977
1978cat >conftest.$ac_ext <<_ACEOF
1979/* confdefs.h.  */
1980_ACEOF
1981cat confdefs.h >>conftest.$ac_ext
1982cat >>conftest.$ac_ext <<_ACEOF
1983/* end confdefs.h.  */
1984
1985int
1986main ()
1987{
1988bool b = true;
1989  ;
1990  return 0;
1991}
1992_ACEOF
1993rm -f conftest.$ac_objext
1994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1995  (eval $ac_compile) 2>conftest.er1
1996  ac_status=$?
1997  grep -v '^ *+' conftest.er1 >conftest.err
1998  rm -f conftest.er1
1999  cat conftest.err >&5
2000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001  (exit $ac_status); } &&
2002         { ac_try='test -z "$ac_cxx_werror_flag"
2003                         || test ! -s conftest.err'
2004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005  (eval $ac_try) 2>&5
2006  ac_status=$?
2007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008  (exit $ac_status); }; } &&
2009         { ac_try='test -s conftest.$ac_objext'
2010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011  (eval $ac_try) 2>&5
2012  ac_status=$?
2013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014  (exit $ac_status); }; }; then
2015  ice_cv_have_bool=yes
2016else
2017  echo "$as_me: failed program was:" >&5
2018sed 's/^/| /' conftest.$ac_ext >&5
2019
2020ice_cv_have_bool=no
2021fi
2022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2023ac_ext=c
2024ac_cpp='$CPP $CPPFLAGS'
2025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028
2029
2030fi
2031
2032echo "$as_me:$LINENO: result: $ice_cv_have_bool" >&5
2033echo "${ECHO_T}$ice_cv_have_bool" >&6
2034if test "$ice_cv_have_bool" = yes; then
2035cat >>confdefs.h <<\_ACEOF
2036#define HAVE_BOOL 1
2037_ACEOF
2038
2039fi
2040
2041
2042
2043echo "$as_me:$LINENO: checking whether ${CXX} supports long long types" >&5
2044echo $ECHO_N "checking whether ${CXX} supports long long types... $ECHO_C" >&6
2045if test "${ice_cv_have_long_long+set}" = set; then
2046  echo $ECHO_N "(cached) $ECHO_C" >&6
2047else
2048
2049
2050
2051ac_ext=cc
2052ac_cpp='$CXXCPP $CPPFLAGS'
2053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2056
2057cat >conftest.$ac_ext <<_ACEOF
2058/* confdefs.h.  */
2059_ACEOF
2060cat confdefs.h >>conftest.$ac_ext
2061cat >>conftest.$ac_ext <<_ACEOF
2062/* end confdefs.h.  */
2063
2064int
2065main ()
2066{
2067long long x; x = (long long)0;
2068  ;
2069  return 0;
2070}
2071_ACEOF
2072rm -f conftest.$ac_objext
2073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2074  (eval $ac_compile) 2>conftest.er1
2075  ac_status=$?
2076  grep -v '^ *+' conftest.er1 >conftest.err
2077  rm -f conftest.er1
2078  cat conftest.err >&5
2079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080  (exit $ac_status); } &&
2081         { ac_try='test -z "$ac_cxx_werror_flag"
2082                         || test ! -s conftest.err'
2083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2084  (eval $ac_try) 2>&5
2085  ac_status=$?
2086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087  (exit $ac_status); }; } &&
2088         { ac_try='test -s conftest.$ac_objext'
2089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090  (eval $ac_try) 2>&5
2091  ac_status=$?
2092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093  (exit $ac_status); }; }; then
2094  ice_cv_have_long_long=yes
2095else
2096  echo "$as_me: failed program was:" >&5
2097sed 's/^/| /' conftest.$ac_ext >&5
2098
2099ice_cv_have_long_long=no
2100fi
2101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2102ac_ext=c
2103ac_cpp='$CPP $CPPFLAGS'
2104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2106ac_compiler_gnu=$ac_cv_c_compiler_gnu
2107
2108
2109fi
2110
2111echo "$as_me:$LINENO: result: $ice_cv_have_long_long" >&5
2112echo "${ECHO_T}$ice_cv_have_long_long" >&6
2113if test "$ice_cv_have_long_long" = yes; then
2114cat >>confdefs.h <<\_ACEOF
2115#define LONG_LONG long long
2116_ACEOF
2117
2118else
2119cat >>confdefs.h <<\_ACEOF
2120#define LONG_LONG long
2121_ACEOF
2122
2123fi
2124
2125ac_ext=c
2126ac_cpp='$CPP $CPPFLAGS'
2127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2129ac_compiler_gnu=$ac_cv_c_compiler_gnu
2130if test -n "$ac_tool_prefix"; then
2131  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2132set dummy ${ac_tool_prefix}gcc; ac_word=$2
2133echo "$as_me:$LINENO: checking for $ac_word" >&5
2134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135if test "${ac_cv_prog_CC+set}" = set; then
2136  echo $ECHO_N "(cached) $ECHO_C" >&6
2137else
2138  if test -n "$CC"; then
2139  ac_cv_prog_CC="$CC" # Let the user override the test.
2140else
2141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142for as_dir in $PATH
2143do
2144  IFS=$as_save_IFS
2145  test -z "$as_dir" && as_dir=.
2146  for ac_exec_ext in '' $ac_executable_extensions; do
2147  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150    break 2
2151  fi
2152done
2153done
2154
2155fi
2156fi
2157CC=$ac_cv_prog_CC
2158if test -n "$CC"; then
2159  echo "$as_me:$LINENO: result: $CC" >&5
2160echo "${ECHO_T}$CC" >&6
2161else
2162  echo "$as_me:$LINENO: result: no" >&5
2163echo "${ECHO_T}no" >&6
2164fi
2165
2166fi
2167if test -z "$ac_cv_prog_CC"; then
2168  ac_ct_CC=$CC
2169  # Extract the first word of "gcc", so it can be a program name with args.
2170set dummy gcc; ac_word=$2
2171echo "$as_me:$LINENO: checking for $ac_word" >&5
2172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2174  echo $ECHO_N "(cached) $ECHO_C" >&6
2175else
2176  if test -n "$ac_ct_CC"; then
2177  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2178else
2179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180for as_dir in $PATH
2181do
2182  IFS=$as_save_IFS
2183  test -z "$as_dir" && as_dir=.
2184  for ac_exec_ext in '' $ac_executable_extensions; do
2185  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186    ac_cv_prog_ac_ct_CC="gcc"
2187    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188    break 2
2189  fi
2190done
2191done
2192
2193fi
2194fi
2195ac_ct_CC=$ac_cv_prog_ac_ct_CC
2196if test -n "$ac_ct_CC"; then
2197  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2198echo "${ECHO_T}$ac_ct_CC" >&6
2199else
2200  echo "$as_me:$LINENO: result: no" >&5
2201echo "${ECHO_T}no" >&6
2202fi
2203
2204  CC=$ac_ct_CC
2205else
2206  CC="$ac_cv_prog_CC"
2207fi
2208
2209if test -z "$CC"; then
2210  if test -n "$ac_tool_prefix"; then
2211  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2212set dummy ${ac_tool_prefix}cc; ac_word=$2
2213echo "$as_me:$LINENO: checking for $ac_word" >&5
2214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215if test "${ac_cv_prog_CC+set}" = set; then
2216  echo $ECHO_N "(cached) $ECHO_C" >&6
2217else
2218  if test -n "$CC"; then
2219  ac_cv_prog_CC="$CC" # Let the user override the test.
2220else
2221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222for as_dir in $PATH
2223do
2224  IFS=$as_save_IFS
2225  test -z "$as_dir" && as_dir=.
2226  for ac_exec_ext in '' $ac_executable_extensions; do
2227  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228    ac_cv_prog_CC="${ac_tool_prefix}cc"
2229    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230    break 2
2231  fi
2232done
2233done
2234
2235fi
2236fi
2237CC=$ac_cv_prog_CC
2238if test -n "$CC"; then
2239  echo "$as_me:$LINENO: result: $CC" >&5
2240echo "${ECHO_T}$CC" >&6
2241else
2242  echo "$as_me:$LINENO: result: no" >&5
2243echo "${ECHO_T}no" >&6
2244fi
2245
2246fi
2247if test -z "$ac_cv_prog_CC"; then
2248  ac_ct_CC=$CC
2249  # Extract the first word of "cc", so it can be a program name with args.
2250set dummy cc; ac_word=$2
2251echo "$as_me:$LINENO: checking for $ac_word" >&5
2252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2254  echo $ECHO_N "(cached) $ECHO_C" >&6
2255else
2256  if test -n "$ac_ct_CC"; then
2257  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2258else
2259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260for as_dir in $PATH
2261do
2262  IFS=$as_save_IFS
2263  test -z "$as_dir" && as_dir=.
2264  for ac_exec_ext in '' $ac_executable_extensions; do
2265  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266    ac_cv_prog_ac_ct_CC="cc"
2267    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268    break 2
2269  fi
2270done
2271done
2272
2273fi
2274fi
2275ac_ct_CC=$ac_cv_prog_ac_ct_CC
2276if test -n "$ac_ct_CC"; then
2277  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2278echo "${ECHO_T}$ac_ct_CC" >&6
2279else
2280  echo "$as_me:$LINENO: result: no" >&5
2281echo "${ECHO_T}no" >&6
2282fi
2283
2284  CC=$ac_ct_CC
2285else
2286  CC="$ac_cv_prog_CC"
2287fi
2288
2289fi
2290if test -z "$CC"; then
2291  # Extract the first word of "cc", so it can be a program name with args.
2292set dummy cc; ac_word=$2
2293echo "$as_me:$LINENO: checking for $ac_word" >&5
2294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2295if test "${ac_cv_prog_CC+set}" = set; then
2296  echo $ECHO_N "(cached) $ECHO_C" >&6
2297else
2298  if test -n "$CC"; then
2299  ac_cv_prog_CC="$CC" # Let the user override the test.
2300else
2301  ac_prog_rejected=no
2302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303for as_dir in $PATH
2304do
2305  IFS=$as_save_IFS
2306  test -z "$as_dir" && as_dir=.
2307  for ac_exec_ext in '' $ac_executable_extensions; do
2308  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2310       ac_prog_rejected=yes
2311       continue
2312     fi
2313    ac_cv_prog_CC="cc"
2314    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315    break 2
2316  fi
2317done
2318done
2319
2320if test $ac_prog_rejected = yes; then
2321  # We found a bogon in the path, so make sure we never use it.
2322  set dummy $ac_cv_prog_CC
2323  shift
2324  if test $# != 0; then
2325    # We chose a different compiler from the bogus one.
2326    # However, it has the same basename, so the bogon will be chosen
2327    # first if we set CC to just the basename; use the full file name.
2328    shift
2329    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2330  fi
2331fi
2332fi
2333fi
2334CC=$ac_cv_prog_CC
2335if test -n "$CC"; then
2336  echo "$as_me:$LINENO: result: $CC" >&5
2337echo "${ECHO_T}$CC" >&6
2338else
2339  echo "$as_me:$LINENO: result: no" >&5
2340echo "${ECHO_T}no" >&6
2341fi
2342
2343fi
2344if test -z "$CC"; then
2345  if test -n "$ac_tool_prefix"; then
2346  for ac_prog in cl
2347  do
2348    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2349set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2350echo "$as_me:$LINENO: checking for $ac_word" >&5
2351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352if test "${ac_cv_prog_CC+set}" = set; then
2353  echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355  if test -n "$CC"; then
2356  ac_cv_prog_CC="$CC" # Let the user override the test.
2357else
2358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359for as_dir in $PATH
2360do
2361  IFS=$as_save_IFS
2362  test -z "$as_dir" && as_dir=.
2363  for ac_exec_ext in '' $ac_executable_extensions; do
2364  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2366    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367    break 2
2368  fi
2369done
2370done
2371
2372fi
2373fi
2374CC=$ac_cv_prog_CC
2375if test -n "$CC"; then
2376  echo "$as_me:$LINENO: result: $CC" >&5
2377echo "${ECHO_T}$CC" >&6
2378else
2379  echo "$as_me:$LINENO: result: no" >&5
2380echo "${ECHO_T}no" >&6
2381fi
2382
2383    test -n "$CC" && break
2384  done
2385fi
2386if test -z "$CC"; then
2387  ac_ct_CC=$CC
2388  for ac_prog in cl
2389do
2390  # Extract the first word of "$ac_prog", so it can be a program name with args.
2391set dummy $ac_prog; ac_word=$2
2392echo "$as_me:$LINENO: checking for $ac_word" >&5
2393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2395  echo $ECHO_N "(cached) $ECHO_C" >&6
2396else
2397  if test -n "$ac_ct_CC"; then
2398  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2399else
2400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401for as_dir in $PATH
2402do
2403  IFS=$as_save_IFS
2404  test -z "$as_dir" && as_dir=.
2405  for ac_exec_ext in '' $ac_executable_extensions; do
2406  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407    ac_cv_prog_ac_ct_CC="$ac_prog"
2408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409    break 2
2410  fi
2411done
2412done
2413
2414fi
2415fi
2416ac_ct_CC=$ac_cv_prog_ac_ct_CC
2417if test -n "$ac_ct_CC"; then
2418  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2419echo "${ECHO_T}$ac_ct_CC" >&6
2420else
2421  echo "$as_me:$LINENO: result: no" >&5
2422echo "${ECHO_T}no" >&6
2423fi
2424
2425  test -n "$ac_ct_CC" && break
2426done
2427
2428  CC=$ac_ct_CC
2429fi
2430
2431fi
2432
2433
2434test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2435See \`config.log' for more details." >&5
2436echo "$as_me: error: no acceptable C compiler found in \$PATH
2437See \`config.log' for more details." >&2;}
2438   { (exit 1); exit 1; }; }
2439
2440# Provide some information about the compiler.
2441echo "$as_me:$LINENO:" \
2442     "checking for C compiler version" >&5
2443ac_compiler=`set X $ac_compile; echo $2`
2444{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2445  (eval $ac_compiler --version </dev/null >&5) 2>&5
2446  ac_status=$?
2447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448  (exit $ac_status); }
2449{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2450  (eval $ac_compiler -v </dev/null >&5) 2>&5
2451  ac_status=$?
2452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453  (exit $ac_status); }
2454{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2455  (eval $ac_compiler -V </dev/null >&5) 2>&5
2456  ac_status=$?
2457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458  (exit $ac_status); }
2459
2460echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2461echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2462if test "${ac_cv_c_compiler_gnu+set}" = set; then
2463  echo $ECHO_N "(cached) $ECHO_C" >&6
2464else
2465  cat >conftest.$ac_ext <<_ACEOF
2466/* confdefs.h.  */
2467_ACEOF
2468cat confdefs.h >>conftest.$ac_ext
2469cat >>conftest.$ac_ext <<_ACEOF
2470/* end confdefs.h.  */
2471
2472int
2473main ()
2474{
2475#ifndef __GNUC__
2476       choke me
2477#endif
2478
2479  ;
2480  return 0;
2481}
2482_ACEOF
2483rm -f conftest.$ac_objext
2484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2485  (eval $ac_compile) 2>conftest.er1
2486  ac_status=$?
2487  grep -v '^ *+' conftest.er1 >conftest.err
2488  rm -f conftest.er1
2489  cat conftest.err >&5
2490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491  (exit $ac_status); } &&
2492         { ac_try='test -z "$ac_c_werror_flag"
2493                         || test ! -s conftest.err'
2494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495  (eval $ac_try) 2>&5
2496  ac_status=$?
2497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498  (exit $ac_status); }; } &&
2499         { ac_try='test -s conftest.$ac_objext'
2500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501  (eval $ac_try) 2>&5
2502  ac_status=$?
2503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504  (exit $ac_status); }; }; then
2505  ac_compiler_gnu=yes
2506else
2507  echo "$as_me: failed program was:" >&5
2508sed 's/^/| /' conftest.$ac_ext >&5
2509
2510ac_compiler_gnu=no
2511fi
2512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2513ac_cv_c_compiler_gnu=$ac_compiler_gnu
2514
2515fi
2516echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2517echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2518GCC=`test $ac_compiler_gnu = yes && echo yes`
2519ac_test_CFLAGS=${CFLAGS+set}
2520ac_save_CFLAGS=$CFLAGS
2521CFLAGS="-g"
2522echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2523echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2524if test "${ac_cv_prog_cc_g+set}" = set; then
2525  echo $ECHO_N "(cached) $ECHO_C" >&6
2526else
2527  cat >conftest.$ac_ext <<_ACEOF
2528/* confdefs.h.  */
2529_ACEOF
2530cat confdefs.h >>conftest.$ac_ext
2531cat >>conftest.$ac_ext <<_ACEOF
2532/* end confdefs.h.  */
2533
2534int
2535main ()
2536{
2537
2538  ;
2539  return 0;
2540}
2541_ACEOF
2542rm -f conftest.$ac_objext
2543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544  (eval $ac_compile) 2>conftest.er1
2545  ac_status=$?
2546  grep -v '^ *+' conftest.er1 >conftest.err
2547  rm -f conftest.er1
2548  cat conftest.err >&5
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); } &&
2551         { ac_try='test -z "$ac_c_werror_flag"
2552                         || test ! -s conftest.err'
2553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554  (eval $ac_try) 2>&5
2555  ac_status=$?
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); }; } &&
2558         { ac_try='test -s conftest.$ac_objext'
2559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560  (eval $ac_try) 2>&5
2561  ac_status=$?
2562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563  (exit $ac_status); }; }; then
2564  ac_cv_prog_cc_g=yes
2565else
2566  echo "$as_me: failed program was:" >&5
2567sed 's/^/| /' conftest.$ac_ext >&5
2568
2569ac_cv_prog_cc_g=no
2570fi
2571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2572fi
2573echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2574echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2575if test "$ac_test_CFLAGS" = set; then
2576  CFLAGS=$ac_save_CFLAGS
2577elif test $ac_cv_prog_cc_g = yes; then
2578  if test "$GCC" = yes; then
2579    CFLAGS="-g -O2"
2580  else
2581    CFLAGS="-g"
2582  fi
2583else
2584  if test "$GCC" = yes; then
2585    CFLAGS="-O2"
2586  else
2587    CFLAGS=
2588  fi
2589fi
2590echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2591echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2592if test "${ac_cv_prog_cc_stdc+set}" = set; then
2593  echo $ECHO_N "(cached) $ECHO_C" >&6
2594else
2595  ac_cv_prog_cc_stdc=no
2596ac_save_CC=$CC
2597cat >conftest.$ac_ext <<_ACEOF
2598/* confdefs.h.  */
2599_ACEOF
2600cat confdefs.h >>conftest.$ac_ext
2601cat >>conftest.$ac_ext <<_ACEOF
2602/* end confdefs.h.  */
2603#include <stdarg.h>
2604#include <stdio.h>
2605#include <sys/types.h>
2606#include <sys/stat.h>
2607/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2608struct buf { int x; };
2609FILE * (*rcsopen) (struct buf *, struct stat *, int);
2610static char *e (p, i)
2611     char **p;
2612     int i;
2613{
2614  return p[i];
2615}
2616static char *f (char * (*g) (char **, int), char **p, ...)
2617{
2618  char *s;
2619  va_list v;
2620  va_start (v,p);
2621  s = g (p, va_arg (v,int));
2622  va_end (v);
2623  return s;
2624}
2625
2626/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2627   function prototypes and stuff, but not '\xHH' hex character constants.
2628   These don't provoke an error unfortunately, instead are silently treated
2629   as 'x'.  The following induces an error, until -std1 is added to get
2630   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2631   array size at least.  It's necessary to write '\x00'==0 to get something
2632   that's true only with -std1.  */
2633int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2634
2635int test (int i, double x);
2636struct s1 {int (*f) (int a);};
2637struct s2 {int (*f) (double a);};
2638int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2639int argc;
2640char **argv;
2641int
2642main ()
2643{
2644return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2645  ;
2646  return 0;
2647}
2648_ACEOF
2649# Don't try gcc -ansi; that turns off useful extensions and
2650# breaks some systems' header files.
2651# AIX                   -qlanglvl=ansi
2652# Ultrix and OSF/1      -std1
2653# HP-UX 10.20 and later -Ae
2654# HP-UX older versions  -Aa -D_HPUX_SOURCE
2655# SVR4                  -Xc -D__EXTENSIONS__
2656for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2657do
2658  CC="$ac_save_CC $ac_arg"
2659  rm -f conftest.$ac_objext
2660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661  (eval $ac_compile) 2>conftest.er1
2662  ac_status=$?
2663  grep -v '^ *+' conftest.er1 >conftest.err
2664  rm -f conftest.er1
2665  cat conftest.err >&5
2666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667  (exit $ac_status); } &&
2668         { ac_try='test -z "$ac_c_werror_flag"
2669                         || test ! -s conftest.err'
2670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671  (eval $ac_try) 2>&5
2672  ac_status=$?
2673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674  (exit $ac_status); }; } &&
2675         { ac_try='test -s conftest.$ac_objext'
2676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677  (eval $ac_try) 2>&5
2678  ac_status=$?
2679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680  (exit $ac_status); }; }; then
2681  ac_cv_prog_cc_stdc=$ac_arg
2682break
2683else
2684  echo "$as_me: failed program was:" >&5
2685sed 's/^/| /' conftest.$ac_ext >&5
2686
2687fi
2688rm -f conftest.err conftest.$ac_objext
2689done
2690rm -f conftest.$ac_ext conftest.$ac_objext
2691CC=$ac_save_CC
2692
2693fi
2694
2695case "x$ac_cv_prog_cc_stdc" in
2696  x|xno)
2697    echo "$as_me:$LINENO: result: none needed" >&5
2698echo "${ECHO_T}none needed" >&6 ;;
2699  *)
2700    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2701echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2702    CC="$CC $ac_cv_prog_cc_stdc" ;;
2703esac
2704
2705# Some people use a C++ compiler to compile C.  Since we use `exit',
2706# in C++ we need to declare it.  In case someone uses the same compiler
2707# for both compiling C and C++ we need to have the C++ compiler decide
2708# the declaration of exit, since it's the most demanding environment.
2709cat >conftest.$ac_ext <<_ACEOF
2710#ifndef __cplusplus
2711  choke me
2712#endif
2713_ACEOF
2714rm -f conftest.$ac_objext
2715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716  (eval $ac_compile) 2>conftest.er1
2717  ac_status=$?
2718  grep -v '^ *+' conftest.er1 >conftest.err
2719  rm -f conftest.er1
2720  cat conftest.err >&5
2721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722  (exit $ac_status); } &&
2723         { ac_try='test -z "$ac_c_werror_flag"
2724                         || test ! -s conftest.err'
2725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726  (eval $ac_try) 2>&5
2727  ac_status=$?
2728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729  (exit $ac_status); }; } &&
2730         { ac_try='test -s conftest.$ac_objext'
2731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732  (eval $ac_try) 2>&5
2733  ac_status=$?
2734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735  (exit $ac_status); }; }; then
2736  for ac_declaration in \
2737   '' \
2738   'extern "C" void std::exit (int) throw (); using std::exit;' \
2739   'extern "C" void std::exit (int); using std::exit;' \
2740   'extern "C" void exit (int) throw ();' \
2741   'extern "C" void exit (int);' \
2742   'void exit (int);'
2743do
2744  cat >conftest.$ac_ext <<_ACEOF
2745/* confdefs.h.  */
2746_ACEOF
2747cat confdefs.h >>conftest.$ac_ext
2748cat >>conftest.$ac_ext <<_ACEOF
2749/* end confdefs.h.  */
2750$ac_declaration
2751#include <stdlib.h>
2752int
2753main ()
2754{
2755exit (42);
2756  ;
2757  return 0;
2758}
2759_ACEOF
2760rm -f conftest.$ac_objext
2761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2762  (eval $ac_compile) 2>conftest.er1
2763  ac_status=$?
2764  grep -v '^ *+' conftest.er1 >conftest.err
2765  rm -f conftest.er1
2766  cat conftest.err >&5
2767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768  (exit $ac_status); } &&
2769         { ac_try='test -z "$ac_c_werror_flag"
2770                         || test ! -s conftest.err'
2771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772  (eval $ac_try) 2>&5
2773  ac_status=$?
2774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775  (exit $ac_status); }; } &&
2776         { ac_try='test -s conftest.$ac_objext'
2777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778  (eval $ac_try) 2>&5
2779  ac_status=$?
2780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781  (exit $ac_status); }; }; then
2782  :
2783else
2784  echo "$as_me: failed program was:" >&5
2785sed 's/^/| /' conftest.$ac_ext >&5
2786
2787continue
2788fi
2789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2790  cat >conftest.$ac_ext <<_ACEOF
2791/* confdefs.h.  */
2792_ACEOF
2793cat confdefs.h >>conftest.$ac_ext
2794cat >>conftest.$ac_ext <<_ACEOF
2795/* end confdefs.h.  */
2796$ac_declaration
2797int
2798main ()
2799{
2800exit (42);
2801  ;
2802  return 0;
2803}
2804_ACEOF
2805rm -f conftest.$ac_objext
2806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807  (eval $ac_compile) 2>conftest.er1
2808  ac_status=$?
2809  grep -v '^ *+' conftest.er1 >conftest.err
2810  rm -f conftest.er1
2811  cat conftest.err >&5
2812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813  (exit $ac_status); } &&
2814         { ac_try='test -z "$ac_c_werror_flag"
2815                         || test ! -s conftest.err'
2816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817  (eval $ac_try) 2>&5
2818  ac_status=$?
2819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820  (exit $ac_status); }; } &&
2821         { ac_try='test -s conftest.$ac_objext'
2822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823  (eval $ac_try) 2>&5
2824  ac_status=$?
2825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826  (exit $ac_status); }; }; then
2827  break
2828else
2829  echo "$as_me: failed program was:" >&5
2830sed 's/^/| /' conftest.$ac_ext >&5
2831
2832fi
2833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2834done
2835rm -f conftest*
2836if test -n "$ac_declaration"; then
2837  echo '#ifdef __cplusplus' >>confdefs.h
2838  echo $ac_declaration      >>confdefs.h
2839  echo '#endif'             >>confdefs.h
2840fi
2841
2842else
2843  echo "$as_me: failed program was:" >&5
2844sed 's/^/| /' conftest.$ac_ext >&5
2845
2846fi
2847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2848ac_ext=c
2849ac_cpp='$CPP $CPPFLAGS'
2850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852ac_compiler_gnu=$ac_cv_c_compiler_gnu
2853
2854
2855ac_ext=c
2856ac_cpp='$CPP $CPPFLAGS'
2857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2859ac_compiler_gnu=$ac_cv_c_compiler_gnu
2860echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2861echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2862# On Suns, sometimes $CPP names a directory.
2863if test -n "$CPP" && test -d "$CPP"; then
2864  CPP=
2865fi
2866if test -z "$CPP"; then
2867  if test "${ac_cv_prog_CPP+set}" = set; then
2868  echo $ECHO_N "(cached) $ECHO_C" >&6
2869else
2870      # Double quotes because CPP needs to be expanded
2871    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2872    do
2873      ac_preproc_ok=false
2874for ac_c_preproc_warn_flag in '' yes
2875do
2876  # Use a header file that comes with gcc, so configuring glibc
2877  # with a fresh cross-compiler works.
2878  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2879  # <limits.h> exists even on freestanding compilers.
2880  # On the NeXT, cc -E runs the code through the compiler's parser,
2881  # not just through cpp. "Syntax error" is here to catch this case.
2882  cat >conftest.$ac_ext <<_ACEOF
2883/* confdefs.h.  */
2884_ACEOF
2885cat confdefs.h >>conftest.$ac_ext
2886cat >>conftest.$ac_ext <<_ACEOF
2887/* end confdefs.h.  */
2888#ifdef __STDC__
2889# include <limits.h>
2890#else
2891# include <assert.h>
2892#endif
2893                     Syntax error
2894_ACEOF
2895if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2897  ac_status=$?
2898  grep -v '^ *+' conftest.er1 >conftest.err
2899  rm -f conftest.er1
2900  cat conftest.err >&5
2901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902  (exit $ac_status); } >/dev/null; then
2903  if test -s conftest.err; then
2904    ac_cpp_err=$ac_c_preproc_warn_flag
2905    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2906  else
2907    ac_cpp_err=
2908  fi
2909else
2910  ac_cpp_err=yes
2911fi
2912if test -z "$ac_cpp_err"; then
2913  :
2914else
2915  echo "$as_me: failed program was:" >&5
2916sed 's/^/| /' conftest.$ac_ext >&5
2917
2918  # Broken: fails on valid input.
2919continue
2920fi
2921rm -f conftest.err conftest.$ac_ext
2922
2923  # OK, works on sane cases.  Now check whether non-existent headers
2924  # can be detected and how.
2925  cat >conftest.$ac_ext <<_ACEOF
2926/* confdefs.h.  */
2927_ACEOF
2928cat confdefs.h >>conftest.$ac_ext
2929cat >>conftest.$ac_ext <<_ACEOF
2930/* end confdefs.h.  */
2931#include <ac_nonexistent.h>
2932_ACEOF
2933if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2935  ac_status=$?
2936  grep -v '^ *+' conftest.er1 >conftest.err
2937  rm -f conftest.er1
2938  cat conftest.err >&5
2939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940  (exit $ac_status); } >/dev/null; then
2941  if test -s conftest.err; then
2942    ac_cpp_err=$ac_c_preproc_warn_flag
2943    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2944  else
2945    ac_cpp_err=
2946  fi
2947else
2948  ac_cpp_err=yes
2949fi
2950if test -z "$ac_cpp_err"; then
2951  # Broken: success on invalid input.
2952continue
2953else
2954  echo "$as_me: failed program was:" >&5
2955sed 's/^/| /' conftest.$ac_ext >&5
2956
2957  # Passes both tests.
2958ac_preproc_ok=:
2959break
2960fi
2961rm -f conftest.err conftest.$ac_ext
2962
2963done
2964# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2965rm -f conftest.err conftest.$ac_ext
2966if $ac_preproc_ok; then
2967  break
2968fi
2969
2970    done
2971    ac_cv_prog_CPP=$CPP
2972
2973fi
2974  CPP=$ac_cv_prog_CPP
2975else
2976  ac_cv_prog_CPP=$CPP
2977fi
2978echo "$as_me:$LINENO: result: $CPP" >&5
2979echo "${ECHO_T}$CPP" >&6
2980ac_preproc_ok=false
2981for ac_c_preproc_warn_flag in '' yes
2982do
2983  # Use a header file that comes with gcc, so configuring glibc
2984  # with a fresh cross-compiler works.
2985  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2986  # <limits.h> exists even on freestanding compilers.
2987  # On the NeXT, cc -E runs the code through the compiler's parser,
2988  # not just through cpp. "Syntax error" is here to catch this case.
2989  cat >conftest.$ac_ext <<_ACEOF
2990/* confdefs.h.  */
2991_ACEOF
2992cat confdefs.h >>conftest.$ac_ext
2993cat >>conftest.$ac_ext <<_ACEOF
2994/* end confdefs.h.  */
2995#ifdef __STDC__
2996# include <limits.h>
2997#else
2998# include <assert.h>
2999#endif
3000                     Syntax error
3001_ACEOF
3002if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3003  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3004  ac_status=$?
3005  grep -v '^ *+' conftest.er1 >conftest.err
3006  rm -f conftest.er1
3007  cat conftest.err >&5
3008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009  (exit $ac_status); } >/dev/null; then
3010  if test -s conftest.err; then
3011    ac_cpp_err=$ac_c_preproc_warn_flag
3012    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3013  else
3014    ac_cpp_err=
3015  fi
3016else
3017  ac_cpp_err=yes
3018fi
3019if test -z "$ac_cpp_err"; then
3020  :
3021else
3022  echo "$as_me: failed program was:" >&5
3023sed 's/^/| /' conftest.$ac_ext >&5
3024
3025  # Broken: fails on valid input.
3026continue
3027fi
3028rm -f conftest.err conftest.$ac_ext
3029
3030  # OK, works on sane cases.  Now check whether non-existent headers
3031  # can be detected and how.
3032  cat >conftest.$ac_ext <<_ACEOF
3033/* confdefs.h.  */
3034_ACEOF
3035cat confdefs.h >>conftest.$ac_ext
3036cat >>conftest.$ac_ext <<_ACEOF
3037/* end confdefs.h.  */
3038#include <ac_nonexistent.h>
3039_ACEOF
3040if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3041  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3042  ac_status=$?
3043  grep -v '^ *+' conftest.er1 >conftest.err
3044  rm -f conftest.er1
3045  cat conftest.err >&5
3046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047  (exit $ac_status); } >/dev/null; then
3048  if test -s conftest.err; then
3049    ac_cpp_err=$ac_c_preproc_warn_flag
3050    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3051  else
3052    ac_cpp_err=
3053  fi
3054else
3055  ac_cpp_err=yes
3056fi
3057if test -z "$ac_cpp_err"; then
3058  # Broken: success on invalid input.
3059continue
3060else
3061  echo "$as_me: failed program was:" >&5
3062sed 's/^/| /' conftest.$ac_ext >&5
3063
3064  # Passes both tests.
3065ac_preproc_ok=:
3066break
3067fi
3068rm -f conftest.err conftest.$ac_ext
3069
3070done
3071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3072rm -f conftest.err conftest.$ac_ext
3073if $ac_preproc_ok; then
3074  :
3075else
3076  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3077See \`config.log' for more details." >&5
3078echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3079See \`config.log' for more details." >&2;}
3080   { (exit 1); exit 1; }; }
3081fi
3082
3083ac_ext=c
3084ac_cpp='$CPP $CPPFLAGS'
3085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088
3089
3090echo "$as_me:$LINENO: checking for X" >&5
3091echo $ECHO_N "checking for X... $ECHO_C" >&6
3092
3093
3094# Check whether --with-x or --without-x was given.
3095if test "${with_x+set}" = set; then
3096  withval="$with_x"
3097
3098fi;
3099# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3100if test "x$with_x" = xno; then
3101  # The user explicitly disabled X.
3102  have_x=disabled
3103else
3104  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3105    # Both variables are already set.
3106    have_x=yes
3107  else
3108    if test "${ac_cv_have_x+set}" = set; then
3109  echo $ECHO_N "(cached) $ECHO_C" >&6
3110else
3111  # One or both of the vars are not set, and there is no cached value.
3112ac_x_includes=no ac_x_libraries=no
3113rm -fr conftest.dir
3114if mkdir conftest.dir; then
3115  cd conftest.dir
3116  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3117  cat >Imakefile <<'_ACEOF'
3118acfindx:
3119        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3120_ACEOF
3121  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3122    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3123    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3124    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3125    for ac_extension in a so sl; do
3126      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3127         test -f $ac_im_libdir/libX11.$ac_extension; then
3128        ac_im_usrlibdir=$ac_im_libdir; break
3129      fi
3130    done
3131    # Screen out bogus values from the imake configuration.  They are
3132    # bogus both because they are the default anyway, and because
3133    # using them would break gcc on systems where it needs fixed includes.
3134    case $ac_im_incroot in
3135        /usr/include) ;;
3136        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3137    esac
3138    case $ac_im_usrlibdir in
3139        /usr/lib | /lib) ;;
3140        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3141    esac
3142  fi
3143  cd ..
3144  rm -fr conftest.dir
3145fi
3146
3147# Standard set of common directories for X headers.
3148# Check X11 before X11Rn because it is often a symlink to the current release.
3149ac_x_header_dirs='
3150/usr/X11/include
3151/usr/X11R6/include
3152/usr/X11R5/include
3153/usr/X11R4/include
3154
3155/usr/include/X11
3156/usr/include/X11R6
3157/usr/include/X11R5
3158/usr/include/X11R4
3159
3160/usr/local/X11/include
3161/usr/local/X11R6/include
3162/usr/local/X11R5/include
3163/usr/local/X11R4/include
3164
3165/usr/local/include/X11
3166/usr/local/include/X11R6
3167/usr/local/include/X11R5
3168/usr/local/include/X11R4
3169
3170/usr/X386/include
3171/usr/x386/include
3172/usr/XFree86/include/X11
3173
3174/usr/include
3175/usr/local/include
3176/usr/unsupported/include
3177/usr/athena/include
3178/usr/local/x11r5/include
3179/usr/lpp/Xamples/include
3180
3181/usr/openwin/include
3182/usr/openwin/share/include'
3183
3184if test "$ac_x_includes" = no; then
3185  # Guess where to find include files, by looking for Intrinsic.h.
3186  # First, try using that file with no special directory specified.
3187  cat >conftest.$ac_ext <<_ACEOF
3188/* confdefs.h.  */
3189_ACEOF
3190cat confdefs.h >>conftest.$ac_ext
3191cat >>conftest.$ac_ext <<_ACEOF
3192/* end confdefs.h.  */
3193#include <X11/Intrinsic.h>
3194_ACEOF
3195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3196  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3197  ac_status=$?
3198  grep -v '^ *+' conftest.er1 >conftest.err
3199  rm -f conftest.er1
3200  cat conftest.err >&5
3201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202  (exit $ac_status); } >/dev/null; then
3203  if test -s conftest.err; then
3204    ac_cpp_err=$ac_c_preproc_warn_flag
3205    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3206  else
3207    ac_cpp_err=
3208  fi
3209else
3210  ac_cpp_err=yes
3211fi
3212if test -z "$ac_cpp_err"; then
3213  # We can compile using X headers with no special include directory.
3214ac_x_includes=
3215else
3216  echo "$as_me: failed program was:" >&5
3217sed 's/^/| /' conftest.$ac_ext >&5
3218
3219  for ac_dir in $ac_x_header_dirs; do
3220  if test -r "$ac_dir/X11/Intrinsic.h"; then
3221    ac_x_includes=$ac_dir
3222    break
3223  fi
3224done
3225fi
3226rm -f conftest.err conftest.$ac_ext
3227fi # $ac_x_includes = no
3228
3229if test "$ac_x_libraries" = no; then
3230  # Check for the libraries.
3231  # See if we find them without any special options.
3232  # Don't add to $LIBS permanently.
3233  ac_save_LIBS=$LIBS
3234  LIBS="-lXt $LIBS"
3235  cat >conftest.$ac_ext <<_ACEOF
3236/* confdefs.h.  */
3237_ACEOF
3238cat confdefs.h >>conftest.$ac_ext
3239cat >>conftest.$ac_ext <<_ACEOF
3240/* end confdefs.h.  */
3241#include <X11/Intrinsic.h>
3242int
3243main ()
3244{
3245XtMalloc (0)
3246  ;
3247  return 0;
3248}
3249_ACEOF
3250rm -f conftest.$ac_objext conftest$ac_exeext
3251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3252  (eval $ac_link) 2>conftest.er1
3253  ac_status=$?
3254  grep -v '^ *+' conftest.er1 >conftest.err
3255  rm -f conftest.er1
3256  cat conftest.err >&5
3257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258  (exit $ac_status); } &&
3259         { ac_try='test -z "$ac_c_werror_flag"
3260                         || test ! -s conftest.err'
3261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262  (eval $ac_try) 2>&5
3263  ac_status=$?
3264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265  (exit $ac_status); }; } &&
3266         { ac_try='test -s conftest$ac_exeext'
3267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268  (eval $ac_try) 2>&5
3269  ac_status=$?
3270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271  (exit $ac_status); }; }; then
3272  LIBS=$ac_save_LIBS
3273# We can link X programs with no special library path.
3274ac_x_libraries=
3275else
3276  echo "$as_me: failed program was:" >&5
3277sed 's/^/| /' conftest.$ac_ext >&5
3278
3279LIBS=$ac_save_LIBS
3280for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3281do
3282  # Don't even attempt the hair of trying to link an X program!
3283  for ac_extension in a so sl; do
3284    if test -r $ac_dir/libXt.$ac_extension; then
3285      ac_x_libraries=$ac_dir
3286      break 2
3287    fi
3288  done
3289done
3290fi
3291rm -f conftest.err conftest.$ac_objext \
3292      conftest$ac_exeext conftest.$ac_ext
3293fi # $ac_x_libraries = no
3294
3295if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3296  # Didn't find X anywhere.  Cache the known absence of X.
3297  ac_cv_have_x="have_x=no"
3298else
3299  # Record where we found X for the cache.
3300  ac_cv_have_x="have_x=yes \
3301                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3302fi
3303fi
3304
3305  fi
3306  eval "$ac_cv_have_x"
3307fi # $with_x != no
3308
3309if test "$have_x" != yes; then
3310  echo "$as_me:$LINENO: result: $have_x" >&5
3311echo "${ECHO_T}$have_x" >&6
3312  no_x=yes
3313else
3314  # If each of the values was on the command line, it overrides each guess.
3315  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3316  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3317  # Update the cache value to reflect the command line values.
3318  ac_cv_have_x="have_x=yes \
3319                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3320  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3321echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3322fi
3323
3324CXXFLAGS="$CXXFLAGS -I$x_includes"
3325case $host_os in
3326linux*)
3327  LIBS="-L$x_libraries $LIBS"
3328  ELF_LINK_FLAGS="" ;;
3329*)
3330  LIBS="-L$x_libraries -R$x_libraries $LIBS"
3331  ELF_LINK_FLAGS="-Wl,-R$x_libraries" ;;
3332esac
3333
3334
3335if test -r /usr/X11R6 ; then
3336    ac_default_prefix=/usr/X11R6
3337fi
3338
3339
3340
3341
3342# Find a good install program.  We prefer a C program (faster),
3343# so one script is as good as another.  But avoid the broken or
3344# incompatible versions:
3345# SysV /etc/install, /usr/sbin/install
3346# SunOS /usr/etc/install
3347# IRIX /sbin/install
3348# AIX /bin/install
3349# AmigaOS /C/install, which installs bootblocks on floppy discs
3350# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3351# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3352# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3353# OS/2's system install, which has a completely different semantic
3354# ./install, which can be erroneously created by make from ./install.sh.
3355echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3356echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3357if test -z "$INSTALL"; then
3358if test "${ac_cv_path_install+set}" = set; then
3359  echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362for as_dir in $PATH
3363do
3364  IFS=$as_save_IFS
3365  test -z "$as_dir" && as_dir=.
3366  # Account for people who put trailing slashes in PATH elements.
3367case $as_dir/ in
3368  ./ | .// | /cC/* | \
3369  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3370  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3371  /usr/ucb/* ) ;;
3372  *)
3373    # OSF1 and SCO ODT 3.0 have their own names for install.
3374    # Don't use installbsd from OSF since it installs stuff as root
3375    # by default.
3376    for ac_prog in ginstall scoinst install; do
3377      for ac_exec_ext in '' $ac_executable_extensions; do
3378        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3379          if test $ac_prog = install &&
3380            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3381            # AIX install.  It has an incompatible calling convention.
3382            :
3383          elif test $ac_prog = install &&
3384            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3385            # program-specific install script used by HP pwplus--don't use.
3386            :
3387          else
3388            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3389            break 3
3390          fi
3391        fi
3392      done
3393    done
3394    ;;
3395esac
3396done
3397
3398
3399fi
3400  if test "${ac_cv_path_install+set}" = set; then
3401    INSTALL=$ac_cv_path_install
3402  else
3403    # As a last resort, use the slow shell script.  We don't cache a
3404    # path for INSTALL within a source directory, because that will
3405    # break other packages using the cache if that directory is
3406    # removed, or if the path is relative.
3407    INSTALL=$ac_install_sh
3408  fi
3409fi
3410echo "$as_me:$LINENO: result: $INSTALL" >&5
3411echo "${ECHO_T}$INSTALL" >&6
3412
3413# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3414# It thinks the first close brace ends the variable substitution.
3415test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3416
3417test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3418
3419test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3420
3421for ac_prog in gawk mawk nawk awk
3422do
3423  # Extract the first word of "$ac_prog", so it can be a program name with args.
3424set dummy $ac_prog; ac_word=$2
3425echo "$as_me:$LINENO: checking for $ac_word" >&5
3426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3427if test "${ac_cv_prog_AWK+set}" = set; then
3428  echo $ECHO_N "(cached) $ECHO_C" >&6
3429else
3430  if test -n "$AWK"; then
3431  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3432else
3433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434for as_dir in $PATH
3435do
3436  IFS=$as_save_IFS
3437  test -z "$as_dir" && as_dir=.
3438  for ac_exec_ext in '' $ac_executable_extensions; do
3439  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3440    ac_cv_prog_AWK="$ac_prog"
3441    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3442    break 2
3443  fi
3444done
3445done
3446
3447fi
3448fi
3449AWK=$ac_cv_prog_AWK
3450if test -n "$AWK"; then
3451  echo "$as_me:$LINENO: result: $AWK" >&5
3452echo "${ECHO_T}$AWK" >&6
3453else
3454  echo "$as_me:$LINENO: result: no" >&5
3455echo "${ECHO_T}no" >&6
3456fi
3457
3458  test -n "$AWK" && break
3459done
3460
3461if test -n "$ac_tool_prefix"; then
3462  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3463set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3464echo "$as_me:$LINENO: checking for $ac_word" >&5
3465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3466if test "${ac_cv_prog_RANLIB+set}" = set; then
3467  echo $ECHO_N "(cached) $ECHO_C" >&6
3468else
3469  if test -n "$RANLIB"; then
3470  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3471else
3472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473for as_dir in $PATH
3474do
3475  IFS=$as_save_IFS
3476  test -z "$as_dir" && as_dir=.
3477  for ac_exec_ext in '' $ac_executable_extensions; do
3478  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3480    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3481    break 2
3482  fi
3483done
3484done
3485
3486fi
3487fi
3488RANLIB=$ac_cv_prog_RANLIB
3489if test -n "$RANLIB"; then
3490  echo "$as_me:$LINENO: result: $RANLIB" >&5
3491echo "${ECHO_T}$RANLIB" >&6
3492else
3493  echo "$as_me:$LINENO: result: no" >&5
3494echo "${ECHO_T}no" >&6
3495fi
3496
3497fi
3498if test -z "$ac_cv_prog_RANLIB"; then
3499  ac_ct_RANLIB=$RANLIB
3500  # Extract the first word of "ranlib", so it can be a program name with args.
3501set dummy ranlib; ac_word=$2
3502echo "$as_me:$LINENO: checking for $ac_word" >&5
3503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3505  echo $ECHO_N "(cached) $ECHO_C" >&6
3506else
3507  if test -n "$ac_ct_RANLIB"; then
3508  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3509else
3510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511for as_dir in $PATH
3512do
3513  IFS=$as_save_IFS
3514  test -z "$as_dir" && as_dir=.
3515  for ac_exec_ext in '' $ac_executable_extensions; do
3516  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517    ac_cv_prog_ac_ct_RANLIB="ranlib"
3518    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519    break 2
3520  fi
3521done
3522done
3523
3524  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3525fi
3526fi
3527ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3528if test -n "$ac_ct_RANLIB"; then
3529  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3530echo "${ECHO_T}$ac_ct_RANLIB" >&6
3531else
3532  echo "$as_me:$LINENO: result: no" >&5
3533echo "${ECHO_T}no" >&6
3534fi
3535
3536  RANLIB=$ac_ct_RANLIB
3537else
3538  RANLIB="$ac_cv_prog_RANLIB"
3539fi
3540
3541
3542# Check whether --enable-auto-depend or --disable-auto-depend was given.
3543if test "${enable_auto_depend+set}" = set; then
3544  enableval="$enable_auto_depend"
3545  CPP_DEP=""
3546
3547        echo "$as_me:$LINENO: checking for -Wp,-MD,depfile as CXX compilation switch" >&5
3548echo $ECHO_N "checking for -Wp,-MD,depfile as CXX compilation switch... $ECHO_C" >&6
3549        cat > conftest.c <<__EOF
3550int main() { return 0;}
3551__EOF
3552        my_c='${CXX-cc} $CXXFLAGS -Wp,-MD,depfile conftest.c -o conftest${ac_exeext}'
3553        (eval echo configure:3553: \"$my_c\") 1>&5
3554        (eval $my_c 1>/dev/null 2>conftest.log)
3555        cat conftest.log 1>&5
3556        if grep <conftest.log option  >/dev/null ||
3557           grep <conftest.log ERROR >/dev/null
3558        then
3559                my_cxx_switch="no"
3560                echo "$as_me:$LINENO: result: no" >&5
3561echo "${ECHO_T}no" >&6
3562        else
3563                my_cxx_switch="yes"
3564                echo "$as_me:$LINENO: result: yes" >&5
3565echo "${ECHO_T}yes" >&6
3566        fi
3567        rm -rf conftest*
3568
3569rm -f depfile
3570if test "$my_cxx_switch" = "yes"
3571then
3572        CPP_DEP='-Wp,-MD,.$@.d'
3573fi
3574
3575if test "$enableval" = "no"
3576then
3577        AUTODEPEND=""
3578        AUTODEPRULE='\
3579##  Autodepend rule defaults to disabled.\
3580#-include Makefile.GNU.autodep'
3581        AUTODEPRULE_SUBDIR='\
3582##  Autodepend rule defaults to disabled.\
3583#-include ../Makefile.GNU.autodep'
3584        echo "disabled automatic dependencies"
3585else
3586        AUTODEPEND='-include $(DEPFILES)'
3587    if test "$my_cxx_switch" = "no"
3588    then
3589        AUTODEPRULE='-include Makefile.GNU.autodep'
3590        AUTODEPRULE_SUBDIR='-include ../Makefile.GNU.autodep'
3591        echo "enabled  automatic dependencies"
3592    else
3593        AUTODEPRULE=""
3594        AUTODEPRULE_SUBDIR=""
3595        echo "enabled automatic dependencies"
3596    fi
3597fi
3598
3599else
3600  AUTODEPEND=
3601AUTODEPRULE='\
3602##  Autodepend rule defaults to disabled.\
3603#-include Makefile.GNU.autodep'
3604AUTODEPRULE_SUBDIR='\
3605##  Autodepend rule defaults to disabled.\
3606#-include ../Makefile.GNU.autodep'
3607echo "disabled automatic dependencies by default"
3608
3609fi;
3610
3611
3612
3613
3614
3615
3616for ac_func in snprintf
3617do
3618as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3619echo "$as_me:$LINENO: checking for $ac_func" >&5
3620echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3621if eval "test \"\${$as_ac_var+set}\" = set"; then
3622  echo $ECHO_N "(cached) $ECHO_C" >&6
3623else
3624  cat >conftest.$ac_ext <<_ACEOF
3625/* confdefs.h.  */
3626_ACEOF
3627cat confdefs.h >>conftest.$ac_ext
3628cat >>conftest.$ac_ext <<_ACEOF
3629/* end confdefs.h.  */
3630/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3631   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3632#define $ac_func innocuous_$ac_func
3633
3634/* System header to define __stub macros and hopefully few prototypes,
3635    which can conflict with char $ac_func (); below.
3636    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3637    <limits.h> exists even on freestanding compilers.  */
3638
3639#ifdef __STDC__
3640# include <limits.h>
3641#else
3642# include <assert.h>
3643#endif
3644
3645#undef $ac_func
3646
3647/* Override any gcc2 internal prototype to avoid an error.  */
3648#ifdef __cplusplus
3649extern "C"
3650{
3651#endif
3652/* We use char because int might match the return type of a gcc2
3653   builtin and then its argument prototype would still apply.  */
3654char $ac_func ();
3655/* The GNU C library defines this for functions which it implements
3656    to always fail with ENOSYS.  Some functions are actually named
3657    something starting with __ and the normal name is an alias.  */
3658#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3659choke me
3660#else
3661char (*f) () = $ac_func;
3662#endif
3663#ifdef __cplusplus
3664}
3665#endif
3666
3667int
3668main ()
3669{
3670return f != $ac_func;
3671  ;
3672  return 0;
3673}
3674_ACEOF
3675rm -f conftest.$ac_objext conftest$ac_exeext
3676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3677  (eval $ac_link) 2>conftest.er1
3678  ac_status=$?
3679  grep -v '^ *+' conftest.er1 >conftest.err
3680  rm -f conftest.er1
3681  cat conftest.err >&5
3682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683  (exit $ac_status); } &&
3684         { ac_try='test -z "$ac_c_werror_flag"
3685                         || test ! -s conftest.err'
3686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687  (eval $ac_try) 2>&5
3688  ac_status=$?
3689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690  (exit $ac_status); }; } &&
3691         { ac_try='test -s conftest$ac_exeext'
3692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693  (eval $ac_try) 2>&5
3694  ac_status=$?
3695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696  (exit $ac_status); }; }; then
3697  eval "$as_ac_var=yes"
3698else
3699  echo "$as_me: failed program was:" >&5
3700sed 's/^/| /' conftest.$ac_ext >&5
3701
3702eval "$as_ac_var=no"
3703fi
3704rm -f conftest.err conftest.$ac_objext \
3705      conftest$ac_exeext conftest.$ac_ext
3706fi
3707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3708echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3709if test `eval echo '${'$as_ac_var'}'` = yes; then
3710  cat >>confdefs.h <<_ACEOF
3711#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3712_ACEOF
3713
3714fi
3715done
3716
3717
3718
3719
3720ac_ext=cc
3721ac_cpp='$CXXCPP $CPPFLAGS'
3722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3725
3726ac_ext=cc
3727ac_cpp='$CXXCPP $CPPFLAGS'
3728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3731echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3732echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3733if test -z "$CXXCPP"; then
3734  if test "${ac_cv_prog_CXXCPP+set}" = set; then
3735  echo $ECHO_N "(cached) $ECHO_C" >&6
3736else
3737      # Double quotes because CXXCPP needs to be expanded
3738    for CXXCPP in "$CXX -E" "/lib/cpp"
3739    do
3740      ac_preproc_ok=false
3741for ac_cxx_preproc_warn_flag in '' yes
3742do
3743  # Use a header file that comes with gcc, so configuring glibc
3744  # with a fresh cross-compiler works.
3745  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3746  # <limits.h> exists even on freestanding compilers.
3747  # On the NeXT, cc -E runs the code through the compiler's parser,
3748  # not just through cpp. "Syntax error" is here to catch this case.
3749  cat >conftest.$ac_ext <<_ACEOF
3750/* confdefs.h.  */
3751_ACEOF
3752cat confdefs.h >>conftest.$ac_ext
3753cat >>conftest.$ac_ext <<_ACEOF
3754/* end confdefs.h.  */
3755#ifdef __STDC__
3756# include <limits.h>
3757#else
3758# include <assert.h>
3759#endif
3760                     Syntax error
3761_ACEOF
3762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3763  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3764  ac_status=$?
3765  grep -v '^ *+' conftest.er1 >conftest.err
3766  rm -f conftest.er1
3767  cat conftest.err >&5
3768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769  (exit $ac_status); } >/dev/null; then
3770  if test -s conftest.err; then
3771    ac_cpp_err=$ac_cxx_preproc_warn_flag
3772    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3773  else
3774    ac_cpp_err=
3775  fi
3776else
3777  ac_cpp_err=yes
3778fi
3779if test -z "$ac_cpp_err"; then
3780  :
3781else
3782  echo "$as_me: failed program was:" >&5
3783sed 's/^/| /' conftest.$ac_ext >&5
3784
3785  # Broken: fails on valid input.
3786continue
3787fi
3788rm -f conftest.err conftest.$ac_ext
3789
3790  # OK, works on sane cases.  Now check whether non-existent headers
3791  # can be detected and how.
3792  cat >conftest.$ac_ext <<_ACEOF
3793/* confdefs.h.  */
3794_ACEOF
3795cat confdefs.h >>conftest.$ac_ext
3796cat >>conftest.$ac_ext <<_ACEOF
3797/* end confdefs.h.  */
3798#include <ac_nonexistent.h>
3799_ACEOF
3800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3801  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3802  ac_status=$?
3803  grep -v '^ *+' conftest.er1 >conftest.err
3804  rm -f conftest.er1
3805  cat conftest.err >&5
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); } >/dev/null; then
3808  if test -s conftest.err; then
3809    ac_cpp_err=$ac_cxx_preproc_warn_flag
3810    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3811  else
3812    ac_cpp_err=
3813  fi
3814else
3815  ac_cpp_err=yes
3816fi
3817if test -z "$ac_cpp_err"; then
3818  # Broken: success on invalid input.
3819continue
3820else
3821  echo "$as_me: failed program was:" >&5
3822sed 's/^/| /' conftest.$ac_ext >&5
3823
3824  # Passes both tests.
3825ac_preproc_ok=:
3826break
3827fi
3828rm -f conftest.err conftest.$ac_ext
3829
3830done
3831# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3832rm -f conftest.err conftest.$ac_ext
3833if $ac_preproc_ok; then
3834  break
3835fi
3836
3837    done
3838    ac_cv_prog_CXXCPP=$CXXCPP
3839
3840fi
3841  CXXCPP=$ac_cv_prog_CXXCPP
3842else
3843  ac_cv_prog_CXXCPP=$CXXCPP
3844fi
3845echo "$as_me:$LINENO: result: $CXXCPP" >&5
3846echo "${ECHO_T}$CXXCPP" >&6
3847ac_preproc_ok=false
3848for ac_cxx_preproc_warn_flag in '' yes
3849do
3850  # Use a header file that comes with gcc, so configuring glibc
3851  # with a fresh cross-compiler works.
3852  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3853  # <limits.h> exists even on freestanding compilers.
3854  # On the NeXT, cc -E runs the code through the compiler's parser,
3855  # not just through cpp. "Syntax error" is here to catch this case.
3856  cat >conftest.$ac_ext <<_ACEOF
3857/* confdefs.h.  */
3858_ACEOF
3859cat confdefs.h >>conftest.$ac_ext
3860cat >>conftest.$ac_ext <<_ACEOF
3861/* end confdefs.h.  */
3862#ifdef __STDC__
3863# include <limits.h>
3864#else
3865# include <assert.h>
3866#endif
3867                     Syntax error
3868_ACEOF
3869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3870  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3871  ac_status=$?
3872  grep -v '^ *+' conftest.er1 >conftest.err
3873  rm -f conftest.er1
3874  cat conftest.err >&5
3875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876  (exit $ac_status); } >/dev/null; then
3877  if test -s conftest.err; then
3878    ac_cpp_err=$ac_cxx_preproc_warn_flag
3879    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3880  else
3881    ac_cpp_err=
3882  fi
3883else
3884  ac_cpp_err=yes
3885fi
3886if test -z "$ac_cpp_err"; then
3887  :
3888else
3889  echo "$as_me: failed program was:" >&5
3890sed 's/^/| /' conftest.$ac_ext >&5
3891
3892  # Broken: fails on valid input.
3893continue
3894fi
3895rm -f conftest.err conftest.$ac_ext
3896
3897  # OK, works on sane cases.  Now check whether non-existent headers
3898  # can be detected and how.
3899  cat >conftest.$ac_ext <<_ACEOF
3900/* confdefs.h.  */
3901_ACEOF
3902cat confdefs.h >>conftest.$ac_ext
3903cat >>conftest.$ac_ext <<_ACEOF
3904/* end confdefs.h.  */
3905#include <ac_nonexistent.h>
3906_ACEOF
3907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3908  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3909  ac_status=$?
3910  grep -v '^ *+' conftest.er1 >conftest.err
3911  rm -f conftest.er1
3912  cat conftest.err >&5
3913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914  (exit $ac_status); } >/dev/null; then
3915  if test -s conftest.err; then
3916    ac_cpp_err=$ac_cxx_preproc_warn_flag
3917    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3918  else
3919    ac_cpp_err=
3920  fi
3921else
3922  ac_cpp_err=yes
3923fi
3924if test -z "$ac_cpp_err"; then
3925  # Broken: success on invalid input.
3926continue
3927else
3928  echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
3930
3931  # Passes both tests.
3932ac_preproc_ok=:
3933break
3934fi
3935rm -f conftest.err conftest.$ac_ext
3936
3937done
3938# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3939rm -f conftest.err conftest.$ac_ext
3940if $ac_preproc_ok; then
3941  :
3942else
3943  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3944See \`config.log' for more details." >&5
3945echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3946See \`config.log' for more details." >&2;}
3947   { (exit 1); exit 1; }; }
3948fi
3949
3950ac_ext=cc
3951ac_cpp='$CXXCPP $CPPFLAGS'
3952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3955
3956
3957echo "$as_me:$LINENO: checking for egrep" >&5
3958echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3959if test "${ac_cv_prog_egrep+set}" = set; then
3960  echo $ECHO_N "(cached) $ECHO_C" >&6
3961else
3962  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3963    then ac_cv_prog_egrep='grep -E'
3964    else ac_cv_prog_egrep='egrep'
3965    fi
3966fi
3967echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3968echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3969 EGREP=$ac_cv_prog_egrep
3970
3971
3972echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3973echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3974if test "${ac_cv_header_stdc+set}" = set; then
3975  echo $ECHO_N "(cached) $ECHO_C" >&6
3976else
3977  cat >conftest.$ac_ext <<_ACEOF
3978/* confdefs.h.  */
3979_ACEOF
3980cat confdefs.h >>conftest.$ac_ext
3981cat >>conftest.$ac_ext <<_ACEOF
3982/* end confdefs.h.  */
3983#include <stdlib.h>
3984#include <stdarg.h>
3985#include <string.h>
3986#include <float.h>
3987
3988int
3989main ()
3990{
3991
3992  ;
3993  return 0;
3994}
3995_ACEOF
3996rm -f conftest.$ac_objext
3997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3998  (eval $ac_compile) 2>conftest.er1
3999  ac_status=$?
4000  grep -v '^ *+' conftest.er1 >conftest.err
4001  rm -f conftest.er1
4002  cat conftest.err >&5
4003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004  (exit $ac_status); } &&
4005         { ac_try='test -z "$ac_cxx_werror_flag"
4006                         || test ! -s conftest.err'
4007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008  (eval $ac_try) 2>&5
4009  ac_status=$?
4010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011  (exit $ac_status); }; } &&
4012         { ac_try='test -s conftest.$ac_objext'
4013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014  (eval $ac_try) 2>&5
4015  ac_status=$?
4016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017  (exit $ac_status); }; }; then
4018  ac_cv_header_stdc=yes
4019else
4020  echo "$as_me: failed program was:" >&5
4021sed 's/^/| /' conftest.$ac_ext >&5
4022
4023ac_cv_header_stdc=no
4024fi
4025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4026
4027if test $ac_cv_header_stdc = yes; then
4028  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4029  cat >conftest.$ac_ext <<_ACEOF
4030/* confdefs.h.  */
4031_ACEOF
4032cat confdefs.h >>conftest.$ac_ext
4033cat >>conftest.$ac_ext <<_ACEOF
4034/* end confdefs.h.  */
4035#include <string.h>
4036
4037_ACEOF
4038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4039  $EGREP "memchr" >/dev/null 2>&1; then
4040  :
4041else
4042  ac_cv_header_stdc=no
4043fi
4044rm -f conftest*
4045
4046fi
4047
4048if test $ac_cv_header_stdc = yes; then
4049  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4050  cat >conftest.$ac_ext <<_ACEOF
4051/* confdefs.h.  */
4052_ACEOF
4053cat confdefs.h >>conftest.$ac_ext
4054cat >>conftest.$ac_ext <<_ACEOF
4055/* end confdefs.h.  */
4056#include <stdlib.h>
4057
4058_ACEOF
4059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4060  $EGREP "free" >/dev/null 2>&1; then
4061  :
4062else
4063  ac_cv_header_stdc=no
4064fi
4065rm -f conftest*
4066
4067fi
4068
4069if test $ac_cv_header_stdc = yes; then
4070  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4071  if test "$cross_compiling" = yes; then
4072  :
4073else
4074  cat >conftest.$ac_ext <<_ACEOF
4075/* confdefs.h.  */
4076_ACEOF
4077cat confdefs.h >>conftest.$ac_ext
4078cat >>conftest.$ac_ext <<_ACEOF
4079/* end confdefs.h.  */
4080#include <ctype.h>
4081#if ((' ' & 0x0FF) == 0x020)
4082# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4083# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4084#else
4085# define ISLOWER(c) \
4086                   (('a' <= (c) && (c) <= 'i') \
4087                     || ('j' <= (c) && (c) <= 'r') \
4088                     || ('s' <= (c) && (c) <= 'z'))
4089# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4090#endif
4091
4092#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4093int
4094main ()
4095{
4096  int i;
4097  for (i = 0; i < 256; i++)
4098    if (XOR (islower (i), ISLOWER (i))
4099        || toupper (i) != TOUPPER (i))
4100      exit(2);
4101  exit (0);
4102}
4103_ACEOF
4104rm -f conftest$ac_exeext
4105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4106  (eval $ac_link) 2>&5
4107  ac_status=$?
4108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111  (eval $ac_try) 2>&5
4112  ac_status=$?
4113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114  (exit $ac_status); }; }; then
4115  :
4116else
4117  echo "$as_me: program exited with status $ac_status" >&5
4118echo "$as_me: failed program was:" >&5
4119sed 's/^/| /' conftest.$ac_ext >&5
4120
4121( exit $ac_status )
4122ac_cv_header_stdc=no
4123fi
4124rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4125fi
4126fi
4127fi
4128echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4129echo "${ECHO_T}$ac_cv_header_stdc" >&6
4130if test $ac_cv_header_stdc = yes; then
4131
4132cat >>confdefs.h <<\_ACEOF
4133#define STDC_HEADERS 1
4134_ACEOF
4135
4136fi
4137
4138# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4149                  inttypes.h stdint.h unistd.h
4150do
4151as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4152echo "$as_me:$LINENO: checking for $ac_header" >&5
4153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4154if eval "test \"\${$as_ac_Header+set}\" = set"; then
4155  echo $ECHO_N "(cached) $ECHO_C" >&6
4156else
4157  cat >conftest.$ac_ext <<_ACEOF
4158/* confdefs.h.  */
4159_ACEOF
4160cat confdefs.h >>conftest.$ac_ext
4161cat >>conftest.$ac_ext <<_ACEOF
4162/* end confdefs.h.  */
4163$ac_includes_default
4164
4165#include <$ac_header>
4166_ACEOF
4167rm -f conftest.$ac_objext
4168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169  (eval $ac_compile) 2>conftest.er1
4170  ac_status=$?
4171  grep -v '^ *+' conftest.er1 >conftest.err
4172  rm -f conftest.er1
4173  cat conftest.err >&5
4174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175  (exit $ac_status); } &&
4176         { ac_try='test -z "$ac_cxx_werror_flag"
4177                         || test ! -s conftest.err'
4178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179  (eval $ac_try) 2>&5
4180  ac_status=$?
4181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182  (exit $ac_status); }; } &&
4183         { ac_try='test -s conftest.$ac_objext'
4184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185  (eval $ac_try) 2>&5
4186  ac_status=$?
4187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188  (exit $ac_status); }; }; then
4189  eval "$as_ac_Header=yes"
4190else
4191  echo "$as_me: failed program was:" >&5
4192sed 's/^/| /' conftest.$ac_ext >&5
4193
4194eval "$as_ac_Header=no"
4195fi
4196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4197fi
4198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4199echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4200if test `eval echo '${'$as_ac_Header'}'` = yes; then
4201  cat >>confdefs.h <<_ACEOF
4202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4203_ACEOF
4204
4205fi
4206
4207done
4208
4209
4210
4211for ac_header in iostream
4212do
4213as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4214if eval "test \"\${$as_ac_Header+set}\" = set"; then
4215  echo "$as_me:$LINENO: checking for $ac_header" >&5
4216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4217if eval "test \"\${$as_ac_Header+set}\" = set"; then
4218  echo $ECHO_N "(cached) $ECHO_C" >&6
4219fi
4220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4221echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4222else
4223  # Is the header compilable?
4224echo "$as_me:$LINENO: checking $ac_header usability" >&5
4225echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4226cat >conftest.$ac_ext <<_ACEOF
4227/* confdefs.h.  */
4228_ACEOF
4229cat confdefs.h >>conftest.$ac_ext
4230cat >>conftest.$ac_ext <<_ACEOF
4231/* end confdefs.h.  */
4232$ac_includes_default
4233#include <$ac_header>
4234_ACEOF
4235rm -f conftest.$ac_objext
4236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4237  (eval $ac_compile) 2>conftest.er1
4238  ac_status=$?
4239  grep -v '^ *+' conftest.er1 >conftest.err
4240  rm -f conftest.er1
4241  cat conftest.err >&5
4242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243  (exit $ac_status); } &&
4244         { ac_try='test -z "$ac_cxx_werror_flag"
4245                         || test ! -s conftest.err'
4246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247  (eval $ac_try) 2>&5
4248  ac_status=$?
4249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250  (exit $ac_status); }; } &&
4251         { ac_try='test -s conftest.$ac_objext'
4252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253  (eval $ac_try) 2>&5
4254  ac_status=$?
4255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256  (exit $ac_status); }; }; then
4257  ac_header_compiler=yes
4258else
4259  echo "$as_me: failed program was:" >&5
4260sed 's/^/| /' conftest.$ac_ext >&5
4261
4262ac_header_compiler=no
4263fi
4264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4265echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4266echo "${ECHO_T}$ac_header_compiler" >&6
4267
4268# Is the header present?
4269echo "$as_me:$LINENO: checking $ac_header presence" >&5
4270echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4271cat >conftest.$ac_ext <<_ACEOF
4272/* confdefs.h.  */
4273_ACEOF
4274cat confdefs.h >>conftest.$ac_ext
4275cat >>conftest.$ac_ext <<_ACEOF
4276/* end confdefs.h.  */
4277#include <$ac_header>
4278_ACEOF
4279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4280  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4281  ac_status=$?
4282  grep -v '^ *+' conftest.er1 >conftest.err
4283  rm -f conftest.er1
4284  cat conftest.err >&5
4285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286  (exit $ac_status); } >/dev/null; then
4287  if test -s conftest.err; then
4288    ac_cpp_err=$ac_cxx_preproc_warn_flag
4289    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4290  else
4291    ac_cpp_err=
4292  fi
4293else
4294  ac_cpp_err=yes
4295fi
4296if test -z "$ac_cpp_err"; then
4297  ac_header_preproc=yes
4298else
4299  echo "$as_me: failed program was:" >&5
4300sed 's/^/| /' conftest.$ac_ext >&5
4301
4302  ac_header_preproc=no
4303fi
4304rm -f conftest.err conftest.$ac_ext
4305echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4306echo "${ECHO_T}$ac_header_preproc" >&6
4307
4308# So?  What about this header?
4309case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4310  yes:no: )
4311    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4312echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4313    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4314echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4315    ac_header_preproc=yes
4316    ;;
4317  no:yes:* )
4318    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4319echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4320    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4321echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4322    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4323echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4324    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4325echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4326    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4327echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4328    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4329echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4330    (
4331      cat <<\_ASBOX
4332## ------------------------------------------ ##
4333## Report this to the AC_PACKAGE_NAME lists.  ##
4334## ------------------------------------------ ##
4335_ASBOX
4336    ) |
4337      sed "s/^/$as_me: WARNING:     /" >&2
4338    ;;
4339esac
4340echo "$as_me:$LINENO: checking for $ac_header" >&5
4341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4342if eval "test \"\${$as_ac_Header+set}\" = set"; then
4343  echo $ECHO_N "(cached) $ECHO_C" >&6
4344else
4345  eval "$as_ac_Header=\$ac_header_preproc"
4346fi
4347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4349
4350fi
4351if test `eval echo '${'$as_ac_Header'}'` = yes; then
4352  cat >>confdefs.h <<_ACEOF
4353#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4354_ACEOF
4355
4356fi
4357
4358done
4359
4360
4361for ac_header in fstream
4362do
4363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4364if eval "test \"\${$as_ac_Header+set}\" = set"; then
4365  echo "$as_me:$LINENO: checking for $ac_header" >&5
4366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4367if eval "test \"\${$as_ac_Header+set}\" = set"; then
4368  echo $ECHO_N "(cached) $ECHO_C" >&6
4369fi
4370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4372else
4373  # Is the header compilable?
4374echo "$as_me:$LINENO: checking $ac_header usability" >&5
4375echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4376cat >conftest.$ac_ext <<_ACEOF
4377/* confdefs.h.  */
4378_ACEOF
4379cat confdefs.h >>conftest.$ac_ext
4380cat >>conftest.$ac_ext <<_ACEOF
4381/* end confdefs.h.  */
4382$ac_includes_default
4383#include <$ac_header>
4384_ACEOF
4385rm -f conftest.$ac_objext
4386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387  (eval $ac_compile) 2>conftest.er1
4388  ac_status=$?
4389  grep -v '^ *+' conftest.er1 >conftest.err
4390  rm -f conftest.er1
4391  cat conftest.err >&5
4392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393  (exit $ac_status); } &&
4394         { ac_try='test -z "$ac_cxx_werror_flag"
4395                         || test ! -s conftest.err'
4396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397  (eval $ac_try) 2>&5
4398  ac_status=$?
4399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400  (exit $ac_status); }; } &&
4401         { ac_try='test -s conftest.$ac_objext'
4402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403  (eval $ac_try) 2>&5
4404  ac_status=$?
4405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406  (exit $ac_status); }; }; then
4407  ac_header_compiler=yes
4408else
4409  echo "$as_me: failed program was:" >&5
4410sed 's/^/| /' conftest.$ac_ext >&5
4411
4412ac_header_compiler=no
4413fi
4414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4415echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4416echo "${ECHO_T}$ac_header_compiler" >&6
4417
4418# Is the header present?
4419echo "$as_me:$LINENO: checking $ac_header presence" >&5
4420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4421cat >conftest.$ac_ext <<_ACEOF
4422/* confdefs.h.  */
4423_ACEOF
4424cat confdefs.h >>conftest.$ac_ext
4425cat >>conftest.$ac_ext <<_ACEOF
4426/* end confdefs.h.  */
4427#include <$ac_header>
4428_ACEOF
4429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4430  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4431  ac_status=$?
4432  grep -v '^ *+' conftest.er1 >conftest.err
4433  rm -f conftest.er1
4434  cat conftest.err >&5
4435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436  (exit $ac_status); } >/dev/null; then
4437  if test -s conftest.err; then
4438    ac_cpp_err=$ac_cxx_preproc_warn_flag
4439    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4440  else
4441    ac_cpp_err=
4442  fi
4443else
4444  ac_cpp_err=yes
4445fi
4446if test -z "$ac_cpp_err"; then
4447  ac_header_preproc=yes
4448else
4449  echo "$as_me: failed program was:" >&5
4450sed 's/^/| /' conftest.$ac_ext >&5
4451
4452  ac_header_preproc=no
4453fi
4454rm -f conftest.err conftest.$ac_ext
4455echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4456echo "${ECHO_T}$ac_header_preproc" >&6
4457
4458# So?  What about this header?
4459case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4460  yes:no: )
4461    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4463    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4464echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4465    ac_header_preproc=yes
4466    ;;
4467  no:yes:* )
4468    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4469echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4470    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4471echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4472    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4473echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4474    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4475echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4476    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4478    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4479echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4480    (
4481      cat <<\_ASBOX
4482## ------------------------------------------ ##
4483## Report this to the AC_PACKAGE_NAME lists.  ##
4484## ------------------------------------------ ##
4485_ASBOX
4486    ) |
4487      sed "s/^/$as_me: WARNING:     /" >&2
4488    ;;
4489esac
4490echo "$as_me:$LINENO: checking for $ac_header" >&5
4491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4492if eval "test \"\${$as_ac_Header+set}\" = set"; then
4493  echo $ECHO_N "(cached) $ECHO_C" >&6
4494else
4495  eval "$as_ac_Header=\$ac_header_preproc"
4496fi
4497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4499
4500fi
4501if test `eval echo '${'$as_ac_Header'}'` = yes; then
4502  cat >>confdefs.h <<_ACEOF
4503#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4504_ACEOF
4505
4506fi
4507
4508done
4509
4510ac_ext=c
4511ac_cpp='$CPP $CPPFLAGS'
4512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4514ac_compiler_gnu=$ac_cv_c_compiler_gnu
4515
4516
4517CPPFLAGS='-I /usr/X11R6/include'
4518if test "${ac_cv_header_X11_xpm_h+set}" = set; then
4519  echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
4520echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
4521if test "${ac_cv_header_X11_xpm_h+set}" = set; then
4522  echo $ECHO_N "(cached) $ECHO_C" >&6
4523fi
4524echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
4525echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
4526else
4527  # Is the header compilable?
4528echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
4529echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
4530cat >conftest.$ac_ext <<_ACEOF
4531/* confdefs.h.  */
4532_ACEOF
4533cat confdefs.h >>conftest.$ac_ext
4534cat >>conftest.$ac_ext <<_ACEOF
4535/* end confdefs.h.  */
4536$ac_includes_default
4537#include <X11/xpm.h>
4538_ACEOF
4539rm -f conftest.$ac_objext
4540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541  (eval $ac_compile) 2>conftest.er1
4542  ac_status=$?
4543  grep -v '^ *+' conftest.er1 >conftest.err
4544  rm -f conftest.er1
4545  cat conftest.err >&5
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); } &&
4548         { ac_try='test -z "$ac_c_werror_flag"
4549                         || test ! -s conftest.err'
4550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551  (eval $ac_try) 2>&5
4552  ac_status=$?
4553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554  (exit $ac_status); }; } &&
4555         { ac_try='test -s conftest.$ac_objext'
4556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557  (eval $ac_try) 2>&5
4558  ac_status=$?
4559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560  (exit $ac_status); }; }; then
4561  ac_header_compiler=yes
4562else
4563  echo "$as_me: failed program was:" >&5
4564sed 's/^/| /' conftest.$ac_ext >&5
4565
4566ac_header_compiler=no
4567fi
4568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4569echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4570echo "${ECHO_T}$ac_header_compiler" >&6
4571
4572# Is the header present?
4573echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
4574echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
4575cat >conftest.$ac_ext <<_ACEOF
4576/* confdefs.h.  */
4577_ACEOF
4578cat confdefs.h >>conftest.$ac_ext
4579cat >>conftest.$ac_ext <<_ACEOF
4580/* end confdefs.h.  */
4581#include <X11/xpm.h>
4582_ACEOF
4583if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4584  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4585  ac_status=$?
4586  grep -v '^ *+' conftest.er1 >conftest.err
4587  rm -f conftest.er1
4588  cat conftest.err >&5
4589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590  (exit $ac_status); } >/dev/null; then
4591  if test -s conftest.err; then
4592    ac_cpp_err=$ac_c_preproc_warn_flag
4593    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4594  else
4595    ac_cpp_err=
4596  fi
4597else
4598  ac_cpp_err=yes
4599fi
4600if test -z "$ac_cpp_err"; then
4601  ac_header_preproc=yes
4602else
4603  echo "$as_me: failed program was:" >&5
4604sed 's/^/| /' conftest.$ac_ext >&5
4605
4606  ac_header_preproc=no
4607fi
4608rm -f conftest.err conftest.$ac_ext
4609echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4610echo "${ECHO_T}$ac_header_preproc" >&6
4611
4612# So?  What about this header?
4613case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4614  yes:no: )
4615    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
4616echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4617    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
4618echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
4619    ac_header_preproc=yes
4620    ;;
4621  no:yes:* )
4622    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
4623echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
4624    { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
4625echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
4626    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
4627echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
4628    { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
4629echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4630    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
4631echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
4632    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
4633echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
4634    (
4635      cat <<\_ASBOX
4636## ------------------------------------------ ##
4637## Report this to the AC_PACKAGE_NAME lists.  ##
4638## ------------------------------------------ ##
4639_ASBOX
4640    ) |
4641      sed "s/^/$as_me: WARNING:     /" >&2
4642    ;;
4643esac
4644echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
4645echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
4646if test "${ac_cv_header_X11_xpm_h+set}" = set; then
4647  echo $ECHO_N "(cached) $ECHO_C" >&6
4648else
4649  ac_cv_header_X11_xpm_h=$ac_header_preproc
4650fi
4651echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
4652echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
4653
4654fi
4655if test $ac_cv_header_X11_xpm_h = yes; then
4656  echo "$as_me:$LINENO: checking for XpmCreateImageFromData in -lXpm" >&5
4657echo $ECHO_N "checking for XpmCreateImageFromData in -lXpm... $ECHO_C" >&6
4658if test "${ac_cv_lib_Xpm_XpmCreateImageFromData+set}" = set; then
4659  echo $ECHO_N "(cached) $ECHO_C" >&6
4660else
4661  ac_check_lib_save_LIBS=$LIBS
4662LIBS="-lXpm -lX11 $LIBS"
4663cat >conftest.$ac_ext <<_ACEOF
4664/* confdefs.h.  */
4665_ACEOF
4666cat confdefs.h >>conftest.$ac_ext
4667cat >>conftest.$ac_ext <<_ACEOF
4668/* end confdefs.h.  */
4669
4670/* Override any gcc2 internal prototype to avoid an error.  */
4671#ifdef __cplusplus
4672extern "C"
4673#endif
4674/* We use char because int might match the return type of a gcc2
4675   builtin and then its argument prototype would still apply.  */
4676char XpmCreateImageFromData ();
4677int
4678main ()
4679{
4680XpmCreateImageFromData ();
4681  ;
4682  return 0;
4683}
4684_ACEOF
4685rm -f conftest.$ac_objext conftest$ac_exeext
4686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4687  (eval $ac_link) 2>conftest.er1
4688  ac_status=$?
4689  grep -v '^ *+' conftest.er1 >conftest.err
4690  rm -f conftest.er1
4691  cat conftest.err >&5
4692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693  (exit $ac_status); } &&
4694         { ac_try='test -z "$ac_c_werror_flag"
4695                         || test ! -s conftest.err'
4696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697  (eval $ac_try) 2>&5
4698  ac_status=$?
4699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700  (exit $ac_status); }; } &&
4701         { ac_try='test -s conftest$ac_exeext'
4702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703  (eval $ac_try) 2>&5
4704  ac_status=$?
4705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706  (exit $ac_status); }; }; then
4707  ac_cv_lib_Xpm_XpmCreateImageFromData=yes
4708else
4709  echo "$as_me: failed program was:" >&5
4710sed 's/^/| /' conftest.$ac_ext >&5
4711
4712ac_cv_lib_Xpm_XpmCreateImageFromData=no
4713fi
4714rm -f conftest.err conftest.$ac_objext \
4715      conftest$ac_exeext conftest.$ac_ext
4716LIBS=$ac_check_lib_save_LIBS
4717fi
4718echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreateImageFromData" >&5
4719echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreateImageFromData" >&6
4720if test $ac_cv_lib_Xpm_XpmCreateImageFromData = yes; then
4721  cat >>confdefs.h <<\_ACEOF
4722#define HAVE_XPM 1
4723_ACEOF
4724 XPMLIB=-lXpm
4725fi
4726
4727fi
4728
4729
4730case $host_os in
4731freebsd*)
4732  echo "$as_me:$LINENO: checking for main in -ldevstat" >&5
4733echo $ECHO_N "checking for main in -ldevstat... $ECHO_C" >&6
4734if test "${ac_cv_lib_devstat_main+set}" = set; then
4735  echo $ECHO_N "(cached) $ECHO_C" >&6
4736else
4737  ac_check_lib_save_LIBS=$LIBS
4738LIBS="-ldevstat  $LIBS"
4739cat >conftest.$ac_ext <<_ACEOF
4740/* confdefs.h.  */
4741_ACEOF
4742cat confdefs.h >>conftest.$ac_ext
4743cat >>conftest.$ac_ext <<_ACEOF
4744/* end confdefs.h.  */
4745
4746
4747int
4748main ()
4749{
4750main ();
4751  ;
4752  return 0;
4753}
4754_ACEOF
4755rm -f conftest.$ac_objext conftest$ac_exeext
4756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4757  (eval $ac_link) 2>conftest.er1
4758  ac_status=$?
4759  grep -v '^ *+' conftest.er1 >conftest.err
4760  rm -f conftest.er1
4761  cat conftest.err >&5
4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763  (exit $ac_status); } &&
4764         { ac_try='test -z "$ac_c_werror_flag"
4765                         || test ! -s conftest.err'
4766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767  (eval $ac_try) 2>&5
4768  ac_status=$?
4769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770  (exit $ac_status); }; } &&
4771         { ac_try='test -s conftest$ac_exeext'
4772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773  (eval $ac_try) 2>&5
4774  ac_status=$?
4775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776  (exit $ac_status); }; }; then
4777  ac_cv_lib_devstat_main=yes
4778else
4779  echo "$as_me: failed program was:" >&5
4780sed 's/^/| /' conftest.$ac_ext >&5
4781
4782ac_cv_lib_devstat_main=no
4783fi
4784rm -f conftest.err conftest.$ac_objext \
4785      conftest$ac_exeext conftest.$ac_ext
4786LIBS=$ac_check_lib_save_LIBS
4787fi
4788echo "$as_me:$LINENO: result: $ac_cv_lib_devstat_main" >&5
4789echo "${ECHO_T}$ac_cv_lib_devstat_main" >&6
4790if test $ac_cv_lib_devstat_main = yes; then
4791  cat >>confdefs.h <<\_ACEOF
4792#define HAVE_DEVSTAT 1
4793_ACEOF
4794 DEVSTATLIB=-ldevstat
4795fi
4796 ;;
4797esac
4798
4799case $host_os in
4800linux*)
4801EXTRALIBS=$XPMLIB
4802EXTRA_OUT_FILES="$EXTRA_OUT_FILES \
4803  linux/memstat/Makefile:config/Makefile.linux.memstat.in"
4804
4805if test "$host_os" = "linux-gnu"; then
4806cat >>confdefs.h <<\_ACEOF
4807#define GNULIBC 1
4808_ACEOF
4809
4810fi
4811
4812# Check whether --enable-linux-syscalls or --disable-linux-syscalls was given.
4813if test "${enable_linux_syscalls+set}" = set; then
4814  enableval="$enable_linux_syscalls"
4815  if test "$enableval" = "no"
4816then
4817        echo "disabled Linux system calls"
4818else
4819        cat >>confdefs.h <<\_ACEOF
4820#define USESYSCALLS 1
4821_ACEOF
4822
4823        echo "enabled  Linux system calls"
4824fi
4825
4826else
4827  cat >>confdefs.h <<\_ACEOF
4828#define USESYSCALLS 1
4829_ACEOF
4830
4831echo "enabled  Linux system calls by default"
4832
4833fi;
4834
4835# Check whether --enable-linux-memstat or --disable-linux-memstat was given.
4836if test "${enable_linux_memstat+set}" = set; then
4837  enableval="$enable_linux_memstat"
4838  if test "$enableval" = "no"
4839then
4840        MEMSTAT=
4841        echo "disabled the Linux memstat module"
4842else
4843
4844
4845
4846LVERSION=`uname -r`
4847LVERSION=`expr $LVERSION : '\([0-9]*\.[0-9]*\)'`
4848
4849
4850
4851        MEMSTAT=MemStat
4852        echo "enabled  the Linux $LVERSION memstat module"
4853
4854echo "$as_me:$LINENO: checking for MODVERSIONS" >&5
4855echo $ECHO_N "checking for MODVERSIONS... $ECHO_C" >&6
4856cat >conftest.$ac_ext <<_ACEOF
4857/* confdefs.h.  */
4858_ACEOF
4859cat confdefs.h >>conftest.$ac_ext
4860cat >>conftest.$ac_ext <<_ACEOF
4861/* end confdefs.h.  */
4862#include <linux/config.h>
4863#ifdef CONFIG_MODVERSIONS
4864yes
4865#endif
4866
4867_ACEOF
4868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4869  $EGREP "yes" >/dev/null 2>&1; then
4870  USE_MOD_VERSIONS=-DMODVERSIONS echo "$as_me:$LINENO: result: yes" >&5
4871echo "${ECHO_T}yes" >&6
4872else
4873  echo "$as_me:$LINENO: result: no" >&5
4874echo "${ECHO_T}no" >&6
4875fi
4876rm -f conftest*
4877
4878
4879echo "$as_me:$LINENO: checking for SMP" >&5
4880echo $ECHO_N "checking for SMP... $ECHO_C" >&6
4881cat >conftest.$ac_ext <<_ACEOF
4882/* confdefs.h.  */
4883_ACEOF
4884cat confdefs.h >>conftest.$ac_ext
4885cat >>conftest.$ac_ext <<_ACEOF
4886/* end confdefs.h.  */
4887#include <linux/autoconf.h>
4888#ifdef CONFIG_SMP
4889yes
4890#endif
4891
4892_ACEOF
4893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4894  $EGREP "yes" >/dev/null 2>&1; then
4895  smp=yes
4896else
4897  smp=no
4898fi
4899rm -f conftest*
4900
4901echo "$as_me:$LINENO: result: $smp" >&5
4902echo "${ECHO_T}$smp" >&6
4903
4904INSTALL_ARGS='-m 755'
4905fi
4906
4907else
4908
4909
4910
4911LVERSION=`uname -r`
4912LVERSION=`expr $LVERSION : '\([0-9]*\.[0-9]*\)'`
4913
4914
4915
4916if test "$LVERSION" = "2.0" -o "$LVERSION" = "2.2"
4917then
4918        MEMSTAT=MemStat
4919        echo "enabled  the Linux $LVERSION memstat module by default"
4920        echo "$as_me:$LINENO: checking for MODVERSIONS" >&5
4921echo $ECHO_N "checking for MODVERSIONS... $ECHO_C" >&6
4922        cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h.  */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h.  */
4928#include <linux/config.h>
4929#ifdef CONFIG_MODVERSIONS
4930yes
4931#endif
4932
4933_ACEOF
4934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4935  $EGREP "yes" >/dev/null 2>&1; then
4936  USE_MOD_VERSIONS=-DMODVERSIONS echo "$as_me:$LINENO: result: yes" >&5
4937echo "${ECHO_T}yes" >&6
4938else
4939  echo "$as_me:$LINENO: result: no" >&5
4940echo "${ECHO_T}no" >&6
4941fi
4942rm -f conftest*
4943
4944
4945echo "$as_me:$LINENO: checking for SMP" >&5
4946echo $ECHO_N "checking for SMP... $ECHO_C" >&6
4947cat >conftest.$ac_ext <<_ACEOF
4948/* confdefs.h.  */
4949_ACEOF
4950cat confdefs.h >>conftest.$ac_ext
4951cat >>conftest.$ac_ext <<_ACEOF
4952/* end confdefs.h.  */
4953#include <linux/autoconf.h>
4954#ifdef CONFIG_SMP
4955yes
4956#endif
4957
4958_ACEOF
4959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4960  $EGREP "yes" >/dev/null 2>&1; then
4961  smp=yes
4962else
4963  smp=no
4964fi
4965rm -f conftest*
4966
4967echo "$as_me:$LINENO: result: $smp" >&5
4968echo "${ECHO_T}$smp" >&6
4969
4970else
4971        MEMSTAT=
4972        echo "disabled the Linux $LVERSION memstat module by default"
4973fi
4974
4975fi;
4976INSTALL_ARGS='-m 755'
4977if test "$smp" = "yes"
4978then
4979LINUX_SMP="-D__SMP__"
4980fi
4981
4982
4983        NetMeter_Default_Setting=False
4984
4985
4986        EXTRA_CXXFLAGS="-Wall -O4"
4987
4988          host_dir=linux
4989          host_os=linux ;;
4990##  Check for known versions of NetBSD...
4991netbsd1.[0123456]*|netbsdelf1.[56]*)
4992  ## Pull in NetBSD stuff:  set of host_os, EXTRALIBS, INSTALL_ARGS, etc.
4993
4994        host_os_full=$host_os
4995        host_os=netbsd
4996        EXTRALIBS="-lkvm $XPMLIB"
4997        INSTALL_ARGS='-s -g kmem -m 02555'
4998        NetMeter_Default_Setting=True
4999        cat >>confdefs.h <<\_ACEOF
5000#define XOSVIEW_NETBSD 1
5001_ACEOF
5002
5003
5004
5005
5006        EXTRA_CXXFLAGS="-Wall -O4"
5007
5008  ## Check if the network interface supports 64-bit counters.  This
5009  ## support was committed around 11/19/1999, for 1.4P.
5010  if test $host_os_full '>' netbsd1.4O  -o $host_os_full '>' netbsdelf1.4O ; then
5011    cat >>confdefs.h <<\_ACEOF
5012#define NETBSD_64BIT_IFACE_CTRS 1
5013_ACEOF
5014
5015  fi
5016
5017  ## We'll assume the existence of UVM now -- it's been around a long time.
5018  cat >>confdefs.h <<\_ACEOF
5019#define UVM 1
5020_ACEOF
5021
5022  host_dir=bsd
5023
5024;;
5025##  Also check for versions that have not been tested.
5026netbsd*)  { echo "$as_me:$LINENO: WARNING:
5027***************  Warning  *****************
5028  xosview has not been tested on $host_os.
5029  So far, it is known to work on the following NetBSD versions:
5030    netbsd1.0
5031    netbsd1.1
5032    netbsd1.2
5033    netbsd1.3
5034    netbsd1.4
5035    netbsd1.5 / netbsdelf1.5
5036  If it works for version $host_os, please send mail to:
5037        bgrayson@netbsd.org
5038  If this message is in error, also notify bgrayson -- we're new
5039to autoconf!
5040  Thanks!
5041*******************************************
5042" >&5
5043echo "$as_me: WARNING:
5044***************  Warning  *****************
5045  xosview has not been tested on $host_os.
5046  So far, it is known to work on the following NetBSD versions:
5047    netbsd1.0
5048    netbsd1.1
5049    netbsd1.2
5050    netbsd1.3
5051    netbsd1.4
5052    netbsd1.5 / netbsdelf1.5
5053  If it works for version $host_os, please send mail to:
5054        bgrayson@netbsd.org
5055  If this message is in error, also notify bgrayson -- we're new
5056to autoconf!
5057  Thanks!
5058*******************************************
5059" >&2;};
5060        host_os_full=$host_os
5061        host_os=netbsd
5062        EXTRALIBS="-lkvm $XPMLIB"
5063        INSTALL_ARGS='-s -g kmem -m 02555'
5064        NetMeter_Default_Setting=True
5065        cat >>confdefs.h <<\_ACEOF
5066#define XOSVIEW_NETBSD 1
5067_ACEOF
5068
5069
5070    host_dir=bsd
5071    echo host_dir is $host_dir
5072    host_os=netbsd ;;
5073
5074freebsd[0123]*)
5075        EXTRALIBS="-lkvm $XPMLIB $DEVSTATLIB"
5076        INSTALL_ARGS='-s -g kmem -m 02555'
5077        NetMeter_Default_Setting=True
5078        cat >>confdefs.h <<\_ACEOF
5079#define XOSVIEW_FREEBSD 1
5080_ACEOF
5081
5082
5083
5084        EXTRA_CXXFLAGS="-Wall -O4"
5085
5086                        host_dir=bsd
5087        host_os=freebsd ;;
5088freebsd[4]*)
5089        EXTRALIBS="-lkvm $XPMLIB $DEVSTATLIB"
5090        INSTALL_ARGS='-s -g kmem -m 02555'
5091        NetMeter_Default_Setting=True
5092        cat >>confdefs.h <<\_ACEOF
5093#define XOSVIEW_FREEBSD 1
5094_ACEOF
5095
5096
5097
5098        EXTRA_CXXFLAGS="-Wall -O4"
5099
5100        cat >>confdefs.h <<\_ACEOF
5101#define USE_KVM_GETSWAPINFO 1
5102_ACEOF
5103
5104                        host_dir=bsd
5105        host_os=freebsd ;;
5106openbsd2.[0-5]*)
5107        EXTRALIBS="-lkvm $XPMLIB"
5108        INSTALL_ARGS='-s -g kmem -m 02555'
5109        NetMeter_Default_Setting=True
5110        cat >>confdefs.h <<\_ACEOF
5111#define XOSVIEW_OPENBSD 1
5112_ACEOF
5113
5114
5115
5116        EXTRA_CXXFLAGS="-Wall -O4"
5117
5118        host_dir=bsd
5119        host_os=openbsd ;;
5120openbsd2.[6-9]*)
5121        EXTRALIBS="-lkvm $XPMLIB"
5122        INSTALL_ARGS='-s -g kmem -m 02555'
5123        NetMeter_Default_Setting=True
5124        cat >>confdefs.h <<\_ACEOF
5125#define XOSVIEW_OPENBSD 1
5126_ACEOF
5127
5128
5129        cat >> confdefs.h <<\EOF
5130#define HAVE_SWAPCTL 1
5131EOF
5132        ## Also check for the existence of UVM.  This is a nasty,
5133        ## complicated check.  This could be avoided by having the *BSD
5134        ## platform-specific Makefiles include <bsd.own.mk> on their own.
5135
5136        cat > confmkfile <<\EOF
5137
5138.include <bsd.own.mk>
5139all:
5140.if defined(UVM) && ${UVM:U} == YES
5141        @echo UVMyes
5142.endif
5143EOF
5144
5145        uvmstring=`make -f confmkfile`
5146        rm -f confmkfile
5147        if test ! x$uvmstring = x ; then
5148                cat >> confdefs.h <<\EOF
5149#define UVM 1
5150EOF
5151        fi
5152
5153
5154        EXTRA_CXXFLAGS="-Wall -O4"
5155
5156        host_dir=bsd
5157        host_os=openbsd ;;
5158openbsd2.[6-9]*)
5159        EXTRALIBS="-lkvm $XPMLIB"
5160        INSTALL_ARGS='-s -g kmem -m 02555'
5161        NetMeter_Default_Setting=True
5162        cat >>confdefs.h <<\_ACEOF
5163#define XOSVIEW_OPENBSD 1
5164_ACEOF
5165
5166
5167        cat >> confdefs.h <<\EOF
5168#define HAVE_SWAPCTL 1
5169EOF
5170        ## Also check for the existence of UVM.  This is a nasty,
5171        ## complicated check.  This could be avoided by having the *BSD
5172        ## platform-specific Makefiles include <bsd.own.mk> on their own.
5173
5174        cat > confmkfile <<\EOF
5175
5176.include <bsd.own.mk>
5177all:
5178.if defined(UVM) && ${UVM:U} == YES
5179        @echo UVMyes
5180.endif
5181EOF
5182
5183        uvmstring=`make -f confmkfile`
5184        rm -f confmkfile
5185        if test ! x$uvmstring = x ; then
5186                cat >> confdefs.h <<\EOF
5187#define UVM 1
5188EOF
5189        fi
5190
5191
5192        EXTRA_CXXFLAGS="-Wall -O4"
5193
5194        host_dir=bsd
5195        host_os=openbsd ;;
5196openbsd*)
5197        EXTRALIBS="-lkvm $XPMLIB"
5198        INSTALL_ARGS='-s -g kmem -m 02555'
5199        NetMeter_Default_Setting=True
5200        cat >>confdefs.h <<\_ACEOF
5201#define XOSVIEW_OPENBSD 1
5202_ACEOF
5203
5204
5205        BTRYMETER=btrymeter.o
5206        cat >> confdefs.h <<\EOF
5207#define HAVE_SWAPCTL 1
5208#define UVM 1
5209#define HAVE_BATTERY_METER 1
5210#define APM_BATT_ABSENT APM_BATTERY_ABSENT
5211EOF
5212
5213
5214        EXTRA_CXXFLAGS="-Wall -O4"
5215
5216        host_dir=bsd
5217        host_os=openbsd ;;
5218bsdi*)
5219        EXTRALIBS="-lkvm $XPMLIB"
5220        INSTALL_ARGS='-s -g kmem -m 02555'
5221        NetMeter_Default_Setting=True
5222        cat >>confdefs.h <<\_ACEOF
5223#define XOSVIEW_BSDI 1
5224_ACEOF
5225
5226
5227
5228        EXTRA_CXXFLAGS="-Wall -O4"
5229
5230        host_dir=bsd
5231        host_os=bsdi ;;
5232hpux*)
5233
5234
5235        EXTRA_CXXFLAGS="-Wall -O4"
5236
5237          host_dir=hpux
5238          host_os=hpux ;;
5239irix6.5*)
5240                EXTRALIBS="-lrpcsvc"
5241    cat >>confdefs.h <<\_ACEOF
5242#define _G_HAVE_BOOL 1
5243_ACEOF
5244
5245    cat >>confdefs.h <<\_ACEOF
5246#define HAVE_SNPRINTF 1
5247_ACEOF
5248
5249
5250        EXTRA_CXXFLAGS=-O2
5251        host_dir=irix65
5252        host_os=irix65 ;;
5253solaris2*)
5254
5255        EXTRA_CXXFLAGS="-Wall -O4"
5256
5257        EXTRALIBS="-R$x_libraries -lsocket -lnsl -lkstat $XPMLIB"
5258        host_dir=sunos5
5259        host_os=sunos5 ;;
5260*)       { { echo "$as_me:$LINENO: error: xosview has not been ported to $host_os :(.  Sorry." >&5
5261echo "$as_me: error: xosview has not been ported to $host_os :(.  Sorry." >&2;}
5262   { (exit 1); exit 1; }; } ;;
5263esac
5264
5265case $host_os in
5266netbsd)
5267
5268for ac_func in swapctl
5269do
5270as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5271echo "$as_me:$LINENO: checking for $ac_func" >&5
5272echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5273if eval "test \"\${$as_ac_var+set}\" = set"; then
5274  echo $ECHO_N "(cached) $ECHO_C" >&6
5275else
5276  cat >conftest.$ac_ext <<_ACEOF
5277/* confdefs.h.  */
5278_ACEOF
5279cat confdefs.h >>conftest.$ac_ext
5280cat >>conftest.$ac_ext <<_ACEOF
5281/* end confdefs.h.  */
5282/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5283   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5284#define $ac_func innocuous_$ac_func
5285
5286/* System header to define __stub macros and hopefully few prototypes,
5287    which can conflict with char $ac_func (); below.
5288    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5289    <limits.h> exists even on freestanding compilers.  */
5290
5291#ifdef __STDC__
5292# include <limits.h>
5293#else
5294# include <assert.h>
5295#endif
5296
5297#undef $ac_func
5298
5299/* Override any gcc2 internal prototype to avoid an error.  */
5300#ifdef __cplusplus
5301extern "C"
5302{
5303#endif
5304/* We use char because int might match the return type of a gcc2
5305   builtin and then its argument prototype would still apply.  */
5306char $ac_func ();
5307/* The GNU C library defines this for functions which it implements
5308    to always fail with ENOSYS.  Some functions are actually named
5309    something starting with __ and the normal name is an alias.  */
5310#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5311choke me
5312#else
5313char (*f) () = $ac_func;
5314#endif
5315#ifdef __cplusplus
5316}
5317#endif
5318
5319int
5320main ()
5321{
5322return f != $ac_func;
5323  ;
5324  return 0;
5325}
5326_ACEOF
5327rm -f conftest.$ac_objext conftest$ac_exeext
5328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5329  (eval $ac_link) 2>conftest.er1
5330  ac_status=$?
5331  grep -v '^ *+' conftest.er1 >conftest.err
5332  rm -f conftest.er1
5333  cat conftest.err >&5
5334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335  (exit $ac_status); } &&
5336         { ac_try='test -z "$ac_c_werror_flag"
5337                         || test ! -s conftest.err'
5338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339  (eval $ac_try) 2>&5
5340  ac_status=$?
5341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342  (exit $ac_status); }; } &&
5343         { ac_try='test -s conftest$ac_exeext'
5344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345  (eval $ac_try) 2>&5
5346  ac_status=$?
5347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348  (exit $ac_status); }; }; then
5349  eval "$as_ac_var=yes"
5350else
5351  echo "$as_me: failed program was:" >&5
5352sed 's/^/| /' conftest.$ac_ext >&5
5353
5354eval "$as_ac_var=no"
5355fi
5356rm -f conftest.err conftest.$ac_objext \
5357      conftest$ac_exeext conftest.$ac_ext
5358fi
5359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5360echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5361if test `eval echo '${'$as_ac_var'}'` = yes; then
5362  cat >>confdefs.h <<_ACEOF
5363#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5364_ACEOF
5365
5366fi
5367done
5368
5369  #  Only enable the battery meter if it appears we support it.
5370  if test -e /dev/apm ; then
5371    BTRYMETER=btrymeter.o
5372    cat >>confdefs.h <<\_ACEOF
5373#define HAVE_BATTERY_METER 1
5374_ACEOF
5375
5376  fi
5377  ;;
5378esac
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389for ac_func in usleep
5390do
5391as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5392echo "$as_me:$LINENO: checking for $ac_func" >&5
5393echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5394if eval "test \"\${$as_ac_var+set}\" = set"; then
5395  echo $ECHO_N "(cached) $ECHO_C" >&6
5396else
5397  cat >conftest.$ac_ext <<_ACEOF
5398/* confdefs.h.  */
5399_ACEOF
5400cat confdefs.h >>conftest.$ac_ext
5401cat >>conftest.$ac_ext <<_ACEOF
5402/* end confdefs.h.  */
5403/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5404   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5405#define $ac_func innocuous_$ac_func
5406
5407/* System header to define __stub macros and hopefully few prototypes,
5408    which can conflict with char $ac_func (); below.
5409    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5410    <limits.h> exists even on freestanding compilers.  */
5411
5412#ifdef __STDC__
5413# include <limits.h>
5414#else
5415# include <assert.h>
5416#endif
5417
5418#undef $ac_func
5419
5420/* Override any gcc2 internal prototype to avoid an error.  */
5421#ifdef __cplusplus
5422extern "C"
5423{
5424#endif
5425/* We use char because int might match the return type of a gcc2
5426   builtin and then its argument prototype would still apply.  */
5427char $ac_func ();
5428/* The GNU C library defines this for functions which it implements
5429    to always fail with ENOSYS.  Some functions are actually named
5430    something starting with __ and the normal name is an alias.  */
5431#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5432choke me
5433#else
5434char (*f) () = $ac_func;
5435#endif
5436#ifdef __cplusplus
5437}
5438#endif
5439
5440int
5441main ()
5442{
5443return f != $ac_func;
5444  ;
5445  return 0;
5446}
5447_ACEOF
5448rm -f conftest.$ac_objext conftest$ac_exeext
5449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5450  (eval $ac_link) 2>conftest.er1
5451  ac_status=$?
5452  grep -v '^ *+' conftest.er1 >conftest.err
5453  rm -f conftest.er1
5454  cat conftest.err >&5
5455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456  (exit $ac_status); } &&
5457         { ac_try='test -z "$ac_c_werror_flag"
5458                         || test ! -s conftest.err'
5459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460  (eval $ac_try) 2>&5
5461  ac_status=$?
5462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463  (exit $ac_status); }; } &&
5464         { ac_try='test -s conftest$ac_exeext'
5465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466  (eval $ac_try) 2>&5
5467  ac_status=$?
5468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469  (exit $ac_status); }; }; then
5470  eval "$as_ac_var=yes"
5471else
5472  echo "$as_me: failed program was:" >&5
5473sed 's/^/| /' conftest.$ac_ext >&5
5474
5475eval "$as_ac_var=no"
5476fi
5477rm -f conftest.err conftest.$ac_objext \
5478      conftest$ac_exeext conftest.$ac_ext
5479fi
5480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5481echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5482if test `eval echo '${'$as_ac_var'}'` = yes; then
5483  cat >>confdefs.h <<_ACEOF
5484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5485_ACEOF
5486
5487fi
5488done
5489
5490
5491#
5492# On hpux10 both x_includes and x_libraries seem to be set to ""
5493# This causes compiler options like '-I' and '-L', which break
5494# the build.  So, we avoid empty strings here.
5495#
5496if test -z "$x_includes"
5497then
5498    x_includes=.
5499fi
5500if test -z "$x_libraries"
5501then
5502   x_libraries=.
5503fi
5504
5505
5506
5507
5508                                                            ac_config_files="$ac_config_files Makefile:config/Makefile.top.in $host_dir/Makefile:config/Makefile.$host_dir.in Makefile.config:config/Makefile.config.in Makefile.GNU.autodep:config/Makefile.GNU.autodep.in Xdefaults:Xdefaults.in $EXTRA_OUT_FILES"
5509cat >confcache <<\_ACEOF
5510# This file is a shell script that caches the results of configure
5511# tests run on this system so they can be shared between configure
5512# scripts and configure runs, see configure's option --config-cache.
5513# It is not useful on other systems.  If it contains results you don't
5514# want to keep, you may remove or edit it.
5515#
5516# config.status only pays attention to the cache file if you give it
5517# the --recheck option to rerun configure.
5518#
5519# `ac_cv_env_foo' variables (set or unset) will be overridden when
5520# loading this file, other *unset* `ac_cv_foo' will be assigned the
5521# following values.
5522
5523_ACEOF
5524
5525# The following way of writing the cache mishandles newlines in values,
5526# but we know of no workaround that is simple, portable, and efficient.
5527# So, don't put newlines in cache variables' values.
5528# Ultrix sh set writes to stderr and can't be redirected directly,
5529# and sets the high bit in the cache file unless we assign to the vars.
5530{
5531  (set) 2>&1 |
5532    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5533    *ac_space=\ *)
5534      # `set' does not quote correctly, so add quotes (double-quote
5535      # substitution turns \\\\ into \\, and sed turns \\ into \).
5536      sed -n \
5537        "s/'/'\\\\''/g;
5538          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5539      ;;
5540    *)
5541      # `set' quotes correctly as required by POSIX, so do not add quotes.
5542      sed -n \
5543        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5544      ;;
5545    esac;
5546} |
5547  sed '
5548     t clear
5549     : clear
5550     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5551     t end
5552     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5553     : end' >>confcache
5554if diff $cache_file confcache >/dev/null 2>&1; then :; else
5555  if test -w $cache_file; then
5556    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5557    cat confcache >$cache_file
5558  else
5559    echo "not updating unwritable cache $cache_file"
5560  fi
5561fi
5562rm -f confcache
5563
5564test "x$prefix" = xNONE && prefix=$ac_default_prefix
5565# Let make expand exec_prefix.
5566test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5567
5568# VPATH may cause trouble with some makes, so we remove $(srcdir),
5569# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5570# trailing colons and then remove the whole line if VPATH becomes empty
5571# (actually we leave an empty line to preserve line numbers).
5572if test "x$srcdir" = x.; then
5573  ac_vpsub='/^[  ]*VPATH[        ]*=/{
5574s/:*\$(srcdir):*/:/;
5575s/:*\${srcdir}:*/:/;
5576s/:*@srcdir@:*/:/;
5577s/^\([^=]*=[     ]*\):*/\1/;
5578s/:*$//;
5579s/^[^=]*=[       ]*$//;
5580}'
5581fi
5582
5583# Transform confdefs.h into DEFS.
5584# Protect against shell expansion while executing Makefile rules.
5585# Protect against Makefile macro expansion.
5586#
5587# If the first sed substitution is executed (which looks for macros that
5588# take arguments), then we branch to the quote section.  Otherwise,
5589# look for a macro that doesn't take arguments.
5590cat >confdef2opt.sed <<\_ACEOF
5591t clear
5592: clear
5593s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
5594t quote
5595s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
5596t quote
5597d
5598: quote
5599s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
5600s,\[,\\&,g
5601s,\],\\&,g
5602s,\$,$$,g
5603p
5604_ACEOF
5605# We use echo to avoid assuming a particular line-breaking character.
5606# The extra dot is to prevent the shell from consuming trailing
5607# line-breaks from the sub-command output.  A line-break within
5608# single-quotes doesn't work because, if this script is created in a
5609# platform that uses two characters for line-breaks (e.g., DOS), tr
5610# would break.
5611ac_LF_and_DOT=`echo; echo .`
5612DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5613rm -f confdef2opt.sed
5614
5615
5616ac_libobjs=
5617ac_ltlibobjs=
5618for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5619  # 1. Remove the extension, and $U if already installed.
5620  ac_i=`echo "$ac_i" |
5621         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5622  # 2. Add them.
5623  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5624  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5625done
5626LIBOBJS=$ac_libobjs
5627
5628LTLIBOBJS=$ac_ltlibobjs
5629
5630
5631
5632: ${CONFIG_STATUS=./config.status}
5633ac_clean_files_save=$ac_clean_files
5634ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5635{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5636echo "$as_me: creating $CONFIG_STATUS" >&6;}
5637cat >$CONFIG_STATUS <<_ACEOF
5638#! $SHELL
5639# Generated by $as_me.
5640# Run this file to recreate the current configuration.
5641# Compiler output produced by configure, useful for debugging
5642# configure, is in config.log if it exists.
5643
5644debug=false
5645ac_cs_recheck=false
5646ac_cs_silent=false
5647SHELL=\${CONFIG_SHELL-$SHELL}
5648_ACEOF
5649
5650cat >>$CONFIG_STATUS <<\_ACEOF
5651## --------------------- ##
5652## M4sh Initialization.  ##
5653## --------------------- ##
5654
5655# Be Bourne compatible
5656if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5657  emulate sh
5658  NULLCMD=:
5659  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5660  # is contrary to our usage.  Disable this feature.
5661  alias -g '${1+"$@"}'='"$@"'
5662elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5663  set -o posix
5664fi
5665DUALCASE=1; export DUALCASE # for MKS sh
5666
5667# Support unset when possible.
5668if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5669  as_unset=unset
5670else
5671  as_unset=false
5672fi
5673
5674
5675# Work around bugs in pre-3.0 UWIN ksh.
5676$as_unset ENV MAIL MAILPATH
5677PS1='$ '
5678PS2='> '
5679PS4='+ '
5680
5681# NLS nuisances.
5682for as_var in \
5683  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5684  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5685  LC_TELEPHONE LC_TIME
5686do
5687  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5688    eval $as_var=C; export $as_var
5689  else
5690    $as_unset $as_var
5691  fi
5692done
5693
5694# Required to use basename.
5695if expr a : '\(a\)' >/dev/null 2>&1; then
5696  as_expr=expr
5697else
5698  as_expr=false
5699fi
5700
5701if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5702  as_basename=basename
5703else
5704  as_basename=false
5705fi
5706
5707
5708# Name of the executable.
5709as_me=`$as_basename "$0" ||
5710$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5711         X"$0" : 'X\(//\)$' \| \
5712         X"$0" : 'X\(/\)$' \| \
5713         .     : '\(.\)' 2>/dev/null ||
5714echo X/"$0" |
5715    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5716          /^X\/\(\/\/\)$/{ s//\1/; q; }
5717          /^X\/\(\/\).*/{ s//\1/; q; }
5718          s/.*/./; q'`
5719
5720
5721# PATH needs CR, and LINENO needs CR and PATH.
5722# Avoid depending upon Character Ranges.
5723as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5724as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5725as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5726as_cr_digits='0123456789'
5727as_cr_alnum=$as_cr_Letters$as_cr_digits
5728
5729# The user is always right.
5730if test "${PATH_SEPARATOR+set}" != set; then
5731  echo "#! /bin/sh" >conf$$.sh
5732  echo  "exit 0"   >>conf$$.sh
5733  chmod +x conf$$.sh
5734  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5735    PATH_SEPARATOR=';'
5736  else
5737    PATH_SEPARATOR=:
5738  fi
5739  rm -f conf$$.sh
5740fi
5741
5742
5743  as_lineno_1=$LINENO
5744  as_lineno_2=$LINENO
5745  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5746  test "x$as_lineno_1" != "x$as_lineno_2" &&
5747  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5748  # Find who we are.  Look in the path if we contain no path at all
5749  # relative or not.
5750  case $0 in
5751    *[\\/]* ) as_myself=$0 ;;
5752    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753for as_dir in $PATH
5754do
5755  IFS=$as_save_IFS
5756  test -z "$as_dir" && as_dir=.
5757  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5758done
5759
5760       ;;
5761  esac
5762  # We did not find ourselves, most probably we were run as `sh COMMAND'
5763  # in which case we are not to be found in the path.
5764  if test "x$as_myself" = x; then
5765    as_myself=$0
5766  fi
5767  if test ! -f "$as_myself"; then
5768    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5769echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5770   { (exit 1); exit 1; }; }
5771  fi
5772  case $CONFIG_SHELL in
5773  '')
5774    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5776do
5777  IFS=$as_save_IFS
5778  test -z "$as_dir" && as_dir=.
5779  for as_base in sh bash ksh sh5; do
5780         case $as_dir in
5781         /*)
5782           if ("$as_dir/$as_base" -c '
5783  as_lineno_1=$LINENO
5784  as_lineno_2=$LINENO
5785  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5786  test "x$as_lineno_1" != "x$as_lineno_2" &&
5787  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5788             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5789             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5790             CONFIG_SHELL=$as_dir/$as_base
5791             export CONFIG_SHELL
5792             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5793           fi;;
5794         esac
5795       done
5796done
5797;;
5798  esac
5799
5800  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5801  # uniformly replaced by the line number.  The first 'sed' inserts a
5802  # line-number line before each line; the second 'sed' does the real
5803  # work.  The second script uses 'N' to pair each line-number line
5804  # with the numbered line, and appends trailing '-' during
5805  # substitution so that $LINENO is not a special case at line end.
5806  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5807  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5808  sed '=' <$as_myself |
5809    sed '
5810      N
5811      s,$,-,
5812      : loop
5813      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5814      t loop
5815      s,-$,,
5816      s,^['$as_cr_digits']*\n,,
5817    ' >$as_me.lineno &&
5818  chmod +x $as_me.lineno ||
5819    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5820echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5821   { (exit 1); exit 1; }; }
5822
5823  # Don't try to exec as it changes $[0], causing all sort of problems
5824  # (the dirname of $[0] is not the place where we might find the
5825  # original and so on.  Autoconf is especially sensible to this).
5826  . ./$as_me.lineno
5827  # Exit status is that of the last command.
5828  exit
5829}
5830
5831
5832case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5833  *c*,-n*) ECHO_N= ECHO_C='
5834' ECHO_T='      ' ;;
5835  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5836  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5837esac
5838
5839if expr a : '\(a\)' >/dev/null 2>&1; then
5840  as_expr=expr
5841else
5842  as_expr=false
5843fi
5844
5845rm -f conf$$ conf$$.exe conf$$.file
5846echo >conf$$.file
5847if ln -s conf$$.file conf$$ 2>/dev/null; then
5848  # We could just check for DJGPP; but this test a) works b) is more generic
5849  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5850  if test -f conf$$.exe; then
5851    # Don't use ln at all; we don't have any links
5852    as_ln_s='cp -p'
5853  else
5854    as_ln_s='ln -s'
5855  fi
5856elif ln conf$$.file conf$$ 2>/dev/null; then
5857  as_ln_s=ln
5858else
5859  as_ln_s='cp -p'
5860fi
5861rm -f conf$$ conf$$.exe conf$$.file
5862
5863if mkdir -p . 2>/dev/null; then
5864  as_mkdir_p=:
5865else
5866  test -d ./-p && rmdir ./-p
5867  as_mkdir_p=false
5868fi
5869
5870as_executable_p="test -f"
5871
5872# Sed expression to map a string onto a valid CPP name.
5873as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5874
5875# Sed expression to map a string onto a valid variable name.
5876as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5877
5878
5879# IFS
5880# We need space, tab and new line, in precisely that order.
5881as_nl='
5882'
5883IFS="   $as_nl"
5884
5885# CDPATH.
5886$as_unset CDPATH
5887
5888exec 6>&1
5889
5890# Open the log real soon, to keep \$[0] and so on meaningful, and to
5891# report actual input values of CONFIG_FILES etc. instead of their
5892# values after options handling.  Logging --version etc. is OK.
5893exec 5>>config.log
5894{
5895  echo
5896  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5897## Running $as_me. ##
5898_ASBOX
5899} >&5
5900cat >&5 <<_CSEOF
5901
5902This file was extended by $as_me, which was
5903generated by GNU Autoconf 2.59.  Invocation command line was
5904
5905  CONFIG_FILES    = $CONFIG_FILES
5906  CONFIG_HEADERS  = $CONFIG_HEADERS
5907  CONFIG_LINKS    = $CONFIG_LINKS
5908  CONFIG_COMMANDS = $CONFIG_COMMANDS
5909  $ $0 $@
5910
5911_CSEOF
5912echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5913echo >&5
5914_ACEOF
5915
5916# Files that config.status was made for.
5917if test -n "$ac_config_files"; then
5918  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5919fi
5920
5921if test -n "$ac_config_headers"; then
5922  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5923fi
5924
5925if test -n "$ac_config_links"; then
5926  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5927fi
5928
5929if test -n "$ac_config_commands"; then
5930  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5931fi
5932
5933cat >>$CONFIG_STATUS <<\_ACEOF
5934
5935ac_cs_usage="\
5936\`$as_me' instantiates files from templates according to the
5937current configuration.
5938
5939Usage: $0 [OPTIONS] [FILE]...
5940
5941  -h, --help       print this help, then exit
5942  -V, --version    print version number, then exit
5943  -q, --quiet      do not print progress messages
5944  -d, --debug      don't remove temporary files
5945      --recheck    update $as_me by reconfiguring in the same conditions
5946  --file=FILE[:TEMPLATE]
5947                   instantiate the configuration file FILE
5948
5949Configuration files:
5950$config_files
5951
5952Report bugs to <bug-autoconf@gnu.org>."
5953_ACEOF
5954
5955cat >>$CONFIG_STATUS <<_ACEOF
5956ac_cs_version="\\
5957config.status
5958configured by $0, generated by GNU Autoconf 2.59,
5959  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5960
5961Copyright (C) 2003 Free Software Foundation, Inc.
5962This config.status script is free software; the Free Software Foundation
5963gives unlimited permission to copy, distribute and modify it."
5964srcdir=$srcdir
5965INSTALL="$INSTALL"
5966_ACEOF
5967
5968cat >>$CONFIG_STATUS <<\_ACEOF
5969# If no file are specified by the user, then we need to provide default
5970# value.  By we need to know if files were specified by the user.
5971ac_need_defaults=:
5972while test $# != 0
5973do
5974  case $1 in
5975  --*=*)
5976    ac_option=`expr "x$1" : 'x\([^=]*\)='`
5977    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5978    ac_shift=:
5979    ;;
5980  -*)
5981    ac_option=$1
5982    ac_optarg=$2
5983    ac_shift=shift
5984    ;;
5985  *) # This is not an option, so the user has probably given explicit
5986     # arguments.
5987     ac_option=$1
5988     ac_need_defaults=false;;
5989  esac
5990
5991  case $ac_option in
5992  # Handling of the options.
5993_ACEOF
5994cat >>$CONFIG_STATUS <<\_ACEOF
5995  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5996    ac_cs_recheck=: ;;
5997  --version | --vers* | -V )
5998    echo "$ac_cs_version"; exit 0 ;;
5999  --he | --h)
6000    # Conflict between --help and --header
6001    { { echo "$as_me:$LINENO: error: ambiguous option: $1
6002Try \`$0 --help' for more information." >&5
6003echo "$as_me: error: ambiguous option: $1
6004Try \`$0 --help' for more information." >&2;}
6005   { (exit 1); exit 1; }; };;
6006  --help | --hel | -h )
6007    echo "$ac_cs_usage"; exit 0 ;;
6008  --debug | --d* | -d )
6009    debug=: ;;
6010  --file | --fil | --fi | --f )
6011    $ac_shift
6012    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6013    ac_need_defaults=false;;
6014  --header | --heade | --head | --hea )
6015    $ac_shift
6016    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6017    ac_need_defaults=false;;
6018  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6019  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6020    ac_cs_silent=: ;;
6021
6022  # This is an error.
6023  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6024Try \`$0 --help' for more information." >&5
6025echo "$as_me: error: unrecognized option: $1
6026Try \`$0 --help' for more information." >&2;}
6027   { (exit 1); exit 1; }; } ;;
6028
6029  *) ac_config_targets="$ac_config_targets $1" ;;
6030
6031  esac
6032  shift
6033done
6034
6035ac_configure_extra_args=
6036
6037if $ac_cs_silent; then
6038  exec 6>/dev/null
6039  ac_configure_extra_args="$ac_configure_extra_args --silent"
6040fi
6041
6042_ACEOF
6043cat >>$CONFIG_STATUS <<_ACEOF
6044if \$ac_cs_recheck; then
6045  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6046  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6047fi
6048
6049_ACEOF
6050
6051
6052
6053
6054
6055cat >>$CONFIG_STATUS <<\_ACEOF
6056for ac_config_target in $ac_config_targets
6057do
6058  case "$ac_config_target" in
6059  # Handling of arguments.
6060  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:config/Makefile.top.in" ;;
6061  "$host_dir/Makefile" ) CONFIG_FILES="$CONFIG_FILES $host_dir/Makefile:config/Makefile.$host_dir.in" ;;
6062  "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config:config/Makefile.config.in" ;;
6063  "Makefile.GNU.autodep" ) CONFIG_FILES="$CONFIG_FILES Makefile.GNU.autodep:config/Makefile.GNU.autodep.in" ;;
6064  "Xdefaults" ) CONFIG_FILES="$CONFIG_FILES Xdefaults:Xdefaults.in" ;;
6065  "$EXTRA_OUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $EXTRA_OUT_FILES" ;;
6066  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6067echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6068   { (exit 1); exit 1; }; };;
6069  esac
6070done
6071
6072# If the user did not use the arguments to specify the items to instantiate,
6073# then the envvar interface is used.  Set only those that are not.
6074# We use the long form for the default assignment because of an extremely
6075# bizarre bug on SunOS 4.1.3.
6076if $ac_need_defaults; then
6077  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6078fi
6079
6080# Have a temporary directory for convenience.  Make it in the build tree
6081# simply because there is no reason to put it here, and in addition,
6082# creating and moving files from /tmp can sometimes cause problems.
6083# Create a temporary directory, and hook for its removal unless debugging.
6084$debug ||
6085{
6086  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6087  trap '{ (exit 1); exit 1; }' 1 2 13 15
6088}
6089
6090# Create a (secure) tmp directory for tmp files.
6091
6092{
6093  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6094  test -n "$tmp" && test -d "$tmp"
6095}  ||
6096{
6097  tmp=./confstat$$-$RANDOM
6098  (umask 077 && mkdir $tmp)
6099} ||
6100{
6101   echo "$me: cannot create a temporary directory in ." >&2
6102   { (exit 1); exit 1; }
6103}
6104
6105_ACEOF
6106
6107cat >>$CONFIG_STATUS <<_ACEOF
6108
6109#
6110# CONFIG_FILES section.
6111#
6112
6113# No need to generate the scripts if there are no CONFIG_FILES.
6114# This happens for instance when ./config.status config.h
6115if test -n "\$CONFIG_FILES"; then
6116  # Protect against being on the right side of a sed subst in config.status.
6117  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6118   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6119s,@SHELL@,$SHELL,;t t
6120s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6121s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6122s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6123s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6124s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6125s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6126s,@exec_prefix@,$exec_prefix,;t t
6127s,@prefix@,$prefix,;t t
6128s,@program_transform_name@,$program_transform_name,;t t
6129s,@bindir@,$bindir,;t t
6130s,@sbindir@,$sbindir,;t t
6131s,@libexecdir@,$libexecdir,;t t
6132s,@datadir@,$datadir,;t t
6133s,@sysconfdir@,$sysconfdir,;t t
6134s,@sharedstatedir@,$sharedstatedir,;t t
6135s,@localstatedir@,$localstatedir,;t t
6136s,@libdir@,$libdir,;t t
6137s,@includedir@,$includedir,;t t
6138s,@oldincludedir@,$oldincludedir,;t t
6139s,@infodir@,$infodir,;t t
6140s,@mandir@,$mandir,;t t
6141s,@build_alias@,$build_alias,;t t
6142s,@host_alias@,$host_alias,;t t
6143s,@target_alias@,$target_alias,;t t
6144s,@DEFS@,$DEFS,;t t
6145s,@ECHO_C@,$ECHO_C,;t t
6146s,@ECHO_N@,$ECHO_N,;t t
6147s,@ECHO_T@,$ECHO_T,;t t
6148s,@LIBS@,$LIBS,;t t
6149s,@TOP_SRCDIR@,$TOP_SRCDIR,;t t
6150s,@build@,$build,;t t
6151s,@build_cpu@,$build_cpu,;t t
6152s,@build_vendor@,$build_vendor,;t t
6153s,@build_os@,$build_os,;t t
6154s,@host@,$host,;t t
6155s,@host_cpu@,$host_cpu,;t t
6156s,@host_vendor@,$host_vendor,;t t
6157s,@host_os@,$host_os,;t t
6158s,@CXX@,$CXX,;t t
6159s,@CXXFLAGS@,$CXXFLAGS,;t t
6160s,@LDFLAGS@,$LDFLAGS,;t t
6161s,@CPPFLAGS@,$CPPFLAGS,;t t
6162s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6163s,@EXEEXT@,$EXEEXT,;t t
6164s,@OBJEXT@,$OBJEXT,;t t
6165s,@CC@,$CC,;t t
6166s,@CFLAGS@,$CFLAGS,;t t
6167s,@ac_ct_CC@,$ac_ct_CC,;t t
6168s,@CPP@,$CPP,;t t
6169s,@x_includes@,$x_includes,;t t
6170s,@x_libraries@,$x_libraries,;t t
6171s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6172s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6173s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6174s,@AWK@,$AWK,;t t
6175s,@RANLIB@,$RANLIB,;t t
6176s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6177s,@AUTODEPRULE@,$AUTODEPRULE,;t t
6178s,@AUTODEPRULE_SUBDIR@,$AUTODEPRULE_SUBDIR,;t t
6179s,@AUTODEPEND@,$AUTODEPEND,;t t
6180s,@CPP_DEP@,$CPP_DEP,;t t
6181s,@CXXCPP@,$CXXCPP,;t t
6182s,@EGREP@,$EGREP,;t t
6183s,@LINUX_SMP@,$LINUX_SMP,;t t
6184s,@BTRYMETER@,$BTRYMETER,;t t
6185s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
6186s,@EXTRALIBS@,$EXTRALIBS,;t t
6187s,@ELF_LINK_FLAGS@,$ELF_LINK_FLAGS,;t t
6188s,@INSTALL_ARGS@,$INSTALL_ARGS,;t t
6189s,@MEMSTAT@,$MEMSTAT,;t t
6190s,@LVERSION@,$LVERSION,;t t
6191s,@USE_MOD_VERSIONS@,$USE_MOD_VERSIONS,;t t
6192s,@host_dir@,$host_dir,;t t
6193s,@NetMeter_Default_Setting@,$NetMeter_Default_Setting,;t t
6194s,@LIBOBJS@,$LIBOBJS,;t t
6195s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6196CEOF
6197
6198_ACEOF
6199
6200  cat >>$CONFIG_STATUS <<\_ACEOF
6201  # Split the substitutions into bite-sized pieces for seds with
6202  # small command number limits, like on Digital OSF/1 and HP-UX.
6203  ac_max_sed_lines=48
6204  ac_sed_frag=1 # Number of current file.
6205  ac_beg=1 # First line for current file.
6206  ac_end=$ac_max_sed_lines # Line after last line for current file.
6207  ac_more_lines=:
6208  ac_sed_cmds=
6209  while $ac_more_lines; do
6210    if test $ac_beg -gt 1; then
6211      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6212    else
6213      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6214    fi
6215    if test ! -s $tmp/subs.frag; then
6216      ac_more_lines=false
6217    else
6218      # The purpose of the label and of the branching condition is to
6219      # speed up the sed processing (if there are no `@' at all, there
6220      # is no need to browse any of the substitutions).
6221      # These are the two extra sed commands mentioned above.
6222      (echo ':t
6223  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6224      if test -z "$ac_sed_cmds"; then
6225        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6226      else
6227        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6228      fi
6229      ac_sed_frag=`expr $ac_sed_frag + 1`
6230      ac_beg=$ac_end
6231      ac_end=`expr $ac_end + $ac_max_sed_lines`
6232    fi
6233  done
6234  if test -z "$ac_sed_cmds"; then
6235    ac_sed_cmds=cat
6236  fi
6237fi # test -n "$CONFIG_FILES"
6238
6239_ACEOF
6240cat >>$CONFIG_STATUS <<\_ACEOF
6241for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6242  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6243  case $ac_file in
6244  - | *:- | *:-:* ) # input from stdin
6245        cat >$tmp/stdin
6246        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6247        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6248  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6249        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6250  * )   ac_file_in=$ac_file.in ;;
6251  esac
6252
6253  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6254  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6255$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6256         X"$ac_file" : 'X\(//\)[^/]' \| \
6257         X"$ac_file" : 'X\(//\)$' \| \
6258         X"$ac_file" : 'X\(/\)' \| \
6259         .     : '\(.\)' 2>/dev/null ||
6260echo X"$ac_file" |
6261    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6262          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6263          /^X\(\/\/\)$/{ s//\1/; q; }
6264          /^X\(\/\).*/{ s//\1/; q; }
6265          s/.*/./; q'`
6266  { if $as_mkdir_p; then
6267    mkdir -p "$ac_dir"
6268  else
6269    as_dir="$ac_dir"
6270    as_dirs=
6271    while test ! -d "$as_dir"; do
6272      as_dirs="$as_dir $as_dirs"
6273      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6274$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6275         X"$as_dir" : 'X\(//\)[^/]' \| \
6276         X"$as_dir" : 'X\(//\)$' \| \
6277         X"$as_dir" : 'X\(/\)' \| \
6278         .     : '\(.\)' 2>/dev/null ||
6279echo X"$as_dir" |
6280    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6281          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6282          /^X\(\/\/\)$/{ s//\1/; q; }
6283          /^X\(\/\).*/{ s//\1/; q; }
6284          s/.*/./; q'`
6285    done
6286    test ! -n "$as_dirs" || mkdir $as_dirs
6287  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6288echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6289   { (exit 1); exit 1; }; }; }
6290
6291  ac_builddir=.
6292
6293if test "$ac_dir" != .; then
6294  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6295  # A "../" for each directory in $ac_dir_suffix.
6296  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6297else
6298  ac_dir_suffix= ac_top_builddir=
6299fi
6300
6301case $srcdir in
6302  .)  # No --srcdir option.  We are building in place.
6303    ac_srcdir=.
6304    if test -z "$ac_top_builddir"; then
6305       ac_top_srcdir=.
6306    else
6307       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6308    fi ;;
6309  [\\/]* | ?:[\\/]* )  # Absolute path.
6310    ac_srcdir=$srcdir$ac_dir_suffix;
6311    ac_top_srcdir=$srcdir ;;
6312  *) # Relative path.
6313    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6314    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6315esac
6316
6317# Do not use `cd foo && pwd` to compute absolute paths, because
6318# the directories may not exist.
6319case `pwd` in
6320.) ac_abs_builddir="$ac_dir";;
6321*)
6322  case "$ac_dir" in
6323  .) ac_abs_builddir=`pwd`;;
6324  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6325  *) ac_abs_builddir=`pwd`/"$ac_dir";;
6326  esac;;
6327esac
6328case $ac_abs_builddir in
6329.) ac_abs_top_builddir=${ac_top_builddir}.;;
6330*)
6331  case ${ac_top_builddir}. in
6332  .) ac_abs_top_builddir=$ac_abs_builddir;;
6333  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6334  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6335  esac;;
6336esac
6337case $ac_abs_builddir in
6338.) ac_abs_srcdir=$ac_srcdir;;
6339*)
6340  case $ac_srcdir in
6341  .) ac_abs_srcdir=$ac_abs_builddir;;
6342  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6343  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6344  esac;;
6345esac
6346case $ac_abs_builddir in
6347.) ac_abs_top_srcdir=$ac_top_srcdir;;
6348*)
6349  case $ac_top_srcdir in
6350  .) ac_abs_top_srcdir=$ac_abs_builddir;;
6351  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6352  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6353  esac;;
6354esac
6355
6356
6357  case $INSTALL in
6358  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6359  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6360  esac
6361
6362  if test x"$ac_file" != x-; then
6363    { echo "$as_me:$LINENO: creating $ac_file" >&5
6364echo "$as_me: creating $ac_file" >&6;}
6365    rm -f "$ac_file"
6366  fi
6367  # Let's still pretend it is `configure' which instantiates (i.e., don't
6368  # use $as_me), people would be surprised to read:
6369  #    /* config.h.  Generated by config.status.  */
6370  if test x"$ac_file" = x-; then
6371    configure_input=
6372  else
6373    configure_input="$ac_file.  "
6374  fi
6375  configure_input=$configure_input"Generated from `echo $ac_file_in |
6376                                     sed 's,.*/,,'` by configure."
6377
6378  # First look for the input files in the build tree, otherwise in the
6379  # src tree.
6380  ac_file_inputs=`IFS=:
6381    for f in $ac_file_in; do
6382      case $f in
6383      -) echo $tmp/stdin ;;
6384      [\\/$]*)
6385         # Absolute (can't be DOS-style, as IFS=:)
6386         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6387echo "$as_me: error: cannot find input file: $f" >&2;}
6388   { (exit 1); exit 1; }; }
6389         echo "$f";;
6390      *) # Relative
6391         if test -f "$f"; then
6392           # Build tree
6393           echo "$f"
6394         elif test -f "$srcdir/$f"; then
6395           # Source tree
6396           echo "$srcdir/$f"
6397         else
6398           # /dev/null tree
6399           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6400echo "$as_me: error: cannot find input file: $f" >&2;}
6401   { (exit 1); exit 1; }; }
6402         fi;;
6403      esac
6404    done` || { (exit 1); exit 1; }
6405_ACEOF
6406cat >>$CONFIG_STATUS <<_ACEOF
6407  sed "$ac_vpsub
6408$extrasub
6409_ACEOF
6410cat >>$CONFIG_STATUS <<\_ACEOF
6411:t
6412/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6413s,@configure_input@,$configure_input,;t t
6414s,@srcdir@,$ac_srcdir,;t t
6415s,@abs_srcdir@,$ac_abs_srcdir,;t t
6416s,@top_srcdir@,$ac_top_srcdir,;t t
6417s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6418s,@builddir@,$ac_builddir,;t t
6419s,@abs_builddir@,$ac_abs_builddir,;t t
6420s,@top_builddir@,$ac_top_builddir,;t t
6421s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6422s,@INSTALL@,$ac_INSTALL,;t t
6423" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6424  rm -f $tmp/stdin
6425  if test x"$ac_file" != x-; then
6426    mv $tmp/out $ac_file
6427  else
6428    cat $tmp/out
6429    rm -f $tmp/out
6430  fi
6431
6432done
6433_ACEOF
6434
6435cat >>$CONFIG_STATUS <<\_ACEOF
6436
6437{ (exit 0); exit 0; }
6438_ACEOF
6439chmod +x $CONFIG_STATUS
6440ac_clean_files=$ac_clean_files_save
6441
6442
6443# configure is writing to config.log, and then calls config.status.
6444# config.status does its own redirection, appending to config.log.
6445# Unfortunately, on DOS this fails, as config.log is still kept open
6446# by configure, so config.status won't be able to write to it; its
6447# output is simply discarded.  So we exec the FD to /dev/null,
6448# effectively closing config.log, so it can be properly (re)opened and
6449# appended to by config.status.  When coming back to configure, we
6450# need to make the FD available again.
6451if test "$no_create" != yes; then
6452  ac_cs_success=:
6453  ac_config_status_args=
6454  test "$silent" = yes &&
6455    ac_config_status_args="$ac_config_status_args --quiet"
6456  exec 5>/dev/null
6457  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6458  exec 5>>config.log
6459  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6460  # would make configure fail if this is the last instruction.
6461  $ac_cs_success || { (exit 1); exit 1; }
6462fi
6463
Note: See TracBrowser for help on using the browser.