r3508: *** 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.56.
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.56.  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=3.5.6
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   # On the NeXT, cc -E runs the code through the compiler's parser,
3393   # not just through cpp. "Syntax error" is here to catch this case.
3394   cat >conftest.$ac_ext <<_ACEOF
3395 #line $LINENO "configure"
3396 /* confdefs.h.  */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h.  */
3401 #include <assert.h>
3402                      Syntax error
3403 _ACEOF
3404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3405   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3406   ac_status=$?
3407   grep -v '^ *+' conftest.er1 >conftest.err
3408   rm -f conftest.er1
3409   cat conftest.err >&5
3410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411   (exit $ac_status); } >/dev/null; then
3412   if test -s conftest.err; then
3413     ac_cpp_err=$ac_c_preproc_warn_flag
3414   else
3415     ac_cpp_err=
3416   fi
3417 else
3418   ac_cpp_err=yes
3419 fi
3420 if test -z "$ac_cpp_err"; then
3421   :
3422 else
3423   echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426   # Broken: fails on valid input.
3427 continue
3428 fi
3429 rm -f conftest.err conftest.$ac_ext
3430
3431   # OK, works on sane cases.  Now check whether non-existent headers
3432   # can be detected and how.
3433   cat >conftest.$ac_ext <<_ACEOF
3434 #line $LINENO "configure"
3435 /* confdefs.h.  */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h.  */
3440 #include <ac_nonexistent.h>
3441 _ACEOF
3442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3443   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3444   ac_status=$?
3445   grep -v '^ *+' conftest.er1 >conftest.err
3446   rm -f conftest.er1
3447   cat conftest.err >&5
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); } >/dev/null; then
3450   if test -s conftest.err; then
3451     ac_cpp_err=$ac_c_preproc_warn_flag
3452   else
3453     ac_cpp_err=
3454   fi
3455 else
3456   ac_cpp_err=yes
3457 fi
3458 if test -z "$ac_cpp_err"; then
3459   # Broken: success on invalid input.
3460 continue
3461 else
3462   echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465   # Passes both tests.
3466 ac_preproc_ok=:
3467 break
3468 fi
3469 rm -f conftest.err conftest.$ac_ext
3470
3471 done
3472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3473 rm -f conftest.err conftest.$ac_ext
3474 if $ac_preproc_ok; then
3475   break
3476 fi
3477
3478     done
3479     ac_cv_prog_CPP=$CPP
3480
3481 fi
3482   CPP=$ac_cv_prog_CPP
3483 else
3484   ac_cv_prog_CPP=$CPP
3485 fi
3486 echo "$as_me:$LINENO: result: $CPP" >&5
3487 echo "${ECHO_T}$CPP" >&6
3488 ac_preproc_ok=false
3489 for ac_c_preproc_warn_flag in '' yes
3490 do
3491   # Use a header file that comes with gcc, so configuring glibc
3492   # with a fresh cross-compiler works.
3493   # On the NeXT, cc -E runs the code through the compiler's parser,
3494   # not just through cpp. "Syntax error" is here to catch this case.
3495   cat >conftest.$ac_ext <<_ACEOF
3496 #line $LINENO "configure"
3497 /* confdefs.h.  */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h.  */
3502 #include <assert.h>
3503                      Syntax error
3504 _ACEOF
3505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3506   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3507   ac_status=$?
3508   grep -v '^ *+' conftest.er1 >conftest.err
3509   rm -f conftest.er1
3510   cat conftest.err >&5
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); } >/dev/null; then
3513   if test -s conftest.err; then
3514     ac_cpp_err=$ac_c_preproc_warn_flag
3515   else
3516     ac_cpp_err=
3517   fi
3518 else
3519   ac_cpp_err=yes
3520 fi
3521 if test -z "$ac_cpp_err"; then
3522   :
3523 else
3524   echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527   # Broken: fails on valid input.
3528 continue
3529 fi
3530 rm -f conftest.err conftest.$ac_ext
3531
3532   # OK, works on sane cases.  Now check whether non-existent headers
3533   # can be detected and how.
3534   cat >conftest.$ac_ext <<_ACEOF
3535 #line $LINENO "configure"
3536 /* confdefs.h.  */
3537 _ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h.  */
3541 #include <ac_nonexistent.h>
3542 _ACEOF
3543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3544   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3545   ac_status=$?
3546   grep -v '^ *+' conftest.er1 >conftest.err
3547   rm -f conftest.er1
3548   cat conftest.err >&5
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); } >/dev/null; then
3551   if test -s conftest.err; then
3552     ac_cpp_err=$ac_c_preproc_warn_flag
3553   else
3554     ac_cpp_err=
3555   fi
3556 else
3557   ac_cpp_err=yes
3558 fi
3559 if test -z "$ac_cpp_err"; then
3560   # Broken: success on invalid input.
3561 continue
3562 else
3563   echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565
3566   # Passes both tests.
3567 ac_preproc_ok=:
3568 break
3569 fi
3570 rm -f conftest.err conftest.$ac_ext
3571
3572 done
3573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3574 rm -f conftest.err conftest.$ac_ext
3575 if $ac_preproc_ok; then
3576   :
3577 else
3578   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3579 See \`config.log' for more details." >&5
3580 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3581 See \`config.log' for more details." >&2;}
3582    { (exit 1); exit 1; }; }
3583 fi
3584
3585 ac_ext=c
3586 ac_cpp='$CPP $CPPFLAGS'
3587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590
3591
3592 echo "$as_me:$LINENO: checking for egrep" >&5
3593 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3594 if test "${ac_cv_prog_egrep+set}" = set; then
3595   echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3598     then ac_cv_prog_egrep='grep -E'
3599     else ac_cv_prog_egrep='egrep'
3600     fi
3601 fi
3602 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3603 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3604  EGREP=$ac_cv_prog_egrep
3605
3606
3607 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3608 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3609 if test "${ac_cv_header_stdc+set}" = set; then
3610   echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612   cat >conftest.$ac_ext <<_ACEOF
3613 #line $LINENO "configure"
3614 /* confdefs.h.  */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h.  */
3619 #include <stdlib.h>
3620 #include <stdarg.h>
3621 #include <string.h>
3622 #include <float.h>
3623
3624 int
3625 main ()
3626 {
3627
3628   ;
3629   return 0;
3630 }
3631 _ACEOF
3632 rm -f conftest.$ac_objext
3633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3634   (eval $ac_compile) 2>&5
3635   ac_status=$?
3636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637   (exit $ac_status); } &&
3638          { ac_try='test -s conftest.$ac_objext'
3639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640   (eval $ac_try) 2>&5
3641   ac_status=$?
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); }; }; then
3644   ac_cv_header_stdc=yes
3645 else
3646   echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649 ac_cv_header_stdc=no
3650 fi
3651 rm -f conftest.$ac_objext conftest.$ac_ext
3652
3653 if test $ac_cv_header_stdc = yes; then
3654   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3655   cat >conftest.$ac_ext <<_ACEOF
3656 #line $LINENO "configure"
3657 /* confdefs.h.  */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h.  */
3662 #include <string.h>
3663
3664 _ACEOF
3665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3666   $EGREP "memchr" >/dev/null 2>&1; then
3667   :
3668 else
3669   ac_cv_header_stdc=no
3670 fi
3671 rm -f conftest*
3672
3673 fi
3674
3675 if test $ac_cv_header_stdc = yes; then
3676   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3677   cat >conftest.$ac_ext <<_ACEOF
3678 #line $LINENO "configure"
3679 /* confdefs.h.  */
3680 _ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h.  */
3684 #include <stdlib.h>
3685
3686 _ACEOF
3687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3688   $EGREP "free" >/dev/null 2>&1; then
3689   :
3690 else
3691   ac_cv_header_stdc=no
3692 fi
3693 rm -f conftest*
3694
3695 fi
3696
3697 if test $ac_cv_header_stdc = yes; then
3698   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3699   if test "$cross_compiling" = yes; then
3700   :
3701 else
3702   cat >conftest.$ac_ext <<_ACEOF
3703 #line $LINENO "configure"
3704 /* confdefs.h.  */
3705 _ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h.  */
3709 #include <ctype.h>
3710 #if ((' ' & 0x0FF) == 0x020)
3711 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3712 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3713 #else
3714 # define ISLOWER(c) \
3715                    (('a' <= (c) && (c) <= 'i') \
3716                      || ('j' <= (c) && (c) <= 'r') \
3717                      || ('s' <= (c) && (c) <= 'z'))
3718 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3719 #endif
3720
3721 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3722 int
3723 main ()
3724 {
3725   int i;
3726   for (i = 0; i < 256; i++)
3727     if (XOR (islower (i), ISLOWER (i))
3728         || toupper (i) != TOUPPER (i))
3729       exit(2);
3730   exit (0);
3731 }
3732 _ACEOF
3733 rm -f conftest$ac_exeext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3735   (eval $ac_link) 2>&5
3736   ac_status=$?
3737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740   (eval $ac_try) 2>&5
3741   ac_status=$?
3742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743   (exit $ac_status); }; }; then
3744   :
3745 else
3746   echo "$as_me: program exited with status $ac_status" >&5
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3749
3750 ( exit $ac_status )
3751 ac_cv_header_stdc=no
3752 fi
3753 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3754 fi
3755 fi
3756 fi
3757 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3758 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3759 if test $ac_cv_header_stdc = yes; then
3760
3761 cat >>confdefs.h <<\_ACEOF
3762 #define STDC_HEADERS 1
3763 _ACEOF
3764
3765 fi
3766
3767 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3778                   inttypes.h stdint.h unistd.h
3779 do
3780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3781 echo "$as_me:$LINENO: checking for $ac_header" >&5
3782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   cat >conftest.$ac_ext <<_ACEOF
3787 #line $LINENO "configure"
3788 /* confdefs.h.  */
3789 _ACEOF
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h.  */
3793 $ac_includes_default
3794
3795 #include <$ac_header>
3796 _ACEOF
3797 rm -f conftest.$ac_objext
3798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3799   (eval $ac_compile) 2>&5
3800   ac_status=$?
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); } &&
3803          { ac_try='test -s conftest.$ac_objext'
3804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805   (eval $ac_try) 2>&5
3806   ac_status=$?
3807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808   (exit $ac_status); }; }; then
3809   eval "$as_ac_Header=yes"
3810 else
3811   echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3813
3814 eval "$as_ac_Header=no"
3815 fi
3816 rm -f conftest.$ac_objext conftest.$ac_ext
3817 fi
3818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3821   cat >>confdefs.h <<_ACEOF
3822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3823 _ACEOF
3824
3825 fi
3826
3827 done
3828
3829
3830 echo "$as_me:$LINENO: checking for short" >&5
3831 echo $ECHO_N "checking for short... $ECHO_C" >&6
3832 if test "${ac_cv_type_short+set}" = set; then
3833   echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835   cat >conftest.$ac_ext <<_ACEOF
3836 #line $LINENO "configure"
3837 /* confdefs.h.  */
3838 _ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h.  */
3842 $ac_includes_default
3843 int
3844 main ()
3845 {
3846 if ((short *) 0)
3847   return 0;
3848 if (sizeof (short))
3849   return 0;
3850   ;
3851   return 0;
3852 }
3853 _ACEOF
3854 rm -f conftest.$ac_objext
3855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3856   (eval $ac_compile) 2>&5
3857   ac_status=$?
3858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859   (exit $ac_status); } &&
3860          { ac_try='test -s conftest.$ac_objext'
3861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862   (eval $ac_try) 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }; }; then
3866   ac_cv_type_short=yes
3867 else
3868   echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871 ac_cv_type_short=no
3872 fi
3873 rm -f conftest.$ac_objext conftest.$ac_ext
3874 fi
3875 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3876 echo "${ECHO_T}$ac_cv_type_short" >&6
3877
3878 echo "$as_me:$LINENO: checking size of short" >&5
3879 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3880 if test "${ac_cv_sizeof_short+set}" = set; then
3881   echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883   if test "$ac_cv_type_short" = yes; then
3884   # The cast to unsigned long works around a bug in the HP C Compiler
3885   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3886   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3887   # This bug is HP SR number 8606223364.
3888   if test "$cross_compiling" = yes; then
3889   # Depending upon the size, compute the lo and hi bounds.
3890 cat >conftest.$ac_ext <<_ACEOF
3891 #line $LINENO "configure"
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897 $ac_includes_default
3898 int
3899 main ()
3900 {
3901 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3902 test_array [0] = 0
3903
3904   ;
3905   return 0;
3906 }
3907 _ACEOF
3908 rm -f conftest.$ac_objext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910   (eval $ac_compile) 2>&5
3911   ac_status=$?
3912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); } &&
3914          { ac_try='test -s conftest.$ac_objext'
3915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916   (eval $ac_try) 2>&5
3917   ac_status=$?
3918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919   (exit $ac_status); }; }; then
3920   ac_lo=0 ac_mid=0
3921   while :; do
3922     cat >conftest.$ac_ext <<_ACEOF
3923 #line $LINENO "configure"
3924 /* confdefs.h.  */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h.  */
3929 $ac_includes_default
3930 int
3931 main ()
3932 {
3933 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3934 test_array [0] = 0
3935
3936   ;
3937   return 0;
3938 }
3939 _ACEOF
3940 rm -f conftest.$ac_objext
3941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3942   (eval $ac_compile) 2>&5
3943   ac_status=$?
3944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945   (exit $ac_status); } &&
3946          { ac_try='test -s conftest.$ac_objext'
3947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948   (eval $ac_try) 2>&5
3949   ac_status=$?
3950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951   (exit $ac_status); }; }; then
3952   ac_hi=$ac_mid; break
3953 else
3954   echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3956
3957 ac_lo=`expr $ac_mid + 1`
3958                     if test $ac_lo -le $ac_mid; then
3959                       ac_lo= ac_hi=
3960                       break
3961                     fi
3962                     ac_mid=`expr 2 '*' $ac_mid + 1`
3963 fi
3964 rm -f conftest.$ac_objext conftest.$ac_ext
3965   done
3966 else
3967   echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3969
3970 cat >conftest.$ac_ext <<_ACEOF
3971 #line $LINENO "configure"
3972 /* confdefs.h.  */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h.  */
3977 $ac_includes_default
3978 int
3979 main ()
3980 {
3981 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3982 test_array [0] = 0
3983
3984   ;
3985   return 0;
3986 }
3987 _ACEOF
3988 rm -f conftest.$ac_objext
3989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3990   (eval $ac_compile) 2>&5
3991   ac_status=$?
3992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); } &&
3994          { ac_try='test -s conftest.$ac_objext'
3995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996   (eval $ac_try) 2>&5
3997   ac_status=$?
3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); }; }; then
4000   ac_hi=-1 ac_mid=-1
4001   while :; do
4002     cat >conftest.$ac_ext <<_ACEOF
4003 #line $LINENO "configure"
4004 /* confdefs.h.  */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h.  */
4009 $ac_includes_default
4010 int
4011 main ()
4012 {
4013 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4014 test_array [0] = 0
4015
4016   ;
4017   return 0;
4018 }
4019 _ACEOF
4020 rm -f conftest.$ac_objext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022   (eval $ac_compile) 2>&5
4023   ac_status=$?
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); } &&
4026          { ac_try='test -s conftest.$ac_objext'
4027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028   (eval $ac_try) 2>&5
4029   ac_status=$?
4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); }; }; then
4032   ac_lo=$ac_mid; break
4033 else
4034   echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4036
4037 ac_hi=`expr '(' $ac_mid ')' - 1`
4038                        if test $ac_mid -le $ac_hi; then
4039                          ac_lo= ac_hi=
4040                          break
4041                        fi
4042                        ac_mid=`expr 2 '*' $ac_mid`
4043 fi
4044 rm -f conftest.$ac_objext conftest.$ac_ext
4045   done
4046 else
4047   echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4049
4050 ac_lo= ac_hi=
4051 fi
4052 rm -f conftest.$ac_objext conftest.$ac_ext
4053 fi
4054 rm -f conftest.$ac_objext conftest.$ac_ext
4055 # Binary search between lo and hi bounds.
4056 while test "x$ac_lo" != "x$ac_hi"; do
4057   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4058   cat >conftest.$ac_ext <<_ACEOF
4059 #line $LINENO "configure"
4060 /* confdefs.h.  */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h.  */
4065 $ac_includes_default
4066 int
4067 main ()
4068 {
4069 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4070 test_array [0] = 0
4071
4072   ;
4073   return 0;
4074 }
4075 _ACEOF
4076 rm -f conftest.$ac_objext
4077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4078   (eval $ac_compile) 2>&5
4079   ac_status=$?
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); } &&
4082          { ac_try='test -s conftest.$ac_objext'
4083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084   (eval $ac_try) 2>&5
4085   ac_status=$?
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); }; }; then
4088   ac_hi=$ac_mid
4089 else
4090   echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093 ac_lo=`expr '(' $ac_mid ')' + 1`
4094 fi
4095 rm -f conftest.$ac_objext conftest.$ac_ext
4096 done
4097 case $ac_lo in
4098 ?*) ac_cv_sizeof_short=$ac_lo;;
4099 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4100 See \`config.log' for more details." >&5
4101 echo "$as_me: error: cannot compute sizeof (short), 77
4102 See \`config.log' for more details." >&2;}
4103    { (exit 1); exit 1; }; } ;;
4104 esac
4105 else
4106   if test "$cross_compiling" = yes; then
4107   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4108 See \`config.log' for more details." >&5
4109 echo "$as_me: error: cannot run test program while cross compiling
4110 See \`config.log' for more details." >&2;}
4111    { (exit 1); exit 1; }; }
4112 else
4113   cat >conftest.$ac_ext <<_ACEOF
4114 #line $LINENO "configure"
4115 /* confdefs.h.  */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h.  */
4120 $ac_includes_default
4121 long longval () { return (long) (sizeof (short)); }
4122 unsigned long ulongval () { return (long) (sizeof (short)); }
4123 #include <stdio.h>
4124 #include <stdlib.h>
4125 int
4126 main ()
4127 {
4128
4129   FILE *f = fopen ("conftest.val", "w");
4130   if (! f)
4131     exit (1);
4132   if (((long) (sizeof (short))) < 0)
4133     {
4134       long i = longval ();
4135       if (i != ((long) (sizeof (short))))
4136         exit (1);
4137       fprintf (f, "%ld\n", i);
4138     }
4139   else
4140     {
4141       unsigned long i = ulongval ();
4142       if (i != ((long) (sizeof (short))))
4143         exit (1);
4144       fprintf (f, "%lu\n", i);
4145     }
4146   exit (ferror (f) || fclose (f) != 0);
4147
4148   ;
4149   return 0;
4150 }
4151 _ACEOF
4152 rm -f conftest$ac_exeext
4153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4154   (eval $ac_link) 2>&5
4155   ac_status=$?
4156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159   (eval $ac_try) 2>&5
4160   ac_status=$?
4161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); }; }; then
4163   ac_cv_sizeof_short=`cat conftest.val`
4164 else
4165   echo "$as_me: program exited with status $ac_status" >&5
4166 echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4168
4169 ( exit $ac_status )
4170 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4171 See \`config.log' for more details." >&5
4172 echo "$as_me: error: cannot compute sizeof (short), 77
4173 See \`config.log' for more details." >&2;}
4174    { (exit 1); exit 1; }; }
4175 fi
4176 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4177 fi
4178 fi
4179 rm -f conftest.val
4180 else
4181   ac_cv_sizeof_short=0
4182 fi
4183 fi
4184 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4185 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4186 cat >>confdefs.h <<_ACEOF
4187 #define SIZEOF_SHORT $ac_cv_sizeof_short
4188 _ACEOF
4189
4190
4191 echo "$as_me:$LINENO: checking for int" >&5
4192 echo $ECHO_N "checking for int... $ECHO_C" >&6
4193 if test "${ac_cv_type_int+set}" = set; then
4194   echo $ECHO_N "(cached) $ECHO_C" >&6
4195 else
4196   cat >conftest.$ac_ext <<_ACEOF
4197 #line $LINENO "configure"
4198 /* confdefs.h.  */
4199 _ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h.  */
4203 $ac_includes_default
4204 int
4205 main ()
4206 {
4207 if ((int *) 0)
4208   return 0;
4209 if (sizeof (int))
4210   return 0;
4211   ;
4212   return 0;
4213 }
4214 _ACEOF
4215 rm -f conftest.$ac_objext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4217   (eval $ac_compile) 2>&5
4218   ac_status=$?
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); } &&
4221          { ac_try='test -s conftest.$ac_objext'
4222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223   (eval $ac_try) 2>&5
4224   ac_status=$?
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); }; }; then
4227   ac_cv_type_int=yes
4228 else
4229   echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4231
4232 ac_cv_type_int=no
4233 fi
4234 rm -f conftest.$ac_objext conftest.$ac_ext
4235 fi
4236 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4237 echo "${ECHO_T}$ac_cv_type_int" >&6
4238
4239 echo "$as_me:$LINENO: checking size of int" >&5
4240 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4241 if test "${ac_cv_sizeof_int+set}" = set; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   if test "$ac_cv_type_int" = yes; then
4245   # The cast to unsigned long works around a bug in the HP C Compiler
4246   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4247   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4248   # This bug is HP SR number 8606223364.
4249   if test "$cross_compiling" = yes; then
4250   # Depending upon the size, compute the lo and hi bounds.
4251 cat >conftest.$ac_ext <<_ACEOF
4252 #line $LINENO "configure"
4253 /* confdefs.h.  */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h.  */
4258 $ac_includes_default
4259 int
4260 main ()
4261 {
4262 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4263 test_array [0] = 0
4264
4265   ;
4266   return 0;
4267 }
4268 _ACEOF
4269 rm -f conftest.$ac_objext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271   (eval $ac_compile) 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); } &&
4275          { ac_try='test -s conftest.$ac_objext'
4276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277   (eval $ac_try) 2>&5
4278   ac_status=$?
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); }; }; then
4281   ac_lo=0 ac_mid=0
4282   while :; do
4283     cat >conftest.$ac_ext <<_ACEOF
4284 #line $LINENO "configure"
4285 /* confdefs.h.  */
4286 _ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h.  */
4290 $ac_includes_default
4291 int
4292 main ()
4293 {
4294 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4295 test_array [0] = 0
4296
4297   ;
4298   return 0;
4299 }
4300 _ACEOF
4301 rm -f conftest.$ac_objext
4302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4303   (eval $ac_compile) 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); } &&
4307          { ac_try='test -s conftest.$ac_objext'
4308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309   (eval $ac_try) 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }; }; then
4313   ac_hi=$ac_mid; break
4314 else
4315   echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4317
4318 ac_lo=`expr $ac_mid + 1`
4319                     if test $ac_lo -le $ac_mid; then
4320                       ac_lo= ac_hi=
4321                       break
4322                     fi
4323                     ac_mid=`expr 2 '*' $ac_mid + 1`
4324 fi
4325 rm -f conftest.$ac_objext conftest.$ac_ext
4326   done
4327 else
4328   echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4330
4331 cat >conftest.$ac_ext <<_ACEOF
4332 #line $LINENO "configure"
4333 /* confdefs.h.  */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h.  */
4338 $ac_includes_default
4339 int
4340 main ()
4341 {
4342 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4343 test_array [0] = 0
4344
4345   ;
4346   return 0;
4347 }
4348 _ACEOF
4349 rm -f conftest.$ac_objext
4350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351   (eval $ac_compile) 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); } &&
4355          { ac_try='test -s conftest.$ac_objext'
4356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357   (eval $ac_try) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); }; }; then
4361   ac_hi=-1 ac_mid=-1
4362   while :; do
4363     cat >conftest.$ac_ext <<_ACEOF
4364 #line $LINENO "configure"
4365 /* confdefs.h.  */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h.  */
4370 $ac_includes_default
4371 int
4372 main ()
4373 {
4374 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4375 test_array [0] = 0
4376
4377   ;
4378   return 0;
4379 }
4380 _ACEOF
4381 rm -f conftest.$ac_objext
4382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4383   (eval $ac_compile) 2>&5
4384   ac_status=$?
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } &&
4387          { ac_try='test -s conftest.$ac_objext'
4388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389   (eval $ac_try) 2>&5
4390   ac_status=$?
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); }; }; then
4393   ac_lo=$ac_mid; break
4394 else
4395   echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398 ac_hi=`expr '(' $ac_mid ')' - 1`
4399                        if test $ac_mid -le $ac_hi; then
4400                          ac_lo= ac_hi=
4401                          break
4402                        fi
4403                        ac_mid=`expr 2 '*' $ac_mid`
4404 fi
4405 rm -f conftest.$ac_objext conftest.$ac_ext
4406   done
4407 else
4408   echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411 ac_lo= ac_hi=
4412 fi
4413 rm -f conftest.$ac_objext conftest.$ac_ext
4414 fi
4415 rm -f conftest.$ac_objext conftest.$ac_ext
4416 # Binary search between lo and hi bounds.
4417 while test "x$ac_lo" != "x$ac_hi"; do
4418   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4419   cat >conftest.$ac_ext <<_ACEOF
4420 #line $LINENO "configure"
4421 /* confdefs.h.  */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h.  */
4426 $ac_includes_default
4427 int
4428 main ()
4429 {
4430 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4431 test_array [0] = 0
4432
4433   ;
4434   return 0;
4435 }
4436 _ACEOF
4437 rm -f conftest.$ac_objext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439   (eval $ac_compile) 2>&5
4440   ac_status=$?
4441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442   (exit $ac_status); } &&
4443          { ac_try='test -s conftest.$ac_objext'
4444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445   (eval $ac_try) 2>&5
4446   ac_status=$?
4447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448   (exit $ac_status); }; }; then
4449   ac_hi=$ac_mid
4450 else
4451   echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4453
4454 ac_lo=`expr '(' $ac_mid ')' + 1`
4455 fi
4456 rm -f conftest.$ac_objext conftest.$ac_ext
4457 done
4458 case $ac_lo in
4459 ?*) ac_cv_sizeof_int=$ac_lo;;
4460 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4461 See \`config.log' for more details." >&5
4462 echo "$as_me: error: cannot compute sizeof (int), 77
4463 See \`config.log' for more details." >&2;}
4464    { (exit 1); exit 1; }; } ;;
4465 esac
4466 else
4467   if test "$cross_compiling" = yes; then
4468   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4469 See \`config.log' for more details." >&5
4470 echo "$as_me: error: cannot run test program while cross compiling
4471 See \`config.log' for more details." >&2;}
4472    { (exit 1); exit 1; }; }
4473 else
4474   cat >conftest.$ac_ext <<_ACEOF
4475 #line $LINENO "configure"
4476 /* confdefs.h.  */
4477 _ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h.  */
4481 $ac_includes_default
4482 long longval () { return (long) (sizeof (int)); }
4483 unsigned long ulongval () { return (long) (sizeof (int)); }
4484 #include <stdio.h>
4485 #include <stdlib.h>
4486 int
4487 main ()
4488 {
4489
4490   FILE *f = fopen ("conftest.val", "w");
4491   if (! f)
4492     exit (1);
4493   if (((long) (sizeof (int))) < 0)
4494     {
4495       long i = longval ();
4496       if (i != ((long) (sizeof (int))))
4497         exit (1);
4498       fprintf (f, "%ld\n", i);
4499     }
4500   else
4501     {
4502       unsigned long i = ulongval ();
4503       if (i != ((long) (sizeof (int))))
4504         exit (1);
4505       fprintf (f, "%lu\n", i);
4506     }
4507   exit (ferror (f) || fclose (f) != 0);
4508
4509   ;
4510   return 0;
4511 }
4512 _ACEOF
4513 rm -f conftest$ac_exeext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4515   (eval $ac_link) 2>&5
4516   ac_status=$?
4517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520   (eval $ac_try) 2>&5
4521   ac_status=$?
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); }; }; then
4524   ac_cv_sizeof_int=`cat conftest.val`
4525 else
4526   echo "$as_me: program exited with status $ac_status" >&5
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4529
4530 ( exit $ac_status )
4531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4532 See \`config.log' for more details." >&5
4533 echo "$as_me: error: cannot compute sizeof (int), 77
4534 See \`config.log' for more details." >&2;}
4535    { (exit 1); exit 1; }; }
4536 fi
4537 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4538 fi
4539 fi
4540 rm -f conftest.val
4541 else
4542   ac_cv_sizeof_int=0
4543 fi
4544 fi
4545 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4546 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4547 cat >>confdefs.h <<_ACEOF
4548 #define SIZEOF_INT $ac_cv_sizeof_int
4549 _ACEOF
4550
4551
4552 echo "$as_me:$LINENO: checking for long" >&5
4553 echo $ECHO_N "checking for long... $ECHO_C" >&6
4554 if test "${ac_cv_type_long+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   cat >conftest.$ac_ext <<_ACEOF
4558 #line $LINENO "configure"
4559 /* confdefs.h.  */
4560 _ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h.  */
4564 $ac_includes_default
4565 int
4566 main ()
4567 {
4568 if ((long *) 0)
4569   return 0;
4570 if (sizeof (long))
4571   return 0;
4572   ;
4573   return 0;
4574 }
4575 _ACEOF
4576 rm -f conftest.$ac_objext
4577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4578   (eval $ac_compile) 2>&5
4579   ac_status=$?
4580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581   (exit $ac_status); } &&
4582          { ac_try='test -s conftest.$ac_objext'
4583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584   (eval $ac_try) 2>&5
4585   ac_status=$?
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); }; }; then
4588   ac_cv_type_long=yes
4589 else
4590   echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4592
4593 ac_cv_type_long=no
4594 fi
4595 rm -f conftest.$ac_objext conftest.$ac_ext
4596 fi
4597 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4598 echo "${ECHO_T}$ac_cv_type_long" >&6
4599
4600 echo "$as_me:$LINENO: checking size of long" >&5
4601 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4602 if test "${ac_cv_sizeof_long+set}" = set; then
4603   echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605   if test "$ac_cv_type_long" = yes; then
4606   # The cast to unsigned long works around a bug in the HP C Compiler
4607   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4608   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4609   # This bug is HP SR number 8606223364.
4610   if test "$cross_compiling" = yes; then
4611   # Depending upon the size, compute the lo and hi bounds.
4612 cat >conftest.$ac_ext <<_ACEOF
4613 #line $LINENO "configure"
4614 /* confdefs.h.  */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h.  */
4619 $ac_includes_default
4620 int
4621 main ()
4622 {
4623 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4624 test_array [0] = 0
4625
4626   ;
4627   return 0;
4628 }
4629 _ACEOF
4630 rm -f conftest.$ac_objext
4631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632   (eval $ac_compile) 2>&5
4633   ac_status=$?
4634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635   (exit $ac_status); } &&
4636          { ac_try='test -s conftest.$ac_objext'
4637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638   (eval $ac_try) 2>&5
4639   ac_status=$?
4640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); }; }; then
4642   ac_lo=0 ac_mid=0
4643   while :; do
4644     cat >conftest.$ac_ext <<_ACEOF
4645 #line $LINENO "configure"
4646 /* confdefs.h.  */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h.  */
4651 $ac_includes_default
4652 int
4653 main ()
4654 {
4655 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4656 test_array [0] = 0
4657
4658   ;
4659   return 0;
4660 }
4661 _ACEOF
4662 rm -f conftest.$ac_objext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664   (eval $ac_compile) 2>&5
4665   ac_status=$?
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); } &&
4668          { ac_try='test -s conftest.$ac_objext'
4669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670   (eval $ac_try) 2>&5
4671   ac_status=$?
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); }; }; then
4674   ac_hi=$ac_mid; break
4675 else
4676   echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4678
4679 ac_lo=`expr $ac_mid + 1`
4680                     if test $ac_lo -le $ac_mid; then
4681                       ac_lo= ac_hi=
4682                       break
4683                     fi
4684                     ac_mid=`expr 2 '*' $ac_mid + 1`
4685 fi
4686 rm -f conftest.$ac_objext conftest.$ac_ext
4687   done
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692 cat >conftest.$ac_ext <<_ACEOF
4693 #line $LINENO "configure"
4694 /* confdefs.h.  */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h.  */
4699 $ac_includes_default
4700 int
4701 main ()
4702 {
4703 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4704 test_array [0] = 0
4705
4706   ;
4707   return 0;
4708 }
4709 _ACEOF
4710 rm -f conftest.$ac_objext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712   (eval $ac_compile) 2>&5
4713   ac_status=$?
4714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); } &&
4716          { ac_try='test -s conftest.$ac_objext'
4717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718   (eval $ac_try) 2>&5
4719   ac_status=$?
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); }; }; then
4722   ac_hi=-1 ac_mid=-1
4723   while :; do
4724     cat >conftest.$ac_ext <<_ACEOF
4725 #line $LINENO "configure"
4726 /* confdefs.h.  */
4727 _ACEOF
4728 cat confdefs.h >>conftest.$ac_ext
4729 cat >>conftest.$ac_ext <<_ACEOF
4730 /* end confdefs.h.  */
4731 $ac_includes_default
4732 int
4733 main ()
4734 {
4735 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4736 test_array [0] = 0
4737
4738   ;
4739   return 0;
4740 }
4741 _ACEOF
4742 rm -f conftest.$ac_objext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4744   (eval $ac_compile) 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); } &&
4748          { ac_try='test -s conftest.$ac_objext'
4749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750   (eval $ac_try) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }; }; then
4754   ac_lo=$ac_mid; break
4755 else
4756   echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4758
4759 ac_hi=`expr '(' $ac_mid ')' - 1`
4760                        if test $ac_mid -le $ac_hi; then
4761                          ac_lo= ac_hi=
4762                          break
4763                        fi
4764                        ac_mid=`expr 2 '*' $ac_mid`
4765 fi
4766 rm -f conftest.$ac_objext conftest.$ac_ext
4767   done
4768 else
4769   echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 ac_lo= ac_hi=
4773 fi
4774 rm -f conftest.$ac_objext conftest.$ac_ext
4775 fi
4776 rm -f conftest.$ac_objext conftest.$ac_ext
4777 # Binary search between lo and hi bounds.
4778 while test "x$ac_lo" != "x$ac_hi"; do
4779   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4780   cat >conftest.$ac_ext <<_ACEOF
4781 #line $LINENO "configure"
4782 /* confdefs.h.  */
4783 _ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h.  */
4787 $ac_includes_default
4788 int
4789 main ()
4790 {
4791 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4792 test_array [0] = 0
4793
4794   ;
4795   return 0;
4796 }
4797 _ACEOF
4798 rm -f conftest.$ac_objext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800   (eval $ac_compile) 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); } &&
4804          { ac_try='test -s conftest.$ac_objext'
4805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806   (eval $ac_try) 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); }; }; then
4810   ac_hi=$ac_mid
4811 else
4812   echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 ac_lo=`expr '(' $ac_mid ')' + 1`
4816 fi
4817 rm -f conftest.$ac_objext conftest.$ac_ext
4818 done
4819 case $ac_lo in
4820 ?*) ac_cv_sizeof_long=$ac_lo;;
4821 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4822 See \`config.log' for more details." >&5
4823 echo "$as_me: error: cannot compute sizeof (long), 77
4824 See \`config.log' for more details." >&2;}
4825    { (exit 1); exit 1; }; } ;;
4826 esac
4827 else
4828   if test "$cross_compiling" = yes; then
4829   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4830 See \`config.log' for more details." >&5
4831 echo "$as_me: error: cannot run test program while cross compiling
4832 See \`config.log' for more details." >&2;}
4833    { (exit 1); exit 1; }; }
4834 else
4835   cat >conftest.$ac_ext <<_ACEOF
4836 #line $LINENO "configure"
4837 /* confdefs.h.  */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h.  */
4842 $ac_includes_default
4843 long longval () { return (long) (sizeof (long)); }
4844 unsigned long ulongval () { return (long) (sizeof (long)); }
4845 #include <stdio.h>
4846 #include <stdlib.h>
4847 int
4848 main ()
4849 {
4850
4851   FILE *f = fopen ("conftest.val", "w");
4852   if (! f)
4853     exit (1);
4854   if (((long) (sizeof (long))) < 0)
4855     {
4856       long i = longval ();
4857       if (i != ((long) (sizeof (long))))
4858         exit (1);
4859       fprintf (f, "%ld\n", i);
4860     }
4861   else
4862     {
4863       unsigned long i = ulongval ();
4864       if (i != ((long) (sizeof (long))))
4865         exit (1);
4866       fprintf (f, "%lu\n", i);
4867     }
4868   exit (ferror (f) || fclose (f) != 0);
4869
4870   ;
4871   return 0;
4872 }
4873 _ACEOF
4874 rm -f conftest$ac_exeext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4876   (eval $ac_link) 2>&5
4877   ac_status=$?
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881   (eval $ac_try) 2>&5
4882   ac_status=$?
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); }; }; then
4885   ac_cv_sizeof_long=`cat conftest.val`
4886 else
4887   echo "$as_me: program exited with status $ac_status" >&5
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891 ( exit $ac_status )
4892 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4893 See \`config.log' for more details." >&5
4894 echo "$as_me: error: cannot compute sizeof (long), 77
4895 See \`config.log' for more details." >&2;}
4896    { (exit 1); exit 1; }; }
4897 fi
4898 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4899 fi
4900 fi
4901 rm -f conftest.val
4902 else
4903   ac_cv_sizeof_long=0
4904 fi
4905 fi
4906 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4907 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4908 cat >>confdefs.h <<_ACEOF
4909 #define SIZEOF_LONG $ac_cv_sizeof_long
4910 _ACEOF
4911
4912
4913 echo "$as_me:$LINENO: checking for float" >&5
4914 echo $ECHO_N "checking for float... $ECHO_C" >&6
4915 if test "${ac_cv_type_float+set}" = set; then
4916   echo $ECHO_N "(cached) $ECHO_C" >&6
4917 else
4918   cat >conftest.$ac_ext <<_ACEOF
4919 #line $LINENO "configure"
4920 /* confdefs.h.  */
4921 _ACEOF
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h.  */
4925 $ac_includes_default
4926 int
4927 main ()
4928 {
4929 if ((float *) 0)
4930   return 0;
4931 if (sizeof (float))
4932   return 0;
4933   ;
4934   return 0;
4935 }
4936 _ACEOF
4937 rm -f conftest.$ac_objext
4938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4939   (eval $ac_compile) 2>&5
4940   ac_status=$?
4941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942   (exit $ac_status); } &&
4943          { ac_try='test -s conftest.$ac_objext'
4944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945   (eval $ac_try) 2>&5
4946   ac_status=$?
4947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948   (exit $ac_status); }; }; then
4949   ac_cv_type_float=yes
4950 else
4951   echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4953
4954 ac_cv_type_float=no
4955 fi
4956 rm -f conftest.$ac_objext conftest.$ac_ext
4957 fi
4958 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
4959 echo "${ECHO_T}$ac_cv_type_float" >&6
4960
4961 echo "$as_me:$LINENO: checking size of float" >&5
4962 echo $ECHO_N "checking size of float... $ECHO_C" >&6
4963 if test "${ac_cv_sizeof_float+set}" = set; then
4964   echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966   if test "$ac_cv_type_float" = yes; then
4967   # The cast to unsigned long works around a bug in the HP C Compiler
4968   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4969   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4970   # This bug is HP SR number 8606223364.
4971   if test "$cross_compiling" = yes; then
4972   # Depending upon the size, compute the lo and hi bounds.
4973 cat >conftest.$ac_ext <<_ACEOF
4974 #line $LINENO "configure"
4975 /* confdefs.h.  */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h.  */
4980 $ac_includes_default
4981 int
4982 main ()
4983 {
4984 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
4985 test_array [0] = 0
4986
4987   ;
4988   return 0;
4989 }
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993   (eval $ac_compile) 2>&5
4994   ac_status=$?
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); } &&
4997          { ac_try='test -s conftest.$ac_objext'
4998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999   (eval $ac_try) 2>&5
5000   ac_status=$?
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); }; }; then
5003   ac_lo=0 ac_mid=0
5004   while :; do
5005     cat >conftest.$ac_ext <<_ACEOF
5006 #line $LINENO "configure"
5007 /* confdefs.h.  */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h.  */
5012 $ac_includes_default
5013 int
5014 main ()
5015 {
5016 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5017 test_array [0] = 0
5018
5019   ;
5020   return 0;
5021 }
5022 _ACEOF
5023 rm -f conftest.$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025   (eval $ac_compile) 2>&5
5026   ac_status=$?
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); } &&
5029          { ac_try='test -s conftest.$ac_objext'
5030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031   (eval $ac_try) 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); }; }; then
5035   ac_hi=$ac_mid; break
5036 else
5037   echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5039
5040 ac_lo=`expr $ac_mid + 1`
5041                     if test $ac_lo -le $ac_mid; then
5042                       ac_lo= ac_hi=
5043                       break
5044                     fi
5045                     ac_mid=`expr 2 '*' $ac_mid + 1`
5046 fi
5047 rm -f conftest.$ac_objext conftest.$ac_ext
5048   done
5049 else
5050   echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5052
5053 cat >conftest.$ac_ext <<_ACEOF
5054 #line $LINENO "configure"
5055 /* confdefs.h.  */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h.  */
5060 $ac_includes_default
5061 int
5062 main ()
5063 {
5064 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5065 test_array [0] = 0
5066
5067   ;
5068   return 0;
5069 }
5070 _ACEOF
5071 rm -f conftest.$ac_objext
5072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5073   (eval $ac_compile) 2>&5
5074   ac_status=$?
5075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076   (exit $ac_status); } &&
5077          { ac_try='test -s conftest.$ac_objext'
5078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079   (eval $ac_try) 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); }; }; then
5083   ac_hi=-1 ac_mid=-1
5084   while :; do
5085     cat >conftest.$ac_ext <<_ACEOF
5086 #line $LINENO "configure"
5087 /* confdefs.h.  */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h.  */
5092 $ac_includes_default
5093 int
5094 main ()
5095 {
5096 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5097 test_array [0] = 0
5098
5099   ;
5100   return 0;
5101 }
5102 _ACEOF
5103 rm -f conftest.$ac_objext
5104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5105   (eval $ac_compile) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); } &&
5109          { ac_try='test -s conftest.$ac_objext'
5110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111   (eval $ac_try) 2>&5
5112   ac_status=$?
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); }; }; then
5115   ac_lo=$ac_mid; break
5116 else
5117   echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5119
5120 ac_hi=`expr '(' $ac_mid ')' - 1`
5121                        if test $ac_mid -le $ac_hi; then
5122                          ac_lo= ac_hi=
5123                          break
5124                        fi
5125                        ac_mid=`expr 2 '*' $ac_mid`
5126 fi
5127 rm -f conftest.$ac_objext conftest.$ac_ext
5128   done
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 ac_lo= ac_hi=
5134 fi
5135 rm -f conftest.$ac_objext conftest.$ac_ext
5136 fi
5137 rm -f conftest.$ac_objext conftest.$ac_ext
5138 # Binary search between lo and hi bounds.
5139 while test "x$ac_lo" != "x$ac_hi"; do
5140   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5141   cat >conftest.$ac_ext <<_ACEOF
5142 #line $LINENO "configure"
5143 /* confdefs.h.  */
5144 _ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h.  */
5148 $ac_includes_default
5149 int
5150 main ()
5151 {
5152 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5153 test_array [0] = 0
5154
5155   ;
5156   return 0;
5157 }
5158 _ACEOF
5159 rm -f conftest.$ac_objext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5161   (eval $ac_compile) 2>&5
5162   ac_status=$?
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); } &&
5165          { ac_try='test -s conftest.$ac_objext'
5166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167   (eval $ac_try) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); }; }; then
5171   ac_hi=$ac_mid
5172 else
5173   echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5175
5176 ac_lo=`expr '(' $ac_mid ')' + 1`
5177 fi
5178 rm -f conftest.$ac_objext conftest.$ac_ext
5179 done
5180 case $ac_lo in
5181 ?*) ac_cv_sizeof_float=$ac_lo;;
5182 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5183 See \`config.log' for more details." >&5
5184 echo "$as_me: error: cannot compute sizeof (float), 77
5185 See \`config.log' for more details." >&2;}
5186    { (exit 1); exit 1; }; } ;;
5187 esac
5188 else
5189   if test "$cross_compiling" = yes; then
5190   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5191 See \`config.log' for more details." >&5
5192 echo "$as_me: error: cannot run test program while cross compiling
5193 See \`config.log' for more details." >&2;}
5194    { (exit 1); exit 1; }; }
5195 else
5196   cat >conftest.$ac_ext <<_ACEOF
5197 #line $LINENO "configure"
5198 /* confdefs.h.  */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h.  */
5203 $ac_includes_default
5204 long longval () { return (long) (sizeof (float)); }
5205 unsigned long ulongval () { return (long) (sizeof (float)); }
5206 #include <stdio.h>
5207 #include <stdlib.h>
5208 int
5209 main ()
5210 {
5211
5212   FILE *f = fopen ("conftest.val", "w");
5213   if (! f)
5214     exit (1);
5215   if (((long) (sizeof (float))) < 0)
5216     {
5217       long i = longval ();
5218       if (i != ((long) (sizeof (float))))
5219         exit (1);
5220       fprintf (f, "%ld\n", i);
5221     }
5222   else
5223     {
5224       unsigned long i = ulongval ();
5225       if (i != ((long) (sizeof (float))))
5226         exit (1);
5227       fprintf (f, "%lu\n", i);
5228     }
5229   exit (ferror (f) || fclose (f) != 0);
5230
5231   ;
5232   return 0;
5233 }
5234 _ACEOF
5235 rm -f conftest$ac_exeext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5237   (eval $ac_link) 2>&5
5238   ac_status=$?
5239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242   (eval $ac_try) 2>&5
5243   ac_status=$?
5244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245   (exit $ac_status); }; }; then
5246   ac_cv_sizeof_float=`cat conftest.val`
5247 else
5248   echo "$as_me: program exited with status $ac_status" >&5
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5251
5252 ( exit $ac_status )
5253 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5254 See \`config.log' for more details." >&5
5255 echo "$as_me: error: cannot compute sizeof (float), 77
5256 See \`config.log' for more details." >&2;}
5257    { (exit 1); exit 1; }; }
5258 fi
5259 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5260 fi
5261 fi
5262 rm -f conftest.val
5263 else
5264   ac_cv_sizeof_float=0
5265 fi
5266 fi
5267 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5268 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5269 cat >>confdefs.h <<_ACEOF
5270 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5271 _ACEOF
5272
5273
5274 echo "$as_me:$LINENO: checking for double" >&5
5275 echo $ECHO_N "checking for double... $ECHO_C" >&6
5276 if test "${ac_cv_type_double+set}" = set; then
5277   echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279   cat >conftest.$ac_ext <<_ACEOF
5280 #line $LINENO "configure"
5281 /* confdefs.h.  */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h.  */
5286 $ac_includes_default
5287 int
5288 main ()
5289 {
5290 if ((double *) 0)
5291   return 0;
5292 if (sizeof (double))
5293   return 0;
5294   ;
5295   return 0;
5296 }
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300   (eval $ac_compile) 2>&5
5301   ac_status=$?
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); } &&
5304          { ac_try='test -s conftest.$ac_objext'
5305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306   (eval $ac_try) 2>&5
5307   ac_status=$?
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); }; }; then
5310   ac_cv_type_double=yes
5311 else
5312   echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5314
5315 ac_cv_type_double=no
5316 fi
5317 rm -f conftest.$ac_objext conftest.$ac_ext
5318 fi
5319 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5320 echo "${ECHO_T}$ac_cv_type_double" >&6
5321
5322 echo "$as_me:$LINENO: checking size of double" >&5
5323 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5324 if test "${ac_cv_sizeof_double+set}" = set; then
5325   echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327   if test "$ac_cv_type_double" = yes; then
5328   # The cast to unsigned long works around a bug in the HP C Compiler
5329   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5330   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5331   # This bug is HP SR number 8606223364.
5332   if test "$cross_compiling" = yes; then
5333   # Depending upon the size, compute the lo and hi bounds.
5334 cat >conftest.$ac_ext <<_ACEOF
5335 #line $LINENO "configure"
5336 /* confdefs.h.  */
5337 _ACEOF
5338 cat confdefs.h >>conftest.$ac_ext
5339 cat >>conftest.$ac_ext <<_ACEOF
5340 /* end confdefs.h.  */
5341 $ac_includes_default
5342 int
5343 main ()
5344 {
5345 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5346 test_array [0] = 0
5347
5348   ;
5349   return 0;
5350 }
5351 _ACEOF
5352 rm -f conftest.$ac_objext
5353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5354   (eval $ac_compile) 2>&5
5355   ac_status=$?
5356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357   (exit $ac_status); } &&
5358          { ac_try='test -s conftest.$ac_objext'
5359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360   (eval $ac_try) 2>&5
5361   ac_status=$?
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); }; }; then
5364   ac_lo=0 ac_mid=0
5365   while :; do
5366     cat >conftest.$ac_ext <<_ACEOF
5367 #line $LINENO "configure"
5368 /* confdefs.h.  */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h.  */
5373 $ac_includes_default
5374 int
5375 main ()
5376 {
5377 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5378 test_array [0] = 0
5379
5380   ;
5381   return 0;
5382 }
5383 _ACEOF
5384 rm -f conftest.$ac_objext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386   (eval $ac_compile) 2>&5
5387   ac_status=$?
5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); } &&
5390          { ac_try='test -s conftest.$ac_objext'
5391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392   (eval $ac_try) 2>&5
5393   ac_status=$?
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); }; }; then
5396   ac_hi=$ac_mid; break
5397 else
5398   echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5400
5401 ac_lo=`expr $ac_mid + 1`
5402                     if test $ac_lo -le $ac_mid; then
5403                       ac_lo= ac_hi=
5404                       break
5405                     fi
5406                     ac_mid=`expr 2 '*' $ac_mid + 1`
5407 fi
5408 rm -f conftest.$ac_objext conftest.$ac_ext
5409   done
5410 else
5411   echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5413
5414 cat >conftest.$ac_ext <<_ACEOF
5415 #line $LINENO "configure"
5416 /* confdefs.h.  */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h.  */
5421 $ac_includes_default
5422 int
5423 main ()
5424 {
5425 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5426 test_array [0] = 0
5427
5428   ;
5429   return 0;
5430 }
5431 _ACEOF
5432 rm -f conftest.$ac_objext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434   (eval $ac_compile) 2>&5
5435   ac_status=$?
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); } &&
5438          { ac_try='test -s conftest.$ac_objext'
5439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440   (eval $ac_try) 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); }; }; then
5444   ac_hi=-1 ac_mid=-1
5445   while :; do
5446     cat >conftest.$ac_ext <<_ACEOF
5447 #line $LINENO "configure"
5448 /* confdefs.h.  */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h.  */
5453 $ac_includes_default
5454 int
5455 main ()
5456 {
5457 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5458 test_array [0] = 0
5459
5460   ;
5461   return 0;
5462 }
5463 _ACEOF
5464 rm -f conftest.$ac_objext
5465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5466   (eval $ac_compile) 2>&5
5467   ac_status=$?
5468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469   (exit $ac_status); } &&
5470          { ac_try='test -s conftest.$ac_objext'
5471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472   (eval $ac_try) 2>&5
5473   ac_status=$?
5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475   (exit $ac_status); }; }; then
5476   ac_lo=$ac_mid; break
5477 else
5478   echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5480
5481 ac_hi=`expr '(' $ac_mid ')' - 1`
5482                        if test $ac_mid -le $ac_hi; then
5483                          ac_lo= ac_hi=
5484                          break
5485                        fi
5486                        ac_mid=`expr 2 '*' $ac_mid`
5487 fi
5488 rm -f conftest.$ac_objext conftest.$ac_ext
5489   done
5490 else
5491   echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5493
5494 ac_lo= ac_hi=
5495 fi
5496 rm -f conftest.$ac_objext conftest.$ac_ext
5497 fi
5498 rm -f conftest.$ac_objext conftest.$ac_ext
5499 # Binary search between lo and hi bounds.
5500 while test "x$ac_lo" != "x$ac_hi"; do
5501   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5502   cat >conftest.$ac_ext <<_ACEOF
5503 #line $LINENO "configure"
5504 /* confdefs.h.  */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h.  */
5509 $ac_includes_default
5510 int
5511 main ()
5512 {
5513 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5514 test_array [0] = 0
5515
5516   ;
5517   return 0;
5518 }
5519 _ACEOF
5520 rm -f conftest.$ac_objext
5521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5522   (eval $ac_compile) 2>&5
5523   ac_status=$?
5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525   (exit $ac_status); } &&
5526          { ac_try='test -s conftest.$ac_objext'
5527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528   (eval $ac_try) 2>&5
5529   ac_status=$?
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); }; }; then
5532   ac_hi=$ac_mid
5533 else
5534   echo "$as_me: failed program was:" >&5
5535 sed 's/^/| /' conftest.$ac_ext >&5
5536
5537 ac_lo=`expr '(' $ac_mid ')' + 1`
5538 fi
5539 rm -f conftest.$ac_objext conftest.$ac_ext
5540 done
5541 case $ac_lo in
5542 ?*) ac_cv_sizeof_double=$ac_lo;;
5543 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5544 See \`config.log' for more details." >&5
5545 echo "$as_me: error: cannot compute sizeof (double), 77
5546 See \`config.log' for more details." >&2;}
5547    { (exit 1); exit 1; }; } ;;
5548 esac
5549 else
5550   if test "$cross_compiling" = yes; then
5551   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5552 See \`config.log' for more details." >&5
5553 echo "$as_me: error: cannot run test program while cross compiling
5554 See \`config.log' for more details." >&2;}
5555    { (exit 1); exit 1; }; }
5556 else
5557   cat >conftest.$ac_ext <<_ACEOF
5558 #line $LINENO "configure"
5559 /* confdefs.h.  */
5560 _ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h.  */
5564 $ac_includes_default
5565 long longval () { return (long) (sizeof (double)); }
5566 unsigned long ulongval () { return (long) (sizeof (double)); }
5567 #include <stdio.h>
5568 #include <stdlib.h>
5569 int
5570 main ()
5571 {
5572
5573   FILE *f = fopen ("conftest.val", "w");
5574   if (! f)
5575     exit (1);
5576   if (((long) (sizeof (double))) < 0)
5577     {
5578       long i = longval ();
5579       if (i != ((long) (sizeof (double))))
5580         exit (1);
5581       fprintf (f, "%ld\n", i);
5582     }
5583   else
5584     {
5585       unsigned long i = ulongval ();
5586       if (i != ((long) (sizeof (double))))
5587         exit (1);
5588       fprintf (f, "%lu\n", i);
5589     }
5590   exit (ferror (f) || fclose (f) != 0);
5591
5592   ;
5593   return 0;
5594 }
5595 _ACEOF
5596 rm -f conftest$ac_exeext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598   (eval $ac_link) 2>&5
5599   ac_status=$?
5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603   (eval $ac_try) 2>&5
5604   ac_status=$?
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); }; }; then
5607   ac_cv_sizeof_double=`cat conftest.val`
5608 else
5609   echo "$as_me: program exited with status $ac_status" >&5
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613 ( exit $ac_status )
5614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5615 See \`config.log' for more details." >&5
5616 echo "$as_me: error: cannot compute sizeof (double), 77
5617 See \`config.log' for more details." >&2;}
5618    { (exit 1); exit 1; }; }
5619 fi
5620 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5621 fi
5622 fi
5623 rm -f conftest.val
5624 else
5625   ac_cv_sizeof_double=0
5626 fi
5627 fi
5628 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5629 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5630 cat >>confdefs.h <<_ACEOF
5631 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5632 _ACEOF
5633
5634
5635
5636
5637 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5638 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5639 if test "${ac_cv_lib_z_deflate+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   ac_check_lib_save_LIBS=$LIBS
5643 LIBS="-lz  $LIBS"
5644 cat >conftest.$ac_ext <<_ACEOF
5645 #line $LINENO "configure"
5646 /* confdefs.h.  */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h.  */
5651
5652 /* Override any gcc2 internal prototype to avoid an error.  */
5653 #ifdef __cplusplus
5654 extern "C"
5655 #endif
5656 /* We use char because int might match the return type of a gcc2
5657    builtin and then its argument prototype would still apply.  */
5658 char deflate ();
5659 int
5660 main ()
5661 {
5662 deflate ();
5663   ;
5664   return 0;
5665 }
5666 _ACEOF
5667 rm -f conftest.$ac_objext conftest$ac_exeext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5669   (eval $ac_link) 2>&5
5670   ac_status=$?
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); } &&
5673          { ac_try='test -s conftest$ac_exeext'
5674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675   (eval $ac_try) 2>&5
5676   ac_status=$?
5677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678   (exit $ac_status); }; }; then
5679   ac_cv_lib_z_deflate=yes
5680 else
5681   echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5683
5684 ac_cv_lib_z_deflate=no
5685 fi
5686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5687 LIBS=$ac_check_lib_save_LIBS
5688 fi
5689 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5690 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5691 if test $ac_cv_lib_z_deflate = yes; then
5692    zlib="true"
5693 else
5694    zlib="false" ;  { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
5695 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5696 fi
5697
5698
5699 echo "$as_me:$LINENO: checking for sin in -lm" >&5
5700 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
5701 if test "${ac_cv_lib_m_sin+set}" = set; then
5702   echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704   ac_check_lib_save_LIBS=$LIBS
5705 LIBS="-lm  $LIBS"
5706 cat >conftest.$ac_ext <<_ACEOF
5707 #line $LINENO "configure"
5708 /* confdefs.h.  */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h.  */
5713
5714 /* Override any gcc2 internal prototype to avoid an error.  */
5715 #ifdef __cplusplus
5716 extern "C"
5717 #endif
5718 /* We use char because int might match the return type of a gcc2
5719    builtin and then its argument prototype would still apply.  */
5720 char sin ();
5721 int
5722 main ()
5723 {
5724 sin ();
5725   ;
5726   return 0;
5727 }
5728 _ACEOF
5729 rm -f conftest.$ac_objext conftest$ac_exeext
5730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5731   (eval $ac_link) 2>&5
5732   ac_status=$?
5733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734   (exit $ac_status); } &&
5735          { ac_try='test -s conftest$ac_exeext'
5736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737   (eval $ac_try) 2>&5
5738   ac_status=$?
5739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740   (exit $ac_status); }; }; then
5741   ac_cv_lib_m_sin=yes
5742 else
5743   echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5745
5746 ac_cv_lib_m_sin=no
5747 fi
5748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5749 LIBS=$ac_check_lib_save_LIBS
5750 fi
5751 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
5752 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
5753 if test $ac_cv_lib_m_sin = yes; then
5754   cat >>confdefs.h <<_ACEOF
5755 #define HAVE_LIBM 1
5756 _ACEOF
5757
5758   LIBS="-lm $LIBS"
5759
5760 fi
5761
5762 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
5763 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
5764 if test "${ac_cv_lib_curses_main+set}" = set; then
5765   echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767   ac_check_lib_save_LIBS=$LIBS
5768 LIBS="-lcurses  $LIBS"
5769 cat >conftest.$ac_ext <<_ACEOF
5770 #line $LINENO "configure"
5771 /* confdefs.h.  */
5772 _ACEOF
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h.  */
5776
5777
5778 int
5779 main ()
5780 {
5781 main ();
5782   ;
5783   return 0;
5784 }
5785 _ACEOF
5786 rm -f conftest.$ac_objext conftest$ac_exeext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5788   (eval $ac_link) 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); } &&
5792          { ac_try='test -s conftest$ac_exeext'
5793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794   (eval $ac_try) 2>&5
5795   ac_status=$?
5796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797   (exit $ac_status); }; }; then
5798   ac_cv_lib_curses_main=yes
5799 else
5800   echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5802
5803 ac_cv_lib_curses_main=no
5804 fi
5805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5806 LIBS=$ac_check_lib_save_LIBS
5807 fi
5808 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
5809 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
5810 if test $ac_cv_lib_curses_main = yes; then
5811   curses=true
5812 else
5813   curses=false
5814 fi
5815
5816 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
5817 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
5818 if test "${ac_cv_lib_ncurses_main+set}" = set; then
5819   echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821   ac_check_lib_save_LIBS=$LIBS
5822 LIBS="-lncurses  $LIBS"
5823 cat >conftest.$ac_ext <<_ACEOF
5824 #line $LINENO "configure"
5825 /* confdefs.h.  */
5826 _ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h.  */
5830
5831
5832 int
5833 main ()
5834 {
5835 main ();
5836   ;
5837   return 0;
5838 }
5839 _ACEOF
5840 rm -f conftest.$ac_objext conftest$ac_exeext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5842   (eval $ac_link) 2>&5
5843   ac_status=$?
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); } &&
5846          { ac_try='test -s conftest$ac_exeext'
5847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848   (eval $ac_try) 2>&5
5849   ac_status=$?
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); }; }; then
5852   ac_cv_lib_ncurses_main=yes
5853 else
5854   echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5856
5857 ac_cv_lib_ncurses_main=no
5858 fi
5859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5860 LIBS=$ac_check_lib_save_LIBS
5861 fi
5862 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
5863 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
5864 if test $ac_cv_lib_ncurses_main = yes; then
5865   ncurses=true
5866 else
5867   ncurses=false
5868 fi
5869
5870 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
5871 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
5872 if test "${ac_cv_lib_readline_main+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   ac_check_lib_save_LIBS=$LIBS
5876 LIBS="-lreadline -lcurses $LIBS"
5877 cat >conftest.$ac_ext <<_ACEOF
5878 #line $LINENO "configure"
5879 /* confdefs.h.  */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h.  */
5884
5885
5886 int
5887 main ()
5888 {
5889 main ();
5890   ;
5891   return 0;
5892 }
5893 _ACEOF
5894 rm -f conftest.$ac_objext conftest$ac_exeext
5895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5896   (eval $ac_link) 2>&5
5897   ac_status=$?
5898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899   (exit $ac_status); } &&
5900          { ac_try='test -s conftest$ac_exeext'
5901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902   (eval $ac_try) 2>&5
5903   ac_status=$?
5904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905   (exit $ac_status); }; }; then
5906   ac_cv_lib_readline_main=yes
5907 else
5908   echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5910
5911 ac_cv_lib_readline_main=no
5912 fi
5913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5914 LIBS=$ac_check_lib_save_LIBS
5915 fi
5916 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
5917 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
5918 if test $ac_cv_lib_readline_main = yes; then
5919   readline=true;
5920
5921 cat >>confdefs.h <<\_ACEOF
5922 #define HAVE_READLINE 1
5923 _ACEOF
5924
5925 else
5926   readline=false
5927 fi
5928
5929 wxwin=false
5930 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.3" >&5
5931 echo $ECHO_N "checking for main in -lwx_gtk-2.3... $ECHO_C" >&6
5932 if test "${ac_cv_lib_wx_gtk_2_3_main+set}" = set; then
5933   echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935   ac_check_lib_save_LIBS=$LIBS
5936 LIBS="-lwx_gtk-2.3  $LIBS"
5937 cat >conftest.$ac_ext <<_ACEOF
5938 #line $LINENO "configure"
5939 /* confdefs.h.  */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h.  */
5944
5945
5946 int
5947 main ()
5948 {
5949 main ();
5950   ;
5951   return 0;
5952 }
5953 _ACEOF
5954 rm -f conftest.$ac_objext conftest$ac_exeext
5955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5956   (eval $ac_link) 2>&5
5957   ac_status=$?
5958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959   (exit $ac_status); } &&
5960          { ac_try='test -s conftest$ac_exeext'
5961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962   (eval $ac_try) 2>&5
5963   ac_status=$?
5964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965   (exit $ac_status); }; }; then
5966   ac_cv_lib_wx_gtk_2_3_main=yes
5967 else
5968   echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5970
5971 ac_cv_lib_wx_gtk_2_3_main=no
5972 fi
5973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5974 LIBS=$ac_check_lib_save_LIBS
5975 fi
5976 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_3_main" >&5
5977 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_3_main" >&6
5978 if test $ac_cv_lib_wx_gtk_2_3_main = yes; then
5979   wxwin=true; wx_gtk=true;
5980 cat >>confdefs.h <<\_ACEOF
5981 #define HAVE_WXWINDOWS 1
5982 _ACEOF
5983
5984 fi
5985
5986 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.3" >&5
5987 echo $ECHO_N "checking for main in -lwx_mac-2.3... $ECHO_C" >&6
5988 if test "${ac_cv_lib_wx_mac_2_3_main+set}" = set; then
5989   echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991   ac_check_lib_save_LIBS=$LIBS
5992 LIBS="-lwx_mac-2.3  $LIBS"
5993 cat >conftest.$ac_ext <<_ACEOF
5994 #line $LINENO "configure"
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000
6001
6002 int
6003 main ()
6004 {
6005 main ();
6006   ;
6007   return 0;
6008 }
6009 _ACEOF
6010 rm -f conftest.$ac_objext conftest$ac_exeext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6012   (eval $ac_link) 2>&5
6013   ac_status=$?
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); } &&
6016          { ac_try='test -s conftest$ac_exeext'
6017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018   (eval $ac_try) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; }; then
6022   ac_cv_lib_wx_mac_2_3_main=yes
6023 else
6024   echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6026
6027 ac_cv_lib_wx_mac_2_3_main=no
6028 fi
6029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6030 LIBS=$ac_check_lib_save_LIBS
6031 fi
6032 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_3_main" >&5
6033 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_3_main" >&6
6034 if test $ac_cv_lib_wx_mac_2_3_main = yes; then
6035   wxwin=true; wx_gtk=true;
6036 cat >>confdefs.h <<\_ACEOF
6037 #define HAVE_WXWINDOWS 1
6038 _ACEOF
6039
6040 fi
6041
6042 echo "$as_me:$LINENO: checking for fftw_one in -lfftw" >&5
6043 echo $ECHO_N "checking for fftw_one in -lfftw... $ECHO_C" >&6
6044 if test "${ac_cv_lib_fftw_fftw_one+set}" = set; then
6045   echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047   ac_check_lib_save_LIBS=$LIBS
6048 LIBS="-lfftw  $LIBS"
6049 cat >conftest.$ac_ext <<_ACEOF
6050 #line $LINENO "configure"
6051 /* confdefs.h.  */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h.  */
6056
6057 /* Override any gcc2 internal prototype to avoid an error.  */
6058 #ifdef __cplusplus
6059 extern "C"
6060 #endif
6061 /* We use char because int might match the return type of a gcc2
6062    builtin and then its argument prototype would still apply.  */
6063 char fftw_one ();
6064 int
6065 main ()
6066 {
6067 fftw_one ();
6068   ;
6069   return 0;
6070 }
6071 _ACEOF
6072 rm -f conftest.$ac_objext conftest$ac_exeext
6073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6074   (eval $ac_link) 2>&5
6075   ac_status=$?
6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); } &&
6078          { ac_try='test -s conftest$ac_exeext'
6079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080   (eval $ac_try) 2>&5
6081   ac_status=$?
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); }; }; then
6084   ac_cv_lib_fftw_fftw_one=yes
6085 else
6086   echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6088
6089 ac_cv_lib_fftw_fftw_one=no
6090 fi
6091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6092 LIBS=$ac_check_lib_save_LIBS
6093 fi
6094 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_one" >&5
6095 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_one" >&6
6096 if test $ac_cv_lib_fftw_fftw_one = yes; then
6097   fftw=true;
6098 cat >>confdefs.h <<\_ACEOF
6099 #define HAVE_FFTW 1
6100 _ACEOF
6101
6102 else
6103   fftw=false
6104 fi
6105
6106 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6107 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6108 if test "${ac_cv_lib_GL_main+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   ac_check_lib_save_LIBS=$LIBS
6112 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
6113 cat >conftest.$ac_ext <<_ACEOF
6114 #line $LINENO "configure"
6115 /* confdefs.h.  */
6116 _ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h.  */
6120
6121
6122 int
6123 main ()
6124 {
6125 main ();
6126   ;
6127   return 0;
6128 }
6129 _ACEOF
6130 rm -f conftest.$ac_objext conftest$ac_exeext
6131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6132   (eval $ac_link) 2>&5
6133   ac_status=$?
6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135   (exit $ac_status); } &&
6136          { ac_try='test -s conftest$ac_exeext'
6137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138   (eval $ac_try) 2>&5
6139   ac_status=$?
6140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); }; }; then
6142   ac_cv_lib_GL_main=yes
6143 else
6144   echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6146
6147 ac_cv_lib_GL_main=no
6148 fi
6149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6150 LIBS=$ac_check_lib_save_LIBS
6151 fi
6152 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6153 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6154 if test $ac_cv_lib_GL_main = yes; then
6155   libgl=true
6156 else
6157   libgl=false
6158 fi
6159
6160 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6161 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6162 if test "${ac_cv_lib_pthread_main+set}" = set; then
6163   echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165   ac_check_lib_save_LIBS=$LIBS
6166 LIBS="-lpthread  $LIBS"
6167 cat >conftest.$ac_ext <<_ACEOF
6168 #line $LINENO "configure"
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174
6175
6176 int
6177 main ()
6178 {
6179 main ();
6180   ;
6181   return 0;
6182 }
6183 _ACEOF
6184 rm -f conftest.$ac_objext conftest$ac_exeext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6186   (eval $ac_link) 2>&5
6187   ac_status=$?
6188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189   (exit $ac_status); } &&
6190          { ac_try='test -s conftest$ac_exeext'
6191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192   (eval $ac_try) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); }; }; then
6196   ac_cv_lib_pthread_main=yes
6197 else
6198   echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6200
6201 ac_cv_lib_pthread_main=no
6202 fi
6203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6204 LIBS=$ac_check_lib_save_LIBS
6205 fi
6206 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6207 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6208 if test $ac_cv_lib_pthread_main = yes; then
6209   pthread=true
6210 else
6211   pthread=false
6212 fi
6213
6214
6215 if test "$zlib" = "true" ; then
6216   echo "$as_me:$LINENO: checking for main in -lpng" >&5
6217 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6218 if test "${ac_cv_lib_png_main+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   ac_check_lib_save_LIBS=$LIBS
6222 LIBS="-lpng -lz -lm $LIBS"
6223 cat >conftest.$ac_ext <<_ACEOF
6224 #line $LINENO "configure"
6225 /* confdefs.h.  */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h.  */
6230
6231
6232 int
6233 main ()
6234 {
6235 main ();
6236   ;
6237   return 0;
6238 }
6239 _ACEOF
6240 rm -f conftest.$ac_objext conftest$ac_exeext
6241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6242   (eval $ac_link) 2>&5
6243   ac_status=$?
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); } &&
6246          { ac_try='test -s conftest$ac_exeext'
6247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248   (eval $ac_try) 2>&5
6249   ac_status=$?
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); }; }; then
6252   ac_cv_lib_png_main=yes
6253 else
6254   echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6256
6257 ac_cv_lib_png_main=no
6258 fi
6259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6260 LIBS=$ac_check_lib_save_LIBS
6261 fi
6262 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6263 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6264 if test $ac_cv_lib_png_main = yes; then
6265   png=true ;
6266 cat >>confdefs.h <<\_ACEOF
6267 #define HAVE_PNG 1
6268 _ACEOF
6269
6270 else
6271   png=false
6272 fi
6273
6274 fi
6275
6276 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6277 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6278 if test "${ac_cv_header_stdc+set}" = set; then
6279   echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281   cat >conftest.$ac_ext <<_ACEOF
6282 #line $LINENO "configure"
6283 /* confdefs.h.  */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h.  */
6288 #include <stdlib.h>
6289 #include <stdarg.h>
6290 #include <string.h>
6291 #include <float.h>
6292
6293 int
6294 main ()
6295 {
6296
6297   ;
6298   return 0;
6299 }
6300 _ACEOF
6301 rm -f conftest.$ac_objext
6302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303   (eval $ac_compile) 2>&5
6304   ac_status=$?
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); } &&
6307          { ac_try='test -s conftest.$ac_objext'
6308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309   (eval $ac_try) 2>&5
6310   ac_status=$?
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); }; }; then
6313   ac_cv_header_stdc=yes
6314 else
6315   echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6317
6318 ac_cv_header_stdc=no
6319 fi
6320 rm -f conftest.$ac_objext conftest.$ac_ext
6321
6322 if test $ac_cv_header_stdc = yes; then
6323   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6324   cat >conftest.$ac_ext <<_ACEOF
6325 #line $LINENO "configure"
6326 /* confdefs.h.  */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h.  */
6331 #include <string.h>
6332
6333 _ACEOF
6334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6335   $EGREP "memchr" >/dev/null 2>&1; then
6336   :
6337 else
6338   ac_cv_header_stdc=no
6339 fi
6340 rm -f conftest*
6341
6342 fi
6343
6344 if test $ac_cv_header_stdc = yes; then
6345   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6346   cat >conftest.$ac_ext <<_ACEOF
6347 #line $LINENO "configure"
6348 /* confdefs.h.  */
6349 _ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h.  */
6353 #include <stdlib.h>
6354
6355 _ACEOF
6356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6357   $EGREP "free" >/dev/null 2>&1; then
6358   :
6359 else
6360   ac_cv_header_stdc=no
6361 fi
6362 rm -f conftest*
6363
6364 fi
6365
6366 if test $ac_cv_header_stdc = yes; then
6367   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6368   if test "$cross_compiling" = yes; then
6369   :
6370 else
6371   cat >conftest.$ac_ext <<_ACEOF
6372 #line $LINENO "configure"
6373 /* confdefs.h.  */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h.  */
6378 #include <ctype.h>
6379 #if ((' ' & 0x0FF) == 0x020)
6380 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6381 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6382 #else
6383 # define ISLOWER(c) \
6384                    (('a' <= (c) && (c) <= 'i') \
6385                      || ('j' <= (c) && (c) <= 'r') \
6386                      || ('s' <= (c) && (c) <= 'z'))
6387 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6388 #endif
6389
6390 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6391 int
6392 main ()
6393 {
6394   int i;
6395   for (i = 0; i < 256; i++)
6396     if (XOR (islower (i), ISLOWER (i))
6397         || toupper (i) != TOUPPER (i))
6398       exit(2);
6399   exit (0);
6400 }
6401 _ACEOF
6402 rm -f conftest$ac_exeext
6403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6404   (eval $ac_link) 2>&5
6405   ac_status=$?
6406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409   (eval $ac_try) 2>&5
6410   ac_status=$?
6411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412   (exit $ac_status); }; }; then
6413   :
6414 else
6415   echo "$as_me: program exited with status $ac_status" >&5
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6418
6419 ( exit $ac_status )
6420 ac_cv_header_stdc=no
6421 fi
6422 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6423 fi
6424 fi
6425 fi
6426 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6427 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6428 if test $ac_cv_header_stdc = yes; then
6429
6430 cat >>confdefs.h <<\_ACEOF
6431 #define STDC_HEADERS 1
6432 _ACEOF
6433
6434 fi
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460 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
6461 do
6462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6464   echo "$as_me:$LINENO: checking for $ac_header" >&5
6465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6467   echo $ECHO_N "(cached) $ECHO_C" >&6
6468 fi
6469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6471 else
6472   # Is the header compilable?
6473 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6475 cat >conftest.$ac_ext <<_ACEOF
6476 #line $LINENO "configure"
6477 /* confdefs.h.  */
6478 _ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h.  */
6482 $ac_includes_default
6483 #include <$ac_header>
6484 _ACEOF
6485 rm -f conftest.$ac_objext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6487   (eval $ac_compile) 2>&5
6488   ac_status=$?
6489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490   (exit $ac_status); } &&
6491          { ac_try='test -s conftest.$ac_objext'
6492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493   (eval $ac_try) 2>&5
6494   ac_status=$?
6495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); }; }; then
6497   ac_header_compiler=yes
6498 else
6499   echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6501
6502 ac_header_compiler=no
6503 fi
6504 rm -f conftest.$ac_objext conftest.$ac_ext
6505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6506 echo "${ECHO_T}$ac_header_compiler" >&6
6507
6508 # Is the header present?
6509 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6511 cat >conftest.$ac_ext <<_ACEOF
6512 #line $LINENO "configure"
6513 /* confdefs.h.  */
6514 _ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h.  */
6518 #include <$ac_header>
6519 _ACEOF
6520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6521   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6522   ac_status=$?
6523   grep -v '^ *+' conftest.er1 >conftest.err
6524   rm -f conftest.er1
6525   cat conftest.err >&5
6526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527   (exit $ac_status); } >/dev/null; then
6528   if test -s conftest.err; then
6529     ac_cpp_err=$ac_c_preproc_warn_flag
6530   else
6531     ac_cpp_err=
6532   fi
6533 else
6534   ac_cpp_err=yes
6535 fi
6536 if test -z "$ac_cpp_err"; then
6537   ac_header_preproc=yes
6538 else
6539   echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6541
6542   ac_header_preproc=no
6543 fi
6544 rm -f conftest.err conftest.$ac_ext
6545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6546 echo "${ECHO_T}$ac_header_preproc" >&6
6547
6548 # So?  What about this header?
6549 case $ac_header_compiler:$ac_header_preproc in
6550   yes:no )
6551     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6555     (
6556       cat <<\_ASBOX
6557 ## ------------------------------------ ##
6558 ## Report this to bug-autoconf@gnu.org. ##
6559 ## ------------------------------------ ##
6560 _ASBOX
6561     ) |
6562       sed "s/^/$as_me: WARNING:     /" >&2
6563     ;;
6564   no:yes )
6565     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6567     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6571     (
6572       cat <<\_ASBOX
6573 ## ------------------------------------ ##
6574 ## Report this to bug-autoconf@gnu.org. ##
6575 ## ------------------------------------ ##
6576 _ASBOX
6577     ) |
6578       sed "s/^/$as_me: WARNING:     /" >&2
6579     ;;
6580 esac
6581 echo "$as_me:$LINENO: checking for $ac_header" >&5
6582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6584   echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586   eval "$as_ac_Header=$ac_header_preproc"
6587 fi
6588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6590
6591 fi
6592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6593   cat >>confdefs.h <<_ACEOF
6594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6595 _ACEOF
6596
6597 fi
6598
6599 done
6600
6601
6602 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6603 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6604 if test "${ac_cv_c_const+set}" = set; then
6605   echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607   cat >conftest.$ac_ext <<_ACEOF
6608 #line $LINENO "configure"
6609 /* confdefs.h.  */
6610 _ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h.  */
6614
6615 int
6616 main ()
6617 {
6618 /* FIXME: Include the comments suggested by Paul. */
6619 #ifndef __cplusplus
6620   /* Ultrix mips cc rejects this.  */
6621   typedef int charset[2];
6622   const charset x;
6623   /* SunOS 4.1.1 cc rejects this.  */
6624   char const *const *ccp;
6625   char **p;
6626   /* NEC SVR4.0.2 mips cc rejects this.  */
6627   struct point {int x, y;};
6628   static struct point const zero = {0,0};
6629   /* AIX XL C 1.02.0.0 rejects this.
6630      It does not let you subtract one const X* pointer from another in
6631      an arm of an if-expression whose if-part is not a constant
6632      expression */
6633   const char *g = "string";
6634   ccp = &g + (g ? g-g : 0);
6635   /* HPUX 7.0 cc rejects these. */
6636   ++ccp;
6637   p = (char**) ccp;
6638   ccp = (char const *const *) p;
6639   { /* SCO 3.2v4 cc rejects this.  */
6640     char *t;
6641     char const *s = 0 ? (char *) 0 : (char const *) 0;
6642
6643     *t++ = 0;
6644   }
6645   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6646     int x[] = {25, 17};
6647     const int *foo = &x[0];
6648     ++foo;
6649   }
6650   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6651     typedef const int *iptr;
6652     iptr p = 0;
6653     ++p;
6654   }
6655   { /* AIX XL C 1.02.0.0 rejects this saying
6656        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6657     struct s { int j; const int *ap[3]; };
6658     struct s *b; b->j = 5;
6659   }
6660   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6661     const int foo = 10;
6662   }
6663 #endif
6664
6665   ;
6666   return 0;
6667 }
6668 _ACEOF
6669 rm -f conftest.$ac_objext
6670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6671   (eval $ac_compile) 2>&5
6672   ac_status=$?
6673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674   (exit $ac_status); } &&
6675          { ac_try='test -s conftest.$ac_objext'
6676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677   (eval $ac_try) 2>&5
6678   ac_status=$?
6679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680   (exit $ac_status); }; }; then
6681   ac_cv_c_const=yes
6682 else
6683   echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6685
6686 ac_cv_c_const=no
6687 fi
6688 rm -f conftest.$ac_objext conftest.$ac_ext
6689 fi
6690 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6691 echo "${ECHO_T}$ac_cv_c_const" >&6
6692 if test $ac_cv_c_const = no; then
6693
6694 cat >>confdefs.h <<\_ACEOF
6695 #define const
6696 _ACEOF
6697
6698 fi
6699
6700 echo "$as_me:$LINENO: checking for off_t" >&5
6701 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6702 if test "${ac_cv_type_off_t+set}" = set; then
6703   echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705   cat >conftest.$ac_ext <<_ACEOF
6706 #line $LINENO "configure"
6707 /* confdefs.h.  */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h.  */
6712 $ac_includes_default
6713 int
6714 main ()
6715 {
6716 if ((off_t *) 0)
6717   return 0;
6718 if (sizeof (off_t))
6719   return 0;
6720   ;
6721   return 0;
6722 }
6723 _ACEOF
6724 rm -f conftest.$ac_objext
6725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726   (eval $ac_compile) 2>&5
6727   ac_status=$?
6728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729   (exit $ac_status); } &&
6730          { ac_try='test -s conftest.$ac_objext'
6731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732   (eval $ac_try) 2>&5
6733   ac_status=$?
6734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735   (exit $ac_status); }; }; then
6736   ac_cv_type_off_t=yes
6737 else
6738   echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.$ac_ext >&5
6740
6741 ac_cv_type_off_t=no
6742 fi
6743 rm -f conftest.$ac_objext conftest.$ac_ext
6744 fi
6745 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6746 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6747 if test $ac_cv_type_off_t = yes; then
6748   :
6749 else
6750
6751 cat >>confdefs.h <<_ACEOF
6752 #define off_t long
6753 _ACEOF
6754
6755 fi
6756
6757 echo "$as_me:$LINENO: checking for size_t" >&5
6758 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6759 if test "${ac_cv_type_size_t+set}" = set; then
6760   echo $ECHO_N "(cached) $ECHO_C" >&6
6761 else
6762   cat >conftest.$ac_ext <<_ACEOF
6763 #line $LINENO "configure"
6764 /* confdefs.h.  */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h.  */
6769 $ac_includes_default
6770 int
6771 main ()
6772 {
6773 if ((size_t *) 0)
6774   return 0;
6775 if (sizeof (size_t))
6776   return 0;
6777   ;
6778   return 0;
6779 }
6780 _ACEOF
6781 rm -f conftest.$ac_objext
6782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6783   (eval $ac_compile) 2>&5
6784   ac_status=$?
6785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786   (exit $ac_status); } &&
6787          { ac_try='test -s conftest.$ac_objext'
6788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789   (eval $ac_try) 2>&5
6790   ac_status=$?
6791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792   (exit $ac_status); }; }; then
6793   ac_cv_type_size_t=yes
6794 else
6795   echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6797
6798 ac_cv_type_size_t=no
6799 fi
6800 rm -f conftest.$ac_objext conftest.$ac_ext
6801 fi
6802 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6803 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6804 if test $ac_cv_type_size_t = yes; then
6805   :
6806 else
6807
6808 cat >>confdefs.h <<_ACEOF
6809 #define size_t unsigned
6810 _ACEOF
6811
6812 fi
6813
6814 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6815 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6816 if test "${ac_cv_struct_tm+set}" = set; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   cat >conftest.$ac_ext <<_ACEOF
6820 #line $LINENO "configure"
6821 /* confdefs.h.  */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h.  */
6826 #include <sys/types.h>
6827 #include <time.h>
6828
6829 int
6830 main ()
6831 {
6832 struct tm *tp; tp->tm_sec;
6833   ;
6834   return 0;
6835 }
6836 _ACEOF
6837 rm -f conftest.$ac_objext
6838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6839   (eval $ac_compile) 2>&5
6840   ac_status=$?
6841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842   (exit $ac_status); } &&
6843          { ac_try='test -s conftest.$ac_objext'
6844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845   (eval $ac_try) 2>&5
6846   ac_status=$?
6847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848   (exit $ac_status); }; }; then
6849   ac_cv_struct_tm=time.h
6850 else
6851   echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6853
6854 ac_cv_struct_tm=sys/time.h
6855 fi
6856 rm -f conftest.$ac_objext conftest.$ac_ext
6857 fi
6858 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6859 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6860 if test $ac_cv_struct_tm = sys/time.h; then
6861
6862 cat >>confdefs.h <<\_ACEOF
6863 #define TM_IN_SYS_TIME 1
6864 _ACEOF
6865
6866 fi
6867
6868
6869
6870 for ac_func in vprintf
6871 do
6872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6873 echo "$as_me:$LINENO: checking for $ac_func" >&5
6874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6875 if eval "test \"\${$as_ac_var+set}\" = set"; then
6876   echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878   cat >conftest.$ac_ext <<_ACEOF
6879 #line $LINENO "configure"
6880 /* confdefs.h.  */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h.  */
6885 /* System header to define __stub macros and hopefully few prototypes,
6886     which can conflict with char $ac_func (); below.  */
6887 #include <assert.h>
6888 /* Override any gcc2 internal prototype to avoid an error.  */
6889 #ifdef __cplusplus
6890 extern "C"
6891 {
6892 #endif
6893 /* We use char because int might match the return type of a gcc2
6894    builtin and then its argument prototype would still apply.  */
6895 char $ac_func ();
6896 /* The GNU C library defines this for functions which it implements
6897     to always fail with ENOSYS.  Some functions are actually named
6898     something starting with __ and the normal name is an alias.  */
6899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6900 choke me
6901 #else
6902 char (*f) () = $ac_func;
6903 #endif
6904 #ifdef __cplusplus
6905 }
6906 #endif
6907
6908 int
6909 main ()
6910 {
6911
6912   ;
6913   return 0;
6914 }
6915 _ACEOF
6916 rm -f conftest.$ac_objext conftest$ac_exeext
6917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6918   (eval $ac_link) 2>&5
6919   ac_status=$?
6920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); } &&
6922          { ac_try='test -s conftest$ac_exeext'
6923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924   (eval $ac_try) 2>&5
6925   ac_status=$?
6926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927   (exit $ac_status); }; }; then
6928   eval "$as_ac_var=yes"
6929 else
6930   echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6932
6933 eval "$as_ac_var=no"
6934 fi
6935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6936 fi
6937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6939 if test `eval echo '${'$as_ac_var'}'` = yes; then
6940   cat >>confdefs.h <<_ACEOF
6941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6942 _ACEOF
6943
6944 echo "$as_me:$LINENO: checking for _doprnt" >&5
6945 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6946 if test "${ac_cv_func__doprnt+set}" = set; then
6947   echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949   cat >conftest.$ac_ext <<_ACEOF
6950 #line $LINENO "configure"
6951 /* confdefs.h.  */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h.  */
6956 /* System header to define __stub macros and hopefully few prototypes,
6957     which can conflict with char _doprnt (); below.  */
6958 #include <assert.h>
6959 /* Override any gcc2 internal prototype to avoid an error.  */
6960 #ifdef __cplusplus
6961 extern "C"
6962 {
6963 #endif
6964 /* We use char because int might match the return type of a gcc2
6965    builtin and then its argument prototype would still apply.  */
6966 char _doprnt ();
6967 /* The GNU C library defines this for functions which it implements
6968     to always fail with ENOSYS.  Some functions are actually named
6969     something starting with __ and the normal name is an alias.  */
6970 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6971 choke me
6972 #else
6973 char (*f) () = _doprnt;
6974 #endif
6975 #ifdef __cplusplus
6976 }
6977 #endif
6978
6979 int
6980 main ()
6981 {
6982
6983   ;
6984   return 0;
6985 }
6986 _ACEOF
6987 rm -f conftest.$ac_objext conftest$ac_exeext
6988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6989   (eval $ac_link) 2>&5
6990   ac_status=$?
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); } &&
6993          { ac_try='test -s conftest$ac_exeext'
6994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995   (eval $ac_try) 2>&5
6996   ac_status=$?
6997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998   (exit $ac_status); }; }; then
6999   ac_cv_func__doprnt=yes
7000 else
7001   echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7003
7004 ac_cv_func__doprnt=no
7005 fi
7006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7007 fi
7008 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7009 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7010 if test $ac_cv_func__doprnt = yes; then
7011
7012 cat >>confdefs.h <<\_ACEOF
7013 #define HAVE_DOPRNT 1
7014 _ACEOF
7015
7016 fi
7017
7018 fi
7019 done
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
7030 do
7031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7032 echo "$as_me:$LINENO: checking for $ac_func" >&5
7033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7034 if eval "test \"\${$as_ac_var+set}\" = set"; then
7035   echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037   cat >conftest.$ac_ext <<_ACEOF
7038 #line $LINENO "configure"
7039 /* confdefs.h.  */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h.  */
7044 /* System header to define __stub macros and hopefully few prototypes,
7045     which can conflict with char $ac_func (); below.  */
7046 #include <assert.h>
7047 /* Override any gcc2 internal prototype to avoid an error.  */
7048 #ifdef __cplusplus
7049 extern "C"
7050 {
7051 #endif
7052 /* We use char because int might match the return type of a gcc2
7053    builtin and then its argument prototype would still apply.  */
7054 char $ac_func ();
7055 /* The GNU C library defines this for functions which it implements
7056     to always fail with ENOSYS.  Some functions are actually named
7057     something starting with __ and the normal name is an alias.  */
7058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7059 choke me
7060 #else
7061 char (*f) () = $ac_func;
7062 #endif
7063 #ifdef __cplusplus
7064 }
7065 #endif
7066
7067 int
7068 main ()
7069 {
7070
7071   ;
7072   return 0;
7073 }
7074 _ACEOF
7075 rm -f conftest.$ac_objext conftest$ac_exeext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7077   (eval $ac_link) 2>&5
7078   ac_status=$?
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); } &&
7081          { ac_try='test -s conftest$ac_exeext'
7082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083   (eval $ac_try) 2>&5
7084   ac_status=$?
7085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086   (exit $ac_status); }; }; then
7087   eval "$as_ac_var=yes"
7088 else
7089   echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7091
7092 eval "$as_ac_var=no"
7093 fi
7094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7095 fi
7096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7098 if test `eval echo '${'$as_ac_var'}'` = yes; then
7099   cat >>confdefs.h <<_ACEOF
7100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7101 _ACEOF
7102
7103 fi
7104 done
7105
7106 echo "$as_me:$LINENO: checking for basename" >&5
7107 echo $ECHO_N "checking for basename... $ECHO_C" >&6
7108 if test "${ac_cv_func_basename+set}" = set; then
7109   echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111   cat >conftest.$ac_ext <<_ACEOF
7112 #line $LINENO "configure"
7113 /* confdefs.h.  */
7114 _ACEOF
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h.  */
7118 /* System header to define __stub macros and hopefully few prototypes,
7119     which can conflict with char basename (); below.  */
7120 #include <assert.h>
7121 /* Override any gcc2 internal prototype to avoid an error.  */
7122 #ifdef __cplusplus
7123 extern "C"
7124 {
7125 #endif
7126 /* We use char because int might match the return type of a gcc2
7127    builtin and then its argument prototype would still apply.  */
7128 char basename ();
7129 /* The GNU C library defines this for functions which it implements
7130     to always fail with ENOSYS.  Some functions are actually named
7131     something starting with __ and the normal name is an alias.  */
7132 #if defined (__stub_basename) || defined (__stub___basename)
7133 choke me
7134 #else
7135 char (*f) () = basename;
7136 #endif
7137 #ifdef __cplusplus
7138 }
7139 #endif
7140
7141 int
7142 main ()
7143 {
7144
7145   ;
7146   return 0;
7147 }
7148 _ACEOF
7149 rm -f conftest.$ac_objext conftest$ac_exeext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151   (eval $ac_link) 2>&5
7152   ac_status=$?
7153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154   (exit $ac_status); } &&
7155          { ac_try='test -s conftest$ac_exeext'
7156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157   (eval $ac_try) 2>&5
7158   ac_status=$?
7159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160   (exit $ac_status); }; }; then
7161   ac_cv_func_basename=yes
7162 else
7163   echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7165
7166 ac_cv_func_basename=no
7167 fi
7168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7169 fi
7170 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
7171 echo "${ECHO_T}$ac_cv_func_basename" >&6
7172
7173 echo "$as_me:$LINENO: checking for setjmp" >&5
7174 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
7175 if test "${ac_cv_func_setjmp+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   cat >conftest.$ac_ext <<_ACEOF
7179 #line $LINENO "configure"
7180 /* confdefs.h.  */
7181 _ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h.  */
7185 /* System header to define __stub macros and hopefully few prototypes,
7186     which can conflict with char setjmp (); below.  */
7187 #include <assert.h>
7188 /* Override any gcc2 internal prototype to avoid an error.  */
7189 #ifdef __cplusplus
7190 extern "C"
7191 {
7192 #endif
7193 /* We use char because int might match the return type of a gcc2
7194    builtin and then its argument prototype would still apply.  */
7195 char setjmp ();
7196 /* The GNU C library defines this for functions which it implements
7197     to always fail with ENOSYS.  Some functions are actually named
7198     something starting with __ and the normal name is an alias.  */
7199 #if defined (__stub_setjmp) || defined (__stub___setjmp)
7200 choke me
7201 #else
7202 char (*f) () = setjmp;
7203 #endif
7204 #ifdef __cplusplus
7205 }
7206 #endif
7207
7208 int
7209 main ()
7210 {
7211
7212   ;
7213   return 0;
7214 }
7215 _ACEOF
7216 rm -f conftest.$ac_objext conftest$ac_exeext
7217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7218   (eval $ac_link) 2>&5
7219   ac_status=$?
7220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221   (exit $ac_status); } &&
7222          { ac_try='test -s conftest$ac_exeext'
7223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224   (eval $ac_try) 2>&5
7225   ac_status=$?
7226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227   (exit $ac_status); }; }; then
7228   ac_cv_func_setjmp=yes
7229 else
7230   echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7232
7233 ac_cv_func_setjmp=no
7234 fi
7235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7236 fi
7237 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
7238 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
7239
7240 echo "$as_me:$LINENO: checking for setpriority" >&5
7241 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
7242 if test "${ac_cv_func_setpriority+set}" = set; then
7243   echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245   cat >conftest.$ac_ext <<_ACEOF
7246 #line $LINENO "configure"
7247 /* confdefs.h.  */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h.  */
7252 /* System header to define __stub macros and hopefully few prototypes,
7253     which can conflict with char setpriority (); below.  */
7254 #include <assert.h>
7255 /* Override any gcc2 internal prototype to avoid an error.  */
7256 #ifdef __cplusplus
7257 extern "C"
7258 {
7259 #endif
7260 /* We use char because int might match the return type of a gcc2
7261    builtin and then its argument prototype would still apply.  */
7262 char setpriority ();
7263 /* The GNU C library defines this for functions which it implements
7264     to always fail with ENOSYS.  Some functions are actually named
7265     something starting with __ and the normal name is an alias.  */
7266 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7267 choke me
7268 #else
7269 char (*f) () = setpriority;
7270 #endif
7271 #ifdef __cplusplus
7272 }
7273 #endif
7274
7275 int
7276 main ()
7277 {
7278
7279   ;
7280   return 0;
7281 }
7282 _ACEOF
7283 rm -f conftest.$ac_objext conftest$ac_exeext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7285   (eval $ac_link) 2>&5
7286   ac_status=$?
7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); } &&
7289          { ac_try='test -s conftest$ac_exeext'
7290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291   (eval $ac_try) 2>&5
7292   ac_status=$?
7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); }; }; then
7295   ac_cv_func_setpriority=yes
7296 else
7297   echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7299
7300 ac_cv_func_setpriority=no
7301 fi
7302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7303 fi
7304 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7305 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7306
7307 echo "$as_me:$LINENO: checking for time" >&5
7308 echo $ECHO_N "checking for time... $ECHO_C" >&6
7309 if test "${ac_cv_func_time+set}" = set; then
7310   echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312   cat >conftest.$ac_ext <<_ACEOF
7313 #line $LINENO "configure"
7314 /* confdefs.h.  */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h.  */
7319 /* System header to define __stub macros and hopefully few prototypes,
7320     which can conflict with char time (); below.  */
7321 #include <assert.h>
7322 /* Override any gcc2 internal prototype to avoid an error.  */
7323 #ifdef __cplusplus
7324 extern "C"
7325 {
7326 #endif
7327 /* We use char because int might match the return type of a gcc2
7328    builtin and then its argument prototype would still apply.  */
7329 char time ();
7330 /* The GNU C library defines this for functions which it implements
7331     to always fail with ENOSYS.  Some functions are actually named
7332     something starting with __ and the normal name is an alias.  */
7333 #if defined (__stub_time) || defined (__stub___time)
7334 choke me
7335 #else
7336 char (*f) () = time;
7337 #endif
7338 #ifdef __cplusplus
7339 }
7340 #endif
7341
7342 int
7343 main ()
7344 {
7345
7346   ;
7347   return 0;
7348 }
7349 _ACEOF
7350 rm -f conftest.$ac_objext conftest$ac_exeext
7351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7352   (eval $ac_link) 2>&5
7353   ac_status=$?
7354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355   (exit $ac_status); } &&
7356          { ac_try='test -s conftest$ac_exeext'
7357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358   (eval $ac_try) 2>&5
7359   ac_status=$?
7360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); }; }; then
7362   ac_cv_func_time=yes
7363 else
7364   echo "$as_me: failed program was:" >&5
7365 sed 's/^/| /' conftest.$ac_ext >&5
7366
7367 ac_cv_func_time=no
7368 fi
7369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7370 fi
7371 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7372 echo "${ECHO_T}$ac_cv_func_time" >&6
7373
7374 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7375 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7376 if test "${ac_cv_func_gettimeofday+set}" = set; then
7377   echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379   cat >conftest.$ac_ext <<_ACEOF
7380 #line $LINENO "configure"
7381 /* confdefs.h.  */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h.  */
7386 /* System header to define __stub macros and hopefully few prototypes,
7387     which can conflict with char gettimeofday (); below.  */
7388 #include <assert.h>
7389 /* Override any gcc2 internal prototype to avoid an error.  */
7390 #ifdef __cplusplus
7391 extern "C"
7392 {
7393 #endif
7394 /* We use char because int might match the return type of a gcc2
7395    builtin and then its argument prototype would still apply.  */
7396 char gettimeofday ();
7397 /* The GNU C library defines this for functions which it implements
7398     to always fail with ENOSYS.  Some functions are actually named
7399     something starting with __ and the normal name is an alias.  */
7400 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7401 choke me
7402 #else
7403 char (*f) () = gettimeofday;
7404 #endif
7405 #ifdef __cplusplus
7406 }
7407 #endif
7408
7409 int
7410 main ()
7411 {
7412
7413   ;
7414   return 0;
7415 }
7416 _ACEOF
7417 rm -f conftest.$ac_objext conftest$ac_exeext
7418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7419   (eval $ac_link) 2>&5
7420   ac_status=$?
7421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); } &&
7423          { ac_try='test -s conftest$ac_exeext'
7424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425   (eval $ac_try) 2>&5
7426   ac_status=$?
7427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428   (exit $ac_status); }; }; then
7429   ac_cv_func_gettimeofday=yes
7430 else
7431   echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7433
7434 ac_cv_func_gettimeofday=no
7435 fi
7436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7437 fi
7438 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7439 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7440
7441
7442 if test "${OSTYPE}" = "cygwin" ; then
7443   getopt_long=false
7444 else
7445   echo "$as_me:$LINENO: checking for getopt_long" >&5
7446 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7447 if test "${ac_cv_func_getopt_long+set}" = set; then
7448   echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450   cat >conftest.$ac_ext <<_ACEOF
7451 #line $LINENO "configure"
7452 /* confdefs.h.  */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h.  */
7457 /* System header to define __stub macros and hopefully few prototypes,
7458     which can conflict with char getopt_long (); below.  */
7459 #include <assert.h>
7460 /* Override any gcc2 internal prototype to avoid an error.  */
7461 #ifdef __cplusplus
7462 extern "C"
7463 {
7464 #endif
7465 /* We use char because int might match the return type of a gcc2
7466    builtin and then its argument prototype would still apply.  */
7467 char getopt_long ();
7468 /* The GNU C library defines this for functions which it implements
7469     to always fail with ENOSYS.  Some functions are actually named
7470     something starting with __ and the normal name is an alias.  */
7471 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
7472 choke me
7473 #else
7474 char (*f) () = getopt_long;
7475 #endif
7476 #ifdef __cplusplus
7477 }
7478 #endif
7479
7480 int
7481 main ()
7482 {
7483
7484   ;
7485   return 0;
7486 }
7487 _ACEOF
7488 rm -f conftest.$ac_objext conftest$ac_exeext
7489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7490   (eval $ac_link) 2>&5
7491   ac_status=$?
7492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493   (exit $ac_status); } &&
7494          { ac_try='test -s conftest$ac_exeext'
7495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496   (eval $ac_try) 2>&5
7497   ac_status=$?
7498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499   (exit $ac_status); }; }; then
7500   ac_cv_func_getopt_long=yes
7501 else
7502   echo "$as_me: failed program was:" >&5
7503 sed 's/^/| /' conftest.$ac_ext >&5
7504
7505 ac_cv_func_getopt_long=no
7506 fi
7507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7508 fi
7509 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
7510 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
7511 if test $ac_cv_func_getopt_long = yes; then
7512    getopt_long=true
7513 else
7514    getopt_long=false
7515 fi
7516
7517 fi
7518
7519 if test "${getopt_long}" = "false" ; then
7520   my_includes="$my_includes -I../getopt"
7521
7522 cat >>confdefs.h <<\_ACEOF
7523 #define HAVE_GETOPT_LONG 1
7524 _ACEOF
7525
7526   ctlibs_base="$ctlibs_base -lgetopt"
7527   LDFLAGS="$LDFLAGS -L../getopt"
7528
7529
7530 if test 1==1; then
7531   INCLUDED_GETOPT_LONG_TRUE=
7532   INCLUDED_GETOPT_LONG_FALSE='#'
7533 else
7534   INCLUDED_GETOPT_LONG_TRUE='#'
7535   INCLUDED_GETOPT_LONG_FALSE=
7536 fi
7537 fi
7538
7539 if test "${readline}" = "true" ; then
7540   ctlibs_base="$ctlibs_base -lreadline"
7541   if test "${ncurses}" = "true"; then
7542     ctlibs_base="$ctlibs_base -lncurses"
7543   elif test "${curses}" = "true"; then
7544     ctlibs_base="$ctlibs_base -lcurses"
7545   fi
7546 fi
7547
7548 echo "$as_me:$LINENO: checking debug" >&5
7549 echo $ECHO_N "checking debug... $ECHO_C" >&6
7550 # Check whether --enable-debug or --disable-debug was given.
7551 if test "${enable_debug+set}" = set; then
7552   enableval="$enable_debug"
7553   case "${enableval}" in
7554   yes) debug=true
7555        echo "$as_me:$LINENO: result: yes" >&5
7556 echo "${ECHO_T}yes" >&6
7557        ;;
7558   no)  debug=false
7559        echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7561        ;;
7562   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
7563 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
7564        ;;
7565 esac
7566 else
7567   debug=false; echo "$as_me:$LINENO: result: no" >&5
7568 echo "${ECHO_T}no" >&6
7569 fi;
7570
7571
7572 if test "$debug" = "true"; then
7573   DEBUG_TRUE=
7574   DEBUG_FALSE='#'
7575 else
7576   DEBUG_TRUE='#'
7577   DEBUG_FALSE=
7578 fi
7579
7580 if test "$datadir" != "" ; then
7581   CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
7582 fi
7583
7584 if test "$debug" = "true" ; then
7585   CFLAGS="$CFLAGS -g -DDEBUG"
7586
7587 cat >>confdefs.h <<\_ACEOF
7588 #define DEBUG 1
7589 _ACEOF
7590
7591 else
7592   CFLAGS="$CFLAGS -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops"
7593
7594 cat >>confdefs.h <<\_ACEOF
7595 #define NDEBUG 1
7596 _ACEOF
7597
7598 fi
7599
7600 if test "${pthread}" = "true" ; then
7601
7602 cat >>confdefs.h <<\_ACEOF
7603 #define HAVE_WXTHREADS 1
7604 _ACEOF
7605
7606 fi
7607
7608 echo "$as_me:$LINENO: checking sstream" >&5
7609 echo $ECHO_N "checking sstream... $ECHO_C" >&6
7610  if  test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
7611      test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ; then
7612
7613 cat >>confdefs.h <<\_ACEOF
7614 #define HAVE_SSTREAM 1
7615 _ACEOF
7616
7617   echo "$as_me:$LINENO: result: yes" >&5
7618 echo "${ECHO_T}yes" >&6
7619 fi
7620 echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6
7622
7623
7624 CFLAGS="$CFLAGS -Wall"
7625 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
7626 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
7627 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
7628 if test "${enable_verbose_warnings+set}" = set; then
7629   enableval="$enable_verbose_warnings"
7630    case "$enableval" in
7631   yes)
7632     echo "$as_me:$LINENO: result: yes" >&5
7633 echo "${ECHO_T}yes" >&6
7634     CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
7635     ;;
7636   *)
7637     echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6
7639     ;;
7640   esac
7641 else
7642   echo "$as_me:$LINENO: result: no" >&5
7643 echo "${ECHO_T}no" >&6
7644
7645 fi;
7646
7647 echo "$as_me:$LINENO: checking static executables" >&5
7648 echo $ECHO_N "checking static executables... $ECHO_C" >&6
7649 # Check whether --enable-static or --disable-static was given.
7650 if test "${enable_static+set}" = set; then
7651   enableval="$enable_static"
7652    case "$enableval" in
7653   yes)
7654     echo "$as_me:$LINENO: result: yes" >&5
7655 echo "${ECHO_T}yes" >&6
7656     CFLAGS="$CFLAGS --static"
7657     ;;
7658   *)
7659     echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6
7661     ;;
7662   esac
7663 else
7664   echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6
7666
7667 fi;
7668
7669
7670 # Check whether --with-lam or --without-lam was given.
7671 if test "${with_lam+set}" = set; then
7672   withval="$with_lam"
7673       if test "$withval" != "no" ; then
7674          trylamdir=$withval
7675      fi
7676
7677 fi;
7678
7679 if test "$withval" != "no" ; then
7680   if test "$prefix" != "NONE" ; then
7681      trylamdir="$trylamdir $prefix"
7682   fi
7683
7684   echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
7685 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
7686   for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
7687     if test -x "$testlamdir/bin/hcp" ; then
7688       if test "$testlamdir" != "/usr"; then
7689         LDFLAGS="$LDFLAGS -L$testlamdir/lib"
7690         CFLAGS="$CFLAGS -I$testlamdir/include"
7691       fi
7692       CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
7693       lamdir="$testlamdir"
7694
7695       mpienable="true"
7696
7697       break
7698     fi
7699   done
7700   echo "$as_me:$LINENO: result: $lamdir" >&5
7701 echo "${ECHO_T}$lamdir" >&6
7702 else
7703   echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6
7705 fi
7706
7707
7708
7709 # Check whether --with-ctn or --without-ctn was given.
7710 if test "${with_ctn+set}" = set; then
7711   withval="$with_ctn"
7712       if test "$withval" != "no" ; then
7713          tryctndir=$withval
7714      fi
7715
7716 fi;
7717
7718 if test "$withval" == "no" -o "$withval" == "NONE" ; then
7719   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7720 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7721   echo "$as_me:$LINENO: result: disabled" >&5
7722 echo "${ECHO_T}disabled" >&6
7723 else
7724   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7725 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7726   for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
7727     if test -f "$testctndir/libctn.a" ; then
7728       LDFLAGS="$LDFLAGS -L$testctndir"
7729       ctnlib="true"
7730       break
7731     fi
7732   done
7733   for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
7734     if test -f "$testctndir/ctn_os.h" ; then
7735       CFLAGS="$CFLAGS -I$testctndir"
7736       ctninclude="true"
7737       break
7738     fi
7739   done
7740   if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
7741       ctn="true"
7742
7743 cat >>confdefs.h <<\_ACEOF
7744 #define HAVE_CTN_DICOM 1
7745 _ACEOF
7746
7747       echo "$as_me:$LINENO: result: yes" >&5
7748 echo "${ECHO_T}yes" >&6
7749   else
7750     echo "$as_me:$LINENO: result: no" >&5
7751 echo "${ECHO_T}no" >&6
7752   fi
7753 fi
7754
7755 echo "$as_me:$LINENO: checking for web access" >&5
7756 echo $ECHO_N "checking for web access... $ECHO_C" >&6
7757
7758 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
7759 if test "${with_cgibin_dir+set}" = set; then
7760   withval="$with_cgibin_dir"
7761    cgibindir=$withval ;
7762 fi;
7763
7764
7765 # Check whether --with-cgibin-url or --without-cgibin-url was given.
7766 if test "${with_cgibin_url+set}" = set; then
7767   withval="$with_cgibin_url"
7768    cgibinurl=$withval ;
7769 fi;
7770
7771
7772 # Check whether --with-webdata-dir or --without-webdata-dir was given.
7773 if test "${with_webdata_dir+set}" = set; then
7774   withval="$with_webdata_dir"
7775    webdatadir=$withval ;
7776 fi;
7777
7778
7779 # Check whether --with-webdata-url or --without-webdata-url was given.
7780 if test "${with_webdata_url+set}" = set; then
7781   withval="$with_webdata_url"
7782    webdataurl=$withval ;
7783 fi;
7784
7785
7786 # Check whether --with-html-dir or --without-html-dir was given.
7787 if test "${with_html_dir+set}" = set; then
7788   withval="$with_html_dir"
7789    htmldir=$withval ;
7790 fi;
7791
7792 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
7793   cgiprograms="ctsim.cgi ctsim.conf"
7794
7795 fi
7796
7797 if test -n "$htmldir" ; then
7798   htmldata=simulate.html
7799
7800 fi
7801
7802
7803 if test -n "$htmldir"; then
7804   USE_HTML_TRUE=
7805   USE_HTML_FALSE='#'
7806 else
7807   USE_HTML_TRUE='#'
7808   USE_HTML_FALSE=
7809 fi
7810
7811 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
7812   webenabled=true
7813
7814   echo "$as_me:$LINENO: result: yes" >&5
7815 echo "${ECHO_T}yes" >&6
7816   if test -z "$cgibindir" ; then
7817     { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
7818 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
7819    { (exit 1); exit 1; }; }
7820   elif test -z "$cgibinurl" ; then
7821     { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
7822 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
7823    { (exit 1); exit 1; }; }
7824   elif test -z "$webdatadir" ; then
7825     { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
7826 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
7827    { (exit 1); exit 1; }; }
7828   elif test -z "$webdataurl" ; then
7829     { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
7830 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
7831    { (exit 1); exit 1; }; }
7832   elif test -z "$htmldir" ; then
7833     { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
7834 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
7835    { (exit 1); exit 1; }; }
7836   fi
7837 else
7838   echo "$as_me:$LINENO: result: no" >&5
7839 echo "${ECHO_T}no" >&6
7840 fi
7841
7842
7843
7844 if test -n "$lamdir"; then
7845   USE_LAM_TRUE=
7846   USE_LAM_FALSE='#'
7847 else
7848   USE_LAM_TRUE='#'
7849   USE_LAM_FALSE=
7850 fi
7851
7852
7853 echo "$as_me:$LINENO: checking for X" >&5
7854 echo $ECHO_N "checking for X... $ECHO_C" >&6
7855
7856
7857 # Check whether --with-x or --without-x was given.
7858 if test "${with_x+set}" = set; then
7859   withval="$with_x"
7860
7861 fi;
7862 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7863 if test "x$with_x" = xno; then
7864   # The user explicitly disabled X.
7865   have_x=disabled
7866 else
7867   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7868     # Both variables are already set.
7869     have_x=yes
7870   else
7871     if test "${ac_cv_have_x+set}" = set; then
7872   echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874   # One or both of the vars are not set, and there is no cached value.
7875 ac_x_includes=no ac_x_libraries=no
7876 rm -fr conftest.dir
7877 if mkdir conftest.dir; then
7878   cd conftest.dir
7879   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7880   cat >Imakefile <<'_ACEOF'
7881 acfindx:
7882         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7883 _ACEOF
7884   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7885     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7886     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7887     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7888     for ac_extension in a so sl; do
7889       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7890          test -f $ac_im_libdir/libX11.$ac_extension; then
7891         ac_im_usrlibdir=$ac_im_libdir; break
7892       fi
7893     done
7894     # Screen out bogus values from the imake configuration.  They are
7895     # bogus both because they are the default anyway, and because
7896     # using them would break gcc on systems where it needs fixed includes.
7897     case $ac_im_incroot in
7898         /usr/include) ;;
7899         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7900     esac
7901     case $ac_im_usrlibdir in
7902         /usr/lib | /lib) ;;
7903         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7904     esac
7905   fi
7906   cd ..
7907   rm -fr conftest.dir
7908 fi
7909
7910 # Standard set of common directories for X headers.
7911 # Check X11 before X11Rn because it is often a symlink to the current release.
7912 ac_x_header_dirs='
7913 /usr/X11/include
7914 /usr/X11R6/include
7915 /usr/X11R5/include
7916 /usr/X11R4/include
7917
7918 /usr/include/X11
7919 /usr/include/X11R6
7920 /usr/include/X11R5
7921 /usr/include/X11R4
7922
7923 /usr/local/X11/include
7924 /usr/local/X11R6/include
7925 /usr/local/X11R5/include
7926 /usr/local/X11R4/include
7927
7928 /usr/local/include/X11
7929 /usr/local/include/X11R6
7930 /usr/local/include/X11R5
7931 /usr/local/include/X11R4
7932
7933 /usr/X386/include
7934 /usr/x386/include
7935 /usr/XFree86/include/X11
7936
7937 /usr/include
7938 /usr/local/include
7939 /usr/unsupported/include
7940 /usr/athena/include
7941 /usr/local/x11r5/include
7942 /usr/lpp/Xamples/include
7943
7944 /usr/openwin/include
7945 /usr/openwin/share/include'
7946
7947 if test "$ac_x_includes" = no; then
7948   # Guess where to find include files, by looking for Intrinsic.h.
7949   # First, try using that file with no special directory specified.
7950   cat >conftest.$ac_ext <<_ACEOF
7951 #line $LINENO "configure"
7952 /* confdefs.h.  */
7953 _ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h.  */
7957 #include <X11/Intrinsic.h>
7958 _ACEOF
7959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7960   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7961   ac_status=$?
7962   grep -v '^ *+' conftest.er1 >conftest.err
7963   rm -f conftest.er1
7964   cat conftest.err >&5
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); } >/dev/null; then
7967   if test -s conftest.err; then
7968     ac_cpp_err=$ac_c_preproc_warn_flag
7969   else
7970     ac_cpp_err=
7971   fi
7972 else
7973   ac_cpp_err=yes
7974 fi
7975 if test -z "$ac_cpp_err"; then
7976   # We can compile using X headers with no special include directory.
7977 ac_x_includes=
7978 else
7979   echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7981
7982   for ac_dir in $ac_x_header_dirs; do
7983   if test -r "$ac_dir/X11/Intrinsic.h"; then
7984     ac_x_includes=$ac_dir
7985     break
7986   fi
7987 done
7988 fi
7989 rm -f conftest.err conftest.$ac_ext
7990 fi # $ac_x_includes = no
7991
7992 if test "$ac_x_libraries" = no; then
7993   # Check for the libraries.
7994   # See if we find them without any special options.
7995   # Don't add to $LIBS permanently.
7996   ac_save_LIBS=$LIBS
7997   LIBS="-lXt $LIBS"
7998   cat >conftest.$ac_ext <<_ACEOF
7999 #line $LINENO "configure"
8000 /* confdefs.h.  */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h.  */
8005 #include <X11/Intrinsic.h>
8006 int
8007 main ()
8008 {
8009 XtMalloc (0)
8010   ;
8011   return 0;
8012 }
8013 _ACEOF
8014 rm -f conftest.$ac_objext conftest$ac_exeext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8016   (eval $ac_link) 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); } &&
8020          { ac_try='test -s conftest$ac_exeext'
8021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022   (eval $ac_try) 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); }; }; then
8026   LIBS=$ac_save_LIBS
8027 # We can link X programs with no special library path.
8028 ac_x_libraries=
8029 else
8030   echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8032
8033 LIBS=$ac_save_LIBS
8034 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8035 do
8036   # Don't even attempt the hair of trying to link an X program!
8037   for ac_extension in a so sl; do
8038     if test -r $ac_dir/libXt.$ac_extension; then
8039       ac_x_libraries=$ac_dir
8040       break 2
8041     fi
8042   done
8043 done
8044 fi
8045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8046 fi # $ac_x_libraries = no
8047
8048 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8049   # Didn't find X anywhere.  Cache the known absence of X.
8050   ac_cv_have_x="have_x=no"
8051 else
8052   # Record where we found X for the cache.
8053   ac_cv_have_x="have_x=yes \
8054                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8055 fi
8056 fi
8057
8058   fi
8059   eval "$ac_cv_have_x"
8060 fi # $with_x != no
8061
8062 if test "$have_x" != yes; then
8063   echo "$as_me:$LINENO: result: $have_x" >&5
8064 echo "${ECHO_T}$have_x" >&6
8065   no_x=yes
8066 else
8067   # If each of the values was on the command line, it overrides each guess.
8068   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8069   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8070   # Update the cache value to reflect the command line values.
8071   ac_cv_have_x="have_x=yes \
8072                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8073   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8074 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8075 fi
8076
8077 if test "$no_x" = yes; then
8078   # Not all programs may use this symbol, but it does not hurt to define it.
8079
8080 cat >>confdefs.h <<\_ACEOF
8081 #define X_DISPLAY_MISSING 1
8082 _ACEOF
8083
8084   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8085 else
8086   if test -n "$x_includes"; then
8087     X_CFLAGS="$X_CFLAGS -I$x_includes"
8088   fi
8089
8090   # It would also be nice to do this for all -L options, not just this one.
8091   if test -n "$x_libraries"; then
8092     X_LIBS="$X_LIBS -L$x_libraries"
8093     # For Solaris; some versions of Sun CC require a space after -R and
8094     # others require no space.  Words are not sufficient . . . .
8095     case `(uname -sr) 2>/dev/null` in
8096     "SunOS 5"*)
8097       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8098 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8099       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8100       cat >conftest.$ac_ext <<_ACEOF
8101 #line $LINENO "configure"
8102 /* confdefs.h.  */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h.  */
8107
8108 int
8109 main ()
8110 {
8111
8112   ;
8113   return 0;
8114 }
8115 _ACEOF
8116 rm -f conftest.$ac_objext conftest$ac_exeext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8118   (eval $ac_link) 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } &&
8122          { ac_try='test -s conftest$ac_exeext'
8123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124   (eval $ac_try) 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); }; }; then
8128   ac_R_nospace=yes
8129 else
8130   echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8132
8133 ac_R_nospace=no
8134 fi
8135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8136       if test $ac_R_nospace = yes; then
8137         echo "$as_me:$LINENO: result: no" >&5
8138 echo "${ECHO_T}no" >&6
8139         X_LIBS="$X_LIBS -R$x_libraries"
8140       else
8141         LIBS="$ac_xsave_LIBS -R $x_libraries"
8142         cat >conftest.$ac_ext <<_ACEOF
8143 #line $LINENO "configure"
8144 /* confdefs.h.  */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h.  */
8149
8150 int
8151 main ()
8152 {
8153
8154   ;
8155   return 0;
8156 }
8157 _ACEOF
8158 rm -f conftest.$ac_objext conftest$ac_exeext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8160   (eval $ac_link) 2>&5
8161   ac_status=$?
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); } &&
8164          { ac_try='test -s conftest$ac_exeext'
8165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166   (eval $ac_try) 2>&5
8167   ac_status=$?
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); }; }; then
8170   ac_R_space=yes
8171 else
8172   echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8174
8175 ac_R_space=no
8176 fi
8177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8178         if test $ac_R_space = yes; then
8179           echo "$as_me:$LINENO: result: yes" >&5
8180 echo "${ECHO_T}yes" >&6
8181           X_LIBS="$X_LIBS -R $x_libraries"
8182         else
8183           echo "$as_me:$LINENO: result: neither works" >&5
8184 echo "${ECHO_T}neither works" >&6
8185         fi
8186       fi
8187       LIBS=$ac_xsave_LIBS
8188     esac
8189   fi
8190
8191   # Check for system-dependent libraries X programs must link with.
8192   # Do this before checking for the system-independent R6 libraries
8193   # (-lICE), since we may need -lsocket or whatever for X linking.
8194
8195   if test "$ISC" = yes; then
8196     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8197   else
8198     # Martyn Johnson says this is needed for Ultrix, if the X
8199     # libraries were built with DECnet support.  And Karl Berry says
8200     # the Alpha needs dnet_stub (dnet does not exist).
8201     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8202     cat >conftest.$ac_ext <<_ACEOF
8203 #line $LINENO "configure"
8204 /* confdefs.h.  */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h.  */
8209
8210 /* Override any gcc2 internal prototype to avoid an error.  */
8211 #ifdef __cplusplus
8212 extern "C"
8213 #endif
8214 /* We use char because int might match the return type of a gcc2
8215    builtin and then its argument prototype would still apply.  */
8216 char XOpenDisplay ();
8217 int
8218 main ()
8219 {
8220 XOpenDisplay ();
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   :
8238 else
8239   echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8241
8242 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8243 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8244 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8245   echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247   ac_check_lib_save_LIBS=$LIBS
8248 LIBS="-ldnet  $LIBS"
8249 cat >conftest.$ac_ext <<_ACEOF
8250 #line $LINENO "configure"
8251 /* confdefs.h.  */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h.  */
8256
8257 /* Override any gcc2 internal prototype to avoid an error.  */
8258 #ifdef __cplusplus
8259 extern "C"
8260 #endif
8261 /* We use char because int might match the return type of a gcc2
8262    builtin and then its argument prototype would still apply.  */
8263 char dnet_ntoa ();
8264 int
8265 main ()
8266 {
8267 dnet_ntoa ();
8268   ;
8269   return 0;
8270 }
8271 _ACEOF
8272 rm -f conftest.$ac_objext conftest$ac_exeext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8274   (eval $ac_link) 2>&5
8275   ac_status=$?
8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); } &&
8278          { ac_try='test -s conftest$ac_exeext'
8279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280   (eval $ac_try) 2>&5
8281   ac_status=$?
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); }; }; then
8284   ac_cv_lib_dnet_dnet_ntoa=yes
8285 else
8286   echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8288
8289 ac_cv_lib_dnet_dnet_ntoa=no
8290 fi
8291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8292 LIBS=$ac_check_lib_save_LIBS
8293 fi
8294 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8295 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8296 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8297   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8298 fi
8299
8300     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8301       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8302 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8303 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8304   echo $ECHO_N "(cached) $ECHO_C" >&6
8305 else
8306   ac_check_lib_save_LIBS=$LIBS
8307 LIBS="-ldnet_stub  $LIBS"
8308 cat >conftest.$ac_ext <<_ACEOF
8309 #line $LINENO "configure"
8310 /* confdefs.h.  */
8311 _ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h.  */
8315
8316 /* Override any gcc2 internal prototype to avoid an error.  */
8317 #ifdef __cplusplus
8318 extern "C"
8319 #endif
8320 /* We use char because int might match the return type of a gcc2
8321    builtin and then its argument prototype would still apply.  */
8322 char dnet_ntoa ();
8323 int
8324 main ()
8325 {
8326 dnet_ntoa ();
8327   ;
8328   return 0;
8329 }
8330 _ACEOF
8331 rm -f conftest.$ac_objext conftest$ac_exeext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8333   (eval $ac_link) 2>&5
8334   ac_status=$?
8335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336   (exit $ac_status); } &&
8337          { ac_try='test -s conftest$ac_exeext'
8338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339   (eval $ac_try) 2>&5
8340   ac_status=$?
8341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342   (exit $ac_status); }; }; then
8343   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8344 else
8345   echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8347
8348 ac_cv_lib_dnet_stub_dnet_ntoa=no
8349 fi
8350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8351 LIBS=$ac_check_lib_save_LIBS
8352 fi
8353 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8354 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8355 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8356   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8357 fi
8358
8359     fi
8360 fi
8361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8362     LIBS="$ac_xsave_LIBS"
8363
8364     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8365     # to get the SysV transport functions.
8366     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8367     # needs -lnsl.
8368     # The nsl library prevents programs from opening the X display
8369     # on Irix 5.2, according to T.E. Dickey.
8370     # The functions gethostbyname, getservbyname, and inet_addr are
8371     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8372     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8373 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8374 if test "${ac_cv_func_gethostbyname+set}" = set; then
8375   echo $ECHO_N "(cached) $ECHO_C" >&6
8376 else
8377   cat >conftest.$ac_ext <<_ACEOF
8378 #line $LINENO "configure"
8379 /* confdefs.h.  */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h.  */
8384 /* System header to define __stub macros and hopefully few prototypes,
8385     which can conflict with char gethostbyname (); below.  */
8386 #include <assert.h>
8387 /* Override any gcc2 internal prototype to avoid an error.  */
8388 #ifdef __cplusplus
8389 extern "C"
8390 {
8391 #endif
8392 /* We use char because int might match the return type of a gcc2
8393    builtin and then its argument prototype would still apply.  */
8394 char gethostbyname ();
8395 /* The GNU C library defines this for functions which it implements
8396     to always fail with ENOSYS.  Some functions are actually named
8397     something starting with __ and the normal name is an alias.  */
8398 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8399 choke me
8400 #else
8401 char (*f) () = gethostbyname;
8402 #endif
8403 #ifdef __cplusplus
8404 }
8405 #endif
8406
8407 int
8408 main ()
8409 {
8410
8411   ;
8412   return 0;
8413 }
8414 _ACEOF
8415 rm -f conftest.$ac_objext conftest$ac_exeext
8416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8417   (eval $ac_link) 2>&5
8418   ac_status=$?
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); } &&
8421          { ac_try='test -s conftest$ac_exeext'
8422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423   (eval $ac_try) 2>&5
8424   ac_status=$?
8425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); }; }; then
8427   ac_cv_func_gethostbyname=yes
8428 else
8429   echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8431
8432 ac_cv_func_gethostbyname=no
8433 fi
8434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8435 fi
8436 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8437 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8438
8439     if test $ac_cv_func_gethostbyname = no; then
8440       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8441 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8442 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8443   echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445   ac_check_lib_save_LIBS=$LIBS
8446 LIBS="-lnsl  $LIBS"
8447 cat >conftest.$ac_ext <<_ACEOF
8448 #line $LINENO "configure"
8449 /* confdefs.h.  */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h.  */
8454
8455 /* Override any gcc2 internal prototype to avoid an error.  */
8456 #ifdef __cplusplus
8457 extern "C"
8458 #endif
8459 /* We use char because int might match the return type of a gcc2
8460    builtin and then its argument prototype would still apply.  */
8461 char gethostbyname ();
8462 int
8463 main ()
8464 {
8465 gethostbyname ();
8466   ;
8467   return 0;
8468 }
8469 _ACEOF
8470 rm -f conftest.$ac_objext conftest$ac_exeext
8471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8472   (eval $ac_link) 2>&5
8473   ac_status=$?
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); } &&
8476          { ac_try='test -s conftest$ac_exeext'
8477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478   (eval $ac_try) 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); }; }; then
8482   ac_cv_lib_nsl_gethostbyname=yes
8483 else
8484   echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8486
8487 ac_cv_lib_nsl_gethostbyname=no
8488 fi
8489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8490 LIBS=$ac_check_lib_save_LIBS
8491 fi
8492 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8493 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8494 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8495   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8496 fi
8497
8498       if test $ac_cv_lib_nsl_gethostbyname = no; then
8499         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8500 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8501 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8502   echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504   ac_check_lib_save_LIBS=$LIBS
8505 LIBS="-lbsd  $LIBS"
8506 cat >conftest.$ac_ext <<_ACEOF
8507 #line $LINENO "configure"
8508 /* confdefs.h.  */
8509 _ACEOF
8510 cat confdefs.h >>conftest.$ac_ext
8511 cat >>conftest.$ac_ext <<_ACEOF
8512 /* end confdefs.h.  */
8513
8514 /* Override any gcc2 internal prototype to avoid an error.  */
8515 #ifdef __cplusplus
8516 extern "C"
8517 #endif
8518 /* We use char because int might match the return type of a gcc2
8519    builtin and then its argument prototype would still apply.  */
8520 char gethostbyname ();
8521 int
8522 main ()
8523 {
8524 gethostbyname ();
8525   ;
8526   return 0;
8527 }
8528 _ACEOF
8529 rm -f conftest.$ac_objext conftest$ac_exeext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8531   (eval $ac_link) 2>&5
8532   ac_status=$?
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); } &&
8535          { ac_try='test -s conftest$ac_exeext'
8536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537   (eval $ac_try) 2>&5
8538   ac_status=$?
8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); }; }; then
8541   ac_cv_lib_bsd_gethostbyname=yes
8542 else
8543   echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8545
8546 ac_cv_lib_bsd_gethostbyname=no
8547 fi
8548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8549 LIBS=$ac_check_lib_save_LIBS
8550 fi
8551 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8552 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8553 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8554   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8555 fi
8556
8557       fi
8558     fi
8559
8560     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8561     # socket/setsockopt and other routines are undefined under SCO ODT
8562     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8563     # on later versions), says Simon Leinen: it contains gethostby*
8564     # variants that don't use the name server (or something).  -lsocket
8565     # must be given before -lnsl if both are needed.  We assume that
8566     # if connect needs -lnsl, so does gethostbyname.
8567     echo "$as_me:$LINENO: checking for connect" >&5
8568 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8569 if test "${ac_cv_func_connect+set}" = set; then
8570   echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572   cat >conftest.$ac_ext <<_ACEOF
8573 #line $LINENO "configure"
8574 /* confdefs.h.  */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h.  */
8579 /* System header to define __stub macros and hopefully few prototypes,
8580     which can conflict with char connect (); below.  */
8581 #include <assert.h>
8582 /* Override any gcc2 internal prototype to avoid an error.  */
8583 #ifdef __cplusplus
8584 extern "C"
8585 {
8586 #endif
8587 /* We use char because int might match the return type of a gcc2
8588    builtin and then its argument prototype would still apply.  */
8589 char connect ();
8590 /* The GNU C library defines this for functions which it implements
8591     to always fail with ENOSYS.  Some functions are actually named
8592     something starting with __ and the normal name is an alias.  */
8593 #if defined (__stub_connect) || defined (__stub___connect)
8594 choke me
8595 #else
8596 char (*f) () = connect;
8597 #endif
8598 #ifdef __cplusplus
8599 }
8600 #endif
8601
8602 int
8603 main ()
8604 {
8605
8606   ;
8607   return 0;
8608 }
8609 _ACEOF
8610 rm -f conftest.$ac_objext conftest$ac_exeext
8611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8612   (eval $ac_link) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); } &&
8616          { ac_try='test -s conftest$ac_exeext'
8617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618   (eval $ac_try) 2>&5
8619   ac_status=$?
8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); }; }; then
8622   ac_cv_func_connect=yes
8623 else
8624   echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8626
8627 ac_cv_func_connect=no
8628 fi
8629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8630 fi
8631 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8632 echo "${ECHO_T}$ac_cv_func_connect" >&6
8633
8634     if test $ac_cv_func_connect = no; then
8635       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8636 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8637 if test "${ac_cv_lib_socket_connect+set}" = set; then
8638   echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640   ac_check_lib_save_LIBS=$LIBS
8641 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8642 cat >conftest.$ac_ext <<_ACEOF
8643 #line $LINENO "configure"
8644 /* confdefs.h.  */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h.  */
8649
8650 /* Override any gcc2 internal prototype to avoid an error.  */
8651 #ifdef __cplusplus
8652 extern "C"
8653 #endif
8654 /* We use char because int might match the return type of a gcc2
8655    builtin and then its argument prototype would still apply.  */
8656 char connect ();
8657 int
8658 main ()
8659 {
8660 connect ();
8661   ;
8662   return 0;
8663 }
8664 _ACEOF
8665 rm -f conftest.$ac_objext conftest$ac_exeext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667   (eval $ac_link) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); } &&
8671          { ac_try='test -s conftest$ac_exeext'
8672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673   (eval $ac_try) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; }; then
8677   ac_cv_lib_socket_connect=yes
8678 else
8679   echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682 ac_cv_lib_socket_connect=no
8683 fi
8684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8685 LIBS=$ac_check_lib_save_LIBS
8686 fi
8687 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8688 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8689 if test $ac_cv_lib_socket_connect = yes; then
8690   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8691 fi
8692
8693     fi
8694
8695     # Guillermo Gomez says -lposix is necessary on A/UX.
8696     echo "$as_me:$LINENO: checking for remove" >&5
8697 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8698 if test "${ac_cv_func_remove+set}" = set; then
8699   echo $ECHO_N "(cached) $ECHO_C" >&6
8700 else
8701   cat >conftest.$ac_ext <<_ACEOF
8702 #line $LINENO "configure"
8703 /* confdefs.h.  */
8704 _ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h.  */
8708 /* System header to define __stub macros and hopefully few prototypes,
8709     which can conflict with char remove (); below.  */
8710 #include <assert.h>
8711 /* Override any gcc2 internal prototype to avoid an error.  */
8712 #ifdef __cplusplus
8713 extern "C"
8714 {
8715 #endif
8716 /* We use char because int might match the return type of a gcc2
8717    builtin and then its argument prototype would still apply.  */
8718 char remove ();
8719 /* The GNU C library defines this for functions which it implements
8720     to always fail with ENOSYS.  Some functions are actually named
8721     something starting with __ and the normal name is an alias.  */
8722 #if defined (__stub_remove) || defined (__stub___remove)
8723 choke me
8724 #else
8725 char (*f) () = remove;
8726 #endif
8727 #ifdef __cplusplus
8728 }
8729 #endif
8730
8731 int
8732 main ()
8733 {
8734
8735   ;
8736   return 0;
8737 }
8738 _ACEOF
8739 rm -f conftest.$ac_objext conftest$ac_exeext
8740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8741   (eval $ac_link) 2>&5
8742   ac_status=$?
8743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744   (exit $ac_status); } &&
8745          { ac_try='test -s conftest$ac_exeext'
8746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747   (eval $ac_try) 2>&5
8748   ac_status=$?
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); }; }; then
8751   ac_cv_func_remove=yes
8752 else
8753   echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8755
8756 ac_cv_func_remove=no
8757 fi
8758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8759 fi
8760 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8761 echo "${ECHO_T}$ac_cv_func_remove" >&6
8762
8763     if test $ac_cv_func_remove = no; then
8764       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8765 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8766 if test "${ac_cv_lib_posix_remove+set}" = set; then
8767   echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769   ac_check_lib_save_LIBS=$LIBS
8770 LIBS="-lposix  $LIBS"
8771 cat >conftest.$ac_ext <<_ACEOF
8772 #line $LINENO "configure"
8773 /* confdefs.h.  */
8774 _ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h.  */
8778
8779 /* Override any gcc2 internal prototype to avoid an error.  */
8780 #ifdef __cplusplus
8781 extern "C"
8782 #endif
8783 /* We use char because int might match the return type of a gcc2
8784    builtin and then its argument prototype would still apply.  */
8785 char remove ();
8786 int
8787 main ()
8788 {
8789 remove ();
8790   ;
8791   return 0;
8792 }
8793 _ACEOF
8794 rm -f conftest.$ac_objext conftest$ac_exeext
8795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8796   (eval $ac_link) 2>&5
8797   ac_status=$?
8798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799   (exit $ac_status); } &&
8800          { ac_try='test -s conftest$ac_exeext'
8801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802   (eval $ac_try) 2>&5
8803   ac_status=$?
8804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   (exit $ac_status); }; }; then
8806   ac_cv_lib_posix_remove=yes
8807 else
8808   echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8810
8811 ac_cv_lib_posix_remove=no
8812 fi
8813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8814 LIBS=$ac_check_lib_save_LIBS
8815 fi
8816 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8817 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8818 if test $ac_cv_lib_posix_remove = yes; then
8819   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8820 fi
8821
8822     fi
8823
8824     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8825     echo "$as_me:$LINENO: checking for shmat" >&5
8826 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8827 if test "${ac_cv_func_shmat+set}" = set; then
8828   echo $ECHO_N "(cached) $ECHO_C" >&6
8829 else
8830   cat >conftest.$ac_ext <<_ACEOF
8831 #line $LINENO "configure"
8832 /* confdefs.h.  */
8833 _ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h.  */
8837 /* System header to define __stub macros and hopefully few prototypes,
8838     which can conflict with char shmat (); below.  */
8839 #include <assert.h>
8840 /* Override any gcc2 internal prototype to avoid an error.  */
8841 #ifdef __cplusplus
8842 extern "C"
8843 {
8844 #endif
8845 /* We use char because int might match the return type of a gcc2
8846    builtin and then its argument prototype would still apply.  */
8847 char shmat ();
8848 /* The GNU C library defines this for functions which it implements
8849     to always fail with ENOSYS.  Some functions are actually named
8850     something starting with __ and the normal name is an alias.  */
8851 #if defined (__stub_shmat) || defined (__stub___shmat)
8852 choke me
8853 #else
8854 char (*f) () = shmat;
8855 #endif
8856 #ifdef __cplusplus
8857 }
8858 #endif
8859
8860 int
8861 main ()
8862 {
8863
8864   ;
8865   return 0;
8866 }
8867 _ACEOF
8868 rm -f conftest.$ac_objext conftest$ac_exeext
8869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8870   (eval $ac_link) 2>&5
8871   ac_status=$?
8872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873   (exit $ac_status); } &&
8874          { ac_try='test -s conftest$ac_exeext'
8875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876   (eval $ac_try) 2>&5
8877   ac_status=$?
8878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); }; }; then
8880   ac_cv_func_shmat=yes
8881 else
8882   echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8884
8885 ac_cv_func_shmat=no
8886 fi
8887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8888 fi
8889 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8890 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8891
8892     if test $ac_cv_func_shmat = no; then
8893       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8894 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8895 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8896   echo $ECHO_N "(cached) $ECHO_C" >&6
8897 else
8898   ac_check_lib_save_LIBS=$LIBS
8899 LIBS="-lipc  $LIBS"
8900 cat >conftest.$ac_ext <<_ACEOF
8901 #line $LINENO "configure"
8902 /* confdefs.h.  */
8903 _ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h.  */
8907
8908 /* Override any gcc2 internal prototype to avoid an error.  */
8909 #ifdef __cplusplus
8910 extern "C"
8911 #endif
8912 /* We use char because int might match the return type of a gcc2
8913    builtin and then its argument prototype would still apply.  */
8914 char shmat ();
8915 int
8916 main ()
8917 {
8918 shmat ();
8919   ;
8920   return 0;
8921 }
8922 _ACEOF
8923 rm -f conftest.$ac_objext conftest$ac_exeext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8925   (eval $ac_link) 2>&5
8926   ac_status=$?
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); } &&
8929          { ac_try='test -s conftest$ac_exeext'
8930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931   (eval $ac_try) 2>&5
8932   ac_status=$?
8933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934   (exit $ac_status); }; }; then
8935   ac_cv_lib_ipc_shmat=yes
8936 else
8937   echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.$ac_ext >&5
8939
8940 ac_cv_lib_ipc_shmat=no
8941 fi
8942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8943 LIBS=$ac_check_lib_save_LIBS
8944 fi
8945 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8946 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8947 if test $ac_cv_lib_ipc_shmat = yes; then
8948   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8949 fi
8950
8951     fi
8952   fi
8953
8954   # Check for libraries that X11R6 Xt/Xaw programs need.
8955   ac_save_LDFLAGS=$LDFLAGS
8956   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8957   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8958   # check for ICE first), but we must link in the order -lSM -lICE or
8959   # we get undefined symbols.  So assume we have SM if we have ICE.
8960   # These have to be linked with before -lX11, unlike the other
8961   # libraries we check for below, so use a different variable.
8962   # John Interrante, Karl Berry
8963   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8964 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8965 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8966   echo $ECHO_N "(cached) $ECHO_C" >&6
8967 else
8968   ac_check_lib_save_LIBS=$LIBS
8969 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8970 cat >conftest.$ac_ext <<_ACEOF
8971 #line $LINENO "configure"
8972 /* confdefs.h.  */
8973 _ACEOF
8974 cat confdefs.h >>conftest.$ac_ext
8975 cat >>conftest.$ac_ext <<_ACEOF
8976 /* end confdefs.h.  */
8977
8978 /* Override any gcc2 internal prototype to avoid an error.  */
8979 #ifdef __cplusplus
8980 extern "C"
8981 #endif
8982 /* We use char because int might match the return type of a gcc2
8983    builtin and then its argument prototype would still apply.  */
8984 char IceConnectionNumber ();
8985 int
8986 main ()
8987 {
8988 IceConnectionNumber ();
8989   ;
8990   return 0;
8991 }
8992 _ACEOF
8993 rm -f conftest.$ac_objext conftest$ac_exeext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995   (eval $ac_link) 2>&5
8996   ac_status=$?
8997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998   (exit $ac_status); } &&
8999          { ac_try='test -s conftest$ac_exeext'
9000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001   (eval $ac_try) 2>&5
9002   ac_status=$?
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); }; }; then
9005   ac_cv_lib_ICE_IceConnectionNumber=yes
9006 else
9007   echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9009
9010 ac_cv_lib_ICE_IceConnectionNumber=no
9011 fi
9012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9013 LIBS=$ac_check_lib_save_LIBS
9014 fi
9015 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9016 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9017 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9018   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9019 fi
9020
9021   LDFLAGS=$ac_save_LDFLAGS
9022
9023 fi
9024
9025
9026
9027
9028
9029
9030
9031
9032 X_TOOLKIT_LIBS="-lXt"
9033 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9034
9035 our_saved_LDFLAGS="$LDFLAGS"
9036 LDFLAGS="$X_LIBS $LDFLAGS"
9037 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9038 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9039 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9040   echo $ECHO_N "(cached) $ECHO_C" >&6
9041 else
9042   ac_check_lib_save_LIBS=$LIBS
9043 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9044 cat >conftest.$ac_ext <<_ACEOF
9045 #line $LINENO "configure"
9046 /* confdefs.h.  */
9047 _ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h.  */
9051
9052 /* Override any gcc2 internal prototype to avoid an error.  */
9053 #ifdef __cplusplus
9054 extern "C"
9055 #endif
9056 /* We use char because int might match the return type of a gcc2
9057    builtin and then its argument prototype would still apply.  */
9058 char XtToolkitThreadInitialize ();
9059 int
9060 main ()
9061 {
9062 XtToolkitThreadInitialize ();
9063   ;
9064   return 0;
9065 }
9066 _ACEOF
9067 rm -f conftest.$ac_objext conftest$ac_exeext
9068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9069   (eval $ac_link) 2>&5
9070   ac_status=$?
9071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072   (exit $ac_status); } &&
9073          { ac_try='test -s conftest$ac_exeext'
9074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075   (eval $ac_try) 2>&5
9076   ac_status=$?
9077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   (exit $ac_status); }; }; then
9079   ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9080 else
9081   echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9083
9084 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9085 fi
9086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9087 LIBS=$ac_check_lib_save_LIBS
9088 fi
9089 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9090 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9091 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9092
9093 cat >>confdefs.h <<\_ACEOF
9094 #define X_THREAD_SUPPORT 1
9095 _ACEOF
9096
9097 fi
9098
9099 LDFLAGS="$our_saved_LDFLAGS"
9100
9101
9102
9103 if test "x$no_x" = "xyes"; then
9104   NO_X_TRUE=
9105   NO_X_FALSE='#'
9106 else
9107   NO_X_TRUE='#'
9108   NO_X_FALSE=
9109 fi
9110
9111 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9112
9113
9114 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9115
9116 echo "$as_me:$LINENO: checking for X" >&5
9117 echo $ECHO_N "checking for X... $ECHO_C" >&6
9118 if test "$no_x" != "yes" ; then
9119
9120 cat >>confdefs.h <<\_ACEOF
9121 #define HAVE_X11 1
9122 _ACEOF
9123
9124   LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
9125   ctlib_graphics="$ctlibs_base -lctgraphics"
9126   echo "$as_me:$LINENO: result: yes" >&5
9127 echo "${ECHO_T}yes" >&6
9128   ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9129   if test "$libgl" = "true" ; then
9130     ctlib_graphics="$ctlib_graphics -lglut -lGL -lGLU"
9131     if test "$wxwin" = "true" ; then
9132       ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.3"
9133     fi
9134   fi
9135   if test "$wxwin" = "true" ; then
9136
9137 cat >>confdefs.h <<\_ACEOF
9138 #define HAVE_SGP 1
9139 _ACEOF
9140
9141
9142
9143 if test 1==1; then
9144   HAVE_SGP_TRUE=
9145   HAVE_SGP_FALSE='#'
9146 else
9147   HAVE_SGP_TRUE='#'
9148   HAVE_SGP_FALSE=
9149 fi
9150   fi
9151 else
9152   echo "$as_me:$LINENO: result: no" >&5
9153 echo "${ECHO_T}no" >&6
9154 fi
9155
9156 if test "$png" = "true" ; then
9157   ctlibs_tools="$ctlibs_tools -lpng"
9158 fi
9159 if test "$zlib" = "true" ; then
9160   ctlibs_tools="$ctlibs_tools -lz"
9161 fi
9162 if test "$fftw" = "true" ; then
9163   ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
9164 fi
9165 if test "$ctn" = "true"; then
9166   ctlibs_tools="$ctlibs_tools -lctn"
9167 fi
9168
9169 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9170 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9171 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9172   echo $ECHO_N "(cached) $ECHO_C" >&6
9173 else
9174   ac_check_lib_save_LIBS=$LIBS
9175 LIBS="-ldmallocxx  $LIBS"
9176 cat >conftest.$ac_ext <<_ACEOF
9177 #line $LINENO "configure"
9178 /* confdefs.h.  */
9179 _ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h.  */
9183
9184
9185 int
9186 main ()
9187 {
9188 main ();
9189   ;
9190   return 0;
9191 }
9192 _ACEOF
9193 rm -f conftest.$ac_objext conftest$ac_exeext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9195   (eval $ac_link) 2>&5
9196   ac_status=$?
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); } &&
9199          { ac_try='test -s conftest$ac_exeext'
9200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201   (eval $ac_try) 2>&5
9202   ac_status=$?
9203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204   (exit $ac_status); }; }; then
9205   ac_cv_lib_dmallocxx_main=yes
9206 else
9207   echo "$as_me: failed program was:" >&5
9208 sed 's/^/| /' conftest.$ac_ext >&5
9209
9210 ac_cv_lib_dmallocxx_main=no
9211 fi
9212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9213 LIBS=$ac_check_lib_save_LIBS
9214 fi
9215 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9216 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9217 if test $ac_cv_lib_dmallocxx_main = yes; then
9218   dmallocxx=true
9219 else
9220   dmallocxx=false
9221 fi
9222
9223 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9224 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9225 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9226 if test "${enable_dmalloc+set}" = set; then
9227   enableval="$enable_dmalloc"
9228   case "${enableval}" in
9229   yes) usedmalloc=true
9230        echo "$as_me:$LINENO: result: yes" >&5
9231 echo "${ECHO_T}yes" >&6
9232        ;;
9233   no)  usedmalloc=false
9234        echo "$as_me:$LINENO: result: no" >&5
9235 echo "${ECHO_T}no" >&6
9236        ;;
9237   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9238 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9239        ;;
9240 esac
9241 else
9242   usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9243 echo "${ECHO_T}no" >&6
9244 fi;
9245
9246 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9247   ctlibs_tools="$ctlibs_tools -ldmallocxx"
9248
9249 cat >>confdefs.h <<\_ACEOF
9250 #define HAVE_DMALLOC 1
9251 _ACEOF
9252
9253   echo "$as_me:$LINENO: result: Using dmalloc" >&5
9254 echo "${ECHO_T}Using dmalloc" >&6
9255 fi
9256
9257 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9258 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9259 if test "${ac_cv_lib_efence_main+set}" = set; then
9260   echo $ECHO_N "(cached) $ECHO_C" >&6
9261 else
9262   ac_check_lib_save_LIBS=$LIBS
9263 LIBS="-lefence  $LIBS"
9264 cat >conftest.$ac_ext <<_ACEOF
9265 #line $LINENO "configure"
9266 /* confdefs.h.  */
9267 _ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h.  */
9271
9272
9273 int
9274 main ()
9275 {
9276 main ();
9277   ;
9278   return 0;
9279 }
9280 _ACEOF
9281 rm -f conftest.$ac_objext conftest$ac_exeext
9282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9283   (eval $ac_link) 2>&5
9284   ac_status=$?
9285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286   (exit $ac_status); } &&
9287          { ac_try='test -s conftest$ac_exeext'
9288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289   (eval $ac_try) 2>&5
9290   ac_status=$?
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); }; }; then
9293   ac_cv_lib_efence_main=yes
9294 else
9295   echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9297
9298 ac_cv_lib_efence_main=no
9299 fi
9300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9301 LIBS=$ac_check_lib_save_LIBS
9302 fi
9303 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9304 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9305 if test $ac_cv_lib_efence_main = yes; then
9306   efence=true
9307 else
9308   efence=false
9309 fi
9310
9311 echo "$as_me:$LINENO: checking for enable-efence" >&5
9312 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9313 # Check whether --enable-efence or --disable-efence was given.
9314 if test "${enable_efence+set}" = set; then
9315   enableval="$enable_efence"
9316   case "${enableval}" in
9317   yes) useefence=true
9318        echo "$as_me:$LINENO: result: yes" >&5
9319 echo "${ECHO_T}yes" >&6
9320        ;;
9321   no)  useefence=false
9322        echo "$as_me:$LINENO: result: no" >&5
9323 echo "${ECHO_T}no" >&6
9324        ;;
9325   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9326 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9327        ;;
9328 esac
9329 else
9330   useefence=false; echo "$as_me:$LINENO: result: no" >&5
9331 echo "${ECHO_T}no" >&6
9332 fi;
9333
9334 if test "$efence" = "true" -a "$useefence" = "true" ; then
9335   ctlibs_tools="$ctlibs_tools -lefence"
9336
9337 cat >>confdefs.h <<\_ACEOF
9338 #define HAVE_EFENCE 1
9339 _ACEOF
9340
9341   echo "$as_me:$LINENO: result: Using efence" >&5
9342 echo "${ECHO_T}Using efence" >&6
9343 fi
9344
9345 if test "$wxwin" = "true" ; then
9346   if test "$wx_gtk" = "true" ; then
9347     wxcflags=`$wxconfig --cflags`
9348     wxlibs=`$wxconfig --libs`
9349   else
9350         wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9351    wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9352   fi
9353   CFLAGS="$CFLAGS -I../include $wxcflags"
9354   ctlib_graphics="$ctlib_graphics $wxlibs"
9355
9356
9357 if test 1==1 ; then
9358   HAVE_WXWINDOWS_TRUE=
9359   HAVE_WXWINDOWS_FALSE='#'
9360 else
9361   HAVE_WXWINDOWS_TRUE='#'
9362   HAVE_WXWINDOWS_FALSE=
9363 fi
9364 fi
9365
9366
9367
9368 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9369 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9370
9371
9372 if test -n "$lamdir" ; then
9373   lamprograms="ctsimtext-lam"
9374
9375   lamdefs="$CFLAGS"
9376
9377 fi
9378
9379 CXXFLAGS="$CFLAGS"
9380
9381                                                                                                                                                                           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"
9382
9383
9384 cat >confcache <<\_ACEOF
9385 # This file is a shell script that caches the results of configure
9386 # tests run on this system so they can be shared between configure
9387 # scripts and configure runs, see configure's option --config-cache.
9388 # It is not useful on other systems.  If it contains results you don't
9389 # want to keep, you may remove or edit it.
9390 #
9391 # config.status only pays attention to the cache file if you give it
9392 # the --recheck option to rerun configure.
9393 #
9394 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9395 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9396 # following values.
9397
9398 _ACEOF
9399
9400 # The following way of writing the cache mishandles newlines in values,
9401 # but we know of no workaround that is simple, portable, and efficient.
9402 # So, don't put newlines in cache variables' values.
9403 # Ultrix sh set writes to stderr and can't be redirected directly,
9404 # and sets the high bit in the cache file unless we assign to the vars.
9405 {
9406   (set) 2>&1 |
9407     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9408     *ac_space=\ *)
9409       # `set' does not quote correctly, so add quotes (double-quote
9410       # substitution turns \\\\ into \\, and sed turns \\ into \).
9411       sed -n \
9412         "s/'/'\\\\''/g;
9413           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9414       ;;
9415     *)
9416       # `set' quotes correctly as required by POSIX, so do not add quotes.
9417       sed -n \
9418         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9419       ;;
9420     esac;
9421 } |
9422   sed '
9423      t clear
9424      : clear
9425      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9426      t end
9427      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9428      : end' >>confcache
9429 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9430   if test -w $cache_file; then
9431     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9432     cat confcache >$cache_file
9433   else
9434     echo "not updating unwritable cache $cache_file"
9435   fi
9436 fi
9437 rm -f confcache
9438
9439 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9440 # Let make expand exec_prefix.
9441 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9442
9443 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9444 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9445 # trailing colons and then remove the whole line if VPATH becomes empty
9446 # (actually we leave an empty line to preserve line numbers).
9447 if test "x$srcdir" = x.; then
9448   ac_vpsub='/^[         ]*VPATH[        ]*=/{
9449 s/:*\$(srcdir):*/:/;
9450 s/:*\${srcdir}:*/:/;
9451 s/:*@srcdir@:*/:/;
9452 s/^\([^=]*=[    ]*\):*/\1/;
9453 s/:*$//;
9454 s/^[^=]*=[      ]*$//;
9455 }'
9456 fi
9457
9458 DEFS=-DHAVE_CONFIG_H
9459
9460 ac_libobjs=
9461 ac_ltlibobjs=
9462 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9463   # 1. Remove the extension, and $U if already installed.
9464   ac_i=`echo "$ac_i" |
9465          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9466   # 2. Add them.
9467   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9468   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9469 done
9470 LIBOBJS=$ac_libobjs
9471
9472 LTLIBOBJS=$ac_ltlibobjs
9473
9474
9475
9476 : ${CONFIG_STATUS=./config.status}
9477 ac_clean_files_save=$ac_clean_files
9478 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9479 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9480 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9481 cat >$CONFIG_STATUS <<_ACEOF
9482 #! $SHELL
9483 # Generated by $as_me.
9484 # Run this file to recreate the current configuration.
9485 # Compiler output produced by configure, useful for debugging
9486 # configure, is in config.log if it exists.
9487
9488 debug=false
9489 ac_cs_recheck=false
9490 ac_cs_silent=false
9491 SHELL=\${CONFIG_SHELL-$SHELL}
9492 _ACEOF
9493
9494 cat >>$CONFIG_STATUS <<\_ACEOF
9495 ## --------------------- ##
9496 ## M4sh Initialization.  ##
9497 ## --------------------- ##
9498
9499 # Be Bourne compatible
9500 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9501   emulate sh
9502   NULLCMD=:
9503   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9504   # is contrary to our usage.  Disable this feature.
9505   alias -g '${1+"$@"}'='"$@"'
9506 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9507   set -o posix
9508 fi
9509
9510 # Support unset when possible.
9511 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9512   as_unset=unset
9513 else
9514   as_unset=false
9515 fi
9516
9517
9518 # Work around bugs in pre-3.0 UWIN ksh.
9519 $as_unset ENV MAIL MAILPATH
9520 PS1='$ '
9521 PS2='> '
9522 PS4='+ '
9523
9524 # NLS nuisances.
9525 for as_var in \
9526   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9527   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9528   LC_TELEPHONE LC_TIME
9529 do
9530   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9531     eval $as_var=C; export $as_var
9532   else
9533     $as_unset $as_var
9534   fi
9535 done
9536
9537 # Required to use basename.
9538 if expr a : '\(a\)' >/dev/null 2>&1; then
9539   as_expr=expr
9540 else
9541   as_expr=false
9542 fi
9543
9544 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9545   as_basename=basename
9546 else
9547   as_basename=false
9548 fi
9549
9550
9551 # Name of the executable.
9552 as_me=`$as_basename "$0" ||
9553 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9554          X"$0" : 'X\(//\)$' \| \
9555          X"$0" : 'X\(/\)$' \| \
9556          .     : '\(.\)' 2>/dev/null ||
9557 echo X/"$0" |
9558     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9559           /^X\/\(\/\/\)$/{ s//\1/; q; }
9560           /^X\/\(\/\).*/{ s//\1/; q; }
9561           s/.*/./; q'`
9562
9563
9564 # PATH needs CR, and LINENO needs CR and PATH.
9565 # Avoid depending upon Character Ranges.
9566 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9567 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9568 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9569 as_cr_digits='0123456789'
9570 as_cr_alnum=$as_cr_Letters$as_cr_digits
9571
9572 # The user is always right.
9573 if test "${PATH_SEPARATOR+set}" != set; then
9574   echo "#! /bin/sh" >conf$$.sh
9575   echo  "exit 0"   >>conf$$.sh
9576   chmod +x conf$$.sh
9577   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9578     PATH_SEPARATOR=';'
9579   else
9580     PATH_SEPARATOR=:
9581   fi
9582   rm -f conf$$.sh
9583 fi
9584
9585
9586   as_lineno_1=$LINENO
9587   as_lineno_2=$LINENO
9588   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9589   test "x$as_lineno_1" != "x$as_lineno_2" &&
9590   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9591   # Find who we are.  Look in the path if we contain no path at all
9592   # relative or not.
9593   case $0 in
9594     *[\\/]* ) as_myself=$0 ;;
9595     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596 for as_dir in $PATH
9597 do
9598   IFS=$as_save_IFS
9599   test -z "$as_dir" && as_dir=.
9600   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9601 done
9602
9603        ;;
9604   esac
9605   # We did not find ourselves, most probably we were run as `sh COMMAND'
9606   # in which case we are not to be found in the path.
9607   if test "x$as_myself" = x; then
9608     as_myself=$0
9609   fi
9610   if test ! -f "$as_myself"; then
9611     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9612 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9613    { (exit 1); exit 1; }; }
9614   fi
9615   case $CONFIG_SHELL in
9616   '')
9617     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9618 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9619 do
9620   IFS=$as_save_IFS
9621   test -z "$as_dir" && as_dir=.
9622   for as_base in sh bash ksh sh5; do
9623          case $as_dir in
9624          /*)
9625            if ("$as_dir/$as_base" -c '
9626   as_lineno_1=$LINENO
9627   as_lineno_2=$LINENO
9628   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9629   test "x$as_lineno_1" != "x$as_lineno_2" &&
9630   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9631              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9632              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9633              CONFIG_SHELL=$as_dir/$as_base
9634              export CONFIG_SHELL
9635              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9636            fi;;
9637          esac
9638        done
9639 done
9640 ;;
9641   esac
9642
9643   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9644   # uniformly replaced by the line number.  The first 'sed' inserts a
9645   # line-number line before each line; the second 'sed' does the real
9646   # work.  The second script uses 'N' to pair each line-number line
9647   # with the numbered line, and appends trailing '-' during
9648   # substitution so that $LINENO is not a special case at line end.
9649   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9650   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9651   sed '=' <$as_myself |
9652     sed '
9653       N
9654       s,$,-,
9655       : loop
9656       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9657       t loop
9658       s,-$,,
9659       s,^['$as_cr_digits']*\n,,
9660     ' >$as_me.lineno &&
9661   chmod +x $as_me.lineno ||
9662     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9663 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9664    { (exit 1); exit 1; }; }
9665
9666   # Don't try to exec as it changes $[0], causing all sort of problems
9667   # (the dirname of $[0] is not the place where we might find the
9668   # original and so on.  Autoconf is especially sensible to this).
9669   . ./$as_me.lineno
9670   # Exit status is that of the last command.
9671   exit
9672 }
9673
9674
9675 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9676   *c*,-n*) ECHO_N= ECHO_C='
9677 ' ECHO_T='      ' ;;
9678   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9679   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9680 esac
9681
9682 if expr a : '\(a\)' >/dev/null 2>&1; then
9683   as_expr=expr
9684 else
9685   as_expr=false
9686 fi
9687
9688 rm -f conf$$ conf$$.exe conf$$.file
9689 echo >conf$$.file
9690 if ln -s conf$$.file conf$$ 2>/dev/null; then
9691   # We could just check for DJGPP; but this test a) works b) is more generic
9692   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9693   if test -f conf$$.exe; then
9694     # Don't use ln at all; we don't have any links
9695     as_ln_s='cp -p'
9696   else
9697     as_ln_s='ln -s'
9698   fi
9699 elif ln conf$$.file conf$$ 2>/dev/null; then
9700   as_ln_s=ln
9701 else
9702   as_ln_s='cp -p'
9703 fi
9704 rm -f conf$$ conf$$.exe conf$$.file
9705
9706 if mkdir -p . 2>/dev/null; then
9707   as_mkdir_p=:
9708 else
9709   as_mkdir_p=false
9710 fi
9711
9712 as_executable_p="test -f"
9713
9714 # Sed expression to map a string onto a valid CPP name.
9715 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9716
9717 # Sed expression to map a string onto a valid variable name.
9718 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9719
9720
9721 # IFS
9722 # We need space, tab and new line, in precisely that order.
9723 as_nl='
9724 '
9725 IFS="   $as_nl"
9726
9727 # CDPATH.
9728 $as_unset CDPATH
9729
9730 exec 6>&1
9731
9732 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9733 # report actual input values of CONFIG_FILES etc. instead of their
9734 # values after options handling.  Logging --version etc. is OK.
9735 exec 5>>config.log
9736 {
9737   echo
9738   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9739 ## Running $as_me. ##
9740 _ASBOX
9741 } >&5
9742 cat >&5 <<_CSEOF
9743
9744 This file was extended by $as_me, which was
9745 generated by GNU Autoconf 2.56.  Invocation command line was
9746
9747   CONFIG_FILES    = $CONFIG_FILES
9748   CONFIG_HEADERS  = $CONFIG_HEADERS
9749   CONFIG_LINKS    = $CONFIG_LINKS
9750   CONFIG_COMMANDS = $CONFIG_COMMANDS
9751   $ $0 $@
9752
9753 _CSEOF
9754 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9755 echo >&5
9756 _ACEOF
9757
9758 # Files that config.status was made for.
9759 if test -n "$ac_config_files"; then
9760   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9761 fi
9762
9763 if test -n "$ac_config_headers"; then
9764   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9765 fi
9766
9767 if test -n "$ac_config_links"; then
9768   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9769 fi
9770
9771 if test -n "$ac_config_commands"; then
9772   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9773 fi
9774
9775 cat >>$CONFIG_STATUS <<\_ACEOF
9776
9777 ac_cs_usage="\
9778 \`$as_me' instantiates files from templates according to the
9779 current configuration.
9780
9781 Usage: $0 [OPTIONS] [FILE]...
9782
9783   -h, --help       print this help, then exit
9784   -V, --version    print version number, then exit
9785   -q, --quiet      do not print progress messages
9786   -d, --debug      don't remove temporary files
9787       --recheck    update $as_me by reconfiguring in the same conditions
9788   --file=FILE[:TEMPLATE]
9789                    instantiate the configuration file FILE
9790   --header=FILE[:TEMPLATE]
9791                    instantiate the configuration header FILE
9792
9793 Configuration files:
9794 $config_files
9795
9796 Configuration headers:
9797 $config_headers
9798
9799 Configuration commands:
9800 $config_commands
9801
9802 Report bugs to <bug-autoconf@gnu.org>."
9803 _ACEOF
9804
9805 cat >>$CONFIG_STATUS <<_ACEOF
9806 ac_cs_version="\\
9807 config.status
9808 configured by $0, generated by GNU Autoconf 2.56,
9809   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9810
9811 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9812 Free Software Foundation, Inc.
9813 This config.status script is free software; the Free Software Foundation
9814 gives unlimited permission to copy, distribute and modify it."
9815 srcdir=$srcdir
9816 INSTALL="$INSTALL"
9817 _ACEOF
9818
9819 cat >>$CONFIG_STATUS <<\_ACEOF
9820 # If no file are specified by the user, then we need to provide default
9821 # value.  By we need to know if files were specified by the user.
9822 ac_need_defaults=:
9823 while test $# != 0
9824 do
9825   case $1 in
9826   --*=*)
9827     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9828     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9829     ac_shift=:
9830     ;;
9831   -*)
9832     ac_option=$1
9833     ac_optarg=$2
9834     ac_shift=shift
9835     ;;
9836   *) # This is not an option, so the user has probably given explicit
9837      # arguments.
9838      ac_option=$1
9839      ac_need_defaults=false;;
9840   esac
9841
9842   case $ac_option in
9843   # Handling of the options.
9844 _ACEOF
9845 cat >>$CONFIG_STATUS <<\_ACEOF
9846   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9847     ac_cs_recheck=: ;;
9848   --version | --vers* | -V )
9849     echo "$ac_cs_version"; exit 0 ;;
9850   --he | --h)
9851     # Conflict between --help and --header
9852     { { echo "$as_me:$LINENO: error: ambiguous option: $1
9853 Try \`$0 --help' for more information." >&5
9854 echo "$as_me: error: ambiguous option: $1
9855 Try \`$0 --help' for more information." >&2;}
9856    { (exit 1); exit 1; }; };;
9857   --help | --hel | -h )
9858     echo "$ac_cs_usage"; exit 0 ;;
9859   --debug | --d* | -d )
9860     debug=: ;;
9861   --file | --fil | --fi | --f )
9862     $ac_shift
9863     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9864     ac_need_defaults=false;;
9865   --header | --heade | --head | --hea )
9866     $ac_shift
9867     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9868     ac_need_defaults=false;;
9869   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9870   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9871     ac_cs_silent=: ;;
9872
9873   # This is an error.
9874   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9875 Try \`$0 --help' for more information." >&5
9876 echo "$as_me: error: unrecognized option: $1
9877 Try \`$0 --help' for more information." >&2;}
9878    { (exit 1); exit 1; }; } ;;
9879
9880   *) ac_config_targets="$ac_config_targets $1" ;;
9881
9882   esac
9883   shift
9884 done
9885
9886 ac_configure_extra_args=
9887
9888 if $ac_cs_silent; then
9889   exec 6>/dev/null
9890   ac_configure_extra_args="$ac_configure_extra_args --silent"
9891 fi
9892
9893 _ACEOF
9894 cat >>$CONFIG_STATUS <<_ACEOF
9895 if \$ac_cs_recheck; then
9896   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9897   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9898 fi
9899
9900 _ACEOF
9901
9902 cat >>$CONFIG_STATUS <<_ACEOF
9903 #
9904 # INIT-COMMANDS section.
9905 #
9906
9907
9908
9909 _ACEOF
9910
9911
9912
9913 cat >>$CONFIG_STATUS <<\_ACEOF
9914 for ac_config_target in $ac_config_targets
9915 do
9916   case "$ac_config_target" in
9917   # Handling of arguments.
9918   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9919   "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
9920   "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
9921   "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
9922   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9923   "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
9924   "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
9925   "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
9926   "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
9927   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9928   "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
9929   "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
9930   "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
9931   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9932   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9933   "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
9934   "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
9935   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9936   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9937   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9938 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9939    { (exit 1); exit 1; }; };;
9940   esac
9941 done
9942
9943 # If the user did not use the arguments to specify the items to instantiate,
9944 # then the envvar interface is used.  Set only those that are not.
9945 # We use the long form for the default assignment because of an extremely
9946 # bizarre bug on SunOS 4.1.3.
9947 if $ac_need_defaults; then
9948   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9949   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9950   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9951 fi
9952
9953 # Have a temporary directory for convenience.  Make it in the build tree
9954 # simply because there is no reason to put it here, and in addition,
9955 # creating and moving files from /tmp can sometimes cause problems.
9956 # Create a temporary directory, and hook for its removal unless debugging.
9957 $debug ||
9958 {
9959   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9960   trap '{ (exit 1); exit 1; }' 1 2 13 15
9961 }
9962
9963 # Create a (secure) tmp directory for tmp files.
9964
9965 {
9966   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9967   test -n "$tmp" && test -d "$tmp"
9968 }  ||
9969 {
9970   tmp=./confstat$$-$RANDOM
9971   (umask 077 && mkdir $tmp)
9972 } ||
9973 {
9974    echo "$me: cannot create a temporary directory in ." >&2
9975    { (exit 1); exit 1; }
9976 }
9977
9978 _ACEOF
9979
9980 cat >>$CONFIG_STATUS <<_ACEOF
9981
9982 #
9983 # CONFIG_FILES section.
9984 #
9985
9986 # No need to generate the scripts if there are no CONFIG_FILES.
9987 # This happens for instance when ./config.status config.h
9988 if test -n "\$CONFIG_FILES"; then
9989   # Protect against being on the right side of a sed subst in config.status.
9990   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9991    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9992 s,@SHELL@,$SHELL,;t t
9993 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9994 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9995 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9996 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9997 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9998 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9999 s,@exec_prefix@,$exec_prefix,;t t
10000 s,@prefix@,$prefix,;t t
10001 s,@program_transform_name@,$program_transform_name,;t t
10002 s,@bindir@,$bindir,;t t
10003 s,@sbindir@,$sbindir,;t t
10004 s,@libexecdir@,$libexecdir,;t t
10005 s,@datadir@,$datadir,;t t
10006 s,@sysconfdir@,$sysconfdir,;t t
10007 s,@sharedstatedir@,$sharedstatedir,;t t
10008 s,@localstatedir@,$localstatedir,;t t
10009 s,@libdir@,$libdir,;t t
10010 s,@includedir@,$includedir,;t t
10011 s,@oldincludedir@,$oldincludedir,;t t
10012 s,@infodir@,$infodir,;t t
10013 s,@mandir@,$mandir,;t t
10014 s,@build_alias@,$build_alias,;t t
10015 s,@host_alias@,$host_alias,;t t
10016 s,@target_alias@,$target_alias,;t t
10017 s,@DEFS@,$DEFS,;t t
10018 s,@ECHO_C@,$ECHO_C,;t t
10019 s,@ECHO_N@,$ECHO_N,;t t
10020 s,@ECHO_T@,$ECHO_T,;t t
10021 s,@LIBS@,$LIBS,;t t
10022 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10023 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10024 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10025 s,@PACKAGE@,$PACKAGE,;t t
10026 s,@VERSION@,$VERSION,;t t
10027 s,@ACLOCAL@,$ACLOCAL,;t t
10028 s,@AUTOCONF@,$AUTOCONF,;t t
10029 s,@AUTOMAKE@,$AUTOMAKE,;t t
10030 s,@AUTOHEADER@,$AUTOHEADER,;t t
10031 s,@MAKEINFO@,$MAKEINFO,;t t
10032 s,@SET_MAKE@,$SET_MAKE,;t t
10033 s,@AWK@,$AWK,;t t
10034 s,@RANLIB@,$RANLIB,;t t
10035 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10036 s,@CC@,$CC,;t t
10037 s,@CFLAGS@,$CFLAGS,;t t
10038 s,@LDFLAGS@,$LDFLAGS,;t t
10039 s,@CPPFLAGS@,$CPPFLAGS,;t t
10040 s,@ac_ct_CC@,$ac_ct_CC,;t t
10041 s,@EXEEXT@,$EXEEXT,;t t
10042 s,@OBJEXT@,$OBJEXT,;t t
10043 s,@CXX@,$CXX,;t t
10044 s,@CXXFLAGS@,$CXXFLAGS,;t t
10045 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10046 s,@wxconfig@,$wxconfig,;t t
10047 s,@build@,$build,;t t
10048 s,@build_cpu@,$build_cpu,;t t
10049 s,@build_vendor@,$build_vendor,;t t
10050 s,@build_os@,$build_os,;t t
10051 s,@host@,$host,;t t
10052 s,@host_cpu@,$host_cpu,;t t
10053 s,@host_vendor@,$host_vendor,;t t
10054 s,@host_os@,$host_os,;t t
10055 s,@CPP@,$CPP,;t t
10056 s,@EGREP@,$EGREP,;t t
10057 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10058 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10059 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10060 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10061 s,@lamdir@,$lamdir,;t t
10062 s,@mpienable@,$mpienable,;t t
10063 s,@cgibindir@,$cgibindir,;t t
10064 s,@cgibinurl@,$cgibinurl,;t t
10065 s,@webdatadir@,$webdatadir,;t t
10066 s,@webdataurl@,$webdataurl,;t t
10067 s,@htmldir@,$htmldir,;t t
10068 s,@cgiprograms@,$cgiprograms,;t t
10069 s,@htmldata@,$htmldata,;t t
10070 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10071 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10072 s,@webenabled@,$webenabled,;t t
10073 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10074 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10075 s,@X_CFLAGS@,$X_CFLAGS,;t t
10076 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10077 s,@X_LIBS@,$X_LIBS,;t t
10078 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10079 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10080 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10081 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10082 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10083 s,@my_includes@,$my_includes,;t t
10084 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10085 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10086 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10087 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10088 s,@wxcflags@,$wxcflags,;t t
10089 s,@wxlibs@,$wxlibs,;t t
10090 s,@ctlibs@,$ctlibs,;t t
10091 s,@lamprograms@,$lamprograms,;t t
10092 s,@lamdefs@,$lamdefs,;t t
10093 s,@LIBOBJS@,$LIBOBJS,;t t
10094 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10095 CEOF
10096
10097 _ACEOF
10098
10099   cat >>$CONFIG_STATUS <<\_ACEOF
10100   # Split the substitutions into bite-sized pieces for seds with
10101   # small command number limits, like on Digital OSF/1 and HP-UX.
10102   ac_max_sed_lines=48
10103   ac_sed_frag=1 # Number of current file.
10104   ac_beg=1 # First line for current file.
10105   ac_end=$ac_max_sed_lines # Line after last line for current file.
10106   ac_more_lines=:
10107   ac_sed_cmds=
10108   while $ac_more_lines; do
10109     if test $ac_beg -gt 1; then
10110       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10111     else
10112       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10113     fi
10114     if test ! -s $tmp/subs.frag; then
10115       ac_more_lines=false
10116     else
10117       # The purpose of the label and of the branching condition is to
10118       # speed up the sed processing (if there are no `@' at all, there
10119       # is no need to browse any of the substitutions).
10120       # These are the two extra sed commands mentioned above.
10121       (echo ':t
10122   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10123       if test -z "$ac_sed_cmds"; then
10124         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10125       else
10126         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10127       fi
10128       ac_sed_frag=`expr $ac_sed_frag + 1`
10129       ac_beg=$ac_end
10130       ac_end=`expr $ac_end + $ac_max_sed_lines`
10131     fi
10132   done
10133   if test -z "$ac_sed_cmds"; then
10134     ac_sed_cmds=cat
10135   fi
10136 fi # test -n "$CONFIG_FILES"
10137
10138 _ACEOF
10139 cat >>$CONFIG_STATUS <<\_ACEOF
10140 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10141   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10142   case $ac_file in
10143   - | *:- | *:-:* ) # input from stdin
10144         cat >$tmp/stdin
10145         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10146         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10147   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10148         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10149   * )   ac_file_in=$ac_file.in ;;
10150   esac
10151
10152   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10153   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10154 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10155          X"$ac_file" : 'X\(//\)[^/]' \| \
10156          X"$ac_file" : 'X\(//\)$' \| \
10157          X"$ac_file" : 'X\(/\)' \| \
10158          .     : '\(.\)' 2>/dev/null ||
10159 echo X"$ac_file" |
10160     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10161           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10162           /^X\(\/\/\)$/{ s//\1/; q; }
10163           /^X\(\/\).*/{ s//\1/; q; }
10164           s/.*/./; q'`
10165   { if $as_mkdir_p; then
10166     mkdir -p "$ac_dir"
10167   else
10168     as_dir="$ac_dir"
10169     as_dirs=
10170     while test ! -d "$as_dir"; do
10171       as_dirs="$as_dir $as_dirs"
10172       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10174          X"$as_dir" : 'X\(//\)[^/]' \| \
10175          X"$as_dir" : 'X\(//\)$' \| \
10176          X"$as_dir" : 'X\(/\)' \| \
10177          .     : '\(.\)' 2>/dev/null ||
10178 echo X"$as_dir" |
10179     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10180           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10181           /^X\(\/\/\)$/{ s//\1/; q; }
10182           /^X\(\/\).*/{ s//\1/; q; }
10183           s/.*/./; q'`
10184     done
10185     test ! -n "$as_dirs" || mkdir $as_dirs
10186   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10187 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10188    { (exit 1); exit 1; }; }; }
10189
10190   ac_builddir=.
10191
10192 if test "$ac_dir" != .; then
10193   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10194   # A "../" for each directory in $ac_dir_suffix.
10195   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10196 else
10197   ac_dir_suffix= ac_top_builddir=
10198 fi
10199
10200 case $srcdir in
10201   .)  # No --srcdir option.  We are building in place.
10202     ac_srcdir=.
10203     if test -z "$ac_top_builddir"; then
10204        ac_top_srcdir=.
10205     else
10206        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10207     fi ;;
10208   [\\/]* | ?:[\\/]* )  # Absolute path.
10209     ac_srcdir=$srcdir$ac_dir_suffix;
10210     ac_top_srcdir=$srcdir ;;
10211   *) # Relative path.
10212     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10213     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10214 esac
10215 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10216 # absolute.
10217 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10218 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10219 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10220 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10221
10222
10223   case $INSTALL in
10224   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10225   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10226   esac
10227
10228   if test x"$ac_file" != x-; then
10229     { echo "$as_me:$LINENO: creating $ac_file" >&5
10230 echo "$as_me: creating $ac_file" >&6;}
10231     rm -f "$ac_file"
10232   fi
10233   # Let's still pretend it is `configure' which instantiates (i.e., don't
10234   # use $as_me), people would be surprised to read:
10235   #    /* config.h.  Generated by config.status.  */
10236   if test x"$ac_file" = x-; then
10237     configure_input=
10238   else
10239     configure_input="$ac_file.  "
10240   fi
10241   configure_input=$configure_input"Generated from `echo $ac_file_in |
10242                                      sed 's,.*/,,'` by configure."
10243
10244   # First look for the input files in the build tree, otherwise in the
10245   # src tree.
10246   ac_file_inputs=`IFS=:
10247     for f in $ac_file_in; do
10248       case $f in
10249       -) echo $tmp/stdin ;;
10250       [\\/$]*)
10251          # Absolute (can't be DOS-style, as IFS=:)
10252          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10253 echo "$as_me: error: cannot find input file: $f" >&2;}
10254    { (exit 1); exit 1; }; }
10255          echo $f;;
10256       *) # Relative
10257          if test -f "$f"; then
10258            # Build tree
10259            echo $f
10260          elif test -f "$srcdir/$f"; then
10261            # Source tree
10262            echo $srcdir/$f
10263          else
10264            # /dev/null tree
10265            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10266 echo "$as_me: error: cannot find input file: $f" >&2;}
10267    { (exit 1); exit 1; }; }
10268          fi;;
10269       esac
10270     done` || { (exit 1); exit 1; }
10271 _ACEOF
10272 cat >>$CONFIG_STATUS <<_ACEOF
10273   sed "$ac_vpsub
10274 $extrasub
10275 _ACEOF
10276 cat >>$CONFIG_STATUS <<\_ACEOF
10277 :t
10278 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10279 s,@configure_input@,$configure_input,;t t
10280 s,@srcdir@,$ac_srcdir,;t t
10281 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10282 s,@top_srcdir@,$ac_top_srcdir,;t t
10283 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10284 s,@builddir@,$ac_builddir,;t t
10285 s,@abs_builddir@,$ac_abs_builddir,;t t
10286 s,@top_builddir@,$ac_top_builddir,;t t
10287 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10288 s,@INSTALL@,$ac_INSTALL,;t t
10289 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10290   rm -f $tmp/stdin
10291   if test x"$ac_file" != x-; then
10292     mv $tmp/out $ac_file
10293   else
10294     cat $tmp/out
10295     rm -f $tmp/out
10296   fi
10297
10298 done
10299 _ACEOF
10300 cat >>$CONFIG_STATUS <<\_ACEOF
10301
10302 #
10303 # CONFIG_HEADER section.
10304 #
10305
10306 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10307 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10308 #
10309 # ac_d sets the value in "#define NAME VALUE" lines.
10310 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
10311 ac_dB='[        ].*$,\1#\2'
10312 ac_dC=' '
10313 ac_dD=',;t'
10314 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10315 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10316 ac_uB='$,\1#\2define\3'
10317 ac_uC=' '
10318 ac_uD=',;t'
10319
10320 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10321   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10322   case $ac_file in
10323   - | *:- | *:-:* ) # input from stdin
10324         cat >$tmp/stdin
10325         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10326         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10327   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10328         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10329   * )   ac_file_in=$ac_file.in ;;
10330   esac
10331
10332   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10333 echo "$as_me: creating $ac_file" >&6;}
10334
10335   # First look for the input files in the build tree, otherwise in the
10336   # src tree.
10337   ac_file_inputs=`IFS=:
10338     for f in $ac_file_in; do
10339       case $f in
10340       -) echo $tmp/stdin ;;
10341       [\\/$]*)
10342          # Absolute (can't be DOS-style, as IFS=:)
10343          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10344 echo "$as_me: error: cannot find input file: $f" >&2;}
10345    { (exit 1); exit 1; }; }
10346          echo $f;;
10347       *) # Relative
10348          if test -f "$f"; then
10349            # Build tree
10350            echo $f
10351          elif test -f "$srcdir/$f"; then
10352            # Source tree
10353            echo $srcdir/$f
10354          else
10355            # /dev/null tree
10356            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10357 echo "$as_me: error: cannot find input file: $f" >&2;}
10358    { (exit 1); exit 1; }; }
10359          fi;;
10360       esac
10361     done` || { (exit 1); exit 1; }
10362   # Remove the trailing spaces.
10363   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
10364
10365 _ACEOF
10366
10367 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10368 # `conftest.undefs', that substitutes the proper values into
10369 # config.h.in to produce config.h.  The first handles `#define'
10370 # templates, and the second `#undef' templates.
10371 # And first: Protect against being on the right side of a sed subst in
10372 # config.status.  Protect against being in an unquoted here document
10373 # in config.status.
10374 rm -f conftest.defines conftest.undefs
10375 # Using a here document instead of a string reduces the quoting nightmare.
10376 # Putting comments in sed scripts is not portable.
10377 #
10378 # `end' is used to avoid that the second main sed command (meant for
10379 # 0-ary CPP macros) applies to n-ary macro definitions.
10380 # See the Autoconf documentation for `clear'.
10381 cat >confdef2sed.sed <<\_ACEOF
10382 s/[\\&,]/\\&/g
10383 s,[\\$`],\\&,g
10384 t clear
10385 : clear
10386 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10387 t end
10388 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10389 : end
10390 _ACEOF
10391 # If some macros were called several times there might be several times
10392 # the same #defines, which is useless.  Nevertheless, we may not want to
10393 # sort them, since we want the *last* AC-DEFINE to be honored.
10394 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10395 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10396 rm -f confdef2sed.sed
10397
10398 # This sed command replaces #undef with comments.  This is necessary, for
10399 # example, in the case of _POSIX_SOURCE, which is predefined and required
10400 # on some systems where configure will not decide to define it.
10401 cat >>conftest.undefs <<\_ACEOF
10402 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10403 _ACEOF
10404
10405 # Break up conftest.defines because some shells have a limit on the size
10406 # of here documents, and old seds have small limits too (100 cmds).
10407 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10408 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10409 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10410 echo '  :' >>$CONFIG_STATUS
10411 rm -f conftest.tail
10412 while grep . conftest.defines >/dev/null
10413 do
10414   # Write a limited-size here document to $tmp/defines.sed.
10415   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10416   # Speed up: don't consider the non `#define' lines.
10417   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
10418   # Work around the forget-to-reset-the-flag bug.
10419   echo 't clr' >>$CONFIG_STATUS
10420   echo ': clr' >>$CONFIG_STATUS
10421   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10422   echo 'CEOF
10423   sed -f $tmp/defines.sed $tmp/in >$tmp/out
10424   rm -f $tmp/in
10425   mv $tmp/out $tmp/in
10426 ' >>$CONFIG_STATUS
10427   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10428   rm -f conftest.defines
10429   mv conftest.tail conftest.defines
10430 done
10431 rm -f conftest.defines
10432 echo '  fi # grep' >>$CONFIG_STATUS
10433 echo >>$CONFIG_STATUS
10434
10435 # Break up conftest.undefs because some shells have a limit on the size
10436 # of here documents, and old seds have small limits too (100 cmds).
10437 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10438 rm -f conftest.tail
10439 while grep . conftest.undefs >/dev/null
10440 do
10441   # Write a limited-size here document to $tmp/undefs.sed.
10442   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10443   # Speed up: don't consider the non `#undef'
10444   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10445   # Work around the forget-to-reset-the-flag bug.
10446   echo 't clr' >>$CONFIG_STATUS
10447   echo ': clr' >>$CONFIG_STATUS
10448   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10449   echo 'CEOF
10450   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10451   rm -f $tmp/in
10452   mv $tmp/out $tmp/in
10453 ' >>$CONFIG_STATUS
10454   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10455   rm -f conftest.undefs
10456   mv conftest.tail conftest.undefs
10457 done
10458 rm -f conftest.undefs
10459
10460 cat >>$CONFIG_STATUS <<\_ACEOF
10461   # Let's still pretend it is `configure' which instantiates (i.e., don't
10462   # use $as_me), people would be surprised to read:
10463   #    /* config.h.  Generated by config.status.  */
10464   if test x"$ac_file" = x-; then
10465     echo "/* Generated by configure.  */" >$tmp/config.h
10466   else
10467     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10468   fi
10469   cat $tmp/in >>$tmp/config.h
10470   rm -f $tmp/in
10471   if test x"$ac_file" != x-; then
10472     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10473       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10474 echo "$as_me: $ac_file is unchanged" >&6;}
10475     else
10476       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10477 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10478          X"$ac_file" : 'X\(//\)[^/]' \| \
10479          X"$ac_file" : 'X\(//\)$' \| \
10480          X"$ac_file" : 'X\(/\)' \| \
10481          .     : '\(.\)' 2>/dev/null ||
10482 echo X"$ac_file" |
10483     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10484           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10485           /^X\(\/\/\)$/{ s//\1/; q; }
10486           /^X\(\/\).*/{ s//\1/; q; }
10487           s/.*/./; q'`
10488       { if $as_mkdir_p; then
10489     mkdir -p "$ac_dir"
10490   else
10491     as_dir="$ac_dir"
10492     as_dirs=
10493     while test ! -d "$as_dir"; do
10494       as_dirs="$as_dir $as_dirs"
10495       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10496 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10497          X"$as_dir" : 'X\(//\)[^/]' \| \
10498          X"$as_dir" : 'X\(//\)$' \| \
10499          X"$as_dir" : 'X\(/\)' \| \
10500          .     : '\(.\)' 2>/dev/null ||
10501 echo X"$as_dir" |
10502     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10503           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10504           /^X\(\/\/\)$/{ s//\1/; q; }
10505           /^X\(\/\).*/{ s//\1/; q; }
10506           s/.*/./; q'`
10507     done
10508     test ! -n "$as_dirs" || mkdir $as_dirs
10509   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10510 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10511    { (exit 1); exit 1; }; }; }
10512
10513       rm -f $ac_file
10514       mv $tmp/config.h $ac_file
10515     fi
10516   else
10517     cat $tmp/config.h
10518     rm -f $tmp/config.h
10519   fi
10520 done
10521 _ACEOF
10522 cat >>$CONFIG_STATUS <<\_ACEOF
10523
10524 #
10525 # CONFIG_COMMANDS section.
10526 #
10527 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10528   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10529   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10530   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10531 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10532          X"$ac_dest" : 'X\(//\)[^/]' \| \
10533          X"$ac_dest" : 'X\(//\)$' \| \
10534          X"$ac_dest" : 'X\(/\)' \| \
10535          .     : '\(.\)' 2>/dev/null ||
10536 echo X"$ac_dest" |
10537     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10538           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10539           /^X\(\/\/\)$/{ s//\1/; q; }
10540           /^X\(\/\).*/{ s//\1/; q; }
10541           s/.*/./; q'`
10542   ac_builddir=.
10543
10544 if test "$ac_dir" != .; then
10545   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10546   # A "../" for each directory in $ac_dir_suffix.
10547   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10548 else
10549   ac_dir_suffix= ac_top_builddir=
10550 fi
10551
10552 case $srcdir in
10553   .)  # No --srcdir option.  We are building in place.
10554     ac_srcdir=.
10555     if test -z "$ac_top_builddir"; then
10556        ac_top_srcdir=.
10557     else
10558        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10559     fi ;;
10560   [\\/]* | ?:[\\/]* )  # Absolute path.
10561     ac_srcdir=$srcdir$ac_dir_suffix;
10562     ac_top_srcdir=$srcdir ;;
10563   *) # Relative path.
10564     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10565     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10566 esac
10567 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10568 # absolute.
10569 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10570 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10571 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10572 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10573
10574
10575   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10576 echo "$as_me: executing $ac_dest commands" >&6;}
10577   case $ac_dest in
10578     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10579   esac
10580 done
10581 _ACEOF
10582
10583 cat >>$CONFIG_STATUS <<\_ACEOF
10584
10585 { (exit 0); exit 0; }
10586 _ACEOF
10587 chmod +x $CONFIG_STATUS
10588 ac_clean_files=$ac_clean_files_save
10589
10590
10591 # configure is writing to config.log, and then calls config.status.
10592 # config.status does its own redirection, appending to config.log.
10593 # Unfortunately, on DOS this fails, as config.log is still kept open
10594 # by configure, so config.status won't be able to write to it; its
10595 # output is simply discarded.  So we exec the FD to /dev/null,
10596 # effectively closing config.log, so it can be properly (re)opened and
10597 # appended to by config.status.  When coming back to configure, we
10598 # need to make the FD available again.
10599 if test "$no_create" != yes; then
10600   ac_cs_success=:
10601   ac_config_status_args=
10602   test "$silent" = yes &&
10603     ac_config_status_args="$ac_config_status_args --quiet"
10604   exec 5>/dev/null
10605   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10606   exec 5>>config.log
10607   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10608   # would make configure fail if this is the last instruction.
10609   $ac_cs_success || { (exit 1); exit 1; }
10610 fi
10611