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