r4228: Interpolation fixes
[ctsim.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
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 \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/ctsim.cpp"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 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 SET_MAKE AWK RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX 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'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 Program names:
842   --program-prefix=PREFIX            prepend PREFIX to installed program names
843   --program-suffix=SUFFIX            append SUFFIX to installed program names
844   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
845
846 X features:
847   --x-includes=DIR    X include files are in DIR
848   --x-libraries=DIR   X library files are in DIR
849
850 System types:
851   --build=BUILD     configure for building on BUILD [guessed]
852   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
853 _ACEOF
854 fi
855
856 if test -n "$ac_init_help"; then
857
858   cat <<\_ACEOF
859
860 Optional Features:
861   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
862   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
863   --enable-debug          Turn on debugging
864   --enable-verbose-warnings
865                           Enable verbose compiler warnings.
866   --enable-static
867                             Enable static executables.
868   --enable-dmalloc        Use dmalloc memory allocation
869   --enable-efence        Use ElectricFence memory allocation
870
871 Optional Packages:
872   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
873   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
874   --with-lam=PATH         Set path of LAM MPI
875   --with-ctn=PATH         Set path of CTN DICOM library
876   --with-mcpu=CPU         Set name of CPU for gcc -mcpu
877   --with-cgibin-dir=PATH  Set path of CGI binaries directory
878   --with-cgibin-url=PATH  Set URL path of CGI binaries
879   --with-webdata-dir=PATH Set path of webdata
880   --with-webdata-url=PATH Set URL path of webdata
881   --with-html-dir=PATH    Set directory of html files
882   --with-x                use the X Window System
883
884 Some influential environment variables:
885   CC          C compiler command
886   CFLAGS      C compiler flags
887   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
888               nonstandard directory <lib dir>
889   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
890               headers in a nonstandard directory <include dir>
891   CXX         C++ compiler command
892   CXXFLAGS    C++ compiler flags
893   CPP         C preprocessor
894
895 Use these variables to override the choices made by `configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
897
898 _ACEOF
899 fi
900
901 if test "$ac_init_help" = "recursive"; then
902   # If there are subdirs, report their specific --help.
903   ac_popdir=`pwd`
904   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
905     test -d $ac_dir || continue
906     ac_builddir=.
907
908 if test "$ac_dir" != .; then
909   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
910   # A "../" for each directory in $ac_dir_suffix.
911   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
912 else
913   ac_dir_suffix= ac_top_builddir=
914 fi
915
916 case $srcdir in
917   .)  # No --srcdir option.  We are building in place.
918     ac_srcdir=.
919     if test -z "$ac_top_builddir"; then
920        ac_top_srcdir=.
921     else
922        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
923     fi ;;
924   [\\/]* | ?:[\\/]* )  # Absolute path.
925     ac_srcdir=$srcdir$ac_dir_suffix;
926     ac_top_srcdir=$srcdir ;;
927   *) # Relative path.
928     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929     ac_top_srcdir=$ac_top_builddir$srcdir ;;
930 esac
931 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
932 # absolute.
933 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
934 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
935 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
936 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
937
938     cd $ac_dir
939     # Check for guested configure; otherwise get Cygnus style configure.
940     if test -f $ac_srcdir/configure.gnu; then
941       echo
942       $SHELL $ac_srcdir/configure.gnu  --help=recursive
943     elif test -f $ac_srcdir/configure; then
944       echo
945       $SHELL $ac_srcdir/configure  --help=recursive
946     elif test -f $ac_srcdir/configure.ac ||
947            test -f $ac_srcdir/configure.in; then
948       echo
949       $ac_configure --help
950     else
951       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952     fi
953     cd $ac_popdir
954   done
955 fi
956
957 test -n "$ac_init_help" && exit 0
958 if $ac_init_version; then
959   cat <<\_ACEOF
960
961 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
962 Free Software Foundation, Inc.
963 This configure script is free software; the Free Software Foundation
964 gives unlimited permission to copy, distribute and modify it.
965 _ACEOF
966   exit 0
967 fi
968 exec 5>config.log
969 cat >&5 <<_ACEOF
970 This file contains any messages produced by compilers while
971 running configure, to aid debugging if configure makes a mistake.
972
973 It was created by $as_me, which was
974 generated by GNU Autoconf 2.57.  Invocation command line was
975
976   $ $0 $@
977
978 _ACEOF
979 {
980 cat <<_ASUNAME
981 ## --------- ##
982 ## Platform. ##
983 ## --------- ##
984
985 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
986 uname -m = `(uname -m) 2>/dev/null || echo unknown`
987 uname -r = `(uname -r) 2>/dev/null || echo unknown`
988 uname -s = `(uname -s) 2>/dev/null || echo unknown`
989 uname -v = `(uname -v) 2>/dev/null || echo unknown`
990
991 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
992 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
993
994 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
995 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
996 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
997 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
998 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
999 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1000 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1001
1002 _ASUNAME
1003
1004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 for as_dir in $PATH
1006 do
1007   IFS=$as_save_IFS
1008   test -z "$as_dir" && as_dir=.
1009   echo "PATH: $as_dir"
1010 done
1011
1012 } >&5
1013
1014 cat >&5 <<_ACEOF
1015
1016
1017 ## ----------- ##
1018 ## Core tests. ##
1019 ## ----------- ##
1020
1021 _ACEOF
1022
1023
1024 # Keep a trace of the command line.
1025 # Strip out --no-create and --no-recursion so they do not pile up.
1026 # Strip out --silent because we don't want to record it for future runs.
1027 # Also quote any args containing shell meta-characters.
1028 # Make two passes to allow for proper duplicate-argument suppression.
1029 ac_configure_args=
1030 ac_configure_args0=
1031 ac_configure_args1=
1032 ac_sep=
1033 ac_must_keep_next=false
1034 for ac_pass in 1 2
1035 do
1036   for ac_arg
1037   do
1038     case $ac_arg in
1039     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1040     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041     | -silent | --silent | --silen | --sile | --sil)
1042       continue ;;
1043     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1044       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1045     esac
1046     case $ac_pass in
1047     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1048     2)
1049       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1050       if test $ac_must_keep_next = true; then
1051         ac_must_keep_next=false # Got value, back to normal.
1052       else
1053         case $ac_arg in
1054           *=* | --config-cache | -C | -disable-* | --disable-* \
1055           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1056           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1057           | -with-* | --with-* | -without-* | --without-* | --x)
1058             case "$ac_configure_args0 " in
1059               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1060             esac
1061             ;;
1062           -* ) ac_must_keep_next=true ;;
1063         esac
1064       fi
1065       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1066       # Get rid of the leading space.
1067       ac_sep=" "
1068       ;;
1069     esac
1070   done
1071 done
1072 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1073 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1074
1075 # When interrupted or exit'd, cleanup temporary files, and complete
1076 # config.log.  We remove comments because anyway the quotes in there
1077 # would cause problems or look ugly.
1078 # WARNING: Be sure not to use single quotes in there, as some shells,
1079 # such as our DU 5.0 friend, will then `close' the trap.
1080 trap 'exit_status=$?
1081   # Save into config.log some information that might help in debugging.
1082   {
1083     echo
1084
1085     cat <<\_ASBOX
1086 ## ---------------- ##
1087 ## Cache variables. ##
1088 ## ---------------- ##
1089 _ASBOX
1090     echo
1091     # The following way of writing the cache mishandles newlines in values,
1092 {
1093   (set) 2>&1 |
1094     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1095     *ac_space=\ *)
1096       sed -n \
1097         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1098           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1099       ;;
1100     *)
1101       sed -n \
1102         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1103       ;;
1104     esac;
1105 }
1106     echo
1107
1108     cat <<\_ASBOX
1109 ## ----------------- ##
1110 ## Output variables. ##
1111 ## ----------------- ##
1112 _ASBOX
1113     echo
1114     for ac_var in $ac_subst_vars
1115     do
1116       eval ac_val=$`echo $ac_var`
1117       echo "$ac_var='"'"'$ac_val'"'"'"
1118     done | sort
1119     echo
1120
1121     if test -n "$ac_subst_files"; then
1122       cat <<\_ASBOX
1123 ## ------------- ##
1124 ## Output files. ##
1125 ## ------------- ##
1126 _ASBOX
1127       echo
1128       for ac_var in $ac_subst_files
1129       do
1130         eval ac_val=$`echo $ac_var`
1131         echo "$ac_var='"'"'$ac_val'"'"'"
1132       done | sort
1133       echo
1134     fi
1135
1136     if test -s confdefs.h; then
1137       cat <<\_ASBOX
1138 ## ----------- ##
1139 ## confdefs.h. ##
1140 ## ----------- ##
1141 _ASBOX
1142       echo
1143       sed "/^$/d" confdefs.h | sort
1144       echo
1145     fi
1146     test "$ac_signal" != 0 &&
1147       echo "$as_me: caught signal $ac_signal"
1148     echo "$as_me: exit $exit_status"
1149   } >&5
1150   rm -f core core.* *.core &&
1151   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1152     exit $exit_status
1153      ' 0
1154 for ac_signal in 1 2 13 15; do
1155   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1156 done
1157 ac_signal=0
1158
1159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1160 rm -rf conftest* confdefs.h
1161 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1162 echo >confdefs.h
1163
1164 # Predefined preprocessor variables.
1165
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_NAME "$PACKAGE_NAME"
1168 _ACEOF
1169
1170
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1173 _ACEOF
1174
1175
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1178 _ACEOF
1179
1180
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_STRING "$PACKAGE_STRING"
1183 _ACEOF
1184
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1188 _ACEOF
1189
1190
1191 # Let the site file select an alternate cache file if it wants to.
1192 # Prefer explicitly selected file to automatically selected ones.
1193 if test -z "$CONFIG_SITE"; then
1194   if test "x$prefix" != xNONE; then
1195     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1196   else
1197     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1198   fi
1199 fi
1200 for ac_site_file in $CONFIG_SITE; do
1201   if test -r "$ac_site_file"; then
1202     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1203 echo "$as_me: loading site script $ac_site_file" >&6;}
1204     sed 's/^/| /' "$ac_site_file" >&5
1205     . "$ac_site_file"
1206   fi
1207 done
1208
1209 if test -r "$cache_file"; then
1210   # Some versions of bash will fail to source /dev/null (special
1211   # files actually), so we avoid doing that.
1212   if test -f "$cache_file"; then
1213     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1214 echo "$as_me: loading cache $cache_file" >&6;}
1215     case $cache_file in
1216       [\\/]* | ?:[\\/]* ) . $cache_file;;
1217       *)                      . ./$cache_file;;
1218     esac
1219   fi
1220 else
1221   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1222 echo "$as_me: creating cache $cache_file" >&6;}
1223   >$cache_file
1224 fi
1225
1226 # Check that the precious variables saved in the cache have kept the same
1227 # value.
1228 ac_cache_corrupted=false
1229 for ac_var in `(set) 2>&1 |
1230                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1231   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1232   eval ac_new_set=\$ac_env_${ac_var}_set
1233   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1234   eval ac_new_val="\$ac_env_${ac_var}_value"
1235   case $ac_old_set,$ac_new_set in
1236     set,)
1237       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1239       ac_cache_corrupted=: ;;
1240     ,set)
1241       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1243       ac_cache_corrupted=: ;;
1244     ,);;
1245     *)
1246       if test "x$ac_old_val" != "x$ac_new_val"; then
1247         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1248 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1249         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1250 echo "$as_me:   former value:  $ac_old_val" >&2;}
1251         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1252 echo "$as_me:   current value: $ac_new_val" >&2;}
1253         ac_cache_corrupted=:
1254       fi;;
1255   esac
1256   # Pass precious variables to config.status.
1257   if test "$ac_new_set" = set; then
1258     case $ac_new_val in
1259     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1261     *) ac_arg=$ac_var=$ac_new_val ;;
1262     esac
1263     case " $ac_configure_args " in
1264       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1265       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1266     esac
1267   fi
1268 done
1269 if $ac_cache_corrupted; then
1270   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1271 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1272   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1273 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1274    { (exit 1); exit 1; }; }
1275 fi
1276
1277 ac_ext=c
1278 ac_cpp='$CPP $CPPFLAGS'
1279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302 am__api_version="1.4"
1303 ac_aux_dir=
1304 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1305   if test -f $ac_dir/install-sh; then
1306     ac_aux_dir=$ac_dir
1307     ac_install_sh="$ac_aux_dir/install-sh -c"
1308     break
1309   elif test -f $ac_dir/install.sh; then
1310     ac_aux_dir=$ac_dir
1311     ac_install_sh="$ac_aux_dir/install.sh -c"
1312     break
1313   elif test -f $ac_dir/shtool; then
1314     ac_aux_dir=$ac_dir
1315     ac_install_sh="$ac_aux_dir/shtool install -c"
1316     break
1317   fi
1318 done
1319 if test -z "$ac_aux_dir"; then
1320   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1321 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1322    { (exit 1); exit 1; }; }
1323 fi
1324 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1325 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1326 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1327
1328 # Find a good install program.  We prefer a C program (faster),
1329 # so one script is as good as another.  But avoid the broken or
1330 # incompatible versions:
1331 # SysV /etc/install, /usr/sbin/install
1332 # SunOS /usr/etc/install
1333 # IRIX /sbin/install
1334 # AIX /bin/install
1335 # AmigaOS /C/install, which installs bootblocks on floppy discs
1336 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1337 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1338 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1339 # ./install, which can be erroneously created by make from ./install.sh.
1340 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1341 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1342 if test -z "$INSTALL"; then
1343 if test "${ac_cv_path_install+set}" = set; then
1344   echo $ECHO_N "(cached) $ECHO_C" >&6
1345 else
1346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1347 for as_dir in $PATH
1348 do
1349   IFS=$as_save_IFS
1350   test -z "$as_dir" && as_dir=.
1351   # Account for people who put trailing slashes in PATH elements.
1352 case $as_dir/ in
1353   ./ | .// | /cC/* | \
1354   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1355   /usr/ucb/* ) ;;
1356   *)
1357     # OSF1 and SCO ODT 3.0 have their own names for install.
1358     # Don't use installbsd from OSF since it installs stuff as root
1359     # by default.
1360     for ac_prog in ginstall scoinst install; do
1361       for ac_exec_ext in '' $ac_executable_extensions; do
1362         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1363           if test $ac_prog = install &&
1364             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1365             # AIX install.  It has an incompatible calling convention.
1366             :
1367           elif test $ac_prog = install &&
1368             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1369             # program-specific install script used by HP pwplus--don't use.
1370             :
1371           else
1372             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1373             break 3
1374           fi
1375         fi
1376       done
1377     done
1378     ;;
1379 esac
1380 done
1381
1382
1383 fi
1384   if test "${ac_cv_path_install+set}" = set; then
1385     INSTALL=$ac_cv_path_install
1386   else
1387     # As a last resort, use the slow shell script.  We don't cache a
1388     # path for INSTALL within a source directory, because that will
1389     # break other packages using the cache if that directory is
1390     # removed, or if the path is relative.
1391     INSTALL=$ac_install_sh
1392   fi
1393 fi
1394 echo "$as_me:$LINENO: result: $INSTALL" >&5
1395 echo "${ECHO_T}$INSTALL" >&6
1396
1397 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1398 # It thinks the first close brace ends the variable substitution.
1399 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1400
1401 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1402
1403 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1404
1405 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1406 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1407 # Just in case
1408 sleep 1
1409 echo timestamp > conftestfile
1410 # Do `set' in a subshell so we don't clobber the current shell's
1411 # arguments.  Must try -L first in case configure is actually a
1412 # symlink; some systems play weird games with the mod time of symlinks
1413 # (eg FreeBSD returns the mod time of the symlink's containing
1414 # directory).
1415 if (
1416    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1417    if test "$*" = "X"; then
1418       # -L didn't work.
1419       set X `ls -t $srcdir/configure conftestfile`
1420    fi
1421    if test "$*" != "X $srcdir/configure conftestfile" \
1422       && test "$*" != "X conftestfile $srcdir/configure"; then
1423
1424       # If neither matched, then we have a broken ls.  This can happen
1425       # if, for instance, CONFIG_SHELL is bash and it inherits a
1426       # broken ls alias from the environment.  This has actually
1427       # happened.  Such a system could not be considered "sane".
1428       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1429 alias in your environment" >&5
1430 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1431 alias in your environment" >&2;}
1432    { (exit 1); exit 1; }; }
1433    fi
1434
1435    test "$2" = conftestfile
1436    )
1437 then
1438    # Ok.
1439    :
1440 else
1441    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1442 Check your system clock" >&5
1443 echo "$as_me: error: newly created file is older than distributed files!
1444 Check your system clock" >&2;}
1445    { (exit 1); exit 1; }; }
1446 fi
1447 rm -f conftest*
1448 echo "$as_me:$LINENO: result: yes" >&5
1449 echo "${ECHO_T}yes" >&6
1450 test "$program_prefix" != NONE &&
1451   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1452 # Use a double $ so make ignores it.
1453 test "$program_suffix" != NONE &&
1454   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1455 # Double any \ or $.  echo might interpret backslashes.
1456 # By default was `s,x,x', remove it if useless.
1457 cat <<\_ACEOF >conftest.sed
1458 s/[\\$]/&&/g;s/;s,x,x,$//
1459 _ACEOF
1460 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1461 rm conftest.sed
1462
1463 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1464 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1465 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1466 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1467   echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469   cat >conftest.make <<\_ACEOF
1470 all:
1471         @echo 'ac_maketemp="$(MAKE)"'
1472 _ACEOF
1473 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1474 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1475 if test -n "$ac_maketemp"; then
1476   eval ac_cv_prog_make_${ac_make}_set=yes
1477 else
1478   eval ac_cv_prog_make_${ac_make}_set=no
1479 fi
1480 rm -f conftest.make
1481 fi
1482 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1483   echo "$as_me:$LINENO: result: yes" >&5
1484 echo "${ECHO_T}yes" >&6
1485   SET_MAKE=
1486 else
1487   echo "$as_me:$LINENO: result: no" >&5
1488 echo "${ECHO_T}no" >&6
1489   SET_MAKE="MAKE=${MAKE-make}"
1490 fi
1491
1492
1493 PACKAGE=ctsim
1494
1495 VERSION=4.2.3
1496
1497 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1498   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1499 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1500    { (exit 1); exit 1; }; }
1501 fi
1502
1503 cat >>confdefs.h <<_ACEOF
1504 #define PACKAGE "$PACKAGE"
1505 _ACEOF
1506
1507
1508 cat >>confdefs.h <<_ACEOF
1509 #define VERSION "$VERSION"
1510 _ACEOF
1511
1512
1513
1514 missing_dir=`cd $ac_aux_dir && pwd`
1515 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1516 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1517 # Run test in a subshell; some versions of sh will print an error if
1518 # an executable is not found, even if stderr is redirected.
1519 # Redirect stdin to placate older versions of autoconf.  Sigh.
1520 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1521    ACLOCAL=aclocal-${am__api_version}
1522    echo "$as_me:$LINENO: result: found" >&5
1523 echo "${ECHO_T}found" >&6
1524 else
1525    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1526    echo "$as_me:$LINENO: result: missing" >&5
1527 echo "${ECHO_T}missing" >&6
1528 fi
1529
1530 echo "$as_me:$LINENO: checking for working autoconf" >&5
1531 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1532 # Run test in a subshell; some versions of sh will print an error if
1533 # an executable is not found, even if stderr is redirected.
1534 # Redirect stdin to placate older versions of autoconf.  Sigh.
1535 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1536    AUTOCONF=autoconf
1537    echo "$as_me:$LINENO: result: found" >&5
1538 echo "${ECHO_T}found" >&6
1539 else
1540    AUTOCONF="$missing_dir/missing autoconf"
1541    echo "$as_me:$LINENO: result: missing" >&5
1542 echo "${ECHO_T}missing" >&6
1543 fi
1544
1545 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1546 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1547 # Run test in a subshell; some versions of sh will print an error if
1548 # an executable is not found, even if stderr is redirected.
1549 # Redirect stdin to placate older versions of autoconf.  Sigh.
1550 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1551    AUTOMAKE=automake-${am__api_version}
1552    echo "$as_me:$LINENO: result: found" >&5
1553 echo "${ECHO_T}found" >&6
1554 else
1555    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1556    echo "$as_me:$LINENO: result: missing" >&5
1557 echo "${ECHO_T}missing" >&6
1558 fi
1559
1560 echo "$as_me:$LINENO: checking for working autoheader" >&5
1561 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1562 # Run test in a subshell; some versions of sh will print an error if
1563 # an executable is not found, even if stderr is redirected.
1564 # Redirect stdin to placate older versions of autoconf.  Sigh.
1565 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1566    AUTOHEADER=autoheader
1567    echo "$as_me:$LINENO: result: found" >&5
1568 echo "${ECHO_T}found" >&6
1569 else
1570    AUTOHEADER="$missing_dir/missing autoheader"
1571    echo "$as_me:$LINENO: result: missing" >&5
1572 echo "${ECHO_T}missing" >&6
1573 fi
1574
1575 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1576 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1577 # Run test in a subshell; some versions of sh will print an error if
1578 # an executable is not found, even if stderr is redirected.
1579 # Redirect stdin to placate older versions of autoconf.  Sigh.
1580 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1581    MAKEINFO=makeinfo
1582    echo "$as_me:$LINENO: result: found" >&5
1583 echo "${ECHO_T}found" >&6
1584 else
1585    MAKEINFO="$missing_dir/missing makeinfo"
1586    echo "$as_me:$LINENO: result: missing" >&5
1587 echo "${ECHO_T}missing" >&6
1588 fi
1589
1590
1591
1592           ac_config_headers="$ac_config_headers config.h"
1593
1594           ac_config_commands="$ac_config_commands default-1"
1595
1596
1597 for ac_prog in gawk mawk nawk awk
1598 do
1599   # Extract the first word of "$ac_prog", so it can be a program name with args.
1600 set dummy $ac_prog; ac_word=$2
1601 echo "$as_me:$LINENO: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_AWK+set}" = set; then
1604   echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606   if test -n "$AWK"; then
1607   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1608 else
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 for as_dir in $PATH
1611 do
1612   IFS=$as_save_IFS
1613   test -z "$as_dir" && as_dir=.
1614   for ac_exec_ext in '' $ac_executable_extensions; do
1615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616     ac_cv_prog_AWK="$ac_prog"
1617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618     break 2
1619   fi
1620 done
1621 done
1622
1623 fi
1624 fi
1625 AWK=$ac_cv_prog_AWK
1626 if test -n "$AWK"; then
1627   echo "$as_me:$LINENO: result: $AWK" >&5
1628 echo "${ECHO_T}$AWK" >&6
1629 else
1630   echo "$as_me:$LINENO: result: no" >&5
1631 echo "${ECHO_T}no" >&6
1632 fi
1633
1634   test -n "$AWK" && break
1635 done
1636
1637 # Find a good install program.  We prefer a C program (faster),
1638 # so one script is as good as another.  But avoid the broken or
1639 # incompatible versions:
1640 # SysV /etc/install, /usr/sbin/install
1641 # SunOS /usr/etc/install
1642 # IRIX /sbin/install
1643 # AIX /bin/install
1644 # AmigaOS /C/install, which installs bootblocks on floppy discs
1645 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1646 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1647 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1648 # ./install, which can be erroneously created by make from ./install.sh.
1649 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1650 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1651 if test -z "$INSTALL"; then
1652 if test "${ac_cv_path_install+set}" = set; then
1653   echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658   IFS=$as_save_IFS
1659   test -z "$as_dir" && as_dir=.
1660   # Account for people who put trailing slashes in PATH elements.
1661 case $as_dir/ in
1662   ./ | .// | /cC/* | \
1663   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1664   /usr/ucb/* ) ;;
1665   *)
1666     # OSF1 and SCO ODT 3.0 have their own names for install.
1667     # Don't use installbsd from OSF since it installs stuff as root
1668     # by default.
1669     for ac_prog in ginstall scoinst install; do
1670       for ac_exec_ext in '' $ac_executable_extensions; do
1671         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1672           if test $ac_prog = install &&
1673             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1674             # AIX install.  It has an incompatible calling convention.
1675             :
1676           elif test $ac_prog = install &&
1677             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1678             # program-specific install script used by HP pwplus--don't use.
1679             :
1680           else
1681             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1682             break 3
1683           fi
1684         fi
1685       done
1686     done
1687     ;;
1688 esac
1689 done
1690
1691
1692 fi
1693   if test "${ac_cv_path_install+set}" = set; then
1694     INSTALL=$ac_cv_path_install
1695   else
1696     # As a last resort, use the slow shell script.  We don't cache a
1697     # path for INSTALL within a source directory, because that will
1698     # break other packages using the cache if that directory is
1699     # removed, or if the path is relative.
1700     INSTALL=$ac_install_sh
1701   fi
1702 fi
1703 echo "$as_me:$LINENO: result: $INSTALL" >&5
1704 echo "${ECHO_T}$INSTALL" >&6
1705
1706 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1707 # It thinks the first close brace ends the variable substitution.
1708 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1709
1710 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1711
1712 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1713
1714 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1715 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1716 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1717 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1718   echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720   cat >conftest.make <<\_ACEOF
1721 all:
1722         @echo 'ac_maketemp="$(MAKE)"'
1723 _ACEOF
1724 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1725 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1726 if test -n "$ac_maketemp"; then
1727   eval ac_cv_prog_make_${ac_make}_set=yes
1728 else
1729   eval ac_cv_prog_make_${ac_make}_set=no
1730 fi
1731 rm -f conftest.make
1732 fi
1733 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1734   echo "$as_me:$LINENO: result: yes" >&5
1735 echo "${ECHO_T}yes" >&6
1736   SET_MAKE=
1737 else
1738   echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1740   SET_MAKE="MAKE=${MAKE-make}"
1741 fi
1742
1743 if test -n "$ac_tool_prefix"; then
1744   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1745 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1746 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748 if test "${ac_cv_prog_RANLIB+set}" = set; then
1749   echo $ECHO_N "(cached) $ECHO_C" >&6
1750 else
1751   if test -n "$RANLIB"; then
1752   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1753 else
1754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 for as_dir in $PATH
1756 do
1757   IFS=$as_save_IFS
1758   test -z "$as_dir" && as_dir=.
1759   for ac_exec_ext in '' $ac_executable_extensions; do
1760   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763     break 2
1764   fi
1765 done
1766 done
1767
1768 fi
1769 fi
1770 RANLIB=$ac_cv_prog_RANLIB
1771 if test -n "$RANLIB"; then
1772   echo "$as_me:$LINENO: result: $RANLIB" >&5
1773 echo "${ECHO_T}$RANLIB" >&6
1774 else
1775   echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1777 fi
1778
1779 fi
1780 if test -z "$ac_cv_prog_RANLIB"; then
1781   ac_ct_RANLIB=$RANLIB
1782   # Extract the first word of "ranlib", so it can be a program name with args.
1783 set dummy ranlib; ac_word=$2
1784 echo "$as_me:$LINENO: checking for $ac_word" >&5
1785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1787   echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789   if test -n "$ac_ct_RANLIB"; then
1790   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1791 else
1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793 for as_dir in $PATH
1794 do
1795   IFS=$as_save_IFS
1796   test -z "$as_dir" && as_dir=.
1797   for ac_exec_ext in '' $ac_executable_extensions; do
1798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799     ac_cv_prog_ac_ct_RANLIB="ranlib"
1800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801     break 2
1802   fi
1803 done
1804 done
1805
1806   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1807 fi
1808 fi
1809 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1810 if test -n "$ac_ct_RANLIB"; then
1811   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1812 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1813 else
1814   echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816 fi
1817
1818   RANLIB=$ac_ct_RANLIB
1819 else
1820   RANLIB="$ac_cv_prog_RANLIB"
1821 fi
1822
1823
1824 ac_ext=c
1825 ac_cpp='$CPP $CPPFLAGS'
1826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1829 if test -n "$ac_tool_prefix"; then
1830   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1831 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_CC+set}" = set; then
1835   echo $ECHO_N "(cached) $ECHO_C" >&6
1836 else
1837   if test -n "$CC"; then
1838   ac_cv_prog_CC="$CC" # Let the user override the test.
1839 else
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 for as_dir in $PATH
1842 do
1843   IFS=$as_save_IFS
1844   test -z "$as_dir" && as_dir=.
1845   for ac_exec_ext in '' $ac_executable_extensions; do
1846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849     break 2
1850   fi
1851 done
1852 done
1853
1854 fi
1855 fi
1856 CC=$ac_cv_prog_CC
1857 if test -n "$CC"; then
1858   echo "$as_me:$LINENO: result: $CC" >&5
1859 echo "${ECHO_T}$CC" >&6
1860 else
1861   echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1863 fi
1864
1865 fi
1866 if test -z "$ac_cv_prog_CC"; then
1867   ac_ct_CC=$CC
1868   # Extract the first word of "gcc", so it can be a program name with args.
1869 set dummy gcc; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   if test -n "$ac_ct_CC"; then
1876   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1877 else
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1880 do
1881   IFS=$as_save_IFS
1882   test -z "$as_dir" && as_dir=.
1883   for ac_exec_ext in '' $ac_executable_extensions; do
1884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885     ac_cv_prog_ac_ct_CC="gcc"
1886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887     break 2
1888   fi
1889 done
1890 done
1891
1892 fi
1893 fi
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1898 else
1899   echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1901 fi
1902
1903   CC=$ac_ct_CC
1904 else
1905   CC="$ac_cv_prog_CC"
1906 fi
1907
1908 if test -z "$CC"; then
1909   if test -n "$ac_tool_prefix"; then
1910   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1911 set dummy ${ac_tool_prefix}cc; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_CC+set}" = set; then
1915   echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917   if test -n "$CC"; then
1918   ac_cv_prog_CC="$CC" # Let the user override the test.
1919 else
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1922 do
1923   IFS=$as_save_IFS
1924   test -z "$as_dir" && as_dir=.
1925   for ac_exec_ext in '' $ac_executable_extensions; do
1926   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927     ac_cv_prog_CC="${ac_tool_prefix}cc"
1928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929     break 2
1930   fi
1931 done
1932 done
1933
1934 fi
1935 fi
1936 CC=$ac_cv_prog_CC
1937 if test -n "$CC"; then
1938   echo "$as_me:$LINENO: result: $CC" >&5
1939 echo "${ECHO_T}$CC" >&6
1940 else
1941   echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1943 fi
1944
1945 fi
1946 if test -z "$ac_cv_prog_CC"; then
1947   ac_ct_CC=$CC
1948   # Extract the first word of "cc", so it can be a program name with args.
1949 set dummy cc; ac_word=$2
1950 echo "$as_me:$LINENO: checking for $ac_word" >&5
1951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1952 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1953   echo $ECHO_N "(cached) $ECHO_C" >&6
1954 else
1955   if test -n "$ac_ct_CC"; then
1956   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1957 else
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 for as_dir in $PATH
1960 do
1961   IFS=$as_save_IFS
1962   test -z "$as_dir" && as_dir=.
1963   for ac_exec_ext in '' $ac_executable_extensions; do
1964   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1965     ac_cv_prog_ac_ct_CC="cc"
1966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967     break 2
1968   fi
1969 done
1970 done
1971
1972 fi
1973 fi
1974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1975 if test -n "$ac_ct_CC"; then
1976   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1977 echo "${ECHO_T}$ac_ct_CC" >&6
1978 else
1979   echo "$as_me:$LINENO: result: no" >&5
1980 echo "${ECHO_T}no" >&6
1981 fi
1982
1983   CC=$ac_ct_CC
1984 else
1985   CC="$ac_cv_prog_CC"
1986 fi
1987
1988 fi
1989 if test -z "$CC"; then
1990   # Extract the first word of "cc", so it can be a program name with args.
1991 set dummy cc; ac_word=$2
1992 echo "$as_me:$LINENO: checking for $ac_word" >&5
1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1994 if test "${ac_cv_prog_CC+set}" = set; then
1995   echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997   if test -n "$CC"; then
1998   ac_cv_prog_CC="$CC" # Let the user override the test.
1999 else
2000   ac_prog_rejected=no
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 for as_dir in $PATH
2003 do
2004   IFS=$as_save_IFS
2005   test -z "$as_dir" && as_dir=.
2006   for ac_exec_ext in '' $ac_executable_extensions; do
2007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2009        ac_prog_rejected=yes
2010        continue
2011      fi
2012     ac_cv_prog_CC="cc"
2013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014     break 2
2015   fi
2016 done
2017 done
2018
2019 if test $ac_prog_rejected = yes; then
2020   # We found a bogon in the path, so make sure we never use it.
2021   set dummy $ac_cv_prog_CC
2022   shift
2023   if test $# != 0; then
2024     # We chose a different compiler from the bogus one.
2025     # However, it has the same basename, so the bogon will be chosen
2026     # first if we set CC to just the basename; use the full file name.
2027     shift
2028     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2029   fi
2030 fi
2031 fi
2032 fi
2033 CC=$ac_cv_prog_CC
2034 if test -n "$CC"; then
2035   echo "$as_me:$LINENO: result: $CC" >&5
2036 echo "${ECHO_T}$CC" >&6
2037 else
2038   echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2040 fi
2041
2042 fi
2043 if test -z "$CC"; then
2044   if test -n "$ac_tool_prefix"; then
2045   for ac_prog in cl
2046   do
2047     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_CC+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   if test -n "$CC"; then
2055   ac_cv_prog_CC="$CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060   IFS=$as_save_IFS
2061   test -z "$as_dir" && as_dir=.
2062   for ac_exec_ext in '' $ac_executable_extensions; do
2063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066     break 2
2067   fi
2068 done
2069 done
2070
2071 fi
2072 fi
2073 CC=$ac_cv_prog_CC
2074 if test -n "$CC"; then
2075   echo "$as_me:$LINENO: result: $CC" >&5
2076 echo "${ECHO_T}$CC" >&6
2077 else
2078   echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2080 fi
2081
2082     test -n "$CC" && break
2083   done
2084 fi
2085 if test -z "$CC"; then
2086   ac_ct_CC=$CC
2087   for ac_prog in cl
2088 do
2089   # Extract the first word of "$ac_prog", so it can be a program name with args.
2090 set dummy $ac_prog; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   if test -n "$ac_ct_CC"; then
2097   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102   IFS=$as_save_IFS
2103   test -z "$as_dir" && as_dir=.
2104   for ac_exec_ext in '' $ac_executable_extensions; do
2105   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106     ac_cv_prog_ac_ct_CC="$ac_prog"
2107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108     break 2
2109   fi
2110 done
2111 done
2112
2113 fi
2114 fi
2115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2116 if test -n "$ac_ct_CC"; then
2117   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2118 echo "${ECHO_T}$ac_ct_CC" >&6
2119 else
2120   echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2122 fi
2123
2124   test -n "$ac_ct_CC" && break
2125 done
2126
2127   CC=$ac_ct_CC
2128 fi
2129
2130 fi
2131
2132
2133 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2134 See \`config.log' for more details." >&5
2135 echo "$as_me: error: no acceptable C compiler found in \$PATH
2136 See \`config.log' for more details." >&2;}
2137    { (exit 1); exit 1; }; }
2138
2139 # Provide some information about the compiler.
2140 echo "$as_me:$LINENO:" \
2141      "checking for C compiler version" >&5
2142 ac_compiler=`set X $ac_compile; echo $2`
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2144   (eval $ac_compiler --version </dev/null >&5) 2>&5
2145   ac_status=$?
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); }
2148 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2149   (eval $ac_compiler -v </dev/null >&5) 2>&5
2150   ac_status=$?
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); }
2153 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2154   (eval $ac_compiler -V </dev/null >&5) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }
2158
2159 cat >conftest.$ac_ext <<_ACEOF
2160 #line $LINENO "configure"
2161 /* confdefs.h.  */
2162 _ACEOF
2163 cat confdefs.h >>conftest.$ac_ext
2164 cat >>conftest.$ac_ext <<_ACEOF
2165 /* end confdefs.h.  */
2166
2167 int
2168 main ()
2169 {
2170
2171   ;
2172   return 0;
2173 }
2174 _ACEOF
2175 ac_clean_files_save=$ac_clean_files
2176 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2177 # Try to create an executable without -o first, disregard a.out.
2178 # It will help us diagnose broken compilers, and finding out an intuition
2179 # of exeext.
2180 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2181 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2182 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2183 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2184   (eval $ac_link_default) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }; then
2188   # Find the output, starting from the most likely.  This scheme is
2189 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2190 # resort.
2191
2192 # Be careful to initialize this variable, since it used to be cached.
2193 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2194 ac_cv_exeext=
2195 # b.out is created by i960 compilers.
2196 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2197 do
2198   test -f "$ac_file" || continue
2199   case $ac_file in
2200     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2201         ;;
2202     conftest.$ac_ext )
2203         # This is the source file.
2204         ;;
2205     [ab].out )
2206         # We found the default executable, but exeext='' is most
2207         # certainly right.
2208         break;;
2209     *.* )
2210         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2211         # FIXME: I believe we export ac_cv_exeext for Libtool,
2212         # but it would be cool to find out if it's true.  Does anybody
2213         # maintain Libtool? --akim.
2214         export ac_cv_exeext
2215         break;;
2216     * )
2217         break;;
2218   esac
2219 done
2220 else
2221   echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2223
2224 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: C compiler cannot create executables
2227 See \`config.log' for more details." >&2;}
2228    { (exit 77); exit 77; }; }
2229 fi
2230
2231 ac_exeext=$ac_cv_exeext
2232 echo "$as_me:$LINENO: result: $ac_file" >&5
2233 echo "${ECHO_T}$ac_file" >&6
2234
2235 # Check the compiler produces executables we can run.  If not, either
2236 # the compiler is broken, or we cross compile.
2237 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2238 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2239 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2240 # If not cross compiling, check that we can run a simple program.
2241 if test "$cross_compiling" != yes; then
2242   if { ac_try='./$ac_file'
2243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244   (eval $ac_try) 2>&5
2245   ac_status=$?
2246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247   (exit $ac_status); }; }; then
2248     cross_compiling=no
2249   else
2250     if test "$cross_compiling" = maybe; then
2251         cross_compiling=yes
2252     else
2253         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2254 If you meant to cross compile, use \`--host'.
2255 See \`config.log' for more details." >&5
2256 echo "$as_me: error: cannot run C compiled programs.
2257 If you meant to cross compile, use \`--host'.
2258 See \`config.log' for more details." >&2;}
2259    { (exit 1); exit 1; }; }
2260     fi
2261   fi
2262 fi
2263 echo "$as_me:$LINENO: result: yes" >&5
2264 echo "${ECHO_T}yes" >&6
2265
2266 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2267 ac_clean_files=$ac_clean_files_save
2268 # Check the compiler produces executables we can run.  If not, either
2269 # the compiler is broken, or we cross compile.
2270 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2271 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2272 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2273 echo "${ECHO_T}$cross_compiling" >&6
2274
2275 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2276 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2278   (eval $ac_link) 2>&5
2279   ac_status=$?
2280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281   (exit $ac_status); }; then
2282   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2283 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2284 # work properly (i.e., refer to `conftest.exe'), while it won't with
2285 # `rm'.
2286 for ac_file in conftest.exe conftest conftest.*; do
2287   test -f "$ac_file" || continue
2288   case $ac_file in
2289     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2290     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2291           export ac_cv_exeext
2292           break;;
2293     * ) break;;
2294   esac
2295 done
2296 else
2297   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2300 See \`config.log' for more details." >&2;}
2301    { (exit 1); exit 1; }; }
2302 fi
2303
2304 rm -f conftest$ac_cv_exeext
2305 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2306 echo "${ECHO_T}$ac_cv_exeext" >&6
2307
2308 rm -f conftest.$ac_ext
2309 EXEEXT=$ac_cv_exeext
2310 ac_exeext=$EXEEXT
2311 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2312 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2313 if test "${ac_cv_objext+set}" = set; then
2314   echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316   cat >conftest.$ac_ext <<_ACEOF
2317 #line $LINENO "configure"
2318 /* confdefs.h.  */
2319 _ACEOF
2320 cat confdefs.h >>conftest.$ac_ext
2321 cat >>conftest.$ac_ext <<_ACEOF
2322 /* end confdefs.h.  */
2323
2324 int
2325 main ()
2326 {
2327
2328   ;
2329   return 0;
2330 }
2331 _ACEOF
2332 rm -f conftest.o conftest.obj
2333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2334   (eval $ac_compile) 2>&5
2335   ac_status=$?
2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337   (exit $ac_status); }; then
2338   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2339   case $ac_file in
2340     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2341     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2342        break;;
2343   esac
2344 done
2345 else
2346   echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2348
2349 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2350 See \`config.log' for more details." >&5
2351 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2352 See \`config.log' for more details." >&2;}
2353    { (exit 1); exit 1; }; }
2354 fi
2355
2356 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2357 fi
2358 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2359 echo "${ECHO_T}$ac_cv_objext" >&6
2360 OBJEXT=$ac_cv_objext
2361 ac_objext=$OBJEXT
2362 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2363 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2364 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2365   echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367   cat >conftest.$ac_ext <<_ACEOF
2368 #line $LINENO "configure"
2369 /* confdefs.h.  */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h.  */
2374
2375 int
2376 main ()
2377 {
2378 #ifndef __GNUC__
2379        choke me
2380 #endif
2381
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388   (eval $ac_compile) 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); } &&
2392          { ac_try='test -s conftest.$ac_objext'
2393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394   (eval $ac_try) 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; }; then
2398   ac_compiler_gnu=yes
2399 else
2400   echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 ac_compiler_gnu=no
2404 fi
2405 rm -f conftest.$ac_objext conftest.$ac_ext
2406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2407
2408 fi
2409 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2411 GCC=`test $ac_compiler_gnu = yes && echo yes`
2412 ac_test_CFLAGS=${CFLAGS+set}
2413 ac_save_CFLAGS=$CFLAGS
2414 CFLAGS="-g"
2415 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2416 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2417 if test "${ac_cv_prog_cc_g+set}" = set; then
2418   echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420   cat >conftest.$ac_ext <<_ACEOF
2421 #line $LINENO "configure"
2422 /* confdefs.h.  */
2423 _ACEOF
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h.  */
2427
2428 int
2429 main ()
2430 {
2431
2432   ;
2433   return 0;
2434 }
2435 _ACEOF
2436 rm -f conftest.$ac_objext
2437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2438   (eval $ac_compile) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); } &&
2442          { ac_try='test -s conftest.$ac_objext'
2443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444   (eval $ac_try) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }; }; then
2448   ac_cv_prog_cc_g=yes
2449 else
2450   echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2452
2453 ac_cv_prog_cc_g=no
2454 fi
2455 rm -f conftest.$ac_objext conftest.$ac_ext
2456 fi
2457 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2458 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2459 if test "$ac_test_CFLAGS" = set; then
2460   CFLAGS=$ac_save_CFLAGS
2461 elif test $ac_cv_prog_cc_g = yes; then
2462   if test "$GCC" = yes; then
2463     CFLAGS="-g -O2"
2464   else
2465     CFLAGS="-g"
2466   fi
2467 else
2468   if test "$GCC" = yes; then
2469     CFLAGS="-O2"
2470   else
2471     CFLAGS=
2472   fi
2473 fi
2474 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2475 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2476 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   ac_cv_prog_cc_stdc=no
2480 ac_save_CC=$CC
2481 cat >conftest.$ac_ext <<_ACEOF
2482 #line $LINENO "configure"
2483 /* confdefs.h.  */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h.  */
2488 #include <stdarg.h>
2489 #include <stdio.h>
2490 #include <sys/types.h>
2491 #include <sys/stat.h>
2492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2493 struct buf { int x; };
2494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2495 static char *e (p, i)
2496      char **p;
2497      int i;
2498 {
2499   return p[i];
2500 }
2501 static char *f (char * (*g) (char **, int), char **p, ...)
2502 {
2503   char *s;
2504   va_list v;
2505   va_start (v,p);
2506   s = g (p, va_arg (v,int));
2507   va_end (v);
2508   return s;
2509 }
2510 int test (int i, double x);
2511 struct s1 {int (*f) (int a);};
2512 struct s2 {int (*f) (double a);};
2513 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2514 int argc;
2515 char **argv;
2516 int
2517 main ()
2518 {
2519 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 # Don't try gcc -ansi; that turns off useful extensions and
2525 # breaks some systems' header files.
2526 # AIX                   -qlanglvl=ansi
2527 # Ultrix and OSF/1      -std1
2528 # HP-UX 10.20 and later -Ae
2529 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2530 # SVR4                  -Xc -D__EXTENSIONS__
2531 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2532 do
2533   CC="$ac_save_CC $ac_arg"
2534   rm -f conftest.$ac_objext
2535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2536   (eval $ac_compile) 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); } &&
2540          { ac_try='test -s conftest.$ac_objext'
2541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542   (eval $ac_try) 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }; }; then
2546   ac_cv_prog_cc_stdc=$ac_arg
2547 break
2548 else
2549   echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2551
2552 fi
2553 rm -f conftest.$ac_objext
2554 done
2555 rm -f conftest.$ac_ext conftest.$ac_objext
2556 CC=$ac_save_CC
2557
2558 fi
2559
2560 case "x$ac_cv_prog_cc_stdc" in
2561   x|xno)
2562     echo "$as_me:$LINENO: result: none needed" >&5
2563 echo "${ECHO_T}none needed" >&6 ;;
2564   *)
2565     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2566 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2567     CC="$CC $ac_cv_prog_cc_stdc" ;;
2568 esac
2569
2570 # Some people use a C++ compiler to compile C.  Since we use `exit',
2571 # in C++ we need to declare it.  In case someone uses the same compiler
2572 # for both compiling C and C++ we need to have the C++ compiler decide
2573 # the declaration of exit, since it's the most demanding environment.
2574 cat >conftest.$ac_ext <<_ACEOF
2575 #ifndef __cplusplus
2576   choke me
2577 #endif
2578 _ACEOF
2579 rm -f conftest.$ac_objext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581   (eval $ac_compile) 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); } &&
2585          { ac_try='test -s conftest.$ac_objext'
2586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587   (eval $ac_try) 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591   for ac_declaration in \
2592    ''\
2593    '#include <stdlib.h>' \
2594    'extern "C" void std::exit (int) throw (); using std::exit;' \
2595    'extern "C" void std::exit (int); using std::exit;' \
2596    'extern "C" void exit (int) throw ();' \
2597    'extern "C" void exit (int);' \
2598    'void exit (int);'
2599 do
2600   cat >conftest.$ac_ext <<_ACEOF
2601 #line $LINENO "configure"
2602 /* confdefs.h.  */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h.  */
2607 #include <stdlib.h>
2608 $ac_declaration
2609 int
2610 main ()
2611 {
2612 exit (42);
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619   (eval $ac_compile) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); } &&
2623          { ac_try='test -s conftest.$ac_objext'
2624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625   (eval $ac_try) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; }; then
2629   :
2630 else
2631   echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634 continue
2635 fi
2636 rm -f conftest.$ac_objext conftest.$ac_ext
2637   cat >conftest.$ac_ext <<_ACEOF
2638 #line $LINENO "configure"
2639 /* confdefs.h.  */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h.  */
2644 $ac_declaration
2645 int
2646 main ()
2647 {
2648 exit (42);
2649   ;
2650   return 0;
2651 }
2652 _ACEOF
2653 rm -f conftest.$ac_objext
2654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655   (eval $ac_compile) 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); } &&
2659          { ac_try='test -s conftest.$ac_objext'
2660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661   (eval $ac_try) 2>&5
2662   ac_status=$?
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); }; }; then
2665   break
2666 else
2667   echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2669
2670 fi
2671 rm -f conftest.$ac_objext conftest.$ac_ext
2672 done
2673 rm -f conftest*
2674 if test -n "$ac_declaration"; then
2675   echo '#ifdef __cplusplus' >>confdefs.h
2676   echo $ac_declaration      >>confdefs.h
2677   echo '#endif'             >>confdefs.h
2678 fi
2679
2680 else
2681   echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 fi
2685 rm -f conftest.$ac_objext conftest.$ac_ext
2686 ac_ext=c
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691
2692 ac_ext=cc
2693 ac_cpp='$CXXCPP $CPPFLAGS'
2694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2697 if test -n "$ac_tool_prefix"; then
2698   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2699   do
2700     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2701 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2702 echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2704 if test "${ac_cv_prog_CXX+set}" = set; then
2705   echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707   if test -n "$CXX"; then
2708   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713   IFS=$as_save_IFS
2714   test -z "$as_dir" && as_dir=.
2715   for ac_exec_ext in '' $ac_executable_extensions; do
2716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719     break 2
2720   fi
2721 done
2722 done
2723
2724 fi
2725 fi
2726 CXX=$ac_cv_prog_CXX
2727 if test -n "$CXX"; then
2728   echo "$as_me:$LINENO: result: $CXX" >&5
2729 echo "${ECHO_T}$CXX" >&6
2730 else
2731   echo "$as_me:$LINENO: result: no" >&5
2732 echo "${ECHO_T}no" >&6
2733 fi
2734
2735     test -n "$CXX" && break
2736   done
2737 fi
2738 if test -z "$CXX"; then
2739   ac_ct_CXX=$CXX
2740   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2741 do
2742   # Extract the first word of "$ac_prog", so it can be a program name with args.
2743 set dummy $ac_prog; ac_word=$2
2744 echo "$as_me:$LINENO: checking for $ac_word" >&5
2745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2746 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2747   echo $ECHO_N "(cached) $ECHO_C" >&6
2748 else
2749   if test -n "$ac_ct_CXX"; then
2750   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755   IFS=$as_save_IFS
2756   test -z "$as_dir" && as_dir=.
2757   for ac_exec_ext in '' $ac_executable_extensions; do
2758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759     ac_cv_prog_ac_ct_CXX="$ac_prog"
2760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761     break 2
2762   fi
2763 done
2764 done
2765
2766 fi
2767 fi
2768 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2769 if test -n "$ac_ct_CXX"; then
2770   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2771 echo "${ECHO_T}$ac_ct_CXX" >&6
2772 else
2773   echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2775 fi
2776
2777   test -n "$ac_ct_CXX" && break
2778 done
2779 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2780
2781   CXX=$ac_ct_CXX
2782 fi
2783
2784
2785 # Provide some information about the compiler.
2786 echo "$as_me:$LINENO:" \
2787      "checking for C++ compiler version" >&5
2788 ac_compiler=`set X $ac_compile; echo $2`
2789 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2790   (eval $ac_compiler --version </dev/null >&5) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }
2794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2795   (eval $ac_compiler -v </dev/null >&5) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }
2799 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2800   (eval $ac_compiler -V </dev/null >&5) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }
2804
2805 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2806 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2807 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2808   echo $ECHO_N "(cached) $ECHO_C" >&6
2809 else
2810   cat >conftest.$ac_ext <<_ACEOF
2811 #line $LINENO "configure"
2812 /* confdefs.h.  */
2813 _ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h.  */
2817
2818 int
2819 main ()
2820 {
2821 #ifndef __GNUC__
2822        choke me
2823 #endif
2824
2825   ;
2826   return 0;
2827 }
2828 _ACEOF
2829 rm -f conftest.$ac_objext
2830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2831   (eval $ac_compile) 2>&5
2832   ac_status=$?
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); } &&
2835          { ac_try='test -s conftest.$ac_objext'
2836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837   (eval $ac_try) 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); }; }; then
2841   ac_compiler_gnu=yes
2842 else
2843   echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2845
2846 ac_compiler_gnu=no
2847 fi
2848 rm -f conftest.$ac_objext conftest.$ac_ext
2849 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2850
2851 fi
2852 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2853 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2854 GXX=`test $ac_compiler_gnu = yes && echo yes`
2855 ac_test_CXXFLAGS=${CXXFLAGS+set}
2856 ac_save_CXXFLAGS=$CXXFLAGS
2857 CXXFLAGS="-g"
2858 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2859 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2860 if test "${ac_cv_prog_cxx_g+set}" = set; then
2861   echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863   cat >conftest.$ac_ext <<_ACEOF
2864 #line $LINENO "configure"
2865 /* confdefs.h.  */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h.  */
2870
2871 int
2872 main ()
2873 {
2874
2875   ;
2876   return 0;
2877 }
2878 _ACEOF
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881   (eval $ac_compile) 2>&5
2882   ac_status=$?
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); } &&
2885          { ac_try='test -s conftest.$ac_objext'
2886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887   (eval $ac_try) 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }; }; then
2891   ac_cv_prog_cxx_g=yes
2892 else
2893   echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2895
2896 ac_cv_prog_cxx_g=no
2897 fi
2898 rm -f conftest.$ac_objext conftest.$ac_ext
2899 fi
2900 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2901 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2902 if test "$ac_test_CXXFLAGS" = set; then
2903   CXXFLAGS=$ac_save_CXXFLAGS
2904 elif test $ac_cv_prog_cxx_g = yes; then
2905   if test "$GXX" = yes; then
2906     CXXFLAGS="-g -O2"
2907   else
2908     CXXFLAGS="-g"
2909   fi
2910 else
2911   if test "$GXX" = yes; then
2912     CXXFLAGS="-O2"
2913   else
2914     CXXFLAGS=
2915   fi
2916 fi
2917 for ac_declaration in \
2918    ''\
2919    '#include <stdlib.h>' \
2920    'extern "C" void std::exit (int) throw (); using std::exit;' \
2921    'extern "C" void std::exit (int); using std::exit;' \
2922    'extern "C" void exit (int) throw ();' \
2923    'extern "C" void exit (int);' \
2924    'void exit (int);'
2925 do
2926   cat >conftest.$ac_ext <<_ACEOF
2927 #line $LINENO "configure"
2928 /* confdefs.h.  */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h.  */
2933 #include <stdlib.h>
2934 $ac_declaration
2935 int
2936 main ()
2937 {
2938 exit (42);
2939   ;
2940   return 0;
2941 }
2942 _ACEOF
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2945   (eval $ac_compile) 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); } &&
2949          { ac_try='test -s conftest.$ac_objext'
2950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951   (eval $ac_try) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; }; then
2955   :
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 continue
2961 fi
2962 rm -f conftest.$ac_objext conftest.$ac_ext
2963   cat >conftest.$ac_ext <<_ACEOF
2964 #line $LINENO "configure"
2965 /* confdefs.h.  */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h.  */
2970 $ac_declaration
2971 int
2972 main ()
2973 {
2974 exit (42);
2975   ;
2976   return 0;
2977 }
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981   (eval $ac_compile) 2>&5
2982   ac_status=$?
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); } &&
2985          { ac_try='test -s conftest.$ac_objext'
2986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987   (eval $ac_try) 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }; }; then
2991   break
2992 else
2993   echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996 fi
2997 rm -f conftest.$ac_objext conftest.$ac_ext
2998 done
2999 rm -f conftest*
3000 if test -n "$ac_declaration"; then
3001   echo '#ifdef __cplusplus' >>confdefs.h
3002   echo $ac_declaration      >>confdefs.h
3003   echo '#endif'             >>confdefs.h
3004 fi
3005
3006 ac_ext=c
3007 ac_cpp='$CPP $CPPFLAGS'
3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011
3012
3013 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3014 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3015 if test "${ac_cv_c_bigendian+set}" = set; then
3016   echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018   # See if sys/param.h defines the BYTE_ORDER macro.
3019 cat >conftest.$ac_ext <<_ACEOF
3020 #line $LINENO "configure"
3021 /* confdefs.h.  */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h.  */
3026 #include <sys/types.h>
3027 #include <sys/param.h>
3028
3029 int
3030 main ()
3031 {
3032 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3033  bogus endian macros
3034 #endif
3035
3036   ;
3037   return 0;
3038 }
3039 _ACEOF
3040 rm -f conftest.$ac_objext
3041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3042   (eval $ac_compile) 2>&5
3043   ac_status=$?
3044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045   (exit $ac_status); } &&
3046          { ac_try='test -s conftest.$ac_objext'
3047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048   (eval $ac_try) 2>&5
3049   ac_status=$?
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); }; }; then
3052   # It does; now see whether it defined to BIG_ENDIAN or not.
3053 cat >conftest.$ac_ext <<_ACEOF
3054 #line $LINENO "configure"
3055 /* confdefs.h.  */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h.  */
3060 #include <sys/types.h>
3061 #include <sys/param.h>
3062
3063 int
3064 main ()
3065 {
3066 #if BYTE_ORDER != BIG_ENDIAN
3067  not big endian
3068 #endif
3069
3070   ;
3071   return 0;
3072 }
3073 _ACEOF
3074 rm -f conftest.$ac_objext
3075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3076   (eval $ac_compile) 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); } &&
3080          { ac_try='test -s conftest.$ac_objext'
3081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082   (eval $ac_try) 2>&5
3083   ac_status=$?
3084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085   (exit $ac_status); }; }; then
3086   ac_cv_c_bigendian=yes
3087 else
3088   echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3090
3091 ac_cv_c_bigendian=no
3092 fi
3093 rm -f conftest.$ac_objext conftest.$ac_ext
3094 else
3095   echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3097
3098 # It does not; compile a test program.
3099 if test "$cross_compiling" = yes; then
3100   # try to guess the endianness by grepping values into an object file
3101   ac_cv_c_bigendian=unknown
3102   cat >conftest.$ac_ext <<_ACEOF
3103 #line $LINENO "configure"
3104 /* confdefs.h.  */
3105 _ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h.  */
3109 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3110 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3111 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3112 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3113 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3114 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3115 int
3116 main ()
3117 {
3118  _ascii (); _ebcdic ();
3119   ;
3120   return 0;
3121 }
3122 _ACEOF
3123 rm -f conftest.$ac_objext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3125   (eval $ac_compile) 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); } &&
3129          { ac_try='test -s conftest.$ac_objext'
3130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131   (eval $ac_try) 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }; }; then
3135   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3136   ac_cv_c_bigendian=yes
3137 fi
3138 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3139   if test "$ac_cv_c_bigendian" = unknown; then
3140     ac_cv_c_bigendian=no
3141   else
3142     # finding both strings is unlikely to happen, but who knows?
3143     ac_cv_c_bigendian=unknown
3144   fi
3145 fi
3146 else
3147   echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150 fi
3151 rm -f conftest.$ac_objext conftest.$ac_ext
3152 else
3153   cat >conftest.$ac_ext <<_ACEOF
3154 #line $LINENO "configure"
3155 /* confdefs.h.  */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h.  */
3160 int
3161 main ()
3162 {
3163   /* Are we little or big endian?  From Harbison&Steele.  */
3164   union
3165   {
3166     long l;
3167     char c[sizeof (long)];
3168   } u;
3169   u.l = 1;
3170   exit (u.c[sizeof (long) - 1] == 1);
3171 }
3172 _ACEOF
3173 rm -f conftest$ac_exeext
3174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3175   (eval $ac_link) 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180   (eval $ac_try) 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); }; }; then
3184   ac_cv_c_bigendian=no
3185 else
3186   echo "$as_me: program exited with status $ac_status" >&5
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190 ( exit $ac_status )
3191 ac_cv_c_bigendian=yes
3192 fi
3193 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3194 fi
3195 fi
3196 rm -f conftest.$ac_objext conftest.$ac_ext
3197 fi
3198 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3199 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3200 case $ac_cv_c_bigendian in
3201   yes)
3202
3203 cat >>confdefs.h <<\_ACEOF
3204 #define WORDS_BIGENDIAN 1
3205 _ACEOF
3206  ;;
3207   no)
3208      ;;
3209   *)
3210     { { echo "$as_me:$LINENO: error: unknown endianness
3211 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3212 echo "$as_me: error: unknown endianness
3213 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3214    { (exit 1); exit 1; }; } ;;
3215 esac
3216
3217
3218 # Extract the first word of "wx-config", so it can be a program name with args.
3219 set dummy wx-config; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_path_wxconfig+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   case $wxconfig in
3226   [\\/]* | ?:[\\/]*)
3227   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3228   ;;
3229   *)
3230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233   IFS=$as_save_IFS
3234   test -z "$as_dir" && as_dir=.
3235   for ac_exec_ext in '' $ac_executable_extensions; do
3236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239     break 2
3240   fi
3241 done
3242 done
3243
3244   ;;
3245 esac
3246 fi
3247 wxconfig=$ac_cv_path_wxconfig
3248
3249 if test -n "$wxconfig"; then
3250   echo "$as_me:$LINENO: result: $wxconfig" >&5
3251 echo "${ECHO_T}$wxconfig" >&6
3252 else
3253   echo "$as_me:$LINENO: result: no" >&5
3254 echo "${ECHO_T}no" >&6
3255 fi
3256
3257
3258 # Make sure we can run config.sub.
3259 $ac_config_sub sun4 >/dev/null 2>&1 ||
3260   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3261 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3262    { (exit 1); exit 1; }; }
3263
3264 echo "$as_me:$LINENO: checking build system type" >&5
3265 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3266 if test "${ac_cv_build+set}" = set; then
3267   echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269   ac_cv_build_alias=$build_alias
3270 test -z "$ac_cv_build_alias" &&
3271   ac_cv_build_alias=`$ac_config_guess`
3272 test -z "$ac_cv_build_alias" &&
3273   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3274 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3275    { (exit 1); exit 1; }; }
3276 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3277   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3278 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3279    { (exit 1); exit 1; }; }
3280
3281 fi
3282 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3283 echo "${ECHO_T}$ac_cv_build" >&6
3284 build=$ac_cv_build
3285 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3286 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3287 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3288
3289
3290 echo "$as_me:$LINENO: checking host system type" >&5
3291 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3292 if test "${ac_cv_host+set}" = set; then
3293   echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295   ac_cv_host_alias=$host_alias
3296 test -z "$ac_cv_host_alias" &&
3297   ac_cv_host_alias=$ac_cv_build_alias
3298 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3299   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3300 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3301    { (exit 1); exit 1; }; }
3302
3303 fi
3304 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3305 echo "${ECHO_T}$ac_cv_host" >&6
3306 host=$ac_cv_host
3307 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3308 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3309 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3310
3311
3312 echo "$as_me:$LINENO: checking for inline" >&5
3313 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3314 if test "${ac_cv_c_inline+set}" = set; then
3315   echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317   ac_cv_c_inline=no
3318 for ac_kw in inline __inline__ __inline; do
3319   cat >conftest.$ac_ext <<_ACEOF
3320 #line $LINENO "configure"
3321 /* confdefs.h.  */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h.  */
3326 #ifndef __cplusplus
3327 typedef int foo_t;
3328 static $ac_kw foo_t static_foo () {return 0; }
3329 $ac_kw foo_t foo () {return 0; }
3330 #endif
3331
3332 _ACEOF
3333 rm -f conftest.$ac_objext
3334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335   (eval $ac_compile) 2>&5
3336   ac_status=$?
3337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338   (exit $ac_status); } &&
3339          { ac_try='test -s conftest.$ac_objext'
3340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341   (eval $ac_try) 2>&5
3342   ac_status=$?
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); }; }; then
3345   ac_cv_c_inline=$ac_kw; break
3346 else
3347   echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3349
3350 fi
3351 rm -f conftest.$ac_objext conftest.$ac_ext
3352 done
3353
3354 fi
3355 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3356 echo "${ECHO_T}$ac_cv_c_inline" >&6
3357 case $ac_cv_c_inline in
3358   inline | yes) ;;
3359   no)
3360 cat >>confdefs.h <<\_ACEOF
3361 #define inline
3362 _ACEOF
3363  ;;
3364   *)  cat >>confdefs.h <<_ACEOF
3365 #define inline $ac_cv_c_inline
3366 _ACEOF
3367  ;;
3368 esac
3369
3370 ac_ext=c
3371 ac_cpp='$CPP $CPPFLAGS'
3372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3376 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3377 # On Suns, sometimes $CPP names a directory.
3378 if test -n "$CPP" && test -d "$CPP"; then
3379   CPP=
3380 fi
3381 if test -z "$CPP"; then
3382   if test "${ac_cv_prog_CPP+set}" = set; then
3383   echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385       # Double quotes because CPP needs to be expanded
3386     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3387     do
3388       ac_preproc_ok=false
3389 for ac_c_preproc_warn_flag in '' yes
3390 do
3391   # Use a header file that comes with gcc, so configuring glibc
3392   # with a fresh cross-compiler works.
3393   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394   # <limits.h> exists even on freestanding compilers.
3395   # On the NeXT, cc -E runs the code through the compiler's parser,
3396   # not just through cpp. "Syntax error" is here to catch this case.
3397   cat >conftest.$ac_ext <<_ACEOF
3398 #line $LINENO "configure"
3399 /* confdefs.h.  */
3400 _ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h.  */
3404 #ifdef __STDC__
3405 # include <limits.h>
3406 #else
3407 # include <assert.h>
3408 #endif
3409                      Syntax error
3410 _ACEOF
3411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3412   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } >/dev/null; then
3419   if test -s conftest.err; then
3420     ac_cpp_err=$ac_c_preproc_warn_flag
3421   else
3422     ac_cpp_err=
3423   fi
3424 else
3425   ac_cpp_err=yes
3426 fi
3427 if test -z "$ac_cpp_err"; then
3428   :
3429 else
3430   echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433   # Broken: fails on valid input.
3434 continue
3435 fi
3436 rm -f conftest.err conftest.$ac_ext
3437
3438   # OK, works on sane cases.  Now check whether non-existent headers
3439   # can be detected and how.
3440   cat >conftest.$ac_ext <<_ACEOF
3441 #line $LINENO "configure"
3442 /* confdefs.h.  */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h.  */
3447 #include <ac_nonexistent.h>
3448 _ACEOF
3449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3451   ac_status=$?
3452   grep -v '^ *+' conftest.er1 >conftest.err
3453   rm -f conftest.er1
3454   cat conftest.err >&5
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); } >/dev/null; then
3457   if test -s conftest.err; then
3458     ac_cpp_err=$ac_c_preproc_warn_flag
3459   else
3460     ac_cpp_err=
3461   fi
3462 else
3463   ac_cpp_err=yes
3464 fi
3465 if test -z "$ac_cpp_err"; then
3466   # Broken: success on invalid input.
3467 continue
3468 else
3469   echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472   # Passes both tests.
3473 ac_preproc_ok=:
3474 break
3475 fi
3476 rm -f conftest.err conftest.$ac_ext
3477
3478 done
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3482   break
3483 fi
3484
3485     done
3486     ac_cv_prog_CPP=$CPP
3487
3488 fi
3489   CPP=$ac_cv_prog_CPP
3490 else
3491   ac_cv_prog_CPP=$CPP
3492 fi
3493 echo "$as_me:$LINENO: result: $CPP" >&5
3494 echo "${ECHO_T}$CPP" >&6
3495 ac_preproc_ok=false
3496 for ac_c_preproc_warn_flag in '' yes
3497 do
3498   # Use a header file that comes with gcc, so configuring glibc
3499   # with a fresh cross-compiler works.
3500   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3501   # <limits.h> exists even on freestanding compilers.
3502   # On the NeXT, cc -E runs the code through the compiler's parser,
3503   # not just through cpp. "Syntax error" is here to catch this case.
3504   cat >conftest.$ac_ext <<_ACEOF
3505 #line $LINENO "configure"
3506 /* confdefs.h.  */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h.  */
3511 #ifdef __STDC__
3512 # include <limits.h>
3513 #else
3514 # include <assert.h>
3515 #endif
3516                      Syntax error
3517 _ACEOF
3518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3519   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3520   ac_status=$?
3521   grep -v '^ *+' conftest.er1 >conftest.err
3522   rm -f conftest.er1
3523   cat conftest.err >&5
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); } >/dev/null; then
3526   if test -s conftest.err; then
3527     ac_cpp_err=$ac_c_preproc_warn_flag
3528   else
3529     ac_cpp_err=
3530   fi
3531 else
3532   ac_cpp_err=yes
3533 fi
3534 if test -z "$ac_cpp_err"; then
3535   :
3536 else
3537   echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540   # Broken: fails on valid input.
3541 continue
3542 fi
3543 rm -f conftest.err conftest.$ac_ext
3544
3545   # OK, works on sane cases.  Now check whether non-existent headers
3546   # can be detected and how.
3547   cat >conftest.$ac_ext <<_ACEOF
3548 #line $LINENO "configure"
3549 /* confdefs.h.  */
3550 _ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h.  */
3554 #include <ac_nonexistent.h>
3555 _ACEOF
3556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3557   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3558   ac_status=$?
3559   grep -v '^ *+' conftest.er1 >conftest.err
3560   rm -f conftest.er1
3561   cat conftest.err >&5
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } >/dev/null; then
3564   if test -s conftest.err; then
3565     ac_cpp_err=$ac_c_preproc_warn_flag
3566   else
3567     ac_cpp_err=
3568   fi
3569 else
3570   ac_cpp_err=yes
3571 fi
3572 if test -z "$ac_cpp_err"; then
3573   # Broken: success on invalid input.
3574 continue
3575 else
3576   echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579   # Passes both tests.
3580 ac_preproc_ok=:
3581 break
3582 fi
3583 rm -f conftest.err conftest.$ac_ext
3584
3585 done
3586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3587 rm -f conftest.err conftest.$ac_ext
3588 if $ac_preproc_ok; then
3589   :
3590 else
3591   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3592 See \`config.log' for more details." >&5
3593 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3594 See \`config.log' for more details." >&2;}
3595    { (exit 1); exit 1; }; }
3596 fi
3597
3598 ac_ext=c
3599 ac_cpp='$CPP $CPPFLAGS'
3600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3603
3604
3605 echo "$as_me:$LINENO: checking for egrep" >&5
3606 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3607 if test "${ac_cv_prog_egrep+set}" = set; then
3608   echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3611     then ac_cv_prog_egrep='grep -E'
3612     else ac_cv_prog_egrep='egrep'
3613     fi
3614 fi
3615 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3616 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3617  EGREP=$ac_cv_prog_egrep
3618
3619
3620 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3621 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3622 if test "${ac_cv_header_stdc+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   cat >conftest.$ac_ext <<_ACEOF
3626 #line $LINENO "configure"
3627 /* confdefs.h.  */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h.  */
3632 #include <stdlib.h>
3633 #include <stdarg.h>
3634 #include <string.h>
3635 #include <float.h>
3636
3637 int
3638 main ()
3639 {
3640
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 rm -f conftest.$ac_objext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3647   (eval $ac_compile) 2>&5
3648   ac_status=$?
3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); } &&
3651          { ac_try='test -s conftest.$ac_objext'
3652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653   (eval $ac_try) 2>&5
3654   ac_status=$?
3655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656   (exit $ac_status); }; }; then
3657   ac_cv_header_stdc=yes
3658 else
3659   echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 ac_cv_header_stdc=no
3663 fi
3664 rm -f conftest.$ac_objext conftest.$ac_ext
3665
3666 if test $ac_cv_header_stdc = yes; then
3667   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3668   cat >conftest.$ac_ext <<_ACEOF
3669 #line $LINENO "configure"
3670 /* confdefs.h.  */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h.  */
3675 #include <string.h>
3676
3677 _ACEOF
3678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3679   $EGREP "memchr" >/dev/null 2>&1; then
3680   :
3681 else
3682   ac_cv_header_stdc=no
3683 fi
3684 rm -f conftest*
3685
3686 fi
3687
3688 if test $ac_cv_header_stdc = yes; then
3689   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3690   cat >conftest.$ac_ext <<_ACEOF
3691 #line $LINENO "configure"
3692 /* confdefs.h.  */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h.  */
3697 #include <stdlib.h>
3698
3699 _ACEOF
3700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3701   $EGREP "free" >/dev/null 2>&1; then
3702   :
3703 else
3704   ac_cv_header_stdc=no
3705 fi
3706 rm -f conftest*
3707
3708 fi
3709
3710 if test $ac_cv_header_stdc = yes; then
3711   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3712   if test "$cross_compiling" = yes; then
3713   :
3714 else
3715   cat >conftest.$ac_ext <<_ACEOF
3716 #line $LINENO "configure"
3717 /* confdefs.h.  */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h.  */
3722 #include <ctype.h>
3723 #if ((' ' & 0x0FF) == 0x020)
3724 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3725 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3726 #else
3727 # define ISLOWER(c) \
3728                    (('a' <= (c) && (c) <= 'i') \
3729                      || ('j' <= (c) && (c) <= 'r') \
3730                      || ('s' <= (c) && (c) <= 'z'))
3731 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3732 #endif
3733
3734 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3735 int
3736 main ()
3737 {
3738   int i;
3739   for (i = 0; i < 256; i++)
3740     if (XOR (islower (i), ISLOWER (i))
3741         || toupper (i) != TOUPPER (i))
3742       exit(2);
3743   exit (0);
3744 }
3745 _ACEOF
3746 rm -f conftest$ac_exeext
3747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3748   (eval $ac_link) 2>&5
3749   ac_status=$?
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753   (eval $ac_try) 2>&5
3754   ac_status=$?
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); }; }; then
3757   :
3758 else
3759   echo "$as_me: program exited with status $ac_status" >&5
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3762
3763 ( exit $ac_status )
3764 ac_cv_header_stdc=no
3765 fi
3766 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3767 fi
3768 fi
3769 fi
3770 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3771 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3772 if test $ac_cv_header_stdc = yes; then
3773
3774 cat >>confdefs.h <<\_ACEOF
3775 #define STDC_HEADERS 1
3776 _ACEOF
3777
3778 fi
3779
3780 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3791                   inttypes.h stdint.h unistd.h
3792 do
3793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3794 echo "$as_me:$LINENO: checking for $ac_header" >&5
3795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3797   echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799   cat >conftest.$ac_ext <<_ACEOF
3800 #line $LINENO "configure"
3801 /* confdefs.h.  */
3802 _ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h.  */
3806 $ac_includes_default
3807
3808 #include <$ac_header>
3809 _ACEOF
3810 rm -f conftest.$ac_objext
3811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812   (eval $ac_compile) 2>&5
3813   ac_status=$?
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); } &&
3816          { ac_try='test -s conftest.$ac_objext'
3817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818   (eval $ac_try) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; }; then
3822   eval "$as_ac_Header=yes"
3823 else
3824   echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 eval "$as_ac_Header=no"
3828 fi
3829 rm -f conftest.$ac_objext conftest.$ac_ext
3830 fi
3831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3834   cat >>confdefs.h <<_ACEOF
3835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3836 _ACEOF
3837
3838 fi
3839
3840 done
3841
3842
3843 echo "$as_me:$LINENO: checking for short" >&5
3844 echo $ECHO_N "checking for short... $ECHO_C" >&6
3845 if test "${ac_cv_type_short+set}" = set; then
3846   echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848   cat >conftest.$ac_ext <<_ACEOF
3849 #line $LINENO "configure"
3850 /* confdefs.h.  */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h.  */
3855 $ac_includes_default
3856 int
3857 main ()
3858 {
3859 if ((short *) 0)
3860   return 0;
3861 if (sizeof (short))
3862   return 0;
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867 rm -f conftest.$ac_objext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3869   (eval $ac_compile) 2>&5
3870   ac_status=$?
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); } &&
3873          { ac_try='test -s conftest.$ac_objext'
3874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875   (eval $ac_try) 2>&5
3876   ac_status=$?
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); }; }; then
3879   ac_cv_type_short=yes
3880 else
3881   echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3883
3884 ac_cv_type_short=no
3885 fi
3886 rm -f conftest.$ac_objext conftest.$ac_ext
3887 fi
3888 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3889 echo "${ECHO_T}$ac_cv_type_short" >&6
3890
3891 echo "$as_me:$LINENO: checking size of short" >&5
3892 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3893 if test "${ac_cv_sizeof_short+set}" = set; then
3894   echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896   if test "$ac_cv_type_short" = yes; then
3897   # The cast to unsigned long works around a bug in the HP C Compiler
3898   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3899   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3900   # This bug is HP SR number 8606223364.
3901   if test "$cross_compiling" = yes; then
3902   # Depending upon the size, compute the lo and hi bounds.
3903 cat >conftest.$ac_ext <<_ACEOF
3904 #line $LINENO "configure"
3905 /* confdefs.h.  */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h.  */
3910 $ac_includes_default
3911 int
3912 main ()
3913 {
3914 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3915 test_array [0] = 0
3916
3917   ;
3918   return 0;
3919 }
3920 _ACEOF
3921 rm -f conftest.$ac_objext
3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923   (eval $ac_compile) 2>&5
3924   ac_status=$?
3925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926   (exit $ac_status); } &&
3927          { ac_try='test -s conftest.$ac_objext'
3928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929   (eval $ac_try) 2>&5
3930   ac_status=$?
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); }; }; then
3933   ac_lo=0 ac_mid=0
3934   while :; do
3935     cat >conftest.$ac_ext <<_ACEOF
3936 #line $LINENO "configure"
3937 /* confdefs.h.  */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h.  */
3942 $ac_includes_default
3943 int
3944 main ()
3945 {
3946 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3947 test_array [0] = 0
3948
3949   ;
3950   return 0;
3951 }
3952 _ACEOF
3953 rm -f conftest.$ac_objext
3954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955   (eval $ac_compile) 2>&5
3956   ac_status=$?
3957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958   (exit $ac_status); } &&
3959          { ac_try='test -s conftest.$ac_objext'
3960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961   (eval $ac_try) 2>&5
3962   ac_status=$?
3963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964   (exit $ac_status); }; }; then
3965   ac_hi=$ac_mid; break
3966 else
3967   echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3969
3970 ac_lo=`expr $ac_mid + 1`
3971                     if test $ac_lo -le $ac_mid; then
3972                       ac_lo= ac_hi=
3973                       break
3974                     fi
3975                     ac_mid=`expr 2 '*' $ac_mid + 1`
3976 fi
3977 rm -f conftest.$ac_objext conftest.$ac_ext
3978   done
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983 cat >conftest.$ac_ext <<_ACEOF
3984 #line $LINENO "configure"
3985 /* confdefs.h.  */
3986 _ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h.  */
3990 $ac_includes_default
3991 int
3992 main ()
3993 {
3994 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3995 test_array [0] = 0
3996
3997   ;
3998   return 0;
3999 }
4000 _ACEOF
4001 rm -f conftest.$ac_objext
4002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4003   (eval $ac_compile) 2>&5
4004   ac_status=$?
4005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006   (exit $ac_status); } &&
4007          { ac_try='test -s conftest.$ac_objext'
4008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009   (eval $ac_try) 2>&5
4010   ac_status=$?
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); }; }; then
4013   ac_hi=-1 ac_mid=-1
4014   while :; do
4015     cat >conftest.$ac_ext <<_ACEOF
4016 #line $LINENO "configure"
4017 /* confdefs.h.  */
4018 _ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h.  */
4022 $ac_includes_default
4023 int
4024 main ()
4025 {
4026 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4027 test_array [0] = 0
4028
4029   ;
4030   return 0;
4031 }
4032 _ACEOF
4033 rm -f conftest.$ac_objext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035   (eval $ac_compile) 2>&5
4036   ac_status=$?
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); } &&
4039          { ac_try='test -s conftest.$ac_objext'
4040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041   (eval $ac_try) 2>&5
4042   ac_status=$?
4043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); }; }; then
4045   ac_lo=$ac_mid; break
4046 else
4047   echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4049
4050 ac_hi=`expr '(' $ac_mid ')' - 1`
4051                        if test $ac_mid -le $ac_hi; then
4052                          ac_lo= ac_hi=
4053                          break
4054                        fi
4055                        ac_mid=`expr 2 '*' $ac_mid`
4056 fi
4057 rm -f conftest.$ac_objext conftest.$ac_ext
4058   done
4059 else
4060   echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4062
4063 ac_lo= ac_hi=
4064 fi
4065 rm -f conftest.$ac_objext conftest.$ac_ext
4066 fi
4067 rm -f conftest.$ac_objext conftest.$ac_ext
4068 # Binary search between lo and hi bounds.
4069 while test "x$ac_lo" != "x$ac_hi"; do
4070   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4071   cat >conftest.$ac_ext <<_ACEOF
4072 #line $LINENO "configure"
4073 /* confdefs.h.  */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h.  */
4078 $ac_includes_default
4079 int
4080 main ()
4081 {
4082 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4083 test_array [0] = 0
4084
4085   ;
4086   return 0;
4087 }
4088 _ACEOF
4089 rm -f conftest.$ac_objext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091   (eval $ac_compile) 2>&5
4092   ac_status=$?
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); } &&
4095          { ac_try='test -s conftest.$ac_objext'
4096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097   (eval $ac_try) 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }; }; then
4101   ac_hi=$ac_mid
4102 else
4103   echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4105
4106 ac_lo=`expr '(' $ac_mid ')' + 1`
4107 fi
4108 rm -f conftest.$ac_objext conftest.$ac_ext
4109 done
4110 case $ac_lo in
4111 ?*) ac_cv_sizeof_short=$ac_lo;;
4112 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4113 See \`config.log' for more details." >&5
4114 echo "$as_me: error: cannot compute sizeof (short), 77
4115 See \`config.log' for more details." >&2;}
4116    { (exit 1); exit 1; }; } ;;
4117 esac
4118 else
4119   if test "$cross_compiling" = yes; then
4120   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4121 See \`config.log' for more details." >&5
4122 echo "$as_me: error: cannot run test program while cross compiling
4123 See \`config.log' for more details." >&2;}
4124    { (exit 1); exit 1; }; }
4125 else
4126   cat >conftest.$ac_ext <<_ACEOF
4127 #line $LINENO "configure"
4128 /* confdefs.h.  */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h.  */
4133 $ac_includes_default
4134 long longval () { return (long) (sizeof (short)); }
4135 unsigned long ulongval () { return (long) (sizeof (short)); }
4136 #include <stdio.h>
4137 #include <stdlib.h>
4138 int
4139 main ()
4140 {
4141
4142   FILE *f = fopen ("conftest.val", "w");
4143   if (! f)
4144     exit (1);
4145   if (((long) (sizeof (short))) < 0)
4146     {
4147       long i = longval ();
4148       if (i != ((long) (sizeof (short))))
4149         exit (1);
4150       fprintf (f, "%ld\n", i);
4151     }
4152   else
4153     {
4154       unsigned long i = ulongval ();
4155       if (i != ((long) (sizeof (short))))
4156         exit (1);
4157       fprintf (f, "%lu\n", i);
4158     }
4159   exit (ferror (f) || fclose (f) != 0);
4160
4161   ;
4162   return 0;
4163 }
4164 _ACEOF
4165 rm -f conftest$ac_exeext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4167   (eval $ac_link) 2>&5
4168   ac_status=$?
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172   (eval $ac_try) 2>&5
4173   ac_status=$?
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); }; }; then
4176   ac_cv_sizeof_short=`cat conftest.val`
4177 else
4178   echo "$as_me: program exited with status $ac_status" >&5
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182 ( exit $ac_status )
4183 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4184 See \`config.log' for more details." >&5
4185 echo "$as_me: error: cannot compute sizeof (short), 77
4186 See \`config.log' for more details." >&2;}
4187    { (exit 1); exit 1; }; }
4188 fi
4189 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4190 fi
4191 fi
4192 rm -f conftest.val
4193 else
4194   ac_cv_sizeof_short=0
4195 fi
4196 fi
4197 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4198 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4199 cat >>confdefs.h <<_ACEOF
4200 #define SIZEOF_SHORT $ac_cv_sizeof_short
4201 _ACEOF
4202
4203
4204 echo "$as_me:$LINENO: checking for int" >&5
4205 echo $ECHO_N "checking for int... $ECHO_C" >&6
4206 if test "${ac_cv_type_int+set}" = set; then
4207   echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209   cat >conftest.$ac_ext <<_ACEOF
4210 #line $LINENO "configure"
4211 /* confdefs.h.  */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h.  */
4216 $ac_includes_default
4217 int
4218 main ()
4219 {
4220 if ((int *) 0)
4221   return 0;
4222 if (sizeof (int))
4223   return 0;
4224   ;
4225   return 0;
4226 }
4227 _ACEOF
4228 rm -f conftest.$ac_objext
4229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4230   (eval $ac_compile) 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); } &&
4234          { ac_try='test -s conftest.$ac_objext'
4235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236   (eval $ac_try) 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); }; }; then
4240   ac_cv_type_int=yes
4241 else
4242   echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4244
4245 ac_cv_type_int=no
4246 fi
4247 rm -f conftest.$ac_objext conftest.$ac_ext
4248 fi
4249 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4250 echo "${ECHO_T}$ac_cv_type_int" >&6
4251
4252 echo "$as_me:$LINENO: checking size of int" >&5
4253 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4254 if test "${ac_cv_sizeof_int+set}" = set; then
4255   echo $ECHO_N "(cached) $ECHO_C" >&6
4256 else
4257   if test "$ac_cv_type_int" = yes; then
4258   # The cast to unsigned long works around a bug in the HP C Compiler
4259   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4260   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4261   # This bug is HP SR number 8606223364.
4262   if test "$cross_compiling" = yes; then
4263   # Depending upon the size, compute the lo and hi bounds.
4264 cat >conftest.$ac_ext <<_ACEOF
4265 #line $LINENO "configure"
4266 /* confdefs.h.  */
4267 _ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h.  */
4271 $ac_includes_default
4272 int
4273 main ()
4274 {
4275 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4276 test_array [0] = 0
4277
4278   ;
4279   return 0;
4280 }
4281 _ACEOF
4282 rm -f conftest.$ac_objext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284   (eval $ac_compile) 2>&5
4285   ac_status=$?
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); } &&
4288          { ac_try='test -s conftest.$ac_objext'
4289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290   (eval $ac_try) 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); }; }; then
4294   ac_lo=0 ac_mid=0
4295   while :; do
4296     cat >conftest.$ac_ext <<_ACEOF
4297 #line $LINENO "configure"
4298 /* confdefs.h.  */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h.  */
4303 $ac_includes_default
4304 int
4305 main ()
4306 {
4307 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4308 test_array [0] = 0
4309
4310   ;
4311   return 0;
4312 }
4313 _ACEOF
4314 rm -f conftest.$ac_objext
4315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4316   (eval $ac_compile) 2>&5
4317   ac_status=$?
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); } &&
4320          { ac_try='test -s conftest.$ac_objext'
4321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322   (eval $ac_try) 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); }; }; then
4326   ac_hi=$ac_mid; break
4327 else
4328   echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4330
4331 ac_lo=`expr $ac_mid + 1`
4332                     if test $ac_lo -le $ac_mid; then
4333                       ac_lo= ac_hi=
4334                       break
4335                     fi
4336                     ac_mid=`expr 2 '*' $ac_mid + 1`
4337 fi
4338 rm -f conftest.$ac_objext conftest.$ac_ext
4339   done
4340 else
4341   echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 cat >conftest.$ac_ext <<_ACEOF
4345 #line $LINENO "configure"
4346 /* confdefs.h.  */
4347 _ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h.  */
4351 $ac_includes_default
4352 int
4353 main ()
4354 {
4355 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4356 test_array [0] = 0
4357
4358   ;
4359   return 0;
4360 }
4361 _ACEOF
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364   (eval $ac_compile) 2>&5
4365   ac_status=$?
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); } &&
4368          { ac_try='test -s conftest.$ac_objext'
4369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370   (eval $ac_try) 2>&5
4371   ac_status=$?
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); }; }; then
4374   ac_hi=-1 ac_mid=-1
4375   while :; do
4376     cat >conftest.$ac_ext <<_ACEOF
4377 #line $LINENO "configure"
4378 /* confdefs.h.  */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h.  */
4383 $ac_includes_default
4384 int
4385 main ()
4386 {
4387 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4388 test_array [0] = 0
4389
4390   ;
4391   return 0;
4392 }
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396   (eval $ac_compile) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); } &&
4400          { ac_try='test -s conftest.$ac_objext'
4401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402   (eval $ac_try) 2>&5
4403   ac_status=$?
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); }; }; then
4406   ac_lo=$ac_mid; break
4407 else
4408   echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411 ac_hi=`expr '(' $ac_mid ')' - 1`
4412                        if test $ac_mid -le $ac_hi; then
4413                          ac_lo= ac_hi=
4414                          break
4415                        fi
4416                        ac_mid=`expr 2 '*' $ac_mid`
4417 fi
4418 rm -f conftest.$ac_objext conftest.$ac_ext
4419   done
4420 else
4421   echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 ac_lo= ac_hi=
4425 fi
4426 rm -f conftest.$ac_objext conftest.$ac_ext
4427 fi
4428 rm -f conftest.$ac_objext conftest.$ac_ext
4429 # Binary search between lo and hi bounds.
4430 while test "x$ac_lo" != "x$ac_hi"; do
4431   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4432   cat >conftest.$ac_ext <<_ACEOF
4433 #line $LINENO "configure"
4434 /* confdefs.h.  */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h.  */
4439 $ac_includes_default
4440 int
4441 main ()
4442 {
4443 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4444 test_array [0] = 0
4445
4446   ;
4447   return 0;
4448 }
4449 _ACEOF
4450 rm -f conftest.$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452   (eval $ac_compile) 2>&5
4453   ac_status=$?
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); } &&
4456          { ac_try='test -s conftest.$ac_objext'
4457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458   (eval $ac_try) 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); }; }; then
4462   ac_hi=$ac_mid
4463 else
4464   echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 ac_lo=`expr '(' $ac_mid ')' + 1`
4468 fi
4469 rm -f conftest.$ac_objext conftest.$ac_ext
4470 done
4471 case $ac_lo in
4472 ?*) ac_cv_sizeof_int=$ac_lo;;
4473 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4474 See \`config.log' for more details." >&5
4475 echo "$as_me: error: cannot compute sizeof (int), 77
4476 See \`config.log' for more details." >&2;}
4477    { (exit 1); exit 1; }; } ;;
4478 esac
4479 else
4480   if test "$cross_compiling" = yes; then
4481   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4482 See \`config.log' for more details." >&5
4483 echo "$as_me: error: cannot run test program while cross compiling
4484 See \`config.log' for more details." >&2;}
4485    { (exit 1); exit 1; }; }
4486 else
4487   cat >conftest.$ac_ext <<_ACEOF
4488 #line $LINENO "configure"
4489 /* confdefs.h.  */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h.  */
4494 $ac_includes_default
4495 long longval () { return (long) (sizeof (int)); }
4496 unsigned long ulongval () { return (long) (sizeof (int)); }
4497 #include <stdio.h>
4498 #include <stdlib.h>
4499 int
4500 main ()
4501 {
4502
4503   FILE *f = fopen ("conftest.val", "w");
4504   if (! f)
4505     exit (1);
4506   if (((long) (sizeof (int))) < 0)
4507     {
4508       long i = longval ();
4509       if (i != ((long) (sizeof (int))))
4510         exit (1);
4511       fprintf (f, "%ld\n", i);
4512     }
4513   else
4514     {
4515       unsigned long i = ulongval ();
4516       if (i != ((long) (sizeof (int))))
4517         exit (1);
4518       fprintf (f, "%lu\n", i);
4519     }
4520   exit (ferror (f) || fclose (f) != 0);
4521
4522   ;
4523   return 0;
4524 }
4525 _ACEOF
4526 rm -f conftest$ac_exeext
4527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4528   (eval $ac_link) 2>&5
4529   ac_status=$?
4530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533   (eval $ac_try) 2>&5
4534   ac_status=$?
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); }; }; then
4537   ac_cv_sizeof_int=`cat conftest.val`
4538 else
4539   echo "$as_me: program exited with status $ac_status" >&5
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4542
4543 ( exit $ac_status )
4544 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4545 See \`config.log' for more details." >&5
4546 echo "$as_me: error: cannot compute sizeof (int), 77
4547 See \`config.log' for more details." >&2;}
4548    { (exit 1); exit 1; }; }
4549 fi
4550 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4551 fi
4552 fi
4553 rm -f conftest.val
4554 else
4555   ac_cv_sizeof_int=0
4556 fi
4557 fi
4558 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4559 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4560 cat >>confdefs.h <<_ACEOF
4561 #define SIZEOF_INT $ac_cv_sizeof_int
4562 _ACEOF
4563
4564
4565 echo "$as_me:$LINENO: checking for long" >&5
4566 echo $ECHO_N "checking for long... $ECHO_C" >&6
4567 if test "${ac_cv_type_long+set}" = set; then
4568   echo $ECHO_N "(cached) $ECHO_C" >&6
4569 else
4570   cat >conftest.$ac_ext <<_ACEOF
4571 #line $LINENO "configure"
4572 /* confdefs.h.  */
4573 _ACEOF
4574 cat confdefs.h >>conftest.$ac_ext
4575 cat >>conftest.$ac_ext <<_ACEOF
4576 /* end confdefs.h.  */
4577 $ac_includes_default
4578 int
4579 main ()
4580 {
4581 if ((long *) 0)
4582   return 0;
4583 if (sizeof (long))
4584   return 0;
4585   ;
4586   return 0;
4587 }
4588 _ACEOF
4589 rm -f conftest.$ac_objext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591   (eval $ac_compile) 2>&5
4592   ac_status=$?
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); } &&
4595          { ac_try='test -s conftest.$ac_objext'
4596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597   (eval $ac_try) 2>&5
4598   ac_status=$?
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); }; }; then
4601   ac_cv_type_long=yes
4602 else
4603   echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606 ac_cv_type_long=no
4607 fi
4608 rm -f conftest.$ac_objext conftest.$ac_ext
4609 fi
4610 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4611 echo "${ECHO_T}$ac_cv_type_long" >&6
4612
4613 echo "$as_me:$LINENO: checking size of long" >&5
4614 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4615 if test "${ac_cv_sizeof_long+set}" = set; then
4616   echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618   if test "$ac_cv_type_long" = yes; then
4619   # The cast to unsigned long works around a bug in the HP C Compiler
4620   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4621   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4622   # This bug is HP SR number 8606223364.
4623   if test "$cross_compiling" = yes; then
4624   # Depending upon the size, compute the lo and hi bounds.
4625 cat >conftest.$ac_ext <<_ACEOF
4626 #line $LINENO "configure"
4627 /* confdefs.h.  */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h.  */
4632 $ac_includes_default
4633 int
4634 main ()
4635 {
4636 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4637 test_array [0] = 0
4638
4639   ;
4640   return 0;
4641 }
4642 _ACEOF
4643 rm -f conftest.$ac_objext
4644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4645   (eval $ac_compile) 2>&5
4646   ac_status=$?
4647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648   (exit $ac_status); } &&
4649          { ac_try='test -s conftest.$ac_objext'
4650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651   (eval $ac_try) 2>&5
4652   ac_status=$?
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); }; }; then
4655   ac_lo=0 ac_mid=0
4656   while :; do
4657     cat >conftest.$ac_ext <<_ACEOF
4658 #line $LINENO "configure"
4659 /* confdefs.h.  */
4660 _ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h.  */
4664 $ac_includes_default
4665 int
4666 main ()
4667 {
4668 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4669 test_array [0] = 0
4670
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 rm -f conftest.$ac_objext
4676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4677   (eval $ac_compile) 2>&5
4678   ac_status=$?
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); } &&
4681          { ac_try='test -s conftest.$ac_objext'
4682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683   (eval $ac_try) 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); }; }; then
4687   ac_hi=$ac_mid; break
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692 ac_lo=`expr $ac_mid + 1`
4693                     if test $ac_lo -le $ac_mid; then
4694                       ac_lo= ac_hi=
4695                       break
4696                     fi
4697                     ac_mid=`expr 2 '*' $ac_mid + 1`
4698 fi
4699 rm -f conftest.$ac_objext conftest.$ac_ext
4700   done
4701 else
4702   echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4704
4705 cat >conftest.$ac_ext <<_ACEOF
4706 #line $LINENO "configure"
4707 /* confdefs.h.  */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h.  */
4712 $ac_includes_default
4713 int
4714 main ()
4715 {
4716 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4717 test_array [0] = 0
4718
4719   ;
4720   return 0;
4721 }
4722 _ACEOF
4723 rm -f conftest.$ac_objext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4725   (eval $ac_compile) 2>&5
4726   ac_status=$?
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); } &&
4729          { ac_try='test -s conftest.$ac_objext'
4730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731   (eval $ac_try) 2>&5
4732   ac_status=$?
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); }; }; then
4735   ac_hi=-1 ac_mid=-1
4736   while :; do
4737     cat >conftest.$ac_ext <<_ACEOF
4738 #line $LINENO "configure"
4739 /* confdefs.h.  */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h.  */
4744 $ac_includes_default
4745 int
4746 main ()
4747 {
4748 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4749 test_array [0] = 0
4750
4751   ;
4752   return 0;
4753 }
4754 _ACEOF
4755 rm -f conftest.$ac_objext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4757   (eval $ac_compile) 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); } &&
4761          { ac_try='test -s conftest.$ac_objext'
4762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763   (eval $ac_try) 2>&5
4764   ac_status=$?
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); }; }; then
4767   ac_lo=$ac_mid; break
4768 else
4769   echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 ac_hi=`expr '(' $ac_mid ')' - 1`
4773                        if test $ac_mid -le $ac_hi; then
4774                          ac_lo= ac_hi=
4775                          break
4776                        fi
4777                        ac_mid=`expr 2 '*' $ac_mid`
4778 fi
4779 rm -f conftest.$ac_objext conftest.$ac_ext
4780   done
4781 else
4782   echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785 ac_lo= ac_hi=
4786 fi
4787 rm -f conftest.$ac_objext conftest.$ac_ext
4788 fi
4789 rm -f conftest.$ac_objext conftest.$ac_ext
4790 # Binary search between lo and hi bounds.
4791 while test "x$ac_lo" != "x$ac_hi"; do
4792   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4793   cat >conftest.$ac_ext <<_ACEOF
4794 #line $LINENO "configure"
4795 /* confdefs.h.  */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end 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 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828 ac_lo=`expr '(' $ac_mid ')' + 1`
4829 fi
4830 rm -f conftest.$ac_objext conftest.$ac_ext
4831 done
4832 case $ac_lo in
4833 ?*) ac_cv_sizeof_long=$ac_lo;;
4834 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4835 See \`config.log' for more details." >&5
4836 echo "$as_me: error: cannot compute sizeof (long), 77
4837 See \`config.log' for more details." >&2;}
4838    { (exit 1); exit 1; }; } ;;
4839 esac
4840 else
4841   if test "$cross_compiling" = yes; then
4842   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4843 See \`config.log' for more details." >&5
4844 echo "$as_me: error: cannot run test program while cross compiling
4845 See \`config.log' for more details." >&2;}
4846    { (exit 1); exit 1; }; }
4847 else
4848   cat >conftest.$ac_ext <<_ACEOF
4849 #line $LINENO "configure"
4850 /* confdefs.h.  */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h.  */
4855 $ac_includes_default
4856 long longval () { return (long) (sizeof (long)); }
4857 unsigned long ulongval () { return (long) (sizeof (long)); }
4858 #include <stdio.h>
4859 #include <stdlib.h>
4860 int
4861 main ()
4862 {
4863
4864   FILE *f = fopen ("conftest.val", "w");
4865   if (! f)
4866     exit (1);
4867   if (((long) (sizeof (long))) < 0)
4868     {
4869       long i = longval ();
4870       if (i != ((long) (sizeof (long))))
4871         exit (1);
4872       fprintf (f, "%ld\n", i);
4873     }
4874   else
4875     {
4876       unsigned long i = ulongval ();
4877       if (i != ((long) (sizeof (long))))
4878         exit (1);
4879       fprintf (f, "%lu\n", i);
4880     }
4881   exit (ferror (f) || fclose (f) != 0);
4882
4883   ;
4884   return 0;
4885 }
4886 _ACEOF
4887 rm -f conftest$ac_exeext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4889   (eval $ac_link) 2>&5
4890   ac_status=$?
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894   (eval $ac_try) 2>&5
4895   ac_status=$?
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); }; }; then
4898   ac_cv_sizeof_long=`cat conftest.val`
4899 else
4900   echo "$as_me: program exited with status $ac_status" >&5
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4903
4904 ( exit $ac_status )
4905 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4906 See \`config.log' for more details." >&5
4907 echo "$as_me: error: cannot compute sizeof (long), 77
4908 See \`config.log' for more details." >&2;}
4909    { (exit 1); exit 1; }; }
4910 fi
4911 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4912 fi
4913 fi
4914 rm -f conftest.val
4915 else
4916   ac_cv_sizeof_long=0
4917 fi
4918 fi
4919 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4920 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4921 cat >>confdefs.h <<_ACEOF
4922 #define SIZEOF_LONG $ac_cv_sizeof_long
4923 _ACEOF
4924
4925
4926 echo "$as_me:$LINENO: checking for float" >&5
4927 echo $ECHO_N "checking for float... $ECHO_C" >&6
4928 if test "${ac_cv_type_float+set}" = set; then
4929   echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931   cat >conftest.$ac_ext <<_ACEOF
4932 #line $LINENO "configure"
4933 /* confdefs.h.  */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h.  */
4938 $ac_includes_default
4939 int
4940 main ()
4941 {
4942 if ((float *) 0)
4943   return 0;
4944 if (sizeof (float))
4945   return 0;
4946   ;
4947   return 0;
4948 }
4949 _ACEOF
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952   (eval $ac_compile) 2>&5
4953   ac_status=$?
4954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955   (exit $ac_status); } &&
4956          { ac_try='test -s conftest.$ac_objext'
4957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958   (eval $ac_try) 2>&5
4959   ac_status=$?
4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961   (exit $ac_status); }; }; then
4962   ac_cv_type_float=yes
4963 else
4964   echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 ac_cv_type_float=no
4968 fi
4969 rm -f conftest.$ac_objext conftest.$ac_ext
4970 fi
4971 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
4972 echo "${ECHO_T}$ac_cv_type_float" >&6
4973
4974 echo "$as_me:$LINENO: checking size of float" >&5
4975 echo $ECHO_N "checking size of float... $ECHO_C" >&6
4976 if test "${ac_cv_sizeof_float+set}" = set; then
4977   echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979   if test "$ac_cv_type_float" = yes; then
4980   # The cast to unsigned long works around a bug in the HP C Compiler
4981   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4982   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4983   # This bug is HP SR number 8606223364.
4984   if test "$cross_compiling" = yes; then
4985   # Depending upon the size, compute the lo and hi bounds.
4986 cat >conftest.$ac_ext <<_ACEOF
4987 #line $LINENO "configure"
4988 /* confdefs.h.  */
4989 _ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h.  */
4993 $ac_includes_default
4994 int
4995 main ()
4996 {
4997 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
4998 test_array [0] = 0
4999
5000   ;
5001   return 0;
5002 }
5003 _ACEOF
5004 rm -f conftest.$ac_objext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006   (eval $ac_compile) 2>&5
5007   ac_status=$?
5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); } &&
5010          { ac_try='test -s conftest.$ac_objext'
5011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012   (eval $ac_try) 2>&5
5013   ac_status=$?
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); }; }; then
5016   ac_lo=0 ac_mid=0
5017   while :; do
5018     cat >conftest.$ac_ext <<_ACEOF
5019 #line $LINENO "configure"
5020 /* confdefs.h.  */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h.  */
5025 $ac_includes_default
5026 int
5027 main ()
5028 {
5029 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5030 test_array [0] = 0
5031
5032   ;
5033   return 0;
5034 }
5035 _ACEOF
5036 rm -f conftest.$ac_objext
5037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038   (eval $ac_compile) 2>&5
5039   ac_status=$?
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); } &&
5042          { ac_try='test -s conftest.$ac_objext'
5043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044   (eval $ac_try) 2>&5
5045   ac_status=$?
5046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047   (exit $ac_status); }; }; then
5048   ac_hi=$ac_mid; break
5049 else
5050   echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5052
5053 ac_lo=`expr $ac_mid + 1`
5054                     if test $ac_lo -le $ac_mid; then
5055                       ac_lo= ac_hi=
5056                       break
5057                     fi
5058                     ac_mid=`expr 2 '*' $ac_mid + 1`
5059 fi
5060 rm -f conftest.$ac_objext conftest.$ac_ext
5061   done
5062 else
5063   echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5065
5066 cat >conftest.$ac_ext <<_ACEOF
5067 #line $LINENO "configure"
5068 /* confdefs.h.  */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h.  */
5073 $ac_includes_default
5074 int
5075 main ()
5076 {
5077 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5078 test_array [0] = 0
5079
5080   ;
5081   return 0;
5082 }
5083 _ACEOF
5084 rm -f conftest.$ac_objext
5085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086   (eval $ac_compile) 2>&5
5087   ac_status=$?
5088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089   (exit $ac_status); } &&
5090          { ac_try='test -s conftest.$ac_objext'
5091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092   (eval $ac_try) 2>&5
5093   ac_status=$?
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); }; }; then
5096   ac_hi=-1 ac_mid=-1
5097   while :; do
5098     cat >conftest.$ac_ext <<_ACEOF
5099 #line $LINENO "configure"
5100 /* confdefs.h.  */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h.  */
5105 $ac_includes_default
5106 int
5107 main ()
5108 {
5109 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5110 test_array [0] = 0
5111
5112   ;
5113   return 0;
5114 }
5115 _ACEOF
5116 rm -f conftest.$ac_objext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5118   (eval $ac_compile) 2>&5
5119   ac_status=$?
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); } &&
5122          { ac_try='test -s conftest.$ac_objext'
5123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124   (eval $ac_try) 2>&5
5125   ac_status=$?
5126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127   (exit $ac_status); }; }; then
5128   ac_lo=$ac_mid; break
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 ac_hi=`expr '(' $ac_mid ')' - 1`
5134                        if test $ac_mid -le $ac_hi; then
5135                          ac_lo= ac_hi=
5136                          break
5137                        fi
5138                        ac_mid=`expr 2 '*' $ac_mid`
5139 fi
5140 rm -f conftest.$ac_objext conftest.$ac_ext
5141   done
5142 else
5143   echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5145
5146 ac_lo= ac_hi=
5147 fi
5148 rm -f conftest.$ac_objext conftest.$ac_ext
5149 fi
5150 rm -f conftest.$ac_objext conftest.$ac_ext
5151 # Binary search between lo and hi bounds.
5152 while test "x$ac_lo" != "x$ac_hi"; do
5153   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5154   cat >conftest.$ac_ext <<_ACEOF
5155 #line $LINENO "configure"
5156 /* confdefs.h.  */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h.  */
5161 $ac_includes_default
5162 int
5163 main ()
5164 {
5165 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5166 test_array [0] = 0
5167
5168   ;
5169   return 0;
5170 }
5171 _ACEOF
5172 rm -f conftest.$ac_objext
5173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5174   (eval $ac_compile) 2>&5
5175   ac_status=$?
5176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177   (exit $ac_status); } &&
5178          { ac_try='test -s conftest.$ac_objext'
5179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180   (eval $ac_try) 2>&5
5181   ac_status=$?
5182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183   (exit $ac_status); }; }; then
5184   ac_hi=$ac_mid
5185 else
5186   echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5188
5189 ac_lo=`expr '(' $ac_mid ')' + 1`
5190 fi
5191 rm -f conftest.$ac_objext conftest.$ac_ext
5192 done
5193 case $ac_lo in
5194 ?*) ac_cv_sizeof_float=$ac_lo;;
5195 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5196 See \`config.log' for more details." >&5
5197 echo "$as_me: error: cannot compute sizeof (float), 77
5198 See \`config.log' for more details." >&2;}
5199    { (exit 1); exit 1; }; } ;;
5200 esac
5201 else
5202   if test "$cross_compiling" = yes; then
5203   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5204 See \`config.log' for more details." >&5
5205 echo "$as_me: error: cannot run test program while cross compiling
5206 See \`config.log' for more details." >&2;}
5207    { (exit 1); exit 1; }; }
5208 else
5209   cat >conftest.$ac_ext <<_ACEOF
5210 #line $LINENO "configure"
5211 /* confdefs.h.  */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h.  */
5216 $ac_includes_default
5217 long longval () { return (long) (sizeof (float)); }
5218 unsigned long ulongval () { return (long) (sizeof (float)); }
5219 #include <stdio.h>
5220 #include <stdlib.h>
5221 int
5222 main ()
5223 {
5224
5225   FILE *f = fopen ("conftest.val", "w");
5226   if (! f)
5227     exit (1);
5228   if (((long) (sizeof (float))) < 0)
5229     {
5230       long i = longval ();
5231       if (i != ((long) (sizeof (float))))
5232         exit (1);
5233       fprintf (f, "%ld\n", i);
5234     }
5235   else
5236     {
5237       unsigned long i = ulongval ();
5238       if (i != ((long) (sizeof (float))))
5239         exit (1);
5240       fprintf (f, "%lu\n", i);
5241     }
5242   exit (ferror (f) || fclose (f) != 0);
5243
5244   ;
5245   return 0;
5246 }
5247 _ACEOF
5248 rm -f conftest$ac_exeext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5250   (eval $ac_link) 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255   (eval $ac_try) 2>&5
5256   ac_status=$?
5257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258   (exit $ac_status); }; }; then
5259   ac_cv_sizeof_float=`cat conftest.val`
5260 else
5261   echo "$as_me: program exited with status $ac_status" >&5
5262 echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5264
5265 ( exit $ac_status )
5266 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5267 See \`config.log' for more details." >&5
5268 echo "$as_me: error: cannot compute sizeof (float), 77
5269 See \`config.log' for more details." >&2;}
5270    { (exit 1); exit 1; }; }
5271 fi
5272 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5273 fi
5274 fi
5275 rm -f conftest.val
5276 else
5277   ac_cv_sizeof_float=0
5278 fi
5279 fi
5280 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5281 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5282 cat >>confdefs.h <<_ACEOF
5283 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5284 _ACEOF
5285
5286
5287 echo "$as_me:$LINENO: checking for double" >&5
5288 echo $ECHO_N "checking for double... $ECHO_C" >&6
5289 if test "${ac_cv_type_double+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292   cat >conftest.$ac_ext <<_ACEOF
5293 #line $LINENO "configure"
5294 /* confdefs.h.  */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h.  */
5299 $ac_includes_default
5300 int
5301 main ()
5302 {
5303 if ((double *) 0)
5304   return 0;
5305 if (sizeof (double))
5306   return 0;
5307   ;
5308   return 0;
5309 }
5310 _ACEOF
5311 rm -f conftest.$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313   (eval $ac_compile) 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); } &&
5317          { ac_try='test -s conftest.$ac_objext'
5318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319   (eval $ac_try) 2>&5
5320   ac_status=$?
5321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322   (exit $ac_status); }; }; then
5323   ac_cv_type_double=yes
5324 else
5325   echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5327
5328 ac_cv_type_double=no
5329 fi
5330 rm -f conftest.$ac_objext conftest.$ac_ext
5331 fi
5332 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5333 echo "${ECHO_T}$ac_cv_type_double" >&6
5334
5335 echo "$as_me:$LINENO: checking size of double" >&5
5336 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5337 if test "${ac_cv_sizeof_double+set}" = set; then
5338   echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340   if test "$ac_cv_type_double" = yes; then
5341   # The cast to unsigned long works around a bug in the HP C Compiler
5342   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5343   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5344   # This bug is HP SR number 8606223364.
5345   if test "$cross_compiling" = yes; then
5346   # Depending upon the size, compute the lo and hi bounds.
5347 cat >conftest.$ac_ext <<_ACEOF
5348 #line $LINENO "configure"
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5354 $ac_includes_default
5355 int
5356 main ()
5357 {
5358 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5359 test_array [0] = 0
5360
5361   ;
5362   return 0;
5363 }
5364 _ACEOF
5365 rm -f conftest.$ac_objext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367   (eval $ac_compile) 2>&5
5368   ac_status=$?
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); } &&
5371          { ac_try='test -s conftest.$ac_objext'
5372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373   (eval $ac_try) 2>&5
5374   ac_status=$?
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); }; }; then
5377   ac_lo=0 ac_mid=0
5378   while :; do
5379     cat >conftest.$ac_ext <<_ACEOF
5380 #line $LINENO "configure"
5381 /* confdefs.h.  */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h.  */
5386 $ac_includes_default
5387 int
5388 main ()
5389 {
5390 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5391 test_array [0] = 0
5392
5393   ;
5394   return 0;
5395 }
5396 _ACEOF
5397 rm -f conftest.$ac_objext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5399   (eval $ac_compile) 2>&5
5400   ac_status=$?
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); } &&
5403          { ac_try='test -s conftest.$ac_objext'
5404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405   (eval $ac_try) 2>&5
5406   ac_status=$?
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); }; }; then
5409   ac_hi=$ac_mid; break
5410 else
5411   echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5413
5414 ac_lo=`expr $ac_mid + 1`
5415                     if test $ac_lo -le $ac_mid; then
5416                       ac_lo= ac_hi=
5417                       break
5418                     fi
5419                     ac_mid=`expr 2 '*' $ac_mid + 1`
5420 fi
5421 rm -f conftest.$ac_objext conftest.$ac_ext
5422   done
5423 else
5424   echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5426
5427 cat >conftest.$ac_ext <<_ACEOF
5428 #line $LINENO "configure"
5429 /* confdefs.h.  */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h.  */
5434 $ac_includes_default
5435 int
5436 main ()
5437 {
5438 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5439 test_array [0] = 0
5440
5441   ;
5442   return 0;
5443 }
5444 _ACEOF
5445 rm -f conftest.$ac_objext
5446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5447   (eval $ac_compile) 2>&5
5448   ac_status=$?
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); } &&
5451          { ac_try='test -s conftest.$ac_objext'
5452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453   (eval $ac_try) 2>&5
5454   ac_status=$?
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); }; }; then
5457   ac_hi=-1 ac_mid=-1
5458   while :; do
5459     cat >conftest.$ac_ext <<_ACEOF
5460 #line $LINENO "configure"
5461 /* confdefs.h.  */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h.  */
5466 $ac_includes_default
5467 int
5468 main ()
5469 {
5470 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5471 test_array [0] = 0
5472
5473   ;
5474   return 0;
5475 }
5476 _ACEOF
5477 rm -f conftest.$ac_objext
5478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5479   (eval $ac_compile) 2>&5
5480   ac_status=$?
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); } &&
5483          { ac_try='test -s conftest.$ac_objext'
5484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485   (eval $ac_try) 2>&5
5486   ac_status=$?
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); }; }; then
5489   ac_lo=$ac_mid; break
5490 else
5491   echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5493
5494 ac_hi=`expr '(' $ac_mid ')' - 1`
5495                        if test $ac_mid -le $ac_hi; then
5496                          ac_lo= ac_hi=
5497                          break
5498                        fi
5499                        ac_mid=`expr 2 '*' $ac_mid`
5500 fi
5501 rm -f conftest.$ac_objext conftest.$ac_ext
5502   done
5503 else
5504   echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5506
5507 ac_lo= ac_hi=
5508 fi
5509 rm -f conftest.$ac_objext conftest.$ac_ext
5510 fi
5511 rm -f conftest.$ac_objext conftest.$ac_ext
5512 # Binary search between lo and hi bounds.
5513 while test "x$ac_lo" != "x$ac_hi"; do
5514   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5515   cat >conftest.$ac_ext <<_ACEOF
5516 #line $LINENO "configure"
5517 /* confdefs.h.  */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h.  */
5522 $ac_includes_default
5523 int
5524 main ()
5525 {
5526 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5527 test_array [0] = 0
5528
5529   ;
5530   return 0;
5531 }
5532 _ACEOF
5533 rm -f conftest.$ac_objext
5534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535   (eval $ac_compile) 2>&5
5536   ac_status=$?
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); } &&
5539          { ac_try='test -s conftest.$ac_objext'
5540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541   (eval $ac_try) 2>&5
5542   ac_status=$?
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); }; }; then
5545   ac_hi=$ac_mid
5546 else
5547   echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5549
5550 ac_lo=`expr '(' $ac_mid ')' + 1`
5551 fi
5552 rm -f conftest.$ac_objext conftest.$ac_ext
5553 done
5554 case $ac_lo in
5555 ?*) ac_cv_sizeof_double=$ac_lo;;
5556 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5557 See \`config.log' for more details." >&5
5558 echo "$as_me: error: cannot compute sizeof (double), 77
5559 See \`config.log' for more details." >&2;}
5560    { (exit 1); exit 1; }; } ;;
5561 esac
5562 else
5563   if test "$cross_compiling" = yes; then
5564   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5565 See \`config.log' for more details." >&5
5566 echo "$as_me: error: cannot run test program while cross compiling
5567 See \`config.log' for more details." >&2;}
5568    { (exit 1); exit 1; }; }
5569 else
5570   cat >conftest.$ac_ext <<_ACEOF
5571 #line $LINENO "configure"
5572 /* confdefs.h.  */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h.  */
5577 $ac_includes_default
5578 long longval () { return (long) (sizeof (double)); }
5579 unsigned long ulongval () { return (long) (sizeof (double)); }
5580 #include <stdio.h>
5581 #include <stdlib.h>
5582 int
5583 main ()
5584 {
5585
5586   FILE *f = fopen ("conftest.val", "w");
5587   if (! f)
5588     exit (1);
5589   if (((long) (sizeof (double))) < 0)
5590     {
5591       long i = longval ();
5592       if (i != ((long) (sizeof (double))))
5593         exit (1);
5594       fprintf (f, "%ld\n", i);
5595     }
5596   else
5597     {
5598       unsigned long i = ulongval ();
5599       if (i != ((long) (sizeof (double))))
5600         exit (1);
5601       fprintf (f, "%lu\n", i);
5602     }
5603   exit (ferror (f) || fclose (f) != 0);
5604
5605   ;
5606   return 0;
5607 }
5608 _ACEOF
5609 rm -f conftest$ac_exeext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5611   (eval $ac_link) 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616   (eval $ac_try) 2>&5
5617   ac_status=$?
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); }; }; then
5620   ac_cv_sizeof_double=`cat conftest.val`
5621 else
5622   echo "$as_me: program exited with status $ac_status" >&5
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5625
5626 ( exit $ac_status )
5627 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5628 See \`config.log' for more details." >&5
5629 echo "$as_me: error: cannot compute sizeof (double), 77
5630 See \`config.log' for more details." >&2;}
5631    { (exit 1); exit 1; }; }
5632 fi
5633 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5634 fi
5635 fi
5636 rm -f conftest.val
5637 else
5638   ac_cv_sizeof_double=0
5639 fi
5640 fi
5641 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5642 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5643 cat >>confdefs.h <<_ACEOF
5644 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5645 _ACEOF
5646
5647
5648
5649
5650 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5651 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5652 if test "${ac_cv_lib_z_deflate+set}" = set; then
5653   echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655   ac_check_lib_save_LIBS=$LIBS
5656 LIBS="-lz  $LIBS"
5657 cat >conftest.$ac_ext <<_ACEOF
5658 #line $LINENO "configure"
5659 /* confdefs.h.  */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h.  */
5664
5665 /* Override any gcc2 internal prototype to avoid an error.  */
5666 #ifdef __cplusplus
5667 extern "C"
5668 #endif
5669 /* We use char because int might match the return type of a gcc2
5670    builtin and then its argument prototype would still apply.  */
5671 char deflate ();
5672 int
5673 main ()
5674 {
5675 deflate ();
5676   ;
5677   return 0;
5678 }
5679 _ACEOF
5680 rm -f conftest.$ac_objext conftest$ac_exeext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5682   (eval $ac_link) 2>&5
5683   ac_status=$?
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); } &&
5686          { ac_try='test -s conftest$ac_exeext'
5687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688   (eval $ac_try) 2>&5
5689   ac_status=$?
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); }; }; then
5692   ac_cv_lib_z_deflate=yes
5693 else
5694   echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5696
5697 ac_cv_lib_z_deflate=no
5698 fi
5699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5700 LIBS=$ac_check_lib_save_LIBS
5701 fi
5702 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5703 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5704 if test $ac_cv_lib_z_deflate = yes; then
5705    zlib="true"
5706 else
5707    zlib="false" ;  { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
5708 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5709 fi
5710
5711
5712 echo "$as_me:$LINENO: checking for sin in -lm" >&5
5713 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
5714 if test "${ac_cv_lib_m_sin+set}" = set; then
5715   echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717   ac_check_lib_save_LIBS=$LIBS
5718 LIBS="-lm  $LIBS"
5719 cat >conftest.$ac_ext <<_ACEOF
5720 #line $LINENO "configure"
5721 /* confdefs.h.  */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h.  */
5726
5727 /* Override any gcc2 internal prototype to avoid an error.  */
5728 #ifdef __cplusplus
5729 extern "C"
5730 #endif
5731 /* We use char because int might match the return type of a gcc2
5732    builtin and then its argument prototype would still apply.  */
5733 char sin ();
5734 int
5735 main ()
5736 {
5737 sin ();
5738   ;
5739   return 0;
5740 }
5741 _ACEOF
5742 rm -f conftest.$ac_objext conftest$ac_exeext
5743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5744   (eval $ac_link) 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); } &&
5748          { ac_try='test -s conftest$ac_exeext'
5749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750   (eval $ac_try) 2>&5
5751   ac_status=$?
5752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753   (exit $ac_status); }; }; then
5754   ac_cv_lib_m_sin=yes
5755 else
5756   echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5758
5759 ac_cv_lib_m_sin=no
5760 fi
5761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5762 LIBS=$ac_check_lib_save_LIBS
5763 fi
5764 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
5765 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
5766 if test $ac_cv_lib_m_sin = yes; then
5767   cat >>confdefs.h <<_ACEOF
5768 #define HAVE_LIBM 1
5769 _ACEOF
5770
5771   LIBS="-lm $LIBS"
5772
5773 fi
5774
5775 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
5776 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
5777 if test "${ac_cv_lib_curses_main+set}" = set; then
5778   echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780   ac_check_lib_save_LIBS=$LIBS
5781 LIBS="-lcurses  $LIBS"
5782 cat >conftest.$ac_ext <<_ACEOF
5783 #line $LINENO "configure"
5784 /* confdefs.h.  */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h.  */
5789
5790
5791 int
5792 main ()
5793 {
5794 main ();
5795   ;
5796   return 0;
5797 }
5798 _ACEOF
5799 rm -f conftest.$ac_objext conftest$ac_exeext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5801   (eval $ac_link) 2>&5
5802   ac_status=$?
5803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804   (exit $ac_status); } &&
5805          { ac_try='test -s conftest$ac_exeext'
5806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807   (eval $ac_try) 2>&5
5808   ac_status=$?
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); }; }; then
5811   ac_cv_lib_curses_main=yes
5812 else
5813   echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816 ac_cv_lib_curses_main=no
5817 fi
5818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5819 LIBS=$ac_check_lib_save_LIBS
5820 fi
5821 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
5822 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
5823 if test $ac_cv_lib_curses_main = yes; then
5824   curses=true
5825 else
5826   curses=false
5827 fi
5828
5829 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
5830 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
5831 if test "${ac_cv_lib_ncurses_main+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   ac_check_lib_save_LIBS=$LIBS
5835 LIBS="-lncurses  $LIBS"
5836 cat >conftest.$ac_ext <<_ACEOF
5837 #line $LINENO "configure"
5838 /* confdefs.h.  */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h.  */
5843
5844
5845 int
5846 main ()
5847 {
5848 main ();
5849   ;
5850   return 0;
5851 }
5852 _ACEOF
5853 rm -f conftest.$ac_objext conftest$ac_exeext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5855   (eval $ac_link) 2>&5
5856   ac_status=$?
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); } &&
5859          { ac_try='test -s conftest$ac_exeext'
5860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861   (eval $ac_try) 2>&5
5862   ac_status=$?
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); }; }; then
5865   ac_cv_lib_ncurses_main=yes
5866 else
5867   echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5869
5870 ac_cv_lib_ncurses_main=no
5871 fi
5872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5873 LIBS=$ac_check_lib_save_LIBS
5874 fi
5875 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
5876 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
5877 if test $ac_cv_lib_ncurses_main = yes; then
5878   ncurses=true
5879 else
5880   ncurses=false
5881 fi
5882
5883 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
5884 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
5885 if test "${ac_cv_lib_readline_main+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   ac_check_lib_save_LIBS=$LIBS
5889 LIBS="-lreadline -lcurses $LIBS"
5890 cat >conftest.$ac_ext <<_ACEOF
5891 #line $LINENO "configure"
5892 /* confdefs.h.  */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h.  */
5897
5898
5899 int
5900 main ()
5901 {
5902 main ();
5903   ;
5904   return 0;
5905 }
5906 _ACEOF
5907 rm -f conftest.$ac_objext conftest$ac_exeext
5908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5909   (eval $ac_link) 2>&5
5910   ac_status=$?
5911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912   (exit $ac_status); } &&
5913          { ac_try='test -s conftest$ac_exeext'
5914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915   (eval $ac_try) 2>&5
5916   ac_status=$?
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); }; }; then
5919   ac_cv_lib_readline_main=yes
5920 else
5921   echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5923
5924 ac_cv_lib_readline_main=no
5925 fi
5926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5927 LIBS=$ac_check_lib_save_LIBS
5928 fi
5929 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
5930 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
5931 if test $ac_cv_lib_readline_main = yes; then
5932   readline=true;
5933
5934 cat >>confdefs.h <<\_ACEOF
5935 #define HAVE_READLINE 1
5936 _ACEOF
5937
5938 else
5939   readline=false
5940 fi
5941
5942 wxwin=false
5943 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
5944 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
5945 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
5946   echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948   ac_check_lib_save_LIBS=$LIBS
5949 LIBS="-lwx_gtk-2.4  $LIBS"
5950 cat >conftest.$ac_ext <<_ACEOF
5951 #line $LINENO "configure"
5952 /* confdefs.h.  */
5953 _ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h.  */
5957
5958
5959 int
5960 main ()
5961 {
5962 main ();
5963   ;
5964   return 0;
5965 }
5966 _ACEOF
5967 rm -f conftest.$ac_objext conftest$ac_exeext
5968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5969   (eval $ac_link) 2>&5
5970   ac_status=$?
5971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972   (exit $ac_status); } &&
5973          { ac_try='test -s conftest$ac_exeext'
5974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975   (eval $ac_try) 2>&5
5976   ac_status=$?
5977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978   (exit $ac_status); }; }; then
5979   ac_cv_lib_wx_gtk_2_4_main=yes
5980 else
5981   echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5983
5984 ac_cv_lib_wx_gtk_2_4_main=no
5985 fi
5986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5987 LIBS=$ac_check_lib_save_LIBS
5988 fi
5989 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
5990 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
5991 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
5992   wxwin=true; wx_gtk=true;
5993 cat >>confdefs.h <<\_ACEOF
5994 #define HAVE_WXWINDOWS 1
5995 _ACEOF
5996
5997 fi
5998
5999 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
6000 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
6001 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
6002   echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004   ac_check_lib_save_LIBS=$LIBS
6005 LIBS="-lwx_mac-2.4  $LIBS"
6006 cat >conftest.$ac_ext <<_ACEOF
6007 #line $LINENO "configure"
6008 /* confdefs.h.  */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h.  */
6013
6014
6015 int
6016 main ()
6017 {
6018 main ();
6019   ;
6020   return 0;
6021 }
6022 _ACEOF
6023 rm -f conftest.$ac_objext conftest$ac_exeext
6024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6025   (eval $ac_link) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); } &&
6029          { ac_try='test -s conftest$ac_exeext'
6030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031   (eval $ac_try) 2>&5
6032   ac_status=$?
6033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034   (exit $ac_status); }; }; then
6035   ac_cv_lib_wx_mac_2_4_main=yes
6036 else
6037   echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6039
6040 ac_cv_lib_wx_mac_2_4_main=no
6041 fi
6042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6043 LIBS=$ac_check_lib_save_LIBS
6044 fi
6045 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
6046 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
6047 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
6048   wxwin=true; wx_mac=true;
6049 cat >>confdefs.h <<\_ACEOF
6050 #define HAVE_WXWINDOWS 1
6051 _ACEOF
6052
6053 fi
6054
6055 echo "$as_me:$LINENO: checking for fftw_one in -lfftw" >&5
6056 echo $ECHO_N "checking for fftw_one in -lfftw... $ECHO_C" >&6
6057 if test "${ac_cv_lib_fftw_fftw_one+set}" = set; then
6058   echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060   ac_check_lib_save_LIBS=$LIBS
6061 LIBS="-lfftw  $LIBS"
6062 cat >conftest.$ac_ext <<_ACEOF
6063 #line $LINENO "configure"
6064 /* confdefs.h.  */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h.  */
6069
6070 /* Override any gcc2 internal prototype to avoid an error.  */
6071 #ifdef __cplusplus
6072 extern "C"
6073 #endif
6074 /* We use char because int might match the return type of a gcc2
6075    builtin and then its argument prototype would still apply.  */
6076 char fftw_one ();
6077 int
6078 main ()
6079 {
6080 fftw_one ();
6081   ;
6082   return 0;
6083 }
6084 _ACEOF
6085 rm -f conftest.$ac_objext conftest$ac_exeext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6087   (eval $ac_link) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); } &&
6091          { ac_try='test -s conftest$ac_exeext'
6092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093   (eval $ac_try) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; }; then
6097   ac_cv_lib_fftw_fftw_one=yes
6098 else
6099   echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102 ac_cv_lib_fftw_fftw_one=no
6103 fi
6104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6105 LIBS=$ac_check_lib_save_LIBS
6106 fi
6107 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_one" >&5
6108 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_one" >&6
6109 if test $ac_cv_lib_fftw_fftw_one = yes; then
6110   fftw=true;
6111 cat >>confdefs.h <<\_ACEOF
6112 #define HAVE_FFTW 1
6113 _ACEOF
6114
6115 else
6116   fftw=false
6117 fi
6118
6119 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6120 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6121 if test "${ac_cv_lib_GL_main+set}" = set; then
6122   echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124   ac_check_lib_save_LIBS=$LIBS
6125 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
6126 cat >conftest.$ac_ext <<_ACEOF
6127 #line $LINENO "configure"
6128 /* confdefs.h.  */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h.  */
6133
6134
6135 int
6136 main ()
6137 {
6138 main ();
6139   ;
6140   return 0;
6141 }
6142 _ACEOF
6143 rm -f conftest.$ac_objext conftest$ac_exeext
6144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6145   (eval $ac_link) 2>&5
6146   ac_status=$?
6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148   (exit $ac_status); } &&
6149          { ac_try='test -s conftest$ac_exeext'
6150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151   (eval $ac_try) 2>&5
6152   ac_status=$?
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); }; }; then
6155   ac_cv_lib_GL_main=yes
6156 else
6157   echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6159
6160 ac_cv_lib_GL_main=no
6161 fi
6162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6163 LIBS=$ac_check_lib_save_LIBS
6164 fi
6165 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6166 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6167 if test $ac_cv_lib_GL_main = yes; then
6168   libgl=true
6169 else
6170   libgl=false
6171 fi
6172
6173 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6174 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6175 if test "${ac_cv_lib_pthread_main+set}" = set; then
6176   echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178   ac_check_lib_save_LIBS=$LIBS
6179 LIBS="-lpthread  $LIBS"
6180 cat >conftest.$ac_ext <<_ACEOF
6181 #line $LINENO "configure"
6182 /* confdefs.h.  */
6183 _ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h.  */
6187
6188
6189 int
6190 main ()
6191 {
6192 main ();
6193   ;
6194   return 0;
6195 }
6196 _ACEOF
6197 rm -f conftest.$ac_objext conftest$ac_exeext
6198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6199   (eval $ac_link) 2>&5
6200   ac_status=$?
6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); } &&
6203          { ac_try='test -s conftest$ac_exeext'
6204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205   (eval $ac_try) 2>&5
6206   ac_status=$?
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); }; }; then
6209   ac_cv_lib_pthread_main=yes
6210 else
6211   echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6213
6214 ac_cv_lib_pthread_main=no
6215 fi
6216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6217 LIBS=$ac_check_lib_save_LIBS
6218 fi
6219 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6220 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6221 if test $ac_cv_lib_pthread_main = yes; then
6222   pthread=true
6223 else
6224   pthread=false
6225 fi
6226
6227
6228 if test "$zlib" = "true" ; then
6229   echo "$as_me:$LINENO: checking for main in -lpng" >&5
6230 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6231 if test "${ac_cv_lib_png_main+set}" = set; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   ac_check_lib_save_LIBS=$LIBS
6235 LIBS="-lpng -lz -lm $LIBS"
6236 cat >conftest.$ac_ext <<_ACEOF
6237 #line $LINENO "configure"
6238 /* confdefs.h.  */
6239 _ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h.  */
6243
6244
6245 int
6246 main ()
6247 {
6248 main ();
6249   ;
6250   return 0;
6251 }
6252 _ACEOF
6253 rm -f conftest.$ac_objext conftest$ac_exeext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6255   (eval $ac_link) 2>&5
6256   ac_status=$?
6257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258   (exit $ac_status); } &&
6259          { ac_try='test -s conftest$ac_exeext'
6260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261   (eval $ac_try) 2>&5
6262   ac_status=$?
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); }; }; then
6265   ac_cv_lib_png_main=yes
6266 else
6267   echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6269
6270 ac_cv_lib_png_main=no
6271 fi
6272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6273 LIBS=$ac_check_lib_save_LIBS
6274 fi
6275 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6276 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6277 if test $ac_cv_lib_png_main = yes; then
6278   png=true ;
6279 cat >>confdefs.h <<\_ACEOF
6280 #define HAVE_PNG 1
6281 _ACEOF
6282
6283 else
6284   png=false
6285 fi
6286
6287 fi
6288
6289 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6290 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6291 if test "${ac_cv_header_stdc+set}" = set; then
6292   echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294   cat >conftest.$ac_ext <<_ACEOF
6295 #line $LINENO "configure"
6296 /* confdefs.h.  */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h.  */
6301 #include <stdlib.h>
6302 #include <stdarg.h>
6303 #include <string.h>
6304 #include <float.h>
6305
6306 int
6307 main ()
6308 {
6309
6310   ;
6311   return 0;
6312 }
6313 _ACEOF
6314 rm -f conftest.$ac_objext
6315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6316   (eval $ac_compile) 2>&5
6317   ac_status=$?
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); } &&
6320          { ac_try='test -s conftest.$ac_objext'
6321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322   (eval $ac_try) 2>&5
6323   ac_status=$?
6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); }; }; then
6326   ac_cv_header_stdc=yes
6327 else
6328   echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6330
6331 ac_cv_header_stdc=no
6332 fi
6333 rm -f conftest.$ac_objext conftest.$ac_ext
6334
6335 if test $ac_cv_header_stdc = yes; then
6336   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6337   cat >conftest.$ac_ext <<_ACEOF
6338 #line $LINENO "configure"
6339 /* confdefs.h.  */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h.  */
6344 #include <string.h>
6345
6346 _ACEOF
6347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6348   $EGREP "memchr" >/dev/null 2>&1; then
6349   :
6350 else
6351   ac_cv_header_stdc=no
6352 fi
6353 rm -f conftest*
6354
6355 fi
6356
6357 if test $ac_cv_header_stdc = yes; then
6358   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6359   cat >conftest.$ac_ext <<_ACEOF
6360 #line $LINENO "configure"
6361 /* confdefs.h.  */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h.  */
6366 #include <stdlib.h>
6367
6368 _ACEOF
6369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6370   $EGREP "free" >/dev/null 2>&1; then
6371   :
6372 else
6373   ac_cv_header_stdc=no
6374 fi
6375 rm -f conftest*
6376
6377 fi
6378
6379 if test $ac_cv_header_stdc = yes; then
6380   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6381   if test "$cross_compiling" = yes; then
6382   :
6383 else
6384   cat >conftest.$ac_ext <<_ACEOF
6385 #line $LINENO "configure"
6386 /* confdefs.h.  */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h.  */
6391 #include <ctype.h>
6392 #if ((' ' & 0x0FF) == 0x020)
6393 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6394 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6395 #else
6396 # define ISLOWER(c) \
6397                    (('a' <= (c) && (c) <= 'i') \
6398                      || ('j' <= (c) && (c) <= 'r') \
6399                      || ('s' <= (c) && (c) <= 'z'))
6400 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6401 #endif
6402
6403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6404 int
6405 main ()
6406 {
6407   int i;
6408   for (i = 0; i < 256; i++)
6409     if (XOR (islower (i), ISLOWER (i))
6410         || toupper (i) != TOUPPER (i))
6411       exit(2);
6412   exit (0);
6413 }
6414 _ACEOF
6415 rm -f conftest$ac_exeext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6417   (eval $ac_link) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422   (eval $ac_try) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; }; then
6426   :
6427 else
6428   echo "$as_me: program exited with status $ac_status" >&5
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432 ( exit $ac_status )
6433 ac_cv_header_stdc=no
6434 fi
6435 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6436 fi
6437 fi
6438 fi
6439 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6440 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6441 if test $ac_cv_header_stdc = yes; then
6442
6443 cat >>confdefs.h <<\_ACEOF
6444 #define STDC_HEADERS 1
6445 _ACEOF
6446
6447 fi
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473 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
6474 do
6475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6477   echo "$as_me:$LINENO: checking for $ac_header" >&5
6478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6480   echo $ECHO_N "(cached) $ECHO_C" >&6
6481 fi
6482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6484 else
6485   # Is the header compilable?
6486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6488 cat >conftest.$ac_ext <<_ACEOF
6489 #line $LINENO "configure"
6490 /* confdefs.h.  */
6491 _ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h.  */
6495 $ac_includes_default
6496 #include <$ac_header>
6497 _ACEOF
6498 rm -f conftest.$ac_objext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500   (eval $ac_compile) 2>&5
6501   ac_status=$?
6502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503   (exit $ac_status); } &&
6504          { ac_try='test -s conftest.$ac_objext'
6505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506   (eval $ac_try) 2>&5
6507   ac_status=$?
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); }; }; then
6510   ac_header_compiler=yes
6511 else
6512   echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 ac_header_compiler=no
6516 fi
6517 rm -f conftest.$ac_objext conftest.$ac_ext
6518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6519 echo "${ECHO_T}$ac_header_compiler" >&6
6520
6521 # Is the header present?
6522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line $LINENO "configure"
6526 /* confdefs.h.  */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h.  */
6531 #include <$ac_header>
6532 _ACEOF
6533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6534   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6535   ac_status=$?
6536   grep -v '^ *+' conftest.er1 >conftest.err
6537   rm -f conftest.er1
6538   cat conftest.err >&5
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); } >/dev/null; then
6541   if test -s conftest.err; then
6542     ac_cpp_err=$ac_c_preproc_warn_flag
6543   else
6544     ac_cpp_err=
6545   fi
6546 else
6547   ac_cpp_err=yes
6548 fi
6549 if test -z "$ac_cpp_err"; then
6550   ac_header_preproc=yes
6551 else
6552   echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6554
6555   ac_header_preproc=no
6556 fi
6557 rm -f conftest.err conftest.$ac_ext
6558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6559 echo "${ECHO_T}$ac_header_preproc" >&6
6560
6561 # So?  What about this header?
6562 case $ac_header_compiler:$ac_header_preproc in
6563   yes:no )
6564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6568     (
6569       cat <<\_ASBOX
6570 ## ------------------------------------ ##
6571 ## Report this to bug-autoconf@gnu.org. ##
6572 ## ------------------------------------ ##
6573 _ASBOX
6574     ) |
6575       sed "s/^/$as_me: WARNING:     /" >&2
6576     ;;
6577   no:yes )
6578     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6580     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6584     (
6585       cat <<\_ASBOX
6586 ## ------------------------------------ ##
6587 ## Report this to bug-autoconf@gnu.org. ##
6588 ## ------------------------------------ ##
6589 _ASBOX
6590     ) |
6591       sed "s/^/$as_me: WARNING:     /" >&2
6592     ;;
6593 esac
6594 echo "$as_me:$LINENO: checking for $ac_header" >&5
6595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6597   echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599   eval "$as_ac_Header=$ac_header_preproc"
6600 fi
6601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6603
6604 fi
6605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6606   cat >>confdefs.h <<_ACEOF
6607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6608 _ACEOF
6609
6610 fi
6611
6612 done
6613
6614
6615 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6616 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6617 if test "${ac_cv_c_const+set}" = set; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   cat >conftest.$ac_ext <<_ACEOF
6621 #line $LINENO "configure"
6622 /* confdefs.h.  */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h.  */
6627
6628 int
6629 main ()
6630 {
6631 /* FIXME: Include the comments suggested by Paul. */
6632 #ifndef __cplusplus
6633   /* Ultrix mips cc rejects this.  */
6634   typedef int charset[2];
6635   const charset x;
6636   /* SunOS 4.1.1 cc rejects this.  */
6637   char const *const *ccp;
6638   char **p;
6639   /* NEC SVR4.0.2 mips cc rejects this.  */
6640   struct point {int x, y;};
6641   static struct point const zero = {0,0};
6642   /* AIX XL C 1.02.0.0 rejects this.
6643      It does not let you subtract one const X* pointer from another in
6644      an arm of an if-expression whose if-part is not a constant
6645      expression */
6646   const char *g = "string";
6647   ccp = &g + (g ? g-g : 0);
6648   /* HPUX 7.0 cc rejects these. */
6649   ++ccp;
6650   p = (char**) ccp;
6651   ccp = (char const *const *) p;
6652   { /* SCO 3.2v4 cc rejects this.  */
6653     char *t;
6654     char const *s = 0 ? (char *) 0 : (char const *) 0;
6655
6656     *t++ = 0;
6657   }
6658   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6659     int x[] = {25, 17};
6660     const int *foo = &x[0];
6661     ++foo;
6662   }
6663   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6664     typedef const int *iptr;
6665     iptr p = 0;
6666     ++p;
6667   }
6668   { /* AIX XL C 1.02.0.0 rejects this saying
6669        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6670     struct s { int j; const int *ap[3]; };
6671     struct s *b; b->j = 5;
6672   }
6673   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6674     const int foo = 10;
6675   }
6676 #endif
6677
6678   ;
6679   return 0;
6680 }
6681 _ACEOF
6682 rm -f conftest.$ac_objext
6683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6684   (eval $ac_compile) 2>&5
6685   ac_status=$?
6686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); } &&
6688          { ac_try='test -s conftest.$ac_objext'
6689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690   (eval $ac_try) 2>&5
6691   ac_status=$?
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); }; }; then
6694   ac_cv_c_const=yes
6695 else
6696   echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6698
6699 ac_cv_c_const=no
6700 fi
6701 rm -f conftest.$ac_objext conftest.$ac_ext
6702 fi
6703 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6704 echo "${ECHO_T}$ac_cv_c_const" >&6
6705 if test $ac_cv_c_const = no; then
6706
6707 cat >>confdefs.h <<\_ACEOF
6708 #define const
6709 _ACEOF
6710
6711 fi
6712
6713 echo "$as_me:$LINENO: checking for off_t" >&5
6714 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6715 if test "${ac_cv_type_off_t+set}" = set; then
6716   echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718   cat >conftest.$ac_ext <<_ACEOF
6719 #line $LINENO "configure"
6720 /* confdefs.h.  */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h.  */
6725 $ac_includes_default
6726 int
6727 main ()
6728 {
6729 if ((off_t *) 0)
6730   return 0;
6731 if (sizeof (off_t))
6732   return 0;
6733   ;
6734   return 0;
6735 }
6736 _ACEOF
6737 rm -f conftest.$ac_objext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6739   (eval $ac_compile) 2>&5
6740   ac_status=$?
6741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); } &&
6743          { ac_try='test -s conftest.$ac_objext'
6744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745   (eval $ac_try) 2>&5
6746   ac_status=$?
6747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748   (exit $ac_status); }; }; then
6749   ac_cv_type_off_t=yes
6750 else
6751   echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6753
6754 ac_cv_type_off_t=no
6755 fi
6756 rm -f conftest.$ac_objext conftest.$ac_ext
6757 fi
6758 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6759 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6760 if test $ac_cv_type_off_t = yes; then
6761   :
6762 else
6763
6764 cat >>confdefs.h <<_ACEOF
6765 #define off_t long
6766 _ACEOF
6767
6768 fi
6769
6770 echo "$as_me:$LINENO: checking for size_t" >&5
6771 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6772 if test "${ac_cv_type_size_t+set}" = set; then
6773   echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775   cat >conftest.$ac_ext <<_ACEOF
6776 #line $LINENO "configure"
6777 /* confdefs.h.  */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h.  */
6782 $ac_includes_default
6783 int
6784 main ()
6785 {
6786 if ((size_t *) 0)
6787   return 0;
6788 if (sizeof (size_t))
6789   return 0;
6790   ;
6791   return 0;
6792 }
6793 _ACEOF
6794 rm -f conftest.$ac_objext
6795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6796   (eval $ac_compile) 2>&5
6797   ac_status=$?
6798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799   (exit $ac_status); } &&
6800          { ac_try='test -s conftest.$ac_objext'
6801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802   (eval $ac_try) 2>&5
6803   ac_status=$?
6804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805   (exit $ac_status); }; }; then
6806   ac_cv_type_size_t=yes
6807 else
6808   echo "$as_me: failed program was:" >&5
6809 sed 's/^/| /' conftest.$ac_ext >&5
6810
6811 ac_cv_type_size_t=no
6812 fi
6813 rm -f conftest.$ac_objext conftest.$ac_ext
6814 fi
6815 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6816 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6817 if test $ac_cv_type_size_t = yes; then
6818   :
6819 else
6820
6821 cat >>confdefs.h <<_ACEOF
6822 #define size_t unsigned
6823 _ACEOF
6824
6825 fi
6826
6827 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6828 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6829 if test "${ac_cv_struct_tm+set}" = set; then
6830   echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832   cat >conftest.$ac_ext <<_ACEOF
6833 #line $LINENO "configure"
6834 /* confdefs.h.  */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h.  */
6839 #include <sys/types.h>
6840 #include <time.h>
6841
6842 int
6843 main ()
6844 {
6845 struct tm *tp; tp->tm_sec;
6846   ;
6847   return 0;
6848 }
6849 _ACEOF
6850 rm -f conftest.$ac_objext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6852   (eval $ac_compile) 2>&5
6853   ac_status=$?
6854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855   (exit $ac_status); } &&
6856          { ac_try='test -s conftest.$ac_objext'
6857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858   (eval $ac_try) 2>&5
6859   ac_status=$?
6860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861   (exit $ac_status); }; }; then
6862   ac_cv_struct_tm=time.h
6863 else
6864   echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6866
6867 ac_cv_struct_tm=sys/time.h
6868 fi
6869 rm -f conftest.$ac_objext conftest.$ac_ext
6870 fi
6871 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6872 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6873 if test $ac_cv_struct_tm = sys/time.h; then
6874
6875 cat >>confdefs.h <<\_ACEOF
6876 #define TM_IN_SYS_TIME 1
6877 _ACEOF
6878
6879 fi
6880
6881
6882
6883 for ac_func in vprintf
6884 do
6885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6886 echo "$as_me:$LINENO: checking for $ac_func" >&5
6887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6888 if eval "test \"\${$as_ac_var+set}\" = set"; then
6889   echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891   cat >conftest.$ac_ext <<_ACEOF
6892 #line $LINENO "configure"
6893 /* confdefs.h.  */
6894 _ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h.  */
6898 /* System header to define __stub macros and hopefully few prototypes,
6899     which can conflict with char $ac_func (); below.
6900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6901     <limits.h> exists even on freestanding compilers.  */
6902 #ifdef __STDC__
6903 # include <limits.h>
6904 #else
6905 # include <assert.h>
6906 #endif
6907 /* Override any gcc2 internal prototype to avoid an error.  */
6908 #ifdef __cplusplus
6909 extern "C"
6910 {
6911 #endif
6912 /* We use char because int might match the return type of a gcc2
6913    builtin and then its argument prototype would still apply.  */
6914 char $ac_func ();
6915 /* The GNU C library defines this for functions which it implements
6916     to always fail with ENOSYS.  Some functions are actually named
6917     something starting with __ and the normal name is an alias.  */
6918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6919 choke me
6920 #else
6921 char (*f) () = $ac_func;
6922 #endif
6923 #ifdef __cplusplus
6924 }
6925 #endif
6926
6927 int
6928 main ()
6929 {
6930 return f != $ac_func;
6931   ;
6932   return 0;
6933 }
6934 _ACEOF
6935 rm -f conftest.$ac_objext conftest$ac_exeext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937   (eval $ac_link) 2>&5
6938   ac_status=$?
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); } &&
6941          { ac_try='test -s conftest$ac_exeext'
6942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943   (eval $ac_try) 2>&5
6944   ac_status=$?
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); }; }; then
6947   eval "$as_ac_var=yes"
6948 else
6949   echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6951
6952 eval "$as_ac_var=no"
6953 fi
6954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6955 fi
6956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6958 if test `eval echo '${'$as_ac_var'}'` = yes; then
6959   cat >>confdefs.h <<_ACEOF
6960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6961 _ACEOF
6962
6963 echo "$as_me:$LINENO: checking for _doprnt" >&5
6964 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6965 if test "${ac_cv_func__doprnt+set}" = set; then
6966   echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968   cat >conftest.$ac_ext <<_ACEOF
6969 #line $LINENO "configure"
6970 /* confdefs.h.  */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h.  */
6975 /* System header to define __stub macros and hopefully few prototypes,
6976     which can conflict with char _doprnt (); below.
6977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6978     <limits.h> exists even on freestanding compilers.  */
6979 #ifdef __STDC__
6980 # include <limits.h>
6981 #else
6982 # include <assert.h>
6983 #endif
6984 /* Override any gcc2 internal prototype to avoid an error.  */
6985 #ifdef __cplusplus
6986 extern "C"
6987 {
6988 #endif
6989 /* We use char because int might match the return type of a gcc2
6990    builtin and then its argument prototype would still apply.  */
6991 char _doprnt ();
6992 /* The GNU C library defines this for functions which it implements
6993     to always fail with ENOSYS.  Some functions are actually named
6994     something starting with __ and the normal name is an alias.  */
6995 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6996 choke me
6997 #else
6998 char (*f) () = _doprnt;
6999 #endif
7000 #ifdef __cplusplus
7001 }
7002 #endif
7003
7004 int
7005 main ()
7006 {
7007 return f != _doprnt;
7008   ;
7009   return 0;
7010 }
7011 _ACEOF
7012 rm -f conftest.$ac_objext conftest$ac_exeext
7013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7014   (eval $ac_link) 2>&5
7015   ac_status=$?
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); } &&
7018          { ac_try='test -s conftest$ac_exeext'
7019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020   (eval $ac_try) 2>&5
7021   ac_status=$?
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); }; }; then
7024   ac_cv_func__doprnt=yes
7025 else
7026   echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7028
7029 ac_cv_func__doprnt=no
7030 fi
7031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7032 fi
7033 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7034 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7035 if test $ac_cv_func__doprnt = yes; then
7036
7037 cat >>confdefs.h <<\_ACEOF
7038 #define HAVE_DOPRNT 1
7039 _ACEOF
7040
7041 fi
7042
7043 fi
7044 done
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
7055 do
7056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7057 echo "$as_me:$LINENO: checking for $ac_func" >&5
7058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7059 if eval "test \"\${$as_ac_var+set}\" = set"; then
7060   echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062   cat >conftest.$ac_ext <<_ACEOF
7063 #line $LINENO "configure"
7064 /* confdefs.h.  */
7065 _ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h.  */
7069 /* System header to define __stub macros and hopefully few prototypes,
7070     which can conflict with char $ac_func (); below.
7071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7072     <limits.h> exists even on freestanding compilers.  */
7073 #ifdef __STDC__
7074 # include <limits.h>
7075 #else
7076 # include <assert.h>
7077 #endif
7078 /* Override any gcc2 internal prototype to avoid an error.  */
7079 #ifdef __cplusplus
7080 extern "C"
7081 {
7082 #endif
7083 /* We use char because int might match the return type of a gcc2
7084    builtin and then its argument prototype would still apply.  */
7085 char $ac_func ();
7086 /* The GNU C library defines this for functions which it implements
7087     to always fail with ENOSYS.  Some functions are actually named
7088     something starting with __ and the normal name is an alias.  */
7089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7090 choke me
7091 #else
7092 char (*f) () = $ac_func;
7093 #endif
7094 #ifdef __cplusplus
7095 }
7096 #endif
7097
7098 int
7099 main ()
7100 {
7101 return f != $ac_func;
7102   ;
7103   return 0;
7104 }
7105 _ACEOF
7106 rm -f conftest.$ac_objext conftest$ac_exeext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7108   (eval $ac_link) 2>&5
7109   ac_status=$?
7110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111   (exit $ac_status); } &&
7112          { ac_try='test -s conftest$ac_exeext'
7113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114   (eval $ac_try) 2>&5
7115   ac_status=$?
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); }; }; then
7118   eval "$as_ac_var=yes"
7119 else
7120   echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7122
7123 eval "$as_ac_var=no"
7124 fi
7125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7126 fi
7127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7129 if test `eval echo '${'$as_ac_var'}'` = yes; then
7130   cat >>confdefs.h <<_ACEOF
7131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7132 _ACEOF
7133
7134 fi
7135 done
7136
7137 echo "$as_me:$LINENO: checking for basename" >&5
7138 echo $ECHO_N "checking for basename... $ECHO_C" >&6
7139 if test "${ac_cv_func_basename+set}" = set; then
7140   echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142   cat >conftest.$ac_ext <<_ACEOF
7143 #line $LINENO "configure"
7144 /* confdefs.h.  */
7145 _ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h.  */
7149 /* System header to define __stub macros and hopefully few prototypes,
7150     which can conflict with char basename (); below.
7151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7152     <limits.h> exists even on freestanding compilers.  */
7153 #ifdef __STDC__
7154 # include <limits.h>
7155 #else
7156 # include <assert.h>
7157 #endif
7158 /* Override any gcc2 internal prototype to avoid an error.  */
7159 #ifdef __cplusplus
7160 extern "C"
7161 {
7162 #endif
7163 /* We use char because int might match the return type of a gcc2
7164    builtin and then its argument prototype would still apply.  */
7165 char basename ();
7166 /* The GNU C library defines this for functions which it implements
7167     to always fail with ENOSYS.  Some functions are actually named
7168     something starting with __ and the normal name is an alias.  */
7169 #if defined (__stub_basename) || defined (__stub___basename)
7170 choke me
7171 #else
7172 char (*f) () = basename;
7173 #endif
7174 #ifdef __cplusplus
7175 }
7176 #endif
7177
7178 int
7179 main ()
7180 {
7181 return f != basename;
7182   ;
7183   return 0;
7184 }
7185 _ACEOF
7186 rm -f conftest.$ac_objext conftest$ac_exeext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7188   (eval $ac_link) 2>&5
7189   ac_status=$?
7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); } &&
7192          { ac_try='test -s conftest$ac_exeext'
7193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194   (eval $ac_try) 2>&5
7195   ac_status=$?
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); }; }; then
7198   ac_cv_func_basename=yes
7199 else
7200   echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7202
7203 ac_cv_func_basename=no
7204 fi
7205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7206 fi
7207 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
7208 echo "${ECHO_T}$ac_cv_func_basename" >&6
7209
7210 echo "$as_me:$LINENO: checking for setjmp" >&5
7211 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
7212 if test "${ac_cv_func_setjmp+set}" = set; then
7213   echo $ECHO_N "(cached) $ECHO_C" >&6
7214 else
7215   cat >conftest.$ac_ext <<_ACEOF
7216 #line $LINENO "configure"
7217 /* confdefs.h.  */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h.  */
7222 /* System header to define __stub macros and hopefully few prototypes,
7223     which can conflict with char setjmp (); below.
7224     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7225     <limits.h> exists even on freestanding compilers.  */
7226 #ifdef __STDC__
7227 # include <limits.h>
7228 #else
7229 # include <assert.h>
7230 #endif
7231 /* Override any gcc2 internal prototype to avoid an error.  */
7232 #ifdef __cplusplus
7233 extern "C"
7234 {
7235 #endif
7236 /* We use char because int might match the return type of a gcc2
7237    builtin and then its argument prototype would still apply.  */
7238 char setjmp ();
7239 /* The GNU C library defines this for functions which it implements
7240     to always fail with ENOSYS.  Some functions are actually named
7241     something starting with __ and the normal name is an alias.  */
7242 #if defined (__stub_setjmp) || defined (__stub___setjmp)
7243 choke me
7244 #else
7245 char (*f) () = setjmp;
7246 #endif
7247 #ifdef __cplusplus
7248 }
7249 #endif
7250
7251 int
7252 main ()
7253 {
7254 return f != setjmp;
7255   ;
7256   return 0;
7257 }
7258 _ACEOF
7259 rm -f conftest.$ac_objext conftest$ac_exeext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7261   (eval $ac_link) 2>&5
7262   ac_status=$?
7263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264   (exit $ac_status); } &&
7265          { ac_try='test -s conftest$ac_exeext'
7266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267   (eval $ac_try) 2>&5
7268   ac_status=$?
7269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270   (exit $ac_status); }; }; then
7271   ac_cv_func_setjmp=yes
7272 else
7273   echo "$as_me: failed program was:" >&5
7274 sed 's/^/| /' conftest.$ac_ext >&5
7275
7276 ac_cv_func_setjmp=no
7277 fi
7278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7279 fi
7280 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
7281 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
7282
7283 echo "$as_me:$LINENO: checking for setpriority" >&5
7284 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
7285 if test "${ac_cv_func_setpriority+set}" = set; then
7286   echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288   cat >conftest.$ac_ext <<_ACEOF
7289 #line $LINENO "configure"
7290 /* confdefs.h.  */
7291 _ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h.  */
7295 /* System header to define __stub macros and hopefully few prototypes,
7296     which can conflict with char setpriority (); below.
7297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7298     <limits.h> exists even on freestanding compilers.  */
7299 #ifdef __STDC__
7300 # include <limits.h>
7301 #else
7302 # include <assert.h>
7303 #endif
7304 /* Override any gcc2 internal prototype to avoid an error.  */
7305 #ifdef __cplusplus
7306 extern "C"
7307 {
7308 #endif
7309 /* We use char because int might match the return type of a gcc2
7310    builtin and then its argument prototype would still apply.  */
7311 char setpriority ();
7312 /* The GNU C library defines this for functions which it implements
7313     to always fail with ENOSYS.  Some functions are actually named
7314     something starting with __ and the normal name is an alias.  */
7315 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7316 choke me
7317 #else
7318 char (*f) () = setpriority;
7319 #endif
7320 #ifdef __cplusplus
7321 }
7322 #endif
7323
7324 int
7325 main ()
7326 {
7327 return f != setpriority;
7328   ;
7329   return 0;
7330 }
7331 _ACEOF
7332 rm -f conftest.$ac_objext conftest$ac_exeext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7334   (eval $ac_link) 2>&5
7335   ac_status=$?
7336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); } &&
7338          { ac_try='test -s conftest$ac_exeext'
7339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340   (eval $ac_try) 2>&5
7341   ac_status=$?
7342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343   (exit $ac_status); }; }; then
7344   ac_cv_func_setpriority=yes
7345 else
7346   echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7348
7349 ac_cv_func_setpriority=no
7350 fi
7351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7352 fi
7353 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7354 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7355
7356 echo "$as_me:$LINENO: checking for time" >&5
7357 echo $ECHO_N "checking for time... $ECHO_C" >&6
7358 if test "${ac_cv_func_time+set}" = set; then
7359   echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361   cat >conftest.$ac_ext <<_ACEOF
7362 #line $LINENO "configure"
7363 /* confdefs.h.  */
7364 _ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h.  */
7368 /* System header to define __stub macros and hopefully few prototypes,
7369     which can conflict with char time (); below.
7370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7371     <limits.h> exists even on freestanding compilers.  */
7372 #ifdef __STDC__
7373 # include <limits.h>
7374 #else
7375 # include <assert.h>
7376 #endif
7377 /* Override any gcc2 internal prototype to avoid an error.  */
7378 #ifdef __cplusplus
7379 extern "C"
7380 {
7381 #endif
7382 /* We use char because int might match the return type of a gcc2
7383    builtin and then its argument prototype would still apply.  */
7384 char time ();
7385 /* The GNU C library defines this for functions which it implements
7386     to always fail with ENOSYS.  Some functions are actually named
7387     something starting with __ and the normal name is an alias.  */
7388 #if defined (__stub_time) || defined (__stub___time)
7389 choke me
7390 #else
7391 char (*f) () = time;
7392 #endif
7393 #ifdef __cplusplus
7394 }
7395 #endif
7396
7397 int
7398 main ()
7399 {
7400 return f != time;
7401   ;
7402   return 0;
7403 }
7404 _ACEOF
7405 rm -f conftest.$ac_objext conftest$ac_exeext
7406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7407   (eval $ac_link) 2>&5
7408   ac_status=$?
7409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410   (exit $ac_status); } &&
7411          { ac_try='test -s conftest$ac_exeext'
7412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413   (eval $ac_try) 2>&5
7414   ac_status=$?
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); }; }; then
7417   ac_cv_func_time=yes
7418 else
7419   echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7421
7422 ac_cv_func_time=no
7423 fi
7424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7425 fi
7426 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7427 echo "${ECHO_T}$ac_cv_func_time" >&6
7428
7429 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7430 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7431 if test "${ac_cv_func_gettimeofday+set}" = set; then
7432   echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434   cat >conftest.$ac_ext <<_ACEOF
7435 #line $LINENO "configure"
7436 /* confdefs.h.  */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h.  */
7441 /* System header to define __stub macros and hopefully few prototypes,
7442     which can conflict with char gettimeofday (); below.
7443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7444     <limits.h> exists even on freestanding compilers.  */
7445 #ifdef __STDC__
7446 # include <limits.h>
7447 #else
7448 # include <assert.h>
7449 #endif
7450 /* Override any gcc2 internal prototype to avoid an error.  */
7451 #ifdef __cplusplus
7452 extern "C"
7453 {
7454 #endif
7455 /* We use char because int might match the return type of a gcc2
7456    builtin and then its argument prototype would still apply.  */
7457 char gettimeofday ();
7458 /* The GNU C library defines this for functions which it implements
7459     to always fail with ENOSYS.  Some functions are actually named
7460     something starting with __ and the normal name is an alias.  */
7461 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7462 choke me
7463 #else
7464 char (*f) () = gettimeofday;
7465 #endif
7466 #ifdef __cplusplus
7467 }
7468 #endif
7469
7470 int
7471 main ()
7472 {
7473 return f != gettimeofday;
7474   ;
7475   return 0;
7476 }
7477 _ACEOF
7478 rm -f conftest.$ac_objext conftest$ac_exeext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7480   (eval $ac_link) 2>&5
7481   ac_status=$?
7482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483   (exit $ac_status); } &&
7484          { ac_try='test -s conftest$ac_exeext'
7485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486   (eval $ac_try) 2>&5
7487   ac_status=$?
7488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489   (exit $ac_status); }; }; then
7490   ac_cv_func_gettimeofday=yes
7491 else
7492   echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7494
7495 ac_cv_func_gettimeofday=no
7496 fi
7497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7498 fi
7499 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7500 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7501
7502 echo "$as_me:$LINENO: checking for getopt" >&5
7503 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
7504 if test "${ac_cv_func_getopt+set}" = set; then
7505   echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507   cat >conftest.$ac_ext <<_ACEOF
7508 #line $LINENO "configure"
7509 /* confdefs.h.  */
7510 _ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h.  */
7514 /* System header to define __stub macros and hopefully few prototypes,
7515     which can conflict with char getopt (); below.
7516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7517     <limits.h> exists even on freestanding compilers.  */
7518 #ifdef __STDC__
7519 # include <limits.h>
7520 #else
7521 # include <assert.h>
7522 #endif
7523 /* Override any gcc2 internal prototype to avoid an error.  */
7524 #ifdef __cplusplus
7525 extern "C"
7526 {
7527 #endif
7528 /* We use char because int might match the return type of a gcc2
7529    builtin and then its argument prototype would still apply.  */
7530 char getopt ();
7531 /* The GNU C library defines this for functions which it implements
7532     to always fail with ENOSYS.  Some functions are actually named
7533     something starting with __ and the normal name is an alias.  */
7534 #if defined (__stub_getopt) || defined (__stub___getopt)
7535 choke me
7536 #else
7537 char (*f) () = getopt;
7538 #endif
7539 #ifdef __cplusplus
7540 }
7541 #endif
7542
7543 int
7544 main ()
7545 {
7546 return f != getopt;
7547   ;
7548   return 0;
7549 }
7550 _ACEOF
7551 rm -f conftest.$ac_objext conftest$ac_exeext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553   (eval $ac_link) 2>&5
7554   ac_status=$?
7555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556   (exit $ac_status); } &&
7557          { ac_try='test -s conftest$ac_exeext'
7558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559   (eval $ac_try) 2>&5
7560   ac_status=$?
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); }; }; then
7563   ac_cv_func_getopt=yes
7564 else
7565   echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7567
7568 ac_cv_func_getopt=no
7569 fi
7570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7571 fi
7572 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
7573 echo "${ECHO_T}$ac_cv_func_getopt" >&6
7574 if test $ac_cv_func_getopt = yes; then
7575    getopt=true
7576 else
7577    getopt=false
7578 fi
7579
7580
7581 if test "${OSTYPE}" = "cygwin" ; then
7582   getopt_long=false
7583 else
7584   echo "$as_me:$LINENO: checking for getopt_long" >&5
7585 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7586 if test "${ac_cv_func_getopt_long+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   cat >conftest.$ac_ext <<_ACEOF
7590 #line $LINENO "configure"
7591 /* confdefs.h.  */
7592 _ACEOF
7593 cat confdefs.h >>conftest.$ac_ext
7594 cat >>conftest.$ac_ext <<_ACEOF
7595 /* end confdefs.h.  */
7596 /* System header to define __stub macros and hopefully few prototypes,
7597     which can conflict with char getopt_long (); below.
7598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7599     <limits.h> exists even on freestanding compilers.  */
7600 #ifdef __STDC__
7601 # include <limits.h>
7602 #else
7603 # include <assert.h>
7604 #endif
7605 /* Override any gcc2 internal prototype to avoid an error.  */
7606 #ifdef __cplusplus
7607 extern "C"
7608 {
7609 #endif
7610 /* We use char because int might match the return type of a gcc2
7611    builtin and then its argument prototype would still apply.  */
7612 char getopt_long ();
7613 /* The GNU C library defines this for functions which it implements
7614     to always fail with ENOSYS.  Some functions are actually named
7615     something starting with __ and the normal name is an alias.  */
7616 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
7617 choke me
7618 #else
7619 char (*f) () = getopt_long;
7620 #endif
7621 #ifdef __cplusplus
7622 }
7623 #endif
7624
7625 int
7626 main ()
7627 {
7628 return f != getopt_long;
7629   ;
7630   return 0;
7631 }
7632 _ACEOF
7633 rm -f conftest.$ac_objext conftest$ac_exeext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635   (eval $ac_link) 2>&5
7636   ac_status=$?
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); } &&
7639          { ac_try='test -s conftest$ac_exeext'
7640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641   (eval $ac_try) 2>&5
7642   ac_status=$?
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); }; }; then
7645   ac_cv_func_getopt_long=yes
7646 else
7647   echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7649
7650 ac_cv_func_getopt_long=no
7651 fi
7652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7653 fi
7654 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
7655 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
7656 if test $ac_cv_func_getopt_long = yes; then
7657    getopt_long=true
7658 else
7659    getopt_long=false
7660 fi
7661
7662 fi
7663
7664 if test "${getopt_long}" = "false" ; then
7665   my_includes="$my_includes -I../getopt"
7666
7667 cat >>confdefs.h <<\_ACEOF
7668 #define HAVE_GETOPT_LONG 1
7669 _ACEOF
7670
7671   ctlibs_base="$ctlibs_base -lgetopt"
7672   LDFLAGS="$LDFLAGS -L../getopt"
7673
7674
7675 if test 1==1; then
7676   INCLUDED_GETOPT_LONG_TRUE=
7677   INCLUDED_GETOPT_LONG_FALSE='#'
7678 else
7679   INCLUDED_GETOPT_LONG_TRUE='#'
7680   INCLUDED_GETOPT_LONG_FALSE=
7681 fi
7682 fi
7683
7684 if test "${readline}" = "true" ; then
7685   ctlibs_base="$ctlibs_base -lreadline"
7686   if test "${ncurses}" = "true"; then
7687     ctlibs_base="$ctlibs_base -lncurses"
7688   elif test "${curses}" = "true"; then
7689     ctlibs_base="$ctlibs_base -lcurses"
7690   fi
7691 fi
7692
7693 echo "$as_me:$LINENO: checking debug" >&5
7694 echo $ECHO_N "checking debug... $ECHO_C" >&6
7695 # Check whether --enable-debug or --disable-debug was given.
7696 if test "${enable_debug+set}" = set; then
7697   enableval="$enable_debug"
7698   case "${enableval}" in
7699   yes) debug=true
7700        echo "$as_me:$LINENO: result: yes" >&5
7701 echo "${ECHO_T}yes" >&6
7702        ;;
7703   no)  debug=false
7704        echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6
7706        ;;
7707   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
7708 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
7709        ;;
7710 esac
7711 else
7712   debug=false; echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6
7714 fi;
7715
7716
7717 if test "$debug" = "true"; then
7718   DEBUG_TRUE=
7719   DEBUG_FALSE='#'
7720 else
7721   DEBUG_TRUE='#'
7722   DEBUG_FALSE=
7723 fi
7724
7725 if test "$datadir" != "" ; then
7726   CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
7727 fi
7728
7729 if test "$debug" = "true" ; then
7730   CFLAGS="$CFLAGS -g -DDEBUG"
7731
7732 cat >>confdefs.h <<\_ACEOF
7733 #define DEBUG 1
7734 _ACEOF
7735
7736 else
7737   CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
7738
7739 cat >>confdefs.h <<\_ACEOF
7740 #define NDEBUG 1
7741 _ACEOF
7742
7743 fi
7744
7745 if test "${pthread}" = "true" ; then
7746
7747 cat >>confdefs.h <<\_ACEOF
7748 #define HAVE_WXTHREADS 1
7749 _ACEOF
7750
7751 fi
7752
7753 echo "$as_me:$LINENO: checking sstream" >&5
7754 echo $ECHO_N "checking sstream... $ECHO_C" >&6
7755  if  test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
7756      test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
7757      test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
7758
7759 cat >>confdefs.h <<\_ACEOF
7760 #define HAVE_SSTREAM 1
7761 _ACEOF
7762
7763    echo "$as_me:$LINENO: result: yes" >&5
7764 echo "${ECHO_T}yes" >&6
7765   else
7766    echo "$as_me:$LINENO: result: no" >&5
7767 echo "${ECHO_T}no" >&6
7768  fi
7769
7770
7771 CFLAGS="$CFLAGS -Wall"
7772 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
7773 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
7774 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
7775 if test "${enable_verbose_warnings+set}" = set; then
7776   enableval="$enable_verbose_warnings"
7777    case "$enableval" in
7778   yes)
7779     echo "$as_me:$LINENO: result: yes" >&5
7780 echo "${ECHO_T}yes" >&6
7781     CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
7782     ;;
7783   *)
7784     echo "$as_me:$LINENO: result: no" >&5
7785 echo "${ECHO_T}no" >&6
7786     ;;
7787   esac
7788 else
7789   echo "$as_me:$LINENO: result: no" >&5
7790 echo "${ECHO_T}no" >&6
7791
7792 fi;
7793
7794 echo "$as_me:$LINENO: checking static executables" >&5
7795 echo $ECHO_N "checking static executables... $ECHO_C" >&6
7796 # Check whether --enable-static or --disable-static was given.
7797 if test "${enable_static+set}" = set; then
7798   enableval="$enable_static"
7799    case "$enableval" in
7800   yes)
7801     echo "$as_me:$LINENO: result: yes" >&5
7802 echo "${ECHO_T}yes" >&6
7803     CFLAGS="$CFLAGS --static"
7804     ;;
7805   *)
7806     echo "$as_me:$LINENO: result: no" >&5
7807 echo "${ECHO_T}no" >&6
7808     ;;
7809   esac
7810 else
7811   echo "$as_me:$LINENO: result: no" >&5
7812 echo "${ECHO_T}no" >&6
7813
7814 fi;
7815
7816
7817 # Check whether --with-lam or --without-lam was given.
7818 if test "${with_lam+set}" = set; then
7819   withval="$with_lam"
7820       if test "$withval" != "no" ; then
7821          trylamdir=$withval
7822      fi
7823
7824 fi;
7825
7826 if test "$withval" != "no" ; then
7827   if test "$prefix" != "NONE" ; then
7828      trylamdir="$trylamdir $prefix"
7829   fi
7830
7831   echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
7832 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
7833   for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
7834     if test -x "$testlamdir/bin/hcp" ; then
7835       if test "$testlamdir" != "/usr"; then
7836         LDFLAGS="$LDFLAGS -L$testlamdir/lib"
7837         CFLAGS="$CFLAGS -I$testlamdir/include"
7838       fi
7839       CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
7840       lamdir="$testlamdir"
7841
7842       mpienable="true"
7843
7844       break
7845     fi
7846   done
7847   echo "$as_me:$LINENO: result: $lamdir" >&5
7848 echo "${ECHO_T}$lamdir" >&6
7849 else
7850   echo "$as_me:$LINENO: result: no" >&5
7851 echo "${ECHO_T}no" >&6
7852 fi
7853
7854
7855
7856 # Check whether --with-ctn or --without-ctn was given.
7857 if test "${with_ctn+set}" = set; then
7858   withval="$with_ctn"
7859       if test "$withval" != "no" ; then
7860          tryctndir=$withval
7861      fi
7862
7863 fi;
7864
7865 if test "$withval" == "no" -o "$withval" == "NONE" ; then
7866   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7867 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7868   echo "$as_me:$LINENO: result: disabled" >&5
7869 echo "${ECHO_T}disabled" >&6
7870 else
7871   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7872 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7873   for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
7874     if test -f "$testctndir/libctn.a" ; then
7875       LDFLAGS="$LDFLAGS -L$testctndir"
7876       ctnlib="true"
7877       break
7878     fi
7879   done
7880   for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
7881     if test -f "$testctndir/ctn_os.h" ; then
7882       CFLAGS="$CFLAGS -I$testctndir"
7883       ctninclude="true"
7884       break
7885     fi
7886   done
7887   if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
7888       ctn="true"
7889
7890 cat >>confdefs.h <<\_ACEOF
7891 #define HAVE_CTN_DICOM 1
7892 _ACEOF
7893
7894       echo "$as_me:$LINENO: result: yes" >&5
7895 echo "${ECHO_T}yes" >&6
7896   else
7897     echo "$as_me:$LINENO: result: no" >&5
7898 echo "${ECHO_T}no" >&6
7899   fi
7900 fi
7901
7902 echo "$as_me:$LINENO: checking for CPU specification" >&5
7903 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6
7904
7905 # Check whether --with-mcpu or --without-mcpu was given.
7906 if test "${with_mcpu+set}" = set; then
7907   withval="$with_mcpu"
7908
7909 fi;
7910
7911 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
7912   echo "$as_me:$LINENO: result: no" >&5
7913 echo "${ECHO_T}no" >&6
7914 else
7915   echo "$as_me:$LINENO: result: $withval" >&5
7916 echo "${ECHO_T}$withval" >&6
7917   CFLAGS="$CFLAGS -mcpu=$withval"
7918 fi
7919
7920 echo "$as_me:$LINENO: checking for web access" >&5
7921 echo $ECHO_N "checking for web access... $ECHO_C" >&6
7922
7923 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
7924 if test "${with_cgibin_dir+set}" = set; then
7925   withval="$with_cgibin_dir"
7926    cgibindir=$withval ;
7927 fi;
7928
7929
7930 # Check whether --with-cgibin-url or --without-cgibin-url was given.
7931 if test "${with_cgibin_url+set}" = set; then
7932   withval="$with_cgibin_url"
7933    cgibinurl=$withval ;
7934 fi;
7935
7936
7937 # Check whether --with-webdata-dir or --without-webdata-dir was given.
7938 if test "${with_webdata_dir+set}" = set; then
7939   withval="$with_webdata_dir"
7940    webdatadir=$withval ;
7941 fi;
7942
7943
7944 # Check whether --with-webdata-url or --without-webdata-url was given.
7945 if test "${with_webdata_url+set}" = set; then
7946   withval="$with_webdata_url"
7947    webdataurl=$withval ;
7948 fi;
7949
7950
7951 # Check whether --with-html-dir or --without-html-dir was given.
7952 if test "${with_html_dir+set}" = set; then
7953   withval="$with_html_dir"
7954    htmldir=$withval ;
7955 fi;
7956
7957 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
7958   cgiprograms="ctsim.cgi ctsim.conf"
7959
7960 fi
7961
7962 if test -n "$htmldir" ; then
7963   htmldata=simulate.html
7964
7965 fi
7966
7967
7968 if test -n "$htmldir"; then
7969   USE_HTML_TRUE=
7970   USE_HTML_FALSE='#'
7971 else
7972   USE_HTML_TRUE='#'
7973   USE_HTML_FALSE=
7974 fi
7975
7976 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
7977   webenabled=true
7978
7979   echo "$as_me:$LINENO: result: yes" >&5
7980 echo "${ECHO_T}yes" >&6
7981   if test -z "$cgibindir" ; then
7982     { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
7983 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
7984    { (exit 1); exit 1; }; }
7985   elif test -z "$cgibinurl" ; then
7986     { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
7987 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
7988    { (exit 1); exit 1; }; }
7989   elif test -z "$webdatadir" ; then
7990     { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
7991 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
7992    { (exit 1); exit 1; }; }
7993   elif test -z "$webdataurl" ; then
7994     { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
7995 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
7996    { (exit 1); exit 1; }; }
7997   elif test -z "$htmldir" ; then
7998     { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
7999 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
8000    { (exit 1); exit 1; }; }
8001   fi
8002 else
8003   echo "$as_me:$LINENO: result: no" >&5
8004 echo "${ECHO_T}no" >&6
8005 fi
8006
8007
8008
8009 if test -n "$lamdir"; then
8010   USE_LAM_TRUE=
8011   USE_LAM_FALSE='#'
8012 else
8013   USE_LAM_TRUE='#'
8014   USE_LAM_FALSE=
8015 fi
8016
8017
8018 echo "$as_me:$LINENO: checking for X" >&5
8019 echo $ECHO_N "checking for X... $ECHO_C" >&6
8020
8021
8022 # Check whether --with-x or --without-x was given.
8023 if test "${with_x+set}" = set; then
8024   withval="$with_x"
8025
8026 fi;
8027 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8028 if test "x$with_x" = xno; then
8029   # The user explicitly disabled X.
8030   have_x=disabled
8031 else
8032   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8033     # Both variables are already set.
8034     have_x=yes
8035   else
8036     if test "${ac_cv_have_x+set}" = set; then
8037   echo $ECHO_N "(cached) $ECHO_C" >&6
8038 else
8039   # One or both of the vars are not set, and there is no cached value.
8040 ac_x_includes=no ac_x_libraries=no
8041 rm -fr conftest.dir
8042 if mkdir conftest.dir; then
8043   cd conftest.dir
8044   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8045   cat >Imakefile <<'_ACEOF'
8046 acfindx:
8047         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8048 _ACEOF
8049   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8050     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8051     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8052     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8053     for ac_extension in a so sl; do
8054       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8055          test -f $ac_im_libdir/libX11.$ac_extension; then
8056         ac_im_usrlibdir=$ac_im_libdir; break
8057       fi
8058     done
8059     # Screen out bogus values from the imake configuration.  They are
8060     # bogus both because they are the default anyway, and because
8061     # using them would break gcc on systems where it needs fixed includes.
8062     case $ac_im_incroot in
8063         /usr/include) ;;
8064         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8065     esac
8066     case $ac_im_usrlibdir in
8067         /usr/lib | /lib) ;;
8068         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8069     esac
8070   fi
8071   cd ..
8072   rm -fr conftest.dir
8073 fi
8074
8075 # Standard set of common directories for X headers.
8076 # Check X11 before X11Rn because it is often a symlink to the current release.
8077 ac_x_header_dirs='
8078 /usr/X11/include
8079 /usr/X11R6/include
8080 /usr/X11R5/include
8081 /usr/X11R4/include
8082
8083 /usr/include/X11
8084 /usr/include/X11R6
8085 /usr/include/X11R5
8086 /usr/include/X11R4
8087
8088 /usr/local/X11/include
8089 /usr/local/X11R6/include
8090 /usr/local/X11R5/include
8091 /usr/local/X11R4/include
8092
8093 /usr/local/include/X11
8094 /usr/local/include/X11R6
8095 /usr/local/include/X11R5
8096 /usr/local/include/X11R4
8097
8098 /usr/X386/include
8099 /usr/x386/include
8100 /usr/XFree86/include/X11
8101
8102 /usr/include
8103 /usr/local/include
8104 /usr/unsupported/include
8105 /usr/athena/include
8106 /usr/local/x11r5/include
8107 /usr/lpp/Xamples/include
8108
8109 /usr/openwin/include
8110 /usr/openwin/share/include'
8111
8112 if test "$ac_x_includes" = no; then
8113   # Guess where to find include files, by looking for Intrinsic.h.
8114   # First, try using that file with no special directory specified.
8115   cat >conftest.$ac_ext <<_ACEOF
8116 #line $LINENO "configure"
8117 /* confdefs.h.  */
8118 _ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h.  */
8122 #include <X11/Intrinsic.h>
8123 _ACEOF
8124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8126   ac_status=$?
8127   grep -v '^ *+' conftest.er1 >conftest.err
8128   rm -f conftest.er1
8129   cat conftest.err >&5
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); } >/dev/null; then
8132   if test -s conftest.err; then
8133     ac_cpp_err=$ac_c_preproc_warn_flag
8134   else
8135     ac_cpp_err=
8136   fi
8137 else
8138   ac_cpp_err=yes
8139 fi
8140 if test -z "$ac_cpp_err"; then
8141   # We can compile using X headers with no special include directory.
8142 ac_x_includes=
8143 else
8144   echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8146
8147   for ac_dir in $ac_x_header_dirs; do
8148   if test -r "$ac_dir/X11/Intrinsic.h"; then
8149     ac_x_includes=$ac_dir
8150     break
8151   fi
8152 done
8153 fi
8154 rm -f conftest.err conftest.$ac_ext
8155 fi # $ac_x_includes = no
8156
8157 if test "$ac_x_libraries" = no; then
8158   # Check for the libraries.
8159   # See if we find them without any special options.
8160   # Don't add to $LIBS permanently.
8161   ac_save_LIBS=$LIBS
8162   LIBS="-lXt $LIBS"
8163   cat >conftest.$ac_ext <<_ACEOF
8164 #line $LINENO "configure"
8165 /* confdefs.h.  */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h.  */
8170 #include <X11/Intrinsic.h>
8171 int
8172 main ()
8173 {
8174 XtMalloc (0)
8175   ;
8176   return 0;
8177 }
8178 _ACEOF
8179 rm -f conftest.$ac_objext conftest$ac_exeext
8180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8181   (eval $ac_link) 2>&5
8182   ac_status=$?
8183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184   (exit $ac_status); } &&
8185          { ac_try='test -s conftest$ac_exeext'
8186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187   (eval $ac_try) 2>&5
8188   ac_status=$?
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); }; }; then
8191   LIBS=$ac_save_LIBS
8192 # We can link X programs with no special library path.
8193 ac_x_libraries=
8194 else
8195   echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198 LIBS=$ac_save_LIBS
8199 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8200 do
8201   # Don't even attempt the hair of trying to link an X program!
8202   for ac_extension in a so sl; do
8203     if test -r $ac_dir/libXt.$ac_extension; then
8204       ac_x_libraries=$ac_dir
8205       break 2
8206     fi
8207   done
8208 done
8209 fi
8210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8211 fi # $ac_x_libraries = no
8212
8213 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8214   # Didn't find X anywhere.  Cache the known absence of X.
8215   ac_cv_have_x="have_x=no"
8216 else
8217   # Record where we found X for the cache.
8218   ac_cv_have_x="have_x=yes \
8219                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8220 fi
8221 fi
8222
8223   fi
8224   eval "$ac_cv_have_x"
8225 fi # $with_x != no
8226
8227 if test "$have_x" != yes; then
8228   echo "$as_me:$LINENO: result: $have_x" >&5
8229 echo "${ECHO_T}$have_x" >&6
8230   no_x=yes
8231 else
8232   # If each of the values was on the command line, it overrides each guess.
8233   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8234   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8235   # Update the cache value to reflect the command line values.
8236   ac_cv_have_x="have_x=yes \
8237                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8238   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8239 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8240 fi
8241
8242 if test "$no_x" = yes; then
8243   # Not all programs may use this symbol, but it does not hurt to define it.
8244
8245 cat >>confdefs.h <<\_ACEOF
8246 #define X_DISPLAY_MISSING 1
8247 _ACEOF
8248
8249   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8250 else
8251   if test -n "$x_includes"; then
8252     X_CFLAGS="$X_CFLAGS -I$x_includes"
8253   fi
8254
8255   # It would also be nice to do this for all -L options, not just this one.
8256   if test -n "$x_libraries"; then
8257     X_LIBS="$X_LIBS -L$x_libraries"
8258     # For Solaris; some versions of Sun CC require a space after -R and
8259     # others require no space.  Words are not sufficient . . . .
8260     case `(uname -sr) 2>/dev/null` in
8261     "SunOS 5"*)
8262       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8263 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8264       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8265       cat >conftest.$ac_ext <<_ACEOF
8266 #line $LINENO "configure"
8267 /* confdefs.h.  */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h.  */
8272
8273 int
8274 main ()
8275 {
8276
8277   ;
8278   return 0;
8279 }
8280 _ACEOF
8281 rm -f conftest.$ac_objext conftest$ac_exeext
8282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8283   (eval $ac_link) 2>&5
8284   ac_status=$?
8285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286   (exit $ac_status); } &&
8287          { ac_try='test -s conftest$ac_exeext'
8288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289   (eval $ac_try) 2>&5
8290   ac_status=$?
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); }; }; then
8293   ac_R_nospace=yes
8294 else
8295   echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8297
8298 ac_R_nospace=no
8299 fi
8300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8301       if test $ac_R_nospace = yes; then
8302         echo "$as_me:$LINENO: result: no" >&5
8303 echo "${ECHO_T}no" >&6
8304         X_LIBS="$X_LIBS -R$x_libraries"
8305       else
8306         LIBS="$ac_xsave_LIBS -R $x_libraries"
8307         cat >conftest.$ac_ext <<_ACEOF
8308 #line $LINENO "configure"
8309 /* confdefs.h.  */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h.  */
8314
8315 int
8316 main ()
8317 {
8318
8319   ;
8320   return 0;
8321 }
8322 _ACEOF
8323 rm -f conftest.$ac_objext conftest$ac_exeext
8324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8325   (eval $ac_link) 2>&5
8326   ac_status=$?
8327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328   (exit $ac_status); } &&
8329          { ac_try='test -s conftest$ac_exeext'
8330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331   (eval $ac_try) 2>&5
8332   ac_status=$?
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); }; }; then
8335   ac_R_space=yes
8336 else
8337   echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8339
8340 ac_R_space=no
8341 fi
8342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8343         if test $ac_R_space = yes; then
8344           echo "$as_me:$LINENO: result: yes" >&5
8345 echo "${ECHO_T}yes" >&6
8346           X_LIBS="$X_LIBS -R $x_libraries"
8347         else
8348           echo "$as_me:$LINENO: result: neither works" >&5
8349 echo "${ECHO_T}neither works" >&6
8350         fi
8351       fi
8352       LIBS=$ac_xsave_LIBS
8353     esac
8354   fi
8355
8356   # Check for system-dependent libraries X programs must link with.
8357   # Do this before checking for the system-independent R6 libraries
8358   # (-lICE), since we may need -lsocket or whatever for X linking.
8359
8360   if test "$ISC" = yes; then
8361     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8362   else
8363     # Martyn Johnson says this is needed for Ultrix, if the X
8364     # libraries were built with DECnet support.  And Karl Berry says
8365     # the Alpha needs dnet_stub (dnet does not exist).
8366     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8367     cat >conftest.$ac_ext <<_ACEOF
8368 #line $LINENO "configure"
8369 /* confdefs.h.  */
8370 _ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h.  */
8374
8375 /* Override any gcc2 internal prototype to avoid an error.  */
8376 #ifdef __cplusplus
8377 extern "C"
8378 #endif
8379 /* We use char because int might match the return type of a gcc2
8380    builtin and then its argument prototype would still apply.  */
8381 char XOpenDisplay ();
8382 int
8383 main ()
8384 {
8385 XOpenDisplay ();
8386   ;
8387   return 0;
8388 }
8389 _ACEOF
8390 rm -f conftest.$ac_objext conftest$ac_exeext
8391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8392   (eval $ac_link) 2>&5
8393   ac_status=$?
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); } &&
8396          { ac_try='test -s conftest$ac_exeext'
8397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398   (eval $ac_try) 2>&5
8399   ac_status=$?
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); }; }; then
8402   :
8403 else
8404   echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8406
8407 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8408 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8409 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8410   echo $ECHO_N "(cached) $ECHO_C" >&6
8411 else
8412   ac_check_lib_save_LIBS=$LIBS
8413 LIBS="-ldnet  $LIBS"
8414 cat >conftest.$ac_ext <<_ACEOF
8415 #line $LINENO "configure"
8416 /* confdefs.h.  */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h.  */
8421
8422 /* Override any gcc2 internal prototype to avoid an error.  */
8423 #ifdef __cplusplus
8424 extern "C"
8425 #endif
8426 /* We use char because int might match the return type of a gcc2
8427    builtin and then its argument prototype would still apply.  */
8428 char dnet_ntoa ();
8429 int
8430 main ()
8431 {
8432 dnet_ntoa ();
8433   ;
8434   return 0;
8435 }
8436 _ACEOF
8437 rm -f conftest.$ac_objext conftest$ac_exeext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8439   (eval $ac_link) 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); } &&
8443          { ac_try='test -s conftest$ac_exeext'
8444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445   (eval $ac_try) 2>&5
8446   ac_status=$?
8447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); }; }; then
8449   ac_cv_lib_dnet_dnet_ntoa=yes
8450 else
8451   echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8453
8454 ac_cv_lib_dnet_dnet_ntoa=no
8455 fi
8456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8457 LIBS=$ac_check_lib_save_LIBS
8458 fi
8459 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8460 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8461 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8462   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8463 fi
8464
8465     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8466       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8467 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8468 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8469   echo $ECHO_N "(cached) $ECHO_C" >&6
8470 else
8471   ac_check_lib_save_LIBS=$LIBS
8472 LIBS="-ldnet_stub  $LIBS"
8473 cat >conftest.$ac_ext <<_ACEOF
8474 #line $LINENO "configure"
8475 /* confdefs.h.  */
8476 _ACEOF
8477 cat confdefs.h >>conftest.$ac_ext
8478 cat >>conftest.$ac_ext <<_ACEOF
8479 /* end confdefs.h.  */
8480
8481 /* Override any gcc2 internal prototype to avoid an error.  */
8482 #ifdef __cplusplus
8483 extern "C"
8484 #endif
8485 /* We use char because int might match the return type of a gcc2
8486    builtin and then its argument prototype would still apply.  */
8487 char dnet_ntoa ();
8488 int
8489 main ()
8490 {
8491 dnet_ntoa ();
8492   ;
8493   return 0;
8494 }
8495 _ACEOF
8496 rm -f conftest.$ac_objext conftest$ac_exeext
8497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8498   (eval $ac_link) 2>&5
8499   ac_status=$?
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); } &&
8502          { ac_try='test -s conftest$ac_exeext'
8503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504   (eval $ac_try) 2>&5
8505   ac_status=$?
8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507   (exit $ac_status); }; }; then
8508   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8509 else
8510   echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.$ac_ext >&5
8512
8513 ac_cv_lib_dnet_stub_dnet_ntoa=no
8514 fi
8515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8516 LIBS=$ac_check_lib_save_LIBS
8517 fi
8518 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8519 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8520 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8521   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8522 fi
8523
8524     fi
8525 fi
8526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8527     LIBS="$ac_xsave_LIBS"
8528
8529     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8530     # to get the SysV transport functions.
8531     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8532     # needs -lnsl.
8533     # The nsl library prevents programs from opening the X display
8534     # on Irix 5.2, according to T.E. Dickey.
8535     # The functions gethostbyname, getservbyname, and inet_addr are
8536     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8537     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8538 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8539 if test "${ac_cv_func_gethostbyname+set}" = set; then
8540   echo $ECHO_N "(cached) $ECHO_C" >&6
8541 else
8542   cat >conftest.$ac_ext <<_ACEOF
8543 #line $LINENO "configure"
8544 /* confdefs.h.  */
8545 _ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h.  */
8549 /* System header to define __stub macros and hopefully few prototypes,
8550     which can conflict with char gethostbyname (); below.
8551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8552     <limits.h> exists even on freestanding compilers.  */
8553 #ifdef __STDC__
8554 # include <limits.h>
8555 #else
8556 # include <assert.h>
8557 #endif
8558 /* Override any gcc2 internal prototype to avoid an error.  */
8559 #ifdef __cplusplus
8560 extern "C"
8561 {
8562 #endif
8563 /* We use char because int might match the return type of a gcc2
8564    builtin and then its argument prototype would still apply.  */
8565 char gethostbyname ();
8566 /* The GNU C library defines this for functions which it implements
8567     to always fail with ENOSYS.  Some functions are actually named
8568     something starting with __ and the normal name is an alias.  */
8569 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8570 choke me
8571 #else
8572 char (*f) () = gethostbyname;
8573 #endif
8574 #ifdef __cplusplus
8575 }
8576 #endif
8577
8578 int
8579 main ()
8580 {
8581 return f != gethostbyname;
8582   ;
8583   return 0;
8584 }
8585 _ACEOF
8586 rm -f conftest.$ac_objext conftest$ac_exeext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8588   (eval $ac_link) 2>&5
8589   ac_status=$?
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); } &&
8592          { ac_try='test -s conftest$ac_exeext'
8593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594   (eval $ac_try) 2>&5
8595   ac_status=$?
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); }; }; then
8598   ac_cv_func_gethostbyname=yes
8599 else
8600   echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8602
8603 ac_cv_func_gethostbyname=no
8604 fi
8605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8606 fi
8607 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8608 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8609
8610     if test $ac_cv_func_gethostbyname = no; then
8611       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8612 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8613 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8614   echo $ECHO_N "(cached) $ECHO_C" >&6
8615 else
8616   ac_check_lib_save_LIBS=$LIBS
8617 LIBS="-lnsl  $LIBS"
8618 cat >conftest.$ac_ext <<_ACEOF
8619 #line $LINENO "configure"
8620 /* confdefs.h.  */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h.  */
8625
8626 /* Override any gcc2 internal prototype to avoid an error.  */
8627 #ifdef __cplusplus
8628 extern "C"
8629 #endif
8630 /* We use char because int might match the return type of a gcc2
8631    builtin and then its argument prototype would still apply.  */
8632 char gethostbyname ();
8633 int
8634 main ()
8635 {
8636 gethostbyname ();
8637   ;
8638   return 0;
8639 }
8640 _ACEOF
8641 rm -f conftest.$ac_objext conftest$ac_exeext
8642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8643   (eval $ac_link) 2>&5
8644   ac_status=$?
8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646   (exit $ac_status); } &&
8647          { ac_try='test -s conftest$ac_exeext'
8648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649   (eval $ac_try) 2>&5
8650   ac_status=$?
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); }; }; then
8653   ac_cv_lib_nsl_gethostbyname=yes
8654 else
8655   echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8657
8658 ac_cv_lib_nsl_gethostbyname=no
8659 fi
8660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8661 LIBS=$ac_check_lib_save_LIBS
8662 fi
8663 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8664 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8665 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8666   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8667 fi
8668
8669       if test $ac_cv_lib_nsl_gethostbyname = no; then
8670         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8671 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8672 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8673   echo $ECHO_N "(cached) $ECHO_C" >&6
8674 else
8675   ac_check_lib_save_LIBS=$LIBS
8676 LIBS="-lbsd  $LIBS"
8677 cat >conftest.$ac_ext <<_ACEOF
8678 #line $LINENO "configure"
8679 /* confdefs.h.  */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h.  */
8684
8685 /* Override any gcc2 internal prototype to avoid an error.  */
8686 #ifdef __cplusplus
8687 extern "C"
8688 #endif
8689 /* We use char because int might match the return type of a gcc2
8690    builtin and then its argument prototype would still apply.  */
8691 char gethostbyname ();
8692 int
8693 main ()
8694 {
8695 gethostbyname ();
8696   ;
8697   return 0;
8698 }
8699 _ACEOF
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702   (eval $ac_link) 2>&5
8703   ac_status=$?
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); } &&
8706          { ac_try='test -s conftest$ac_exeext'
8707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708   (eval $ac_try) 2>&5
8709   ac_status=$?
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); }; }; then
8712   ac_cv_lib_bsd_gethostbyname=yes
8713 else
8714   echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8716
8717 ac_cv_lib_bsd_gethostbyname=no
8718 fi
8719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8720 LIBS=$ac_check_lib_save_LIBS
8721 fi
8722 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8723 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8724 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8725   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8726 fi
8727
8728       fi
8729     fi
8730
8731     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8732     # socket/setsockopt and other routines are undefined under SCO ODT
8733     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8734     # on later versions), says Simon Leinen: it contains gethostby*
8735     # variants that don't use the name server (or something).  -lsocket
8736     # must be given before -lnsl if both are needed.  We assume that
8737     # if connect needs -lnsl, so does gethostbyname.
8738     echo "$as_me:$LINENO: checking for connect" >&5
8739 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8740 if test "${ac_cv_func_connect+set}" = set; then
8741   echo $ECHO_N "(cached) $ECHO_C" >&6
8742 else
8743   cat >conftest.$ac_ext <<_ACEOF
8744 #line $LINENO "configure"
8745 /* confdefs.h.  */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h.  */
8750 /* System header to define __stub macros and hopefully few prototypes,
8751     which can conflict with char connect (); below.
8752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8753     <limits.h> exists even on freestanding compilers.  */
8754 #ifdef __STDC__
8755 # include <limits.h>
8756 #else
8757 # include <assert.h>
8758 #endif
8759 /* Override any gcc2 internal prototype to avoid an error.  */
8760 #ifdef __cplusplus
8761 extern "C"
8762 {
8763 #endif
8764 /* We use char because int might match the return type of a gcc2
8765    builtin and then its argument prototype would still apply.  */
8766 char connect ();
8767 /* The GNU C library defines this for functions which it implements
8768     to always fail with ENOSYS.  Some functions are actually named
8769     something starting with __ and the normal name is an alias.  */
8770 #if defined (__stub_connect) || defined (__stub___connect)
8771 choke me
8772 #else
8773 char (*f) () = connect;
8774 #endif
8775 #ifdef __cplusplus
8776 }
8777 #endif
8778
8779 int
8780 main ()
8781 {
8782 return f != connect;
8783   ;
8784   return 0;
8785 }
8786 _ACEOF
8787 rm -f conftest.$ac_objext conftest$ac_exeext
8788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8789   (eval $ac_link) 2>&5
8790   ac_status=$?
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); } &&
8793          { ac_try='test -s conftest$ac_exeext'
8794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795   (eval $ac_try) 2>&5
8796   ac_status=$?
8797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); }; }; then
8799   ac_cv_func_connect=yes
8800 else
8801   echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8803
8804 ac_cv_func_connect=no
8805 fi
8806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8807 fi
8808 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8809 echo "${ECHO_T}$ac_cv_func_connect" >&6
8810
8811     if test $ac_cv_func_connect = no; then
8812       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8813 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8814 if test "${ac_cv_lib_socket_connect+set}" = set; then
8815   echo $ECHO_N "(cached) $ECHO_C" >&6
8816 else
8817   ac_check_lib_save_LIBS=$LIBS
8818 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8819 cat >conftest.$ac_ext <<_ACEOF
8820 #line $LINENO "configure"
8821 /* confdefs.h.  */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h.  */
8826
8827 /* Override any gcc2 internal prototype to avoid an error.  */
8828 #ifdef __cplusplus
8829 extern "C"
8830 #endif
8831 /* We use char because int might match the return type of a gcc2
8832    builtin and then its argument prototype would still apply.  */
8833 char connect ();
8834 int
8835 main ()
8836 {
8837 connect ();
8838   ;
8839   return 0;
8840 }
8841 _ACEOF
8842 rm -f conftest.$ac_objext conftest$ac_exeext
8843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8844   (eval $ac_link) 2>&5
8845   ac_status=$?
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); } &&
8848          { ac_try='test -s conftest$ac_exeext'
8849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850   (eval $ac_try) 2>&5
8851   ac_status=$?
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); }; }; then
8854   ac_cv_lib_socket_connect=yes
8855 else
8856   echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8858
8859 ac_cv_lib_socket_connect=no
8860 fi
8861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8862 LIBS=$ac_check_lib_save_LIBS
8863 fi
8864 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8865 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8866 if test $ac_cv_lib_socket_connect = yes; then
8867   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8868 fi
8869
8870     fi
8871
8872     # Guillermo Gomez says -lposix is necessary on A/UX.
8873     echo "$as_me:$LINENO: checking for remove" >&5
8874 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8875 if test "${ac_cv_func_remove+set}" = set; then
8876   echo $ECHO_N "(cached) $ECHO_C" >&6
8877 else
8878   cat >conftest.$ac_ext <<_ACEOF
8879 #line $LINENO "configure"
8880 /* confdefs.h.  */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h.  */
8885 /* System header to define __stub macros and hopefully few prototypes,
8886     which can conflict with char remove (); below.
8887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8888     <limits.h> exists even on freestanding compilers.  */
8889 #ifdef __STDC__
8890 # include <limits.h>
8891 #else
8892 # include <assert.h>
8893 #endif
8894 /* Override any gcc2 internal prototype to avoid an error.  */
8895 #ifdef __cplusplus
8896 extern "C"
8897 {
8898 #endif
8899 /* We use char because int might match the return type of a gcc2
8900    builtin and then its argument prototype would still apply.  */
8901 char remove ();
8902 /* The GNU C library defines this for functions which it implements
8903     to always fail with ENOSYS.  Some functions are actually named
8904     something starting with __ and the normal name is an alias.  */
8905 #if defined (__stub_remove) || defined (__stub___remove)
8906 choke me
8907 #else
8908 char (*f) () = remove;
8909 #endif
8910 #ifdef __cplusplus
8911 }
8912 #endif
8913
8914 int
8915 main ()
8916 {
8917 return f != remove;
8918   ;
8919   return 0;
8920 }
8921 _ACEOF
8922 rm -f conftest.$ac_objext conftest$ac_exeext
8923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8924   (eval $ac_link) 2>&5
8925   ac_status=$?
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); } &&
8928          { ac_try='test -s conftest$ac_exeext'
8929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930   (eval $ac_try) 2>&5
8931   ac_status=$?
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); }; }; then
8934   ac_cv_func_remove=yes
8935 else
8936   echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8938
8939 ac_cv_func_remove=no
8940 fi
8941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8942 fi
8943 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8944 echo "${ECHO_T}$ac_cv_func_remove" >&6
8945
8946     if test $ac_cv_func_remove = no; then
8947       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8948 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8949 if test "${ac_cv_lib_posix_remove+set}" = set; then
8950   echo $ECHO_N "(cached) $ECHO_C" >&6
8951 else
8952   ac_check_lib_save_LIBS=$LIBS
8953 LIBS="-lposix  $LIBS"
8954 cat >conftest.$ac_ext <<_ACEOF
8955 #line $LINENO "configure"
8956 /* confdefs.h.  */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h.  */
8961
8962 /* Override any gcc2 internal prototype to avoid an error.  */
8963 #ifdef __cplusplus
8964 extern "C"
8965 #endif
8966 /* We use char because int might match the return type of a gcc2
8967    builtin and then its argument prototype would still apply.  */
8968 char remove ();
8969 int
8970 main ()
8971 {
8972 remove ();
8973   ;
8974   return 0;
8975 }
8976 _ACEOF
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8979   (eval $ac_link) 2>&5
8980   ac_status=$?
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); } &&
8983          { ac_try='test -s conftest$ac_exeext'
8984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985   (eval $ac_try) 2>&5
8986   ac_status=$?
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); }; }; then
8989   ac_cv_lib_posix_remove=yes
8990 else
8991   echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8993
8994 ac_cv_lib_posix_remove=no
8995 fi
8996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8997 LIBS=$ac_check_lib_save_LIBS
8998 fi
8999 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9000 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9001 if test $ac_cv_lib_posix_remove = yes; then
9002   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9003 fi
9004
9005     fi
9006
9007     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9008     echo "$as_me:$LINENO: checking for shmat" >&5
9009 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9010 if test "${ac_cv_func_shmat+set}" = set; then
9011   echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013   cat >conftest.$ac_ext <<_ACEOF
9014 #line $LINENO "configure"
9015 /* confdefs.h.  */
9016 _ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h.  */
9020 /* System header to define __stub macros and hopefully few prototypes,
9021     which can conflict with char shmat (); below.
9022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9023     <limits.h> exists even on freestanding compilers.  */
9024 #ifdef __STDC__
9025 # include <limits.h>
9026 #else
9027 # include <assert.h>
9028 #endif
9029 /* Override any gcc2 internal prototype to avoid an error.  */
9030 #ifdef __cplusplus
9031 extern "C"
9032 {
9033 #endif
9034 /* We use char because int might match the return type of a gcc2
9035    builtin and then its argument prototype would still apply.  */
9036 char shmat ();
9037 /* The GNU C library defines this for functions which it implements
9038     to always fail with ENOSYS.  Some functions are actually named
9039     something starting with __ and the normal name is an alias.  */
9040 #if defined (__stub_shmat) || defined (__stub___shmat)
9041 choke me
9042 #else
9043 char (*f) () = shmat;
9044 #endif
9045 #ifdef __cplusplus
9046 }
9047 #endif
9048
9049 int
9050 main ()
9051 {
9052 return f != shmat;
9053   ;
9054   return 0;
9055 }
9056 _ACEOF
9057 rm -f conftest.$ac_objext conftest$ac_exeext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9059   (eval $ac_link) 2>&5
9060   ac_status=$?
9061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062   (exit $ac_status); } &&
9063          { ac_try='test -s conftest$ac_exeext'
9064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065   (eval $ac_try) 2>&5
9066   ac_status=$?
9067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   (exit $ac_status); }; }; then
9069   ac_cv_func_shmat=yes
9070 else
9071   echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9073
9074 ac_cv_func_shmat=no
9075 fi
9076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9077 fi
9078 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9079 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9080
9081     if test $ac_cv_func_shmat = no; then
9082       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9083 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9084 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9085   echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087   ac_check_lib_save_LIBS=$LIBS
9088 LIBS="-lipc  $LIBS"
9089 cat >conftest.$ac_ext <<_ACEOF
9090 #line $LINENO "configure"
9091 /* confdefs.h.  */
9092 _ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h.  */
9096
9097 /* Override any gcc2 internal prototype to avoid an error.  */
9098 #ifdef __cplusplus
9099 extern "C"
9100 #endif
9101 /* We use char because int might match the return type of a gcc2
9102    builtin and then its argument prototype would still apply.  */
9103 char shmat ();
9104 int
9105 main ()
9106 {
9107 shmat ();
9108   ;
9109   return 0;
9110 }
9111 _ACEOF
9112 rm -f conftest.$ac_objext conftest$ac_exeext
9113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9114   (eval $ac_link) 2>&5
9115   ac_status=$?
9116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117   (exit $ac_status); } &&
9118          { ac_try='test -s conftest$ac_exeext'
9119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120   (eval $ac_try) 2>&5
9121   ac_status=$?
9122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123   (exit $ac_status); }; }; then
9124   ac_cv_lib_ipc_shmat=yes
9125 else
9126   echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9128
9129 ac_cv_lib_ipc_shmat=no
9130 fi
9131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9132 LIBS=$ac_check_lib_save_LIBS
9133 fi
9134 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9135 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9136 if test $ac_cv_lib_ipc_shmat = yes; then
9137   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9138 fi
9139
9140     fi
9141   fi
9142
9143   # Check for libraries that X11R6 Xt/Xaw programs need.
9144   ac_save_LDFLAGS=$LDFLAGS
9145   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9146   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9147   # check for ICE first), but we must link in the order -lSM -lICE or
9148   # we get undefined symbols.  So assume we have SM if we have ICE.
9149   # These have to be linked with before -lX11, unlike the other
9150   # libraries we check for below, so use a different variable.
9151   # John Interrante, Karl Berry
9152   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9153 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9154 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9155   echo $ECHO_N "(cached) $ECHO_C" >&6
9156 else
9157   ac_check_lib_save_LIBS=$LIBS
9158 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9159 cat >conftest.$ac_ext <<_ACEOF
9160 #line $LINENO "configure"
9161 /* confdefs.h.  */
9162 _ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h.  */
9166
9167 /* Override any gcc2 internal prototype to avoid an error.  */
9168 #ifdef __cplusplus
9169 extern "C"
9170 #endif
9171 /* We use char because int might match the return type of a gcc2
9172    builtin and then its argument prototype would still apply.  */
9173 char IceConnectionNumber ();
9174 int
9175 main ()
9176 {
9177 IceConnectionNumber ();
9178   ;
9179   return 0;
9180 }
9181 _ACEOF
9182 rm -f conftest.$ac_objext conftest$ac_exeext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9184   (eval $ac_link) 2>&5
9185   ac_status=$?
9186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187   (exit $ac_status); } &&
9188          { ac_try='test -s conftest$ac_exeext'
9189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190   (eval $ac_try) 2>&5
9191   ac_status=$?
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); }; }; then
9194   ac_cv_lib_ICE_IceConnectionNumber=yes
9195 else
9196   echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9198
9199 ac_cv_lib_ICE_IceConnectionNumber=no
9200 fi
9201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9202 LIBS=$ac_check_lib_save_LIBS
9203 fi
9204 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9205 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9206 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9207   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9208 fi
9209
9210   LDFLAGS=$ac_save_LDFLAGS
9211
9212 fi
9213
9214
9215
9216
9217
9218
9219
9220
9221 X_TOOLKIT_LIBS="-lXt"
9222 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9223
9224 our_saved_LDFLAGS="$LDFLAGS"
9225 LDFLAGS="$X_LIBS $LDFLAGS"
9226 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9227 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9228 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9229   echo $ECHO_N "(cached) $ECHO_C" >&6
9230 else
9231   ac_check_lib_save_LIBS=$LIBS
9232 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9233 cat >conftest.$ac_ext <<_ACEOF
9234 #line $LINENO "configure"
9235 /* confdefs.h.  */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h.  */
9240
9241 /* Override any gcc2 internal prototype to avoid an error.  */
9242 #ifdef __cplusplus
9243 extern "C"
9244 #endif
9245 /* We use char because int might match the return type of a gcc2
9246    builtin and then its argument prototype would still apply.  */
9247 char XtToolkitThreadInitialize ();
9248 int
9249 main ()
9250 {
9251 XtToolkitThreadInitialize ();
9252   ;
9253   return 0;
9254 }
9255 _ACEOF
9256 rm -f conftest.$ac_objext conftest$ac_exeext
9257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9258   (eval $ac_link) 2>&5
9259   ac_status=$?
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); } &&
9262          { ac_try='test -s conftest$ac_exeext'
9263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264   (eval $ac_try) 2>&5
9265   ac_status=$?
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); }; }; then
9268   ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9269 else
9270   echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9272
9273 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9274 fi
9275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9276 LIBS=$ac_check_lib_save_LIBS
9277 fi
9278 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9279 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9280 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9281
9282 cat >>confdefs.h <<\_ACEOF
9283 #define X_THREAD_SUPPORT 1
9284 _ACEOF
9285
9286 fi
9287
9288 LDFLAGS="$our_saved_LDFLAGS"
9289
9290
9291
9292 if test "x$no_x" = "xyes"; then
9293   NO_X_TRUE=
9294   NO_X_FALSE='#'
9295 else
9296   NO_X_TRUE='#'
9297   NO_X_FALSE=
9298 fi
9299
9300 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9301
9302
9303 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9304
9305 echo "$as_me:$LINENO: checking for X" >&5
9306 echo $ECHO_N "checking for X... $ECHO_C" >&6
9307 if test "$no_x" != "yes" ; then
9308
9309 cat >>confdefs.h <<\_ACEOF
9310 #define HAVE_X11 1
9311 _ACEOF
9312
9313   LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
9314   my_includes="$my_includes -I/usr/X11R6/include"
9315   ctlib_graphics="$ctlibs_base -lctgraphics"
9316   echo "$as_me:$LINENO: result: yes" >&5
9317 echo "${ECHO_T}yes" >&6
9318   ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9319   if test "$libgl" = "true" ; then
9320     # Removed "-lglut" for Mac OS X compilation
9321     ctlib_graphics="$ctlib_graphics -lGL -lGLU"
9322     if test "$wxwin" = "true" ; then
9323       if  "$wx_gtk" ; then
9324         ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.4"
9325       elif  "$wx_mac" ; then
9326         ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
9327       fi
9328     fi
9329   fi
9330   if test "$wxwin" = "true" ; then
9331
9332 cat >>confdefs.h <<\_ACEOF
9333 #define HAVE_SGP 1
9334 _ACEOF
9335
9336
9337
9338 if test 1==1; then
9339   HAVE_SGP_TRUE=
9340   HAVE_SGP_FALSE='#'
9341 else
9342   HAVE_SGP_TRUE='#'
9343   HAVE_SGP_FALSE=
9344 fi
9345   fi
9346 else
9347   echo "$as_me:$LINENO: result: no" >&5
9348 echo "${ECHO_T}no" >&6
9349 fi
9350
9351 if test "$png" = "true" ; then
9352   ctlibs_tools="$ctlibs_tools -lpng"
9353 fi
9354 if test "$zlib" = "true" ; then
9355   ctlibs_tools="$ctlibs_tools -lz"
9356 fi
9357 if test "$fftw" = "true" ; then
9358   ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
9359 fi
9360 if test "$ctn" = "true"; then
9361   ctlibs_tools="$ctlibs_tools -lctn"
9362 fi
9363
9364 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9365 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9366 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9367   echo $ECHO_N "(cached) $ECHO_C" >&6
9368 else
9369   ac_check_lib_save_LIBS=$LIBS
9370 LIBS="-ldmallocxx  $LIBS"
9371 cat >conftest.$ac_ext <<_ACEOF
9372 #line $LINENO "configure"
9373 /* confdefs.h.  */
9374 _ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h.  */
9378
9379
9380 int
9381 main ()
9382 {
9383 main ();
9384   ;
9385   return 0;
9386 }
9387 _ACEOF
9388 rm -f conftest.$ac_objext conftest$ac_exeext
9389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9390   (eval $ac_link) 2>&5
9391   ac_status=$?
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); } &&
9394          { ac_try='test -s conftest$ac_exeext'
9395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396   (eval $ac_try) 2>&5
9397   ac_status=$?
9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); }; }; then
9400   ac_cv_lib_dmallocxx_main=yes
9401 else
9402   echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9404
9405 ac_cv_lib_dmallocxx_main=no
9406 fi
9407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9408 LIBS=$ac_check_lib_save_LIBS
9409 fi
9410 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9411 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9412 if test $ac_cv_lib_dmallocxx_main = yes; then
9413   dmallocxx=true
9414 else
9415   dmallocxx=false
9416 fi
9417
9418 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9419 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9420 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9421 if test "${enable_dmalloc+set}" = set; then
9422   enableval="$enable_dmalloc"
9423   case "${enableval}" in
9424   yes) usedmalloc=true
9425        echo "$as_me:$LINENO: result: yes" >&5
9426 echo "${ECHO_T}yes" >&6
9427        ;;
9428   no)  usedmalloc=false
9429        echo "$as_me:$LINENO: result: no" >&5
9430 echo "${ECHO_T}no" >&6
9431        ;;
9432   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9433 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9434        ;;
9435 esac
9436 else
9437   usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9438 echo "${ECHO_T}no" >&6
9439 fi;
9440
9441 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9442   ctlibs_tools="$ctlibs_tools -ldmallocxx"
9443
9444 cat >>confdefs.h <<\_ACEOF
9445 #define HAVE_DMALLOC 1
9446 _ACEOF
9447
9448   echo "$as_me:$LINENO: result: Using dmalloc" >&5
9449 echo "${ECHO_T}Using dmalloc" >&6
9450 fi
9451
9452 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9453 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9454 if test "${ac_cv_lib_efence_main+set}" = set; then
9455   echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457   ac_check_lib_save_LIBS=$LIBS
9458 LIBS="-lefence  $LIBS"
9459 cat >conftest.$ac_ext <<_ACEOF
9460 #line $LINENO "configure"
9461 /* confdefs.h.  */
9462 _ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h.  */
9466
9467
9468 int
9469 main ()
9470 {
9471 main ();
9472   ;
9473   return 0;
9474 }
9475 _ACEOF
9476 rm -f conftest.$ac_objext conftest$ac_exeext
9477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9478   (eval $ac_link) 2>&5
9479   ac_status=$?
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); } &&
9482          { ac_try='test -s conftest$ac_exeext'
9483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484   (eval $ac_try) 2>&5
9485   ac_status=$?
9486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487   (exit $ac_status); }; }; then
9488   ac_cv_lib_efence_main=yes
9489 else
9490   echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9492
9493 ac_cv_lib_efence_main=no
9494 fi
9495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9496 LIBS=$ac_check_lib_save_LIBS
9497 fi
9498 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9499 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9500 if test $ac_cv_lib_efence_main = yes; then
9501   efence=true
9502 else
9503   efence=false
9504 fi
9505
9506 echo "$as_me:$LINENO: checking for enable-efence" >&5
9507 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9508 # Check whether --enable-efence or --disable-efence was given.
9509 if test "${enable_efence+set}" = set; then
9510   enableval="$enable_efence"
9511   case "${enableval}" in
9512   yes) useefence=true
9513        echo "$as_me:$LINENO: result: yes" >&5
9514 echo "${ECHO_T}yes" >&6
9515        ;;
9516   no)  useefence=false
9517        echo "$as_me:$LINENO: result: no" >&5
9518 echo "${ECHO_T}no" >&6
9519        ;;
9520   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9521 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9522        ;;
9523 esac
9524 else
9525   useefence=false; echo "$as_me:$LINENO: result: no" >&5
9526 echo "${ECHO_T}no" >&6
9527 fi;
9528
9529 if test "$efence" = "true" -a "$useefence" = "true" ; then
9530   ctlibs_tools="$ctlibs_tools -lefence"
9531
9532 cat >>confdefs.h <<\_ACEOF
9533 #define HAVE_EFENCE 1
9534 _ACEOF
9535
9536   echo "$as_me:$LINENO: result: Using efence" >&5
9537 echo "${ECHO_T}Using efence" >&6
9538 fi
9539
9540 if test "$wxwin" = "true" ; then
9541   if  "$wx_gtk" = "true"  ||  "$wx_mac" == "true"  ; then
9542     wxcflags=`$wxconfig --cflags`
9543     wxlibs=`$wxconfig --libs`
9544   else
9545         wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9546         wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9547   fi
9548   CFLAGS="$CFLAGS -I../include $wxcflags"
9549   ctlib_graphics="$ctlib_graphics $wxlibs"
9550
9551
9552 if test 1==1 ; then
9553   HAVE_WXWINDOWS_TRUE=
9554   HAVE_WXWINDOWS_FALSE='#'
9555 else
9556   HAVE_WXWINDOWS_TRUE='#'
9557   HAVE_WXWINDOWS_FALSE=
9558 fi
9559 fi
9560
9561
9562
9563 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9564 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9565
9566
9567 if test -n "$lamdir" ; then
9568   lamprograms="ctsimtext-lam"
9569
9570   lamdefs="$CFLAGS"
9571
9572 fi
9573
9574 CXXFLAGS="$CFLAGS"
9575
9576                                                                                                                                                                           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"
9577
9578
9579 cat >confcache <<\_ACEOF
9580 # This file is a shell script that caches the results of configure
9581 # tests run on this system so they can be shared between configure
9582 # scripts and configure runs, see configure's option --config-cache.
9583 # It is not useful on other systems.  If it contains results you don't
9584 # want to keep, you may remove or edit it.
9585 #
9586 # config.status only pays attention to the cache file if you give it
9587 # the --recheck option to rerun configure.
9588 #
9589 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9590 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9591 # following values.
9592
9593 _ACEOF
9594
9595 # The following way of writing the cache mishandles newlines in values,
9596 # but we know of no workaround that is simple, portable, and efficient.
9597 # So, don't put newlines in cache variables' values.
9598 # Ultrix sh set writes to stderr and can't be redirected directly,
9599 # and sets the high bit in the cache file unless we assign to the vars.
9600 {
9601   (set) 2>&1 |
9602     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9603     *ac_space=\ *)
9604       # `set' does not quote correctly, so add quotes (double-quote
9605       # substitution turns \\\\ into \\, and sed turns \\ into \).
9606       sed -n \
9607         "s/'/'\\\\''/g;
9608           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9609       ;;
9610     *)
9611       # `set' quotes correctly as required by POSIX, so do not add quotes.
9612       sed -n \
9613         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9614       ;;
9615     esac;
9616 } |
9617   sed '
9618      t clear
9619      : clear
9620      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9621      t end
9622      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9623      : end' >>confcache
9624 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9625   if test -w $cache_file; then
9626     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9627     cat confcache >$cache_file
9628   else
9629     echo "not updating unwritable cache $cache_file"
9630   fi
9631 fi
9632 rm -f confcache
9633
9634 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9635 # Let make expand exec_prefix.
9636 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9637
9638 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9639 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9640 # trailing colons and then remove the whole line if VPATH becomes empty
9641 # (actually we leave an empty line to preserve line numbers).
9642 if test "x$srcdir" = x.; then
9643   ac_vpsub='/^[         ]*VPATH[        ]*=/{
9644 s/:*\$(srcdir):*/:/;
9645 s/:*\${srcdir}:*/:/;
9646 s/:*@srcdir@:*/:/;
9647 s/^\([^=]*=[    ]*\):*/\1/;
9648 s/:*$//;
9649 s/^[^=]*=[      ]*$//;
9650 }'
9651 fi
9652
9653 DEFS=-DHAVE_CONFIG_H
9654
9655 ac_libobjs=
9656 ac_ltlibobjs=
9657 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9658   # 1. Remove the extension, and $U if already installed.
9659   ac_i=`echo "$ac_i" |
9660          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9661   # 2. Add them.
9662   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9663   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9664 done
9665 LIBOBJS=$ac_libobjs
9666
9667 LTLIBOBJS=$ac_ltlibobjs
9668
9669
9670
9671 : ${CONFIG_STATUS=./config.status}
9672 ac_clean_files_save=$ac_clean_files
9673 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9674 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9675 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9676 cat >$CONFIG_STATUS <<_ACEOF
9677 #! $SHELL
9678 # Generated by $as_me.
9679 # Run this file to recreate the current configuration.
9680 # Compiler output produced by configure, useful for debugging
9681 # configure, is in config.log if it exists.
9682
9683 debug=false
9684 ac_cs_recheck=false
9685 ac_cs_silent=false
9686 SHELL=\${CONFIG_SHELL-$SHELL}
9687 _ACEOF
9688
9689 cat >>$CONFIG_STATUS <<\_ACEOF
9690 ## --------------------- ##
9691 ## M4sh Initialization.  ##
9692 ## --------------------- ##
9693
9694 # Be Bourne compatible
9695 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9696   emulate sh
9697   NULLCMD=:
9698   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9699   # is contrary to our usage.  Disable this feature.
9700   alias -g '${1+"$@"}'='"$@"'
9701 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9702   set -o posix
9703 fi
9704
9705 # Support unset when possible.
9706 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9707   as_unset=unset
9708 else
9709   as_unset=false
9710 fi
9711
9712
9713 # Work around bugs in pre-3.0 UWIN ksh.
9714 $as_unset ENV MAIL MAILPATH
9715 PS1='$ '
9716 PS2='> '
9717 PS4='+ '
9718
9719 # NLS nuisances.
9720 for as_var in \
9721   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9722   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9723   LC_TELEPHONE LC_TIME
9724 do
9725   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9726     eval $as_var=C; export $as_var
9727   else
9728     $as_unset $as_var
9729   fi
9730 done
9731
9732 # Required to use basename.
9733 if expr a : '\(a\)' >/dev/null 2>&1; then
9734   as_expr=expr
9735 else
9736   as_expr=false
9737 fi
9738
9739 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9740   as_basename=basename
9741 else
9742   as_basename=false
9743 fi
9744
9745
9746 # Name of the executable.
9747 as_me=`$as_basename "$0" ||
9748 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9749          X"$0" : 'X\(//\)$' \| \
9750          X"$0" : 'X\(/\)$' \| \
9751          .     : '\(.\)' 2>/dev/null ||
9752 echo X/"$0" |
9753     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9754           /^X\/\(\/\/\)$/{ s//\1/; q; }
9755           /^X\/\(\/\).*/{ s//\1/; q; }
9756           s/.*/./; q'`
9757
9758
9759 # PATH needs CR, and LINENO needs CR and PATH.
9760 # Avoid depending upon Character Ranges.
9761 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9762 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9763 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9764 as_cr_digits='0123456789'
9765 as_cr_alnum=$as_cr_Letters$as_cr_digits
9766
9767 # The user is always right.
9768 if test "${PATH_SEPARATOR+set}" != set; then
9769   echo "#! /bin/sh" >conf$$.sh
9770   echo  "exit 0"   >>conf$$.sh
9771   chmod +x conf$$.sh
9772   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9773     PATH_SEPARATOR=';'
9774   else
9775     PATH_SEPARATOR=:
9776   fi
9777   rm -f conf$$.sh
9778 fi
9779
9780
9781   as_lineno_1=$LINENO
9782   as_lineno_2=$LINENO
9783   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9784   test "x$as_lineno_1" != "x$as_lineno_2" &&
9785   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9786   # Find who we are.  Look in the path if we contain no path at all
9787   # relative or not.
9788   case $0 in
9789     *[\\/]* ) as_myself=$0 ;;
9790     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9791 for as_dir in $PATH
9792 do
9793   IFS=$as_save_IFS
9794   test -z "$as_dir" && as_dir=.
9795   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9796 done
9797
9798        ;;
9799   esac
9800   # We did not find ourselves, most probably we were run as `sh COMMAND'
9801   # in which case we are not to be found in the path.
9802   if test "x$as_myself" = x; then
9803     as_myself=$0
9804   fi
9805   if test ! -f "$as_myself"; then
9806     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9807 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9808    { (exit 1); exit 1; }; }
9809   fi
9810   case $CONFIG_SHELL in
9811   '')
9812     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9814 do
9815   IFS=$as_save_IFS
9816   test -z "$as_dir" && as_dir=.
9817   for as_base in sh bash ksh sh5; do
9818          case $as_dir in
9819          /*)
9820            if ("$as_dir/$as_base" -c '
9821   as_lineno_1=$LINENO
9822   as_lineno_2=$LINENO
9823   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9824   test "x$as_lineno_1" != "x$as_lineno_2" &&
9825   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9826              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9827              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9828              CONFIG_SHELL=$as_dir/$as_base
9829              export CONFIG_SHELL
9830              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9831            fi;;
9832          esac
9833        done
9834 done
9835 ;;
9836   esac
9837
9838   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9839   # uniformly replaced by the line number.  The first 'sed' inserts a
9840   # line-number line before each line; the second 'sed' does the real
9841   # work.  The second script uses 'N' to pair each line-number line
9842   # with the numbered line, and appends trailing '-' during
9843   # substitution so that $LINENO is not a special case at line end.
9844   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9845   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9846   sed '=' <$as_myself |
9847     sed '
9848       N
9849       s,$,-,
9850       : loop
9851       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9852       t loop
9853       s,-$,,
9854       s,^['$as_cr_digits']*\n,,
9855     ' >$as_me.lineno &&
9856   chmod +x $as_me.lineno ||
9857     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9858 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9859    { (exit 1); exit 1; }; }
9860
9861   # Don't try to exec as it changes $[0], causing all sort of problems
9862   # (the dirname of $[0] is not the place where we might find the
9863   # original and so on.  Autoconf is especially sensible to this).
9864   . ./$as_me.lineno
9865   # Exit status is that of the last command.
9866   exit
9867 }
9868
9869
9870 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9871   *c*,-n*) ECHO_N= ECHO_C='
9872 ' ECHO_T='      ' ;;
9873   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9874   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9875 esac
9876
9877 if expr a : '\(a\)' >/dev/null 2>&1; then
9878   as_expr=expr
9879 else
9880   as_expr=false
9881 fi
9882
9883 rm -f conf$$ conf$$.exe conf$$.file
9884 echo >conf$$.file
9885 if ln -s conf$$.file conf$$ 2>/dev/null; then
9886   # We could just check for DJGPP; but this test a) works b) is more generic
9887   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9888   if test -f conf$$.exe; then
9889     # Don't use ln at all; we don't have any links
9890     as_ln_s='cp -p'
9891   else
9892     as_ln_s='ln -s'
9893   fi
9894 elif ln conf$$.file conf$$ 2>/dev/null; then
9895   as_ln_s=ln
9896 else
9897   as_ln_s='cp -p'
9898 fi
9899 rm -f conf$$ conf$$.exe conf$$.file
9900
9901 if mkdir -p . 2>/dev/null; then
9902   as_mkdir_p=:
9903 else
9904   as_mkdir_p=false
9905 fi
9906
9907 as_executable_p="test -f"
9908
9909 # Sed expression to map a string onto a valid CPP name.
9910 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9911
9912 # Sed expression to map a string onto a valid variable name.
9913 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9914
9915
9916 # IFS
9917 # We need space, tab and new line, in precisely that order.
9918 as_nl='
9919 '
9920 IFS="   $as_nl"
9921
9922 # CDPATH.
9923 $as_unset CDPATH
9924
9925 exec 6>&1
9926
9927 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9928 # report actual input values of CONFIG_FILES etc. instead of their
9929 # values after options handling.  Logging --version etc. is OK.
9930 exec 5>>config.log
9931 {
9932   echo
9933   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9934 ## Running $as_me. ##
9935 _ASBOX
9936 } >&5
9937 cat >&5 <<_CSEOF
9938
9939 This file was extended by $as_me, which was
9940 generated by GNU Autoconf 2.57.  Invocation command line was
9941
9942   CONFIG_FILES    = $CONFIG_FILES
9943   CONFIG_HEADERS  = $CONFIG_HEADERS
9944   CONFIG_LINKS    = $CONFIG_LINKS
9945   CONFIG_COMMANDS = $CONFIG_COMMANDS
9946   $ $0 $@
9947
9948 _CSEOF
9949 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9950 echo >&5
9951 _ACEOF
9952
9953 # Files that config.status was made for.
9954 if test -n "$ac_config_files"; then
9955   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9956 fi
9957
9958 if test -n "$ac_config_headers"; then
9959   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9960 fi
9961
9962 if test -n "$ac_config_links"; then
9963   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9964 fi
9965
9966 if test -n "$ac_config_commands"; then
9967   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9968 fi
9969
9970 cat >>$CONFIG_STATUS <<\_ACEOF
9971
9972 ac_cs_usage="\
9973 \`$as_me' instantiates files from templates according to the
9974 current configuration.
9975
9976 Usage: $0 [OPTIONS] [FILE]...
9977
9978   -h, --help       print this help, then exit
9979   -V, --version    print version number, then exit
9980   -q, --quiet      do not print progress messages
9981   -d, --debug      don't remove temporary files
9982       --recheck    update $as_me by reconfiguring in the same conditions
9983   --file=FILE[:TEMPLATE]
9984                    instantiate the configuration file FILE
9985   --header=FILE[:TEMPLATE]
9986                    instantiate the configuration header FILE
9987
9988 Configuration files:
9989 $config_files
9990
9991 Configuration headers:
9992 $config_headers
9993
9994 Configuration commands:
9995 $config_commands
9996
9997 Report bugs to <bug-autoconf@gnu.org>."
9998 _ACEOF
9999
10000 cat >>$CONFIG_STATUS <<_ACEOF
10001 ac_cs_version="\\
10002 config.status
10003 configured by $0, generated by GNU Autoconf 2.57,
10004   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10005
10006 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10007 Free Software Foundation, Inc.
10008 This config.status script is free software; the Free Software Foundation
10009 gives unlimited permission to copy, distribute and modify it."
10010 srcdir=$srcdir
10011 INSTALL="$INSTALL"
10012 _ACEOF
10013
10014 cat >>$CONFIG_STATUS <<\_ACEOF
10015 # If no file are specified by the user, then we need to provide default
10016 # value.  By we need to know if files were specified by the user.
10017 ac_need_defaults=:
10018 while test $# != 0
10019 do
10020   case $1 in
10021   --*=*)
10022     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10023     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10024     ac_shift=:
10025     ;;
10026   -*)
10027     ac_option=$1
10028     ac_optarg=$2
10029     ac_shift=shift
10030     ;;
10031   *) # This is not an option, so the user has probably given explicit
10032      # arguments.
10033      ac_option=$1
10034      ac_need_defaults=false;;
10035   esac
10036
10037   case $ac_option in
10038   # Handling of the options.
10039 _ACEOF
10040 cat >>$CONFIG_STATUS <<\_ACEOF
10041   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10042     ac_cs_recheck=: ;;
10043   --version | --vers* | -V )
10044     echo "$ac_cs_version"; exit 0 ;;
10045   --he | --h)
10046     # Conflict between --help and --header
10047     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10048 Try \`$0 --help' for more information." >&5
10049 echo "$as_me: error: ambiguous option: $1
10050 Try \`$0 --help' for more information." >&2;}
10051    { (exit 1); exit 1; }; };;
10052   --help | --hel | -h )
10053     echo "$ac_cs_usage"; exit 0 ;;
10054   --debug | --d* | -d )
10055     debug=: ;;
10056   --file | --fil | --fi | --f )
10057     $ac_shift
10058     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10059     ac_need_defaults=false;;
10060   --header | --heade | --head | --hea )
10061     $ac_shift
10062     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10063     ac_need_defaults=false;;
10064   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10065   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10066     ac_cs_silent=: ;;
10067
10068   # This is an error.
10069   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10070 Try \`$0 --help' for more information." >&5
10071 echo "$as_me: error: unrecognized option: $1
10072 Try \`$0 --help' for more information." >&2;}
10073    { (exit 1); exit 1; }; } ;;
10074
10075   *) ac_config_targets="$ac_config_targets $1" ;;
10076
10077   esac
10078   shift
10079 done
10080
10081 ac_configure_extra_args=
10082
10083 if $ac_cs_silent; then
10084   exec 6>/dev/null
10085   ac_configure_extra_args="$ac_configure_extra_args --silent"
10086 fi
10087
10088 _ACEOF
10089 cat >>$CONFIG_STATUS <<_ACEOF
10090 if \$ac_cs_recheck; then
10091   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10092   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10093 fi
10094
10095 _ACEOF
10096
10097 cat >>$CONFIG_STATUS <<_ACEOF
10098 #
10099 # INIT-COMMANDS section.
10100 #
10101
10102
10103
10104 _ACEOF
10105
10106
10107
10108 cat >>$CONFIG_STATUS <<\_ACEOF
10109 for ac_config_target in $ac_config_targets
10110 do
10111   case "$ac_config_target" in
10112   # Handling of arguments.
10113   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10114   "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
10115   "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
10116   "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
10117   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10118   "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
10119   "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
10120   "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
10121   "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
10122   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10123   "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
10124   "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
10125   "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
10126   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10127   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10128   "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
10129   "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
10130   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10131   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10132   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10133 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10134    { (exit 1); exit 1; }; };;
10135   esac
10136 done
10137
10138 # If the user did not use the arguments to specify the items to instantiate,
10139 # then the envvar interface is used.  Set only those that are not.
10140 # We use the long form for the default assignment because of an extremely
10141 # bizarre bug on SunOS 4.1.3.
10142 if $ac_need_defaults; then
10143   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10144   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10145   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10146 fi
10147
10148 # Have a temporary directory for convenience.  Make it in the build tree
10149 # simply because there is no reason to put it here, and in addition,
10150 # creating and moving files from /tmp can sometimes cause problems.
10151 # Create a temporary directory, and hook for its removal unless debugging.
10152 $debug ||
10153 {
10154   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10155   trap '{ (exit 1); exit 1; }' 1 2 13 15
10156 }
10157
10158 # Create a (secure) tmp directory for tmp files.
10159
10160 {
10161   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10162   test -n "$tmp" && test -d "$tmp"
10163 }  ||
10164 {
10165   tmp=./confstat$$-$RANDOM
10166   (umask 077 && mkdir $tmp)
10167 } ||
10168 {
10169    echo "$me: cannot create a temporary directory in ." >&2
10170    { (exit 1); exit 1; }
10171 }
10172
10173 _ACEOF
10174
10175 cat >>$CONFIG_STATUS <<_ACEOF
10176
10177 #
10178 # CONFIG_FILES section.
10179 #
10180
10181 # No need to generate the scripts if there are no CONFIG_FILES.
10182 # This happens for instance when ./config.status config.h
10183 if test -n "\$CONFIG_FILES"; then
10184   # Protect against being on the right side of a sed subst in config.status.
10185   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10186    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10187 s,@SHELL@,$SHELL,;t t
10188 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10189 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10190 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10191 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10192 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10193 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10194 s,@exec_prefix@,$exec_prefix,;t t
10195 s,@prefix@,$prefix,;t t
10196 s,@program_transform_name@,$program_transform_name,;t t
10197 s,@bindir@,$bindir,;t t
10198 s,@sbindir@,$sbindir,;t t
10199 s,@libexecdir@,$libexecdir,;t t
10200 s,@datadir@,$datadir,;t t
10201 s,@sysconfdir@,$sysconfdir,;t t
10202 s,@sharedstatedir@,$sharedstatedir,;t t
10203 s,@localstatedir@,$localstatedir,;t t
10204 s,@libdir@,$libdir,;t t
10205 s,@includedir@,$includedir,;t t
10206 s,@oldincludedir@,$oldincludedir,;t t
10207 s,@infodir@,$infodir,;t t
10208 s,@mandir@,$mandir,;t t
10209 s,@build_alias@,$build_alias,;t t
10210 s,@host_alias@,$host_alias,;t t
10211 s,@target_alias@,$target_alias,;t t
10212 s,@DEFS@,$DEFS,;t t
10213 s,@ECHO_C@,$ECHO_C,;t t
10214 s,@ECHO_N@,$ECHO_N,;t t
10215 s,@ECHO_T@,$ECHO_T,;t t
10216 s,@LIBS@,$LIBS,;t t
10217 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10218 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10219 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10220 s,@PACKAGE@,$PACKAGE,;t t
10221 s,@VERSION@,$VERSION,;t t
10222 s,@ACLOCAL@,$ACLOCAL,;t t
10223 s,@AUTOCONF@,$AUTOCONF,;t t
10224 s,@AUTOMAKE@,$AUTOMAKE,;t t
10225 s,@AUTOHEADER@,$AUTOHEADER,;t t
10226 s,@MAKEINFO@,$MAKEINFO,;t t
10227 s,@SET_MAKE@,$SET_MAKE,;t t
10228 s,@AWK@,$AWK,;t t
10229 s,@RANLIB@,$RANLIB,;t t
10230 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10231 s,@CC@,$CC,;t t
10232 s,@CFLAGS@,$CFLAGS,;t t
10233 s,@LDFLAGS@,$LDFLAGS,;t t
10234 s,@CPPFLAGS@,$CPPFLAGS,;t t
10235 s,@ac_ct_CC@,$ac_ct_CC,;t t
10236 s,@EXEEXT@,$EXEEXT,;t t
10237 s,@OBJEXT@,$OBJEXT,;t t
10238 s,@CXX@,$CXX,;t t
10239 s,@CXXFLAGS@,$CXXFLAGS,;t t
10240 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10241 s,@wxconfig@,$wxconfig,;t t
10242 s,@build@,$build,;t t
10243 s,@build_cpu@,$build_cpu,;t t
10244 s,@build_vendor@,$build_vendor,;t t
10245 s,@build_os@,$build_os,;t t
10246 s,@host@,$host,;t t
10247 s,@host_cpu@,$host_cpu,;t t
10248 s,@host_vendor@,$host_vendor,;t t
10249 s,@host_os@,$host_os,;t t
10250 s,@CPP@,$CPP,;t t
10251 s,@EGREP@,$EGREP,;t t
10252 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10253 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10254 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10255 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10256 s,@lamdir@,$lamdir,;t t
10257 s,@mpienable@,$mpienable,;t t
10258 s,@cgibindir@,$cgibindir,;t t
10259 s,@cgibinurl@,$cgibinurl,;t t
10260 s,@webdatadir@,$webdatadir,;t t
10261 s,@webdataurl@,$webdataurl,;t t
10262 s,@htmldir@,$htmldir,;t t
10263 s,@cgiprograms@,$cgiprograms,;t t
10264 s,@htmldata@,$htmldata,;t t
10265 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10266 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10267 s,@webenabled@,$webenabled,;t t
10268 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10269 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10270 s,@X_CFLAGS@,$X_CFLAGS,;t t
10271 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10272 s,@X_LIBS@,$X_LIBS,;t t
10273 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10274 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10275 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10276 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10277 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10278 s,@my_includes@,$my_includes,;t t
10279 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10280 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10281 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10282 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10283 s,@wxcflags@,$wxcflags,;t t
10284 s,@wxlibs@,$wxlibs,;t t
10285 s,@ctlibs@,$ctlibs,;t t
10286 s,@lamprograms@,$lamprograms,;t t
10287 s,@lamdefs@,$lamdefs,;t t
10288 s,@LIBOBJS@,$LIBOBJS,;t t
10289 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10290 CEOF
10291
10292 _ACEOF
10293
10294   cat >>$CONFIG_STATUS <<\_ACEOF
10295   # Split the substitutions into bite-sized pieces for seds with
10296   # small command number limits, like on Digital OSF/1 and HP-UX.
10297   ac_max_sed_lines=48
10298   ac_sed_frag=1 # Number of current file.
10299   ac_beg=1 # First line for current file.
10300   ac_end=$ac_max_sed_lines # Line after last line for current file.
10301   ac_more_lines=:
10302   ac_sed_cmds=
10303   while $ac_more_lines; do
10304     if test $ac_beg -gt 1; then
10305       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10306     else
10307       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10308     fi
10309     if test ! -s $tmp/subs.frag; then
10310       ac_more_lines=false
10311     else
10312       # The purpose of the label and of the branching condition is to
10313       # speed up the sed processing (if there are no `@' at all, there
10314       # is no need to browse any of the substitutions).
10315       # These are the two extra sed commands mentioned above.
10316       (echo ':t
10317   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10318       if test -z "$ac_sed_cmds"; then
10319         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10320       else
10321         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10322       fi
10323       ac_sed_frag=`expr $ac_sed_frag + 1`
10324       ac_beg=$ac_end
10325       ac_end=`expr $ac_end + $ac_max_sed_lines`
10326     fi
10327   done
10328   if test -z "$ac_sed_cmds"; then
10329     ac_sed_cmds=cat
10330   fi
10331 fi # test -n "$CONFIG_FILES"
10332
10333 _ACEOF
10334 cat >>$CONFIG_STATUS <<\_ACEOF
10335 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10336   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10337   case $ac_file in
10338   - | *:- | *:-:* ) # input from stdin
10339         cat >$tmp/stdin
10340         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10341         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10342   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10343         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10344   * )   ac_file_in=$ac_file.in ;;
10345   esac
10346
10347   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10348   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10349 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10350          X"$ac_file" : 'X\(//\)[^/]' \| \
10351          X"$ac_file" : 'X\(//\)$' \| \
10352          X"$ac_file" : 'X\(/\)' \| \
10353          .     : '\(.\)' 2>/dev/null ||
10354 echo X"$ac_file" |
10355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10356           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10357           /^X\(\/\/\)$/{ s//\1/; q; }
10358           /^X\(\/\).*/{ s//\1/; q; }
10359           s/.*/./; q'`
10360   { if $as_mkdir_p; then
10361     mkdir -p "$ac_dir"
10362   else
10363     as_dir="$ac_dir"
10364     as_dirs=
10365     while test ! -d "$as_dir"; do
10366       as_dirs="$as_dir $as_dirs"
10367       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10368 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10369          X"$as_dir" : 'X\(//\)[^/]' \| \
10370          X"$as_dir" : 'X\(//\)$' \| \
10371          X"$as_dir" : 'X\(/\)' \| \
10372          .     : '\(.\)' 2>/dev/null ||
10373 echo X"$as_dir" |
10374     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10375           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10376           /^X\(\/\/\)$/{ s//\1/; q; }
10377           /^X\(\/\).*/{ s//\1/; q; }
10378           s/.*/./; q'`
10379     done
10380     test ! -n "$as_dirs" || mkdir $as_dirs
10381   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10382 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10383    { (exit 1); exit 1; }; }; }
10384
10385   ac_builddir=.
10386
10387 if test "$ac_dir" != .; then
10388   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10389   # A "../" for each directory in $ac_dir_suffix.
10390   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10391 else
10392   ac_dir_suffix= ac_top_builddir=
10393 fi
10394
10395 case $srcdir in
10396   .)  # No --srcdir option.  We are building in place.
10397     ac_srcdir=.
10398     if test -z "$ac_top_builddir"; then
10399        ac_top_srcdir=.
10400     else
10401        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10402     fi ;;
10403   [\\/]* | ?:[\\/]* )  # Absolute path.
10404     ac_srcdir=$srcdir$ac_dir_suffix;
10405     ac_top_srcdir=$srcdir ;;
10406   *) # Relative path.
10407     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10408     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10409 esac
10410 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10411 # absolute.
10412 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10413 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10414 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10415 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10416
10417
10418   case $INSTALL in
10419   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10420   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10421   esac
10422
10423   if test x"$ac_file" != x-; then
10424     { echo "$as_me:$LINENO: creating $ac_file" >&5
10425 echo "$as_me: creating $ac_file" >&6;}
10426     rm -f "$ac_file"
10427   fi
10428   # Let's still pretend it is `configure' which instantiates (i.e., don't
10429   # use $as_me), people would be surprised to read:
10430   #    /* config.h.  Generated by config.status.  */
10431   if test x"$ac_file" = x-; then
10432     configure_input=
10433   else
10434     configure_input="$ac_file.  "
10435   fi
10436   configure_input=$configure_input"Generated from `echo $ac_file_in |
10437                                      sed 's,.*/,,'` by configure."
10438
10439   # First look for the input files in the build tree, otherwise in the
10440   # src tree.
10441   ac_file_inputs=`IFS=:
10442     for f in $ac_file_in; do
10443       case $f in
10444       -) echo $tmp/stdin ;;
10445       [\\/$]*)
10446          # Absolute (can't be DOS-style, as IFS=:)
10447          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10448 echo "$as_me: error: cannot find input file: $f" >&2;}
10449    { (exit 1); exit 1; }; }
10450          echo $f;;
10451       *) # Relative
10452          if test -f "$f"; then
10453            # Build tree
10454            echo $f
10455          elif test -f "$srcdir/$f"; then
10456            # Source tree
10457            echo $srcdir/$f
10458          else
10459            # /dev/null tree
10460            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10461 echo "$as_me: error: cannot find input file: $f" >&2;}
10462    { (exit 1); exit 1; }; }
10463          fi;;
10464       esac
10465     done` || { (exit 1); exit 1; }
10466 _ACEOF
10467 cat >>$CONFIG_STATUS <<_ACEOF
10468   sed "$ac_vpsub
10469 $extrasub
10470 _ACEOF
10471 cat >>$CONFIG_STATUS <<\_ACEOF
10472 :t
10473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10474 s,@configure_input@,$configure_input,;t t
10475 s,@srcdir@,$ac_srcdir,;t t
10476 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10477 s,@top_srcdir@,$ac_top_srcdir,;t t
10478 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10479 s,@builddir@,$ac_builddir,;t t
10480 s,@abs_builddir@,$ac_abs_builddir,;t t
10481 s,@top_builddir@,$ac_top_builddir,;t t
10482 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10483 s,@INSTALL@,$ac_INSTALL,;t t
10484 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10485   rm -f $tmp/stdin
10486   if test x"$ac_file" != x-; then
10487     mv $tmp/out $ac_file
10488   else
10489     cat $tmp/out
10490     rm -f $tmp/out
10491   fi
10492
10493 done
10494 _ACEOF
10495 cat >>$CONFIG_STATUS <<\_ACEOF
10496
10497 #
10498 # CONFIG_HEADER section.
10499 #
10500
10501 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10502 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10503 #
10504 # ac_d sets the value in "#define NAME VALUE" lines.
10505 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
10506 ac_dB='[        ].*$,\1#\2'
10507 ac_dC=' '
10508 ac_dD=',;t'
10509 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10510 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10511 ac_uB='$,\1#\2define\3'
10512 ac_uC=' '
10513 ac_uD=',;t'
10514
10515 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10516   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10517   case $ac_file in
10518   - | *:- | *:-:* ) # input from stdin
10519         cat >$tmp/stdin
10520         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10521         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10522   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10523         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10524   * )   ac_file_in=$ac_file.in ;;
10525   esac
10526
10527   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10528 echo "$as_me: creating $ac_file" >&6;}
10529
10530   # First look for the input files in the build tree, otherwise in the
10531   # src tree.
10532   ac_file_inputs=`IFS=:
10533     for f in $ac_file_in; do
10534       case $f in
10535       -) echo $tmp/stdin ;;
10536       [\\/$]*)
10537          # Absolute (can't be DOS-style, as IFS=:)
10538          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10539 echo "$as_me: error: cannot find input file: $f" >&2;}
10540    { (exit 1); exit 1; }; }
10541          echo $f;;
10542       *) # Relative
10543          if test -f "$f"; then
10544            # Build tree
10545            echo $f
10546          elif test -f "$srcdir/$f"; then
10547            # Source tree
10548            echo $srcdir/$f
10549          else
10550            # /dev/null tree
10551            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10552 echo "$as_me: error: cannot find input file: $f" >&2;}
10553    { (exit 1); exit 1; }; }
10554          fi;;
10555       esac
10556     done` || { (exit 1); exit 1; }
10557   # Remove the trailing spaces.
10558   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
10559
10560 _ACEOF
10561
10562 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10563 # `conftest.undefs', that substitutes the proper values into
10564 # config.h.in to produce config.h.  The first handles `#define'
10565 # templates, and the second `#undef' templates.
10566 # And first: Protect against being on the right side of a sed subst in
10567 # config.status.  Protect against being in an unquoted here document
10568 # in config.status.
10569 rm -f conftest.defines conftest.undefs
10570 # Using a here document instead of a string reduces the quoting nightmare.
10571 # Putting comments in sed scripts is not portable.
10572 #
10573 # `end' is used to avoid that the second main sed command (meant for
10574 # 0-ary CPP macros) applies to n-ary macro definitions.
10575 # See the Autoconf documentation for `clear'.
10576 cat >confdef2sed.sed <<\_ACEOF
10577 s/[\\&,]/\\&/g
10578 s,[\\$`],\\&,g
10579 t clear
10580 : clear
10581 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10582 t end
10583 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10584 : end
10585 _ACEOF
10586 # If some macros were called several times there might be several times
10587 # the same #defines, which is useless.  Nevertheless, we may not want to
10588 # sort them, since we want the *last* AC-DEFINE to be honored.
10589 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10590 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10591 rm -f confdef2sed.sed
10592
10593 # This sed command replaces #undef with comments.  This is necessary, for
10594 # example, in the case of _POSIX_SOURCE, which is predefined and required
10595 # on some systems where configure will not decide to define it.
10596 cat >>conftest.undefs <<\_ACEOF
10597 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10598 _ACEOF
10599
10600 # Break up conftest.defines because some shells have a limit on the size
10601 # of here documents, and old seds have small limits too (100 cmds).
10602 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10603 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10604 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10605 echo '  :' >>$CONFIG_STATUS
10606 rm -f conftest.tail
10607 while grep . conftest.defines >/dev/null
10608 do
10609   # Write a limited-size here document to $tmp/defines.sed.
10610   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10611   # Speed up: don't consider the non `#define' lines.
10612   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
10613   # Work around the forget-to-reset-the-flag bug.
10614   echo 't clr' >>$CONFIG_STATUS
10615   echo ': clr' >>$CONFIG_STATUS
10616   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10617   echo 'CEOF
10618   sed -f $tmp/defines.sed $tmp/in >$tmp/out
10619   rm -f $tmp/in
10620   mv $tmp/out $tmp/in
10621 ' >>$CONFIG_STATUS
10622   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10623   rm -f conftest.defines
10624   mv conftest.tail conftest.defines
10625 done
10626 rm -f conftest.defines
10627 echo '  fi # grep' >>$CONFIG_STATUS
10628 echo >>$CONFIG_STATUS
10629
10630 # Break up conftest.undefs because some shells have a limit on the size
10631 # of here documents, and old seds have small limits too (100 cmds).
10632 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10633 rm -f conftest.tail
10634 while grep . conftest.undefs >/dev/null
10635 do
10636   # Write a limited-size here document to $tmp/undefs.sed.
10637   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10638   # Speed up: don't consider the non `#undef'
10639   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10640   # Work around the forget-to-reset-the-flag bug.
10641   echo 't clr' >>$CONFIG_STATUS
10642   echo ': clr' >>$CONFIG_STATUS
10643   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10644   echo 'CEOF
10645   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10646   rm -f $tmp/in
10647   mv $tmp/out $tmp/in
10648 ' >>$CONFIG_STATUS
10649   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10650   rm -f conftest.undefs
10651   mv conftest.tail conftest.undefs
10652 done
10653 rm -f conftest.undefs
10654
10655 cat >>$CONFIG_STATUS <<\_ACEOF
10656   # Let's still pretend it is `configure' which instantiates (i.e., don't
10657   # use $as_me), people would be surprised to read:
10658   #    /* config.h.  Generated by config.status.  */
10659   if test x"$ac_file" = x-; then
10660     echo "/* Generated by configure.  */" >$tmp/config.h
10661   else
10662     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10663   fi
10664   cat $tmp/in >>$tmp/config.h
10665   rm -f $tmp/in
10666   if test x"$ac_file" != x-; then
10667     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10668       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10669 echo "$as_me: $ac_file is unchanged" >&6;}
10670     else
10671       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10673          X"$ac_file" : 'X\(//\)[^/]' \| \
10674          X"$ac_file" : 'X\(//\)$' \| \
10675          X"$ac_file" : 'X\(/\)' \| \
10676          .     : '\(.\)' 2>/dev/null ||
10677 echo X"$ac_file" |
10678     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10679           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10680           /^X\(\/\/\)$/{ s//\1/; q; }
10681           /^X\(\/\).*/{ s//\1/; q; }
10682           s/.*/./; q'`
10683       { if $as_mkdir_p; then
10684     mkdir -p "$ac_dir"
10685   else
10686     as_dir="$ac_dir"
10687     as_dirs=
10688     while test ! -d "$as_dir"; do
10689       as_dirs="$as_dir $as_dirs"
10690       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10691 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10692          X"$as_dir" : 'X\(//\)[^/]' \| \
10693          X"$as_dir" : 'X\(//\)$' \| \
10694          X"$as_dir" : 'X\(/\)' \| \
10695          .     : '\(.\)' 2>/dev/null ||
10696 echo X"$as_dir" |
10697     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10698           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10699           /^X\(\/\/\)$/{ s//\1/; q; }
10700           /^X\(\/\).*/{ s//\1/; q; }
10701           s/.*/./; q'`
10702     done
10703     test ! -n "$as_dirs" || mkdir $as_dirs
10704   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10705 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10706    { (exit 1); exit 1; }; }; }
10707
10708       rm -f $ac_file
10709       mv $tmp/config.h $ac_file
10710     fi
10711   else
10712     cat $tmp/config.h
10713     rm -f $tmp/config.h
10714   fi
10715 done
10716 _ACEOF
10717 cat >>$CONFIG_STATUS <<\_ACEOF
10718
10719 #
10720 # CONFIG_COMMANDS section.
10721 #
10722 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10723   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10724   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10725   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10726 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10727          X"$ac_dest" : 'X\(//\)[^/]' \| \
10728          X"$ac_dest" : 'X\(//\)$' \| \
10729          X"$ac_dest" : 'X\(/\)' \| \
10730          .     : '\(.\)' 2>/dev/null ||
10731 echo X"$ac_dest" |
10732     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10733           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10734           /^X\(\/\/\)$/{ s//\1/; q; }
10735           /^X\(\/\).*/{ s//\1/; q; }
10736           s/.*/./; q'`
10737   ac_builddir=.
10738
10739 if test "$ac_dir" != .; then
10740   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10741   # A "../" for each directory in $ac_dir_suffix.
10742   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10743 else
10744   ac_dir_suffix= ac_top_builddir=
10745 fi
10746
10747 case $srcdir in
10748   .)  # No --srcdir option.  We are building in place.
10749     ac_srcdir=.
10750     if test -z "$ac_top_builddir"; then
10751        ac_top_srcdir=.
10752     else
10753        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10754     fi ;;
10755   [\\/]* | ?:[\\/]* )  # Absolute path.
10756     ac_srcdir=$srcdir$ac_dir_suffix;
10757     ac_top_srcdir=$srcdir ;;
10758   *) # Relative path.
10759     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10760     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10761 esac
10762 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10763 # absolute.
10764 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10765 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10766 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10767 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10768
10769
10770   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10771 echo "$as_me: executing $ac_dest commands" >&6;}
10772   case $ac_dest in
10773     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10774   esac
10775 done
10776 _ACEOF
10777
10778 cat >>$CONFIG_STATUS <<\_ACEOF
10779
10780 { (exit 0); exit 0; }
10781 _ACEOF
10782 chmod +x $CONFIG_STATUS
10783 ac_clean_files=$ac_clean_files_save
10784
10785
10786 # configure is writing to config.log, and then calls config.status.
10787 # config.status does its own redirection, appending to config.log.
10788 # Unfortunately, on DOS this fails, as config.log is still kept open
10789 # by configure, so config.status won't be able to write to it; its
10790 # output is simply discarded.  So we exec the FD to /dev/null,
10791 # effectively closing config.log, so it can be properly (re)opened and
10792 # appended to by config.status.  When coming back to configure, we
10793 # need to make the FD available again.
10794 if test "$no_create" != yes; then
10795   ac_cs_success=:
10796   ac_config_status_args=
10797   test "$silent" = yes &&
10798     ac_config_status_args="$ac_config_status_args --quiet"
10799   exec 5>/dev/null
10800   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10801   exec 5>>config.log
10802   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10803   # would make configure fail if this is the last instruction.
10804   $ac_cs_success || { (exit 1); exit 1; }
10805 fi
10806