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