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