r3855: *** empty log message ***
[ctsim.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/ctsim.cpp"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AWK RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX wxconfig build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP INCLUDED_GETOPT_LONG_TRUE INCLUDED_GETOPT_LONG_FALSE DEBUG_TRUE DEBUG_FALSE lamdir mpienable cgibindir cgibinurl webdatadir webdataurl htmldir cgiprograms htmldata USE_HTML_TRUE USE_HTML_FALSE webenabled USE_LAM_TRUE USE_LAM_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_TOOLKIT_LIBS X_BASIC_LIBS NO_X_TRUE NO_X_FALSE my_includes HAVE_SGP_TRUE HAVE_SGP_FALSE HAVE_WXWINDOWS_TRUE HAVE_WXWINDOWS_FALSE wxcflags wxlibs ctlibs lamprograms lamdefs LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 Program names:
842   --program-prefix=PREFIX            prepend PREFIX to installed program names
843   --program-suffix=SUFFIX            append SUFFIX to installed program names
844   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
845
846 X features:
847   --x-includes=DIR    X include files are in DIR
848   --x-libraries=DIR   X library files are in DIR
849
850 System types:
851   --build=BUILD     configure for building on BUILD [guessed]
852   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
853 _ACEOF
854 fi
855
856 if test -n "$ac_init_help"; then
857
858   cat <<\_ACEOF
859
860 Optional Features:
861   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
862   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
863   --enable-debug          Turn on debugging
864   --enable-verbose-warnings
865                           Enable verbose compiler warnings.
866   --enable-static
867                           Enable static executables.
868   --enable-dmalloc        Use dmalloc memory allocation
869   --enable-efence        Use ElectricFence memory allocation
870
871 Optional Packages:
872   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
873   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
874   --with-lam=PATH       Set path of LAM MPI
875   --with-ctn=PATH       Set path of CTN DICOM library
876   --with-cgibin-dir=PATH  Set path of CGI binaries directory
877   --with-cgibin-url=PATH  Set URL path of CGI binaries
878   --with-webdata-dir=PATH Set path of webdata
879   --with-webdata-url=PATH Set URL path of webdata
880   --with-html-dir=PATH    Set directory of html files
881   --with-x                use the X Window System
882
883 Some influential environment variables:
884   CC          C compiler command
885   CFLAGS      C compiler flags
886   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
887               nonstandard directory <lib dir>
888   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
889               headers in a nonstandard directory <include dir>
890   CXX         C++ compiler command
891   CXXFLAGS    C++ compiler flags
892   CPP         C preprocessor
893
894 Use these variables to override the choices made by `configure' or to help
895 it to find libraries and programs with nonstandard names/locations.
896
897 _ACEOF
898 fi
899
900 if test "$ac_init_help" = "recursive"; then
901   # If there are subdirs, report their specific --help.
902   ac_popdir=`pwd`
903   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
904     test -d $ac_dir || continue
905     ac_builddir=.
906
907 if test "$ac_dir" != .; then
908   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
909   # A "../" for each directory in $ac_dir_suffix.
910   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911 else
912   ac_dir_suffix= ac_top_builddir=
913 fi
914
915 case $srcdir in
916   .)  # No --srcdir option.  We are building in place.
917     ac_srcdir=.
918     if test -z "$ac_top_builddir"; then
919        ac_top_srcdir=.
920     else
921        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922     fi ;;
923   [\\/]* | ?:[\\/]* )  # Absolute path.
924     ac_srcdir=$srcdir$ac_dir_suffix;
925     ac_top_srcdir=$srcdir ;;
926   *) # Relative path.
927     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
928     ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 esac
930 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
931 # absolute.
932 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
933 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
934 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
935 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
936
937     cd $ac_dir
938     # Check for guested configure; otherwise get Cygnus style configure.
939     if test -f $ac_srcdir/configure.gnu; then
940       echo
941       $SHELL $ac_srcdir/configure.gnu  --help=recursive
942     elif test -f $ac_srcdir/configure; then
943       echo
944       $SHELL $ac_srcdir/configure  --help=recursive
945     elif test -f $ac_srcdir/configure.ac ||
946            test -f $ac_srcdir/configure.in; then
947       echo
948       $ac_configure --help
949     else
950       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
951     fi
952     cd $ac_popdir
953   done
954 fi
955
956 test -n "$ac_init_help" && exit 0
957 if $ac_init_version; then
958   cat <<\_ACEOF
959
960 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
961 Free Software Foundation, Inc.
962 This configure script is free software; the Free Software Foundation
963 gives unlimited permission to copy, distribute and modify it.
964 _ACEOF
965   exit 0
966 fi
967 exec 5>config.log
968 cat >&5 <<_ACEOF
969 This file contains any messages produced by compilers while
970 running configure, to aid debugging if configure makes a mistake.
971
972 It was created by $as_me, which was
973 generated by GNU Autoconf 2.57.  Invocation command line was
974
975   $ $0 $@
976
977 _ACEOF
978 {
979 cat <<_ASUNAME
980 ## --------- ##
981 ## Platform. ##
982 ## --------- ##
983
984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
989
990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
992
993 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
994 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
997 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
998 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
999 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1000
1001 _ASUNAME
1002
1003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 for as_dir in $PATH
1005 do
1006   IFS=$as_save_IFS
1007   test -z "$as_dir" && as_dir=.
1008   echo "PATH: $as_dir"
1009 done
1010
1011 } >&5
1012
1013 cat >&5 <<_ACEOF
1014
1015
1016 ## ----------- ##
1017 ## Core tests. ##
1018 ## ----------- ##
1019
1020 _ACEOF
1021
1022
1023 # Keep a trace of the command line.
1024 # Strip out --no-create and --no-recursion so they do not pile up.
1025 # Strip out --silent because we don't want to record it for future runs.
1026 # Also quote any args containing shell meta-characters.
1027 # Make two passes to allow for proper duplicate-argument suppression.
1028 ac_configure_args=
1029 ac_configure_args0=
1030 ac_configure_args1=
1031 ac_sep=
1032 ac_must_keep_next=false
1033 for ac_pass in 1 2
1034 do
1035   for ac_arg
1036   do
1037     case $ac_arg in
1038     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1039     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040     | -silent | --silent | --silen | --sile | --sil)
1041       continue ;;
1042     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1043       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1044     esac
1045     case $ac_pass in
1046     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1047     2)
1048       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1049       if test $ac_must_keep_next = true; then
1050         ac_must_keep_next=false # Got value, back to normal.
1051       else
1052         case $ac_arg in
1053           *=* | --config-cache | -C | -disable-* | --disable-* \
1054           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1055           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1056           | -with-* | --with-* | -without-* | --without-* | --x)
1057             case "$ac_configure_args0 " in
1058               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1059             esac
1060             ;;
1061           -* ) ac_must_keep_next=true ;;
1062         esac
1063       fi
1064       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1065       # Get rid of the leading space.
1066       ac_sep=" "
1067       ;;
1068     esac
1069   done
1070 done
1071 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1072 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1073
1074 # When interrupted or exit'd, cleanup temporary files, and complete
1075 # config.log.  We remove comments because anyway the quotes in there
1076 # would cause problems or look ugly.
1077 # WARNING: Be sure not to use single quotes in there, as some shells,
1078 # such as our DU 5.0 friend, will then `close' the trap.
1079 trap 'exit_status=$?
1080   # Save into config.log some information that might help in debugging.
1081   {
1082     echo
1083
1084     cat <<\_ASBOX
1085 ## ---------------- ##
1086 ## Cache variables. ##
1087 ## ---------------- ##
1088 _ASBOX
1089     echo
1090     # The following way of writing the cache mishandles newlines in values,
1091 {
1092   (set) 2>&1 |
1093     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1094     *ac_space=\ *)
1095       sed -n \
1096         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1097           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1098       ;;
1099     *)
1100       sed -n \
1101         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102       ;;
1103     esac;
1104 }
1105     echo
1106
1107     cat <<\_ASBOX
1108 ## ----------------- ##
1109 ## Output variables. ##
1110 ## ----------------- ##
1111 _ASBOX
1112     echo
1113     for ac_var in $ac_subst_vars
1114     do
1115       eval ac_val=$`echo $ac_var`
1116       echo "$ac_var='"'"'$ac_val'"'"'"
1117     done | sort
1118     echo
1119
1120     if test -n "$ac_subst_files"; then
1121       cat <<\_ASBOX
1122 ## ------------- ##
1123 ## Output files. ##
1124 ## ------------- ##
1125 _ASBOX
1126       echo
1127       for ac_var in $ac_subst_files
1128       do
1129         eval ac_val=$`echo $ac_var`
1130         echo "$ac_var='"'"'$ac_val'"'"'"
1131       done | sort
1132       echo
1133     fi
1134
1135     if test -s confdefs.h; then
1136       cat <<\_ASBOX
1137 ## ----------- ##
1138 ## confdefs.h. ##
1139 ## ----------- ##
1140 _ASBOX
1141       echo
1142       sed "/^$/d" confdefs.h | sort
1143       echo
1144     fi
1145     test "$ac_signal" != 0 &&
1146       echo "$as_me: caught signal $ac_signal"
1147     echo "$as_me: exit $exit_status"
1148   } >&5
1149   rm -f core core.* *.core &&
1150   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1151     exit $exit_status
1152      ' 0
1153 for ac_signal in 1 2 13 15; do
1154   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1155 done
1156 ac_signal=0
1157
1158 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1159 rm -rf conftest* confdefs.h
1160 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1161 echo >confdefs.h
1162
1163 # Predefined preprocessor variables.
1164
1165 cat >>confdefs.h <<_ACEOF
1166 #define PACKAGE_NAME "$PACKAGE_NAME"
1167 _ACEOF
1168
1169
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1172 _ACEOF
1173
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_STRING "$PACKAGE_STRING"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1187 _ACEOF
1188
1189
1190 # Let the site file select an alternate cache file if it wants to.
1191 # Prefer explicitly selected file to automatically selected ones.
1192 if test -z "$CONFIG_SITE"; then
1193   if test "x$prefix" != xNONE; then
1194     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1195   else
1196     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1197   fi
1198 fi
1199 for ac_site_file in $CONFIG_SITE; do
1200   if test -r "$ac_site_file"; then
1201     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1202 echo "$as_me: loading site script $ac_site_file" >&6;}
1203     sed 's/^/| /' "$ac_site_file" >&5
1204     . "$ac_site_file"
1205   fi
1206 done
1207
1208 if test -r "$cache_file"; then
1209   # Some versions of bash will fail to source /dev/null (special
1210   # files actually), so we avoid doing that.
1211   if test -f "$cache_file"; then
1212     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1213 echo "$as_me: loading cache $cache_file" >&6;}
1214     case $cache_file in
1215       [\\/]* | ?:[\\/]* ) . $cache_file;;
1216       *)                      . ./$cache_file;;
1217     esac
1218   fi
1219 else
1220   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1221 echo "$as_me: creating cache $cache_file" >&6;}
1222   >$cache_file
1223 fi
1224
1225 # Check that the precious variables saved in the cache have kept the same
1226 # value.
1227 ac_cache_corrupted=false
1228 for ac_var in `(set) 2>&1 |
1229                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1230   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1231   eval ac_new_set=\$ac_env_${ac_var}_set
1232   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1233   eval ac_new_val="\$ac_env_${ac_var}_value"
1234   case $ac_old_set,$ac_new_set in
1235     set,)
1236       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1237 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1238       ac_cache_corrupted=: ;;
1239     ,set)
1240       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1241 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1242       ac_cache_corrupted=: ;;
1243     ,);;
1244     *)
1245       if test "x$ac_old_val" != "x$ac_new_val"; then
1246         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1247 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1248         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1249 echo "$as_me:   former value:  $ac_old_val" >&2;}
1250         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1251 echo "$as_me:   current value: $ac_new_val" >&2;}
1252         ac_cache_corrupted=:
1253       fi;;
1254   esac
1255   # Pass precious variables to config.status.
1256   if test "$ac_new_set" = set; then
1257     case $ac_new_val in
1258     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1260     *) ac_arg=$ac_var=$ac_new_val ;;
1261     esac
1262     case " $ac_configure_args " in
1263       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1264       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1265     esac
1266   fi
1267 done
1268 if $ac_cache_corrupted; then
1269   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1270 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1271   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1272 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1273    { (exit 1); exit 1; }; }
1274 fi
1275
1276 ac_ext=c
1277 ac_cpp='$CPP $CPPFLAGS'
1278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301 am__api_version="1.4"
1302 ac_aux_dir=
1303 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1304   if test -f $ac_dir/install-sh; then
1305     ac_aux_dir=$ac_dir
1306     ac_install_sh="$ac_aux_dir/install-sh -c"
1307     break
1308   elif test -f $ac_dir/install.sh; then
1309     ac_aux_dir=$ac_dir
1310     ac_install_sh="$ac_aux_dir/install.sh -c"
1311     break
1312   elif test -f $ac_dir/shtool; then
1313     ac_aux_dir=$ac_dir
1314     ac_install_sh="$ac_aux_dir/shtool install -c"
1315     break
1316   fi
1317 done
1318 if test -z "$ac_aux_dir"; then
1319   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1320 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1321    { (exit 1); exit 1; }; }
1322 fi
1323 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1324 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1325 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1326
1327 # Find a good install program.  We prefer a C program (faster),
1328 # so one script is as good as another.  But avoid the broken or
1329 # incompatible versions:
1330 # SysV /etc/install, /usr/sbin/install
1331 # SunOS /usr/etc/install
1332 # IRIX /sbin/install
1333 # AIX /bin/install
1334 # AmigaOS /C/install, which installs bootblocks on floppy discs
1335 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1336 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1337 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1338 # ./install, which can be erroneously created by make from ./install.sh.
1339 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1340 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1341 if test -z "$INSTALL"; then
1342 if test "${ac_cv_path_install+set}" = set; then
1343   echo $ECHO_N "(cached) $ECHO_C" >&6
1344 else
1345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1346 for as_dir in $PATH
1347 do
1348   IFS=$as_save_IFS
1349   test -z "$as_dir" && as_dir=.
1350   # Account for people who put trailing slashes in PATH elements.
1351 case $as_dir/ in
1352   ./ | .// | /cC/* | \
1353   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1354   /usr/ucb/* ) ;;
1355   *)
1356     # OSF1 and SCO ODT 3.0 have their own names for install.
1357     # Don't use installbsd from OSF since it installs stuff as root
1358     # by default.
1359     for ac_prog in ginstall scoinst install; do
1360       for ac_exec_ext in '' $ac_executable_extensions; do
1361         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1362           if test $ac_prog = install &&
1363             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1364             # AIX install.  It has an incompatible calling convention.
1365             :
1366           elif test $ac_prog = install &&
1367             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1368             # program-specific install script used by HP pwplus--don't use.
1369             :
1370           else
1371             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1372             break 3
1373           fi
1374         fi
1375       done
1376     done
1377     ;;
1378 esac
1379 done
1380
1381
1382 fi
1383   if test "${ac_cv_path_install+set}" = set; then
1384     INSTALL=$ac_cv_path_install
1385   else
1386     # As a last resort, use the slow shell script.  We don't cache a
1387     # path for INSTALL within a source directory, because that will
1388     # break other packages using the cache if that directory is
1389     # removed, or if the path is relative.
1390     INSTALL=$ac_install_sh
1391   fi
1392 fi
1393 echo "$as_me:$LINENO: result: $INSTALL" >&5
1394 echo "${ECHO_T}$INSTALL" >&6
1395
1396 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1397 # It thinks the first close brace ends the variable substitution.
1398 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1399
1400 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1401
1402 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1403
1404 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1405 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1406 # Just in case
1407 sleep 1
1408 echo timestamp > conftestfile
1409 # Do `set' in a subshell so we don't clobber the current shell's
1410 # arguments.  Must try -L first in case configure is actually a
1411 # symlink; some systems play weird games with the mod time of symlinks
1412 # (eg FreeBSD returns the mod time of the symlink's containing
1413 # directory).
1414 if (
1415    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1416    if test "$*" = "X"; then
1417       # -L didn't work.
1418       set X `ls -t $srcdir/configure conftestfile`
1419    fi
1420    if test "$*" != "X $srcdir/configure conftestfile" \
1421       && test "$*" != "X conftestfile $srcdir/configure"; then
1422
1423       # If neither matched, then we have a broken ls.  This can happen
1424       # if, for instance, CONFIG_SHELL is bash and it inherits a
1425       # broken ls alias from the environment.  This has actually
1426       # happened.  Such a system could not be considered "sane".
1427       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1428 alias in your environment" >&5
1429 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1430 alias in your environment" >&2;}
1431    { (exit 1); exit 1; }; }
1432    fi
1433
1434    test "$2" = conftestfile
1435    )
1436 then
1437    # Ok.
1438    :
1439 else
1440    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1441 Check your system clock" >&5
1442 echo "$as_me: error: newly created file is older than distributed files!
1443 Check your system clock" >&2;}
1444    { (exit 1); exit 1; }; }
1445 fi
1446 rm -f conftest*
1447 echo "$as_me:$LINENO: result: yes" >&5
1448 echo "${ECHO_T}yes" >&6
1449 test "$program_prefix" != NONE &&
1450   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1451 # Use a double $ so make ignores it.
1452 test "$program_suffix" != NONE &&
1453   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1454 # Double any \ or $.  echo might interpret backslashes.
1455 # By default was `s,x,x', remove it if useless.
1456 cat <<\_ACEOF >conftest.sed
1457 s/[\\$]/&&/g;s/;s,x,x,$//
1458 _ACEOF
1459 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1460 rm conftest.sed
1461
1462 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1463 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1464 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1465 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1466   echo $ECHO_N "(cached) $ECHO_C" >&6
1467 else
1468   cat >conftest.make <<\_ACEOF
1469 all:
1470         @echo 'ac_maketemp="$(MAKE)"'
1471 _ACEOF
1472 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1473 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1474 if test -n "$ac_maketemp"; then
1475   eval ac_cv_prog_make_${ac_make}_set=yes
1476 else
1477   eval ac_cv_prog_make_${ac_make}_set=no
1478 fi
1479 rm -f conftest.make
1480 fi
1481 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1482   echo "$as_me:$LINENO: result: yes" >&5
1483 echo "${ECHO_T}yes" >&6
1484   SET_MAKE=
1485 else
1486   echo "$as_me:$LINENO: result: no" >&5
1487 echo "${ECHO_T}no" >&6
1488   SET_MAKE="MAKE=${MAKE-make}"
1489 fi
1490
1491
1492 PACKAGE=ctsim
1493
1494 VERSION=4.0.0
1495
1496 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1497   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1498 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1499    { (exit 1); exit 1; }; }
1500 fi
1501
1502 cat >>confdefs.h <<_ACEOF
1503 #define PACKAGE "$PACKAGE"
1504 _ACEOF
1505
1506
1507 cat >>confdefs.h <<_ACEOF
1508 #define VERSION "$VERSION"
1509 _ACEOF
1510
1511
1512
1513 missing_dir=`cd $ac_aux_dir && pwd`
1514 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1515 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1516 # Run test in a subshell; some versions of sh will print an error if
1517 # an executable is not found, even if stderr is redirected.
1518 # Redirect stdin to placate older versions of autoconf.  Sigh.
1519 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1520    ACLOCAL=aclocal-${am__api_version}
1521    echo "$as_me:$LINENO: result: found" >&5
1522 echo "${ECHO_T}found" >&6
1523 else
1524    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1525    echo "$as_me:$LINENO: result: missing" >&5
1526 echo "${ECHO_T}missing" >&6
1527 fi
1528
1529 echo "$as_me:$LINENO: checking for working autoconf" >&5
1530 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1531 # Run test in a subshell; some versions of sh will print an error if
1532 # an executable is not found, even if stderr is redirected.
1533 # Redirect stdin to placate older versions of autoconf.  Sigh.
1534 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1535    AUTOCONF=autoconf
1536    echo "$as_me:$LINENO: result: found" >&5
1537 echo "${ECHO_T}found" >&6
1538 else
1539    AUTOCONF="$missing_dir/missing autoconf"
1540    echo "$as_me:$LINENO: result: missing" >&5
1541 echo "${ECHO_T}missing" >&6
1542 fi
1543
1544 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1545 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1546 # Run test in a subshell; some versions of sh will print an error if
1547 # an executable is not found, even if stderr is redirected.
1548 # Redirect stdin to placate older versions of autoconf.  Sigh.
1549 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1550    AUTOMAKE=automake-${am__api_version}
1551    echo "$as_me:$LINENO: result: found" >&5
1552 echo "${ECHO_T}found" >&6
1553 else
1554    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1555    echo "$as_me:$LINENO: result: missing" >&5
1556 echo "${ECHO_T}missing" >&6
1557 fi
1558
1559 echo "$as_me:$LINENO: checking for working autoheader" >&5
1560 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1561 # Run test in a subshell; some versions of sh will print an error if
1562 # an executable is not found, even if stderr is redirected.
1563 # Redirect stdin to placate older versions of autoconf.  Sigh.
1564 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1565    AUTOHEADER=autoheader
1566    echo "$as_me:$LINENO: result: found" >&5
1567 echo "${ECHO_T}found" >&6
1568 else
1569    AUTOHEADER="$missing_dir/missing autoheader"
1570    echo "$as_me:$LINENO: result: missing" >&5
1571 echo "${ECHO_T}missing" >&6
1572 fi
1573
1574 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1575 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1576 # Run test in a subshell; some versions of sh will print an error if
1577 # an executable is not found, even if stderr is redirected.
1578 # Redirect stdin to placate older versions of autoconf.  Sigh.
1579 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1580    MAKEINFO=makeinfo
1581    echo "$as_me:$LINENO: result: found" >&5
1582 echo "${ECHO_T}found" >&6
1583 else
1584    MAKEINFO="$missing_dir/missing makeinfo"
1585    echo "$as_me:$LINENO: result: missing" >&5
1586 echo "${ECHO_T}missing" >&6
1587 fi
1588
1589
1590
1591           ac_config_headers="$ac_config_headers config.h"
1592
1593           ac_config_commands="$ac_config_commands default-1"
1594
1595
1596 for ac_prog in gawk mawk nawk awk
1597 do
1598   # Extract the first word of "$ac_prog", so it can be a program name with args.
1599 set dummy $ac_prog; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_AWK+set}" = set; then
1603   echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605   if test -n "$AWK"; then
1606   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1607 else
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 for as_dir in $PATH
1610 do
1611   IFS=$as_save_IFS
1612   test -z "$as_dir" && as_dir=.
1613   for ac_exec_ext in '' $ac_executable_extensions; do
1614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615     ac_cv_prog_AWK="$ac_prog"
1616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617     break 2
1618   fi
1619 done
1620 done
1621
1622 fi
1623 fi
1624 AWK=$ac_cv_prog_AWK
1625 if test -n "$AWK"; then
1626   echo "$as_me:$LINENO: result: $AWK" >&5
1627 echo "${ECHO_T}$AWK" >&6
1628 else
1629   echo "$as_me:$LINENO: result: no" >&5
1630 echo "${ECHO_T}no" >&6
1631 fi
1632
1633   test -n "$AWK" && break
1634 done
1635
1636 # Find a good install program.  We prefer a C program (faster),
1637 # so one script is as good as another.  But avoid the broken or
1638 # incompatible versions:
1639 # SysV /etc/install, /usr/sbin/install
1640 # SunOS /usr/etc/install
1641 # IRIX /sbin/install
1642 # AIX /bin/install
1643 # AmigaOS /C/install, which installs bootblocks on floppy discs
1644 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1645 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1646 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1647 # ./install, which can be erroneously created by make from ./install.sh.
1648 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1649 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1650 if test -z "$INSTALL"; then
1651 if test "${ac_cv_path_install+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 for as_dir in $PATH
1656 do
1657   IFS=$as_save_IFS
1658   test -z "$as_dir" && as_dir=.
1659   # Account for people who put trailing slashes in PATH elements.
1660 case $as_dir/ in
1661   ./ | .// | /cC/* | \
1662   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1663   /usr/ucb/* ) ;;
1664   *)
1665     # OSF1 and SCO ODT 3.0 have their own names for install.
1666     # Don't use installbsd from OSF since it installs stuff as root
1667     # by default.
1668     for ac_prog in ginstall scoinst install; do
1669       for ac_exec_ext in '' $ac_executable_extensions; do
1670         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1671           if test $ac_prog = install &&
1672             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1673             # AIX install.  It has an incompatible calling convention.
1674             :
1675           elif test $ac_prog = install &&
1676             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1677             # program-specific install script used by HP pwplus--don't use.
1678             :
1679           else
1680             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1681             break 3
1682           fi
1683         fi
1684       done
1685     done
1686     ;;
1687 esac
1688 done
1689
1690
1691 fi
1692   if test "${ac_cv_path_install+set}" = set; then
1693     INSTALL=$ac_cv_path_install
1694   else
1695     # As a last resort, use the slow shell script.  We don't cache a
1696     # path for INSTALL within a source directory, because that will
1697     # break other packages using the cache if that directory is
1698     # removed, or if the path is relative.
1699     INSTALL=$ac_install_sh
1700   fi
1701 fi
1702 echo "$as_me:$LINENO: result: $INSTALL" >&5
1703 echo "${ECHO_T}$INSTALL" >&6
1704
1705 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1706 # It thinks the first close brace ends the variable substitution.
1707 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1708
1709 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1710
1711 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1712
1713 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1714 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1715 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1716 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1717   echo $ECHO_N "(cached) $ECHO_C" >&6
1718 else
1719   cat >conftest.make <<\_ACEOF
1720 all:
1721         @echo 'ac_maketemp="$(MAKE)"'
1722 _ACEOF
1723 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1724 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1725 if test -n "$ac_maketemp"; then
1726   eval ac_cv_prog_make_${ac_make}_set=yes
1727 else
1728   eval ac_cv_prog_make_${ac_make}_set=no
1729 fi
1730 rm -f conftest.make
1731 fi
1732 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1733   echo "$as_me:$LINENO: result: yes" >&5
1734 echo "${ECHO_T}yes" >&6
1735   SET_MAKE=
1736 else
1737   echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1739   SET_MAKE="MAKE=${MAKE-make}"
1740 fi
1741
1742 if test -n "$ac_tool_prefix"; then
1743   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1744 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_RANLIB+set}" = set; then
1748   echo $ECHO_N "(cached) $ECHO_C" >&6
1749 else
1750   if test -n "$RANLIB"; then
1751   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1752 else
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 for as_dir in $PATH
1755 do
1756   IFS=$as_save_IFS
1757   test -z "$as_dir" && as_dir=.
1758   for ac_exec_ext in '' $ac_executable_extensions; do
1759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762     break 2
1763   fi
1764 done
1765 done
1766
1767 fi
1768 fi
1769 RANLIB=$ac_cv_prog_RANLIB
1770 if test -n "$RANLIB"; then
1771   echo "$as_me:$LINENO: result: $RANLIB" >&5
1772 echo "${ECHO_T}$RANLIB" >&6
1773 else
1774   echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1776 fi
1777
1778 fi
1779 if test -z "$ac_cv_prog_RANLIB"; then
1780   ac_ct_RANLIB=$RANLIB
1781   # Extract the first word of "ranlib", so it can be a program name with args.
1782 set dummy ranlib; ac_word=$2
1783 echo "$as_me:$LINENO: checking for $ac_word" >&5
1784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1785 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1786   echo $ECHO_N "(cached) $ECHO_C" >&6
1787 else
1788   if test -n "$ac_ct_RANLIB"; then
1789   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1790 else
1791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792 for as_dir in $PATH
1793 do
1794   IFS=$as_save_IFS
1795   test -z "$as_dir" && as_dir=.
1796   for ac_exec_ext in '' $ac_executable_extensions; do
1797   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1798     ac_cv_prog_ac_ct_RANLIB="ranlib"
1799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800     break 2
1801   fi
1802 done
1803 done
1804
1805   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1806 fi
1807 fi
1808 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1809 if test -n "$ac_ct_RANLIB"; then
1810   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1811 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1812 else
1813   echo "$as_me:$LINENO: result: no" >&5
1814 echo "${ECHO_T}no" >&6
1815 fi
1816
1817   RANLIB=$ac_ct_RANLIB
1818 else
1819   RANLIB="$ac_cv_prog_RANLIB"
1820 fi
1821
1822
1823 ac_ext=c
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828 if test -n "$ac_tool_prefix"; then
1829   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1830 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_CC+set}" = set; then
1834   echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836   if test -n "$CC"; then
1837   ac_cv_prog_CC="$CC" # Let the user override the test.
1838 else
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1841 do
1842   IFS=$as_save_IFS
1843   test -z "$as_dir" && as_dir=.
1844   for ac_exec_ext in '' $ac_executable_extensions; do
1845   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848     break 2
1849   fi
1850 done
1851 done
1852
1853 fi
1854 fi
1855 CC=$ac_cv_prog_CC
1856 if test -n "$CC"; then
1857   echo "$as_me:$LINENO: result: $CC" >&5
1858 echo "${ECHO_T}$CC" >&6
1859 else
1860   echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1862 fi
1863
1864 fi
1865 if test -z "$ac_cv_prog_CC"; then
1866   ac_ct_CC=$CC
1867   # Extract the first word of "gcc", so it can be a program name with args.
1868 set dummy gcc; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872   echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874   if test -n "$ac_ct_CC"; then
1875   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1879 do
1880   IFS=$as_save_IFS
1881   test -z "$as_dir" && as_dir=.
1882   for ac_exec_ext in '' $ac_executable_extensions; do
1883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884     ac_cv_prog_ac_ct_CC="gcc"
1885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886     break 2
1887   fi
1888 done
1889 done
1890
1891 fi
1892 fi
1893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894 if test -n "$ac_ct_CC"; then
1895   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896 echo "${ECHO_T}$ac_ct_CC" >&6
1897 else
1898   echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1900 fi
1901
1902   CC=$ac_ct_CC
1903 else
1904   CC="$ac_cv_prog_CC"
1905 fi
1906
1907 if test -z "$CC"; then
1908   if test -n "$ac_tool_prefix"; then
1909   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1910 set dummy ${ac_tool_prefix}cc; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_CC+set}" = set; then
1914   echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916   if test -n "$CC"; then
1917   ac_cv_prog_CC="$CC" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922   IFS=$as_save_IFS
1923   test -z "$as_dir" && as_dir=.
1924   for ac_exec_ext in '' $ac_executable_extensions; do
1925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926     ac_cv_prog_CC="${ac_tool_prefix}cc"
1927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928     break 2
1929   fi
1930 done
1931 done
1932
1933 fi
1934 fi
1935 CC=$ac_cv_prog_CC
1936 if test -n "$CC"; then
1937   echo "$as_me:$LINENO: result: $CC" >&5
1938 echo "${ECHO_T}$CC" >&6
1939 else
1940   echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942 fi
1943
1944 fi
1945 if test -z "$ac_cv_prog_CC"; then
1946   ac_ct_CC=$CC
1947   # Extract the first word of "cc", so it can be a program name with args.
1948 set dummy cc; ac_word=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1952   echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954   if test -n "$ac_ct_CC"; then
1955   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1956 else
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 for as_dir in $PATH
1959 do
1960   IFS=$as_save_IFS
1961   test -z "$as_dir" && as_dir=.
1962   for ac_exec_ext in '' $ac_executable_extensions; do
1963   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964     ac_cv_prog_ac_ct_CC="cc"
1965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966     break 2
1967   fi
1968 done
1969 done
1970
1971 fi
1972 fi
1973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1974 if test -n "$ac_ct_CC"; then
1975   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1976 echo "${ECHO_T}$ac_ct_CC" >&6
1977 else
1978   echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1980 fi
1981
1982   CC=$ac_ct_CC
1983 else
1984   CC="$ac_cv_prog_CC"
1985 fi
1986
1987 fi
1988 if test -z "$CC"; then
1989   # Extract the first word of "cc", so it can be a program name with args.
1990 set dummy cc; ac_word=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_CC+set}" = set; then
1994   echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996   if test -n "$CC"; then
1997   ac_cv_prog_CC="$CC" # Let the user override the test.
1998 else
1999   ac_prog_rejected=no
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 for as_dir in $PATH
2002 do
2003   IFS=$as_save_IFS
2004   test -z "$as_dir" && as_dir=.
2005   for ac_exec_ext in '' $ac_executable_extensions; do
2006   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2008        ac_prog_rejected=yes
2009        continue
2010      fi
2011     ac_cv_prog_CC="cc"
2012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013     break 2
2014   fi
2015 done
2016 done
2017
2018 if test $ac_prog_rejected = yes; then
2019   # We found a bogon in the path, so make sure we never use it.
2020   set dummy $ac_cv_prog_CC
2021   shift
2022   if test $# != 0; then
2023     # We chose a different compiler from the bogus one.
2024     # However, it has the same basename, so the bogon will be chosen
2025     # first if we set CC to just the basename; use the full file name.
2026     shift
2027     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2028   fi
2029 fi
2030 fi
2031 fi
2032 CC=$ac_cv_prog_CC
2033 if test -n "$CC"; then
2034   echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6
2036 else
2037   echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2039 fi
2040
2041 fi
2042 if test -z "$CC"; then
2043   if test -n "$ac_tool_prefix"; then
2044   for ac_prog in cl
2045   do
2046     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_CC+set}" = set; then
2051   echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053   if test -n "$CC"; then
2054   ac_cv_prog_CC="$CC" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059   IFS=$as_save_IFS
2060   test -z "$as_dir" && as_dir=.
2061   for ac_exec_ext in '' $ac_executable_extensions; do
2062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065     break 2
2066   fi
2067 done
2068 done
2069
2070 fi
2071 fi
2072 CC=$ac_cv_prog_CC
2073 if test -n "$CC"; then
2074   echo "$as_me:$LINENO: result: $CC" >&5
2075 echo "${ECHO_T}$CC" >&6
2076 else
2077   echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2079 fi
2080
2081     test -n "$CC" && break
2082   done
2083 fi
2084 if test -z "$CC"; then
2085   ac_ct_CC=$CC
2086   for ac_prog in cl
2087 do
2088   # Extract the first word of "$ac_prog", so it can be a program name with args.
2089 set dummy $ac_prog; ac_word=$2
2090 echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093   echo $ECHO_N "(cached) $ECHO_C" >&6
2094 else
2095   if test -n "$ac_ct_CC"; then
2096   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097 else
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2100 do
2101   IFS=$as_save_IFS
2102   test -z "$as_dir" && as_dir=.
2103   for ac_exec_ext in '' $ac_executable_extensions; do
2104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105     ac_cv_prog_ac_ct_CC="$ac_prog"
2106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107     break 2
2108   fi
2109 done
2110 done
2111
2112 fi
2113 fi
2114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2115 if test -n "$ac_ct_CC"; then
2116   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117 echo "${ECHO_T}$ac_ct_CC" >&6
2118 else
2119   echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2121 fi
2122
2123   test -n "$ac_ct_CC" && break
2124 done
2125
2126   CC=$ac_ct_CC
2127 fi
2128
2129 fi
2130
2131
2132 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: no acceptable C compiler found in \$PATH
2135 See \`config.log' for more details." >&2;}
2136    { (exit 1); exit 1; }; }
2137
2138 # Provide some information about the compiler.
2139 echo "$as_me:$LINENO:" \
2140      "checking for C compiler version" >&5
2141 ac_compiler=`set X $ac_compile; echo $2`
2142 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2143   (eval $ac_compiler --version </dev/null >&5) 2>&5
2144   ac_status=$?
2145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146   (exit $ac_status); }
2147 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2148   (eval $ac_compiler -v </dev/null >&5) 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); }
2152 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2153   (eval $ac_compiler -V </dev/null >&5) 2>&5
2154   ac_status=$?
2155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156   (exit $ac_status); }
2157
2158 cat >conftest.$ac_ext <<_ACEOF
2159 #line $LINENO "configure"
2160 /* confdefs.h.  */
2161 _ACEOF
2162 cat confdefs.h >>conftest.$ac_ext
2163 cat >>conftest.$ac_ext <<_ACEOF
2164 /* end confdefs.h.  */
2165
2166 int
2167 main ()
2168 {
2169
2170   ;
2171   return 0;
2172 }
2173 _ACEOF
2174 ac_clean_files_save=$ac_clean_files
2175 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2176 # Try to create an executable without -o first, disregard a.out.
2177 # It will help us diagnose broken compilers, and finding out an intuition
2178 # of exeext.
2179 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2180 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2181 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2182 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2183   (eval $ac_link_default) 2>&5
2184   ac_status=$?
2185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186   (exit $ac_status); }; then
2187   # Find the output, starting from the most likely.  This scheme is
2188 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2189 # resort.
2190
2191 # Be careful to initialize this variable, since it used to be cached.
2192 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2193 ac_cv_exeext=
2194 # b.out is created by i960 compilers.
2195 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2196 do
2197   test -f "$ac_file" || continue
2198   case $ac_file in
2199     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2200         ;;
2201     conftest.$ac_ext )
2202         # This is the source file.
2203         ;;
2204     [ab].out )
2205         # We found the default executable, but exeext='' is most
2206         # certainly right.
2207         break;;
2208     *.* )
2209         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2210         # FIXME: I believe we export ac_cv_exeext for Libtool,
2211         # but it would be cool to find out if it's true.  Does anybody
2212         # maintain Libtool? --akim.
2213         export ac_cv_exeext
2214         break;;
2215     * )
2216         break;;
2217   esac
2218 done
2219 else
2220   echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2222
2223 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: C compiler cannot create executables
2226 See \`config.log' for more details." >&2;}
2227    { (exit 77); exit 77; }; }
2228 fi
2229
2230 ac_exeext=$ac_cv_exeext
2231 echo "$as_me:$LINENO: result: $ac_file" >&5
2232 echo "${ECHO_T}$ac_file" >&6
2233
2234 # Check the compiler produces executables we can run.  If not, either
2235 # the compiler is broken, or we cross compile.
2236 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2237 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2238 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2239 # If not cross compiling, check that we can run a simple program.
2240 if test "$cross_compiling" != yes; then
2241   if { ac_try='./$ac_file'
2242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243   (eval $ac_try) 2>&5
2244   ac_status=$?
2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246   (exit $ac_status); }; }; then
2247     cross_compiling=no
2248   else
2249     if test "$cross_compiling" = maybe; then
2250         cross_compiling=yes
2251     else
2252         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2253 If you meant to cross compile, use \`--host'.
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: cannot run C compiled programs.
2256 If you meant to cross compile, use \`--host'.
2257 See \`config.log' for more details." >&2;}
2258    { (exit 1); exit 1; }; }
2259     fi
2260   fi
2261 fi
2262 echo "$as_me:$LINENO: result: yes" >&5
2263 echo "${ECHO_T}yes" >&6
2264
2265 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2266 ac_clean_files=$ac_clean_files_save
2267 # Check the compiler produces executables we can run.  If not, either
2268 # the compiler is broken, or we cross compile.
2269 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2270 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2271 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2272 echo "${ECHO_T}$cross_compiling" >&6
2273
2274 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2275 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2277   (eval $ac_link) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; then
2281   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2282 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2283 # work properly (i.e., refer to `conftest.exe'), while it won't with
2284 # `rm'.
2285 for ac_file in conftest.exe conftest conftest.*; do
2286   test -f "$ac_file" || continue
2287   case $ac_file in
2288     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2289     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2290           export ac_cv_exeext
2291           break;;
2292     * ) break;;
2293   esac
2294 done
2295 else
2296   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2297 See \`config.log' for more details." >&5
2298 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2299 See \`config.log' for more details." >&2;}
2300    { (exit 1); exit 1; }; }
2301 fi
2302
2303 rm -f conftest$ac_cv_exeext
2304 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2305 echo "${ECHO_T}$ac_cv_exeext" >&6
2306
2307 rm -f conftest.$ac_ext
2308 EXEEXT=$ac_cv_exeext
2309 ac_exeext=$EXEEXT
2310 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2311 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2312 if test "${ac_cv_objext+set}" = set; then
2313   echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315   cat >conftest.$ac_ext <<_ACEOF
2316 #line $LINENO "configure"
2317 /* confdefs.h.  */
2318 _ACEOF
2319 cat confdefs.h >>conftest.$ac_ext
2320 cat >>conftest.$ac_ext <<_ACEOF
2321 /* end confdefs.h.  */
2322
2323 int
2324 main ()
2325 {
2326
2327   ;
2328   return 0;
2329 }
2330 _ACEOF
2331 rm -f conftest.o conftest.obj
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333   (eval $ac_compile) 2>&5
2334   ac_status=$?
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); }; then
2337   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2338   case $ac_file in
2339     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2340     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2341        break;;
2342   esac
2343 done
2344 else
2345   echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2347
2348 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&2;}
2352    { (exit 1); exit 1; }; }
2353 fi
2354
2355 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2356 fi
2357 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2358 echo "${ECHO_T}$ac_cv_objext" >&6
2359 OBJEXT=$ac_cv_objext
2360 ac_objext=$OBJEXT
2361 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2362 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2363 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2364   echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366   cat >conftest.$ac_ext <<_ACEOF
2367 #line $LINENO "configure"
2368 /* confdefs.h.  */
2369 _ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h.  */
2373
2374 int
2375 main ()
2376 {
2377 #ifndef __GNUC__
2378        choke me
2379 #endif
2380
2381   ;
2382   return 0;
2383 }
2384 _ACEOF
2385 rm -f conftest.$ac_objext
2386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387   (eval $ac_compile) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); } &&
2391          { ac_try='test -s conftest.$ac_objext'
2392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393   (eval $ac_try) 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); }; }; then
2397   ac_compiler_gnu=yes
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 ac_compiler_gnu=no
2403 fi
2404 rm -f conftest.$ac_objext conftest.$ac_ext
2405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2406
2407 fi
2408 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2410 GCC=`test $ac_compiler_gnu = yes && echo yes`
2411 ac_test_CFLAGS=${CFLAGS+set}
2412 ac_save_CFLAGS=$CFLAGS
2413 CFLAGS="-g"
2414 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417   echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419   cat >conftest.$ac_ext <<_ACEOF
2420 #line $LINENO "configure"
2421 /* confdefs.h.  */
2422 _ACEOF
2423 cat confdefs.h >>conftest.$ac_ext
2424 cat >>conftest.$ac_ext <<_ACEOF
2425 /* end confdefs.h.  */
2426
2427 int
2428 main ()
2429 {
2430
2431   ;
2432   return 0;
2433 }
2434 _ACEOF
2435 rm -f conftest.$ac_objext
2436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2437   (eval $ac_compile) 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); } &&
2441          { ac_try='test -s conftest.$ac_objext'
2442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443   (eval $ac_try) 2>&5
2444   ac_status=$?
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); }; }; then
2447   ac_cv_prog_cc_g=yes
2448 else
2449   echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2451
2452 ac_cv_prog_cc_g=no
2453 fi
2454 rm -f conftest.$ac_objext conftest.$ac_ext
2455 fi
2456 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2457 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2458 if test "$ac_test_CFLAGS" = set; then
2459   CFLAGS=$ac_save_CFLAGS
2460 elif test $ac_cv_prog_cc_g = yes; then
2461   if test "$GCC" = yes; then
2462     CFLAGS="-g -O2"
2463   else
2464     CFLAGS="-g"
2465   fi
2466 else
2467   if test "$GCC" = yes; then
2468     CFLAGS="-O2"
2469   else
2470     CFLAGS=
2471   fi
2472 fi
2473 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2474 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2475 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2476   echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478   ac_cv_prog_cc_stdc=no
2479 ac_save_CC=$CC
2480 cat >conftest.$ac_ext <<_ACEOF
2481 #line $LINENO "configure"
2482 /* confdefs.h.  */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h.  */
2487 #include <stdarg.h>
2488 #include <stdio.h>
2489 #include <sys/types.h>
2490 #include <sys/stat.h>
2491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2492 struct buf { int x; };
2493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2494 static char *e (p, i)
2495      char **p;
2496      int i;
2497 {
2498   return p[i];
2499 }
2500 static char *f (char * (*g) (char **, int), char **p, ...)
2501 {
2502   char *s;
2503   va_list v;
2504   va_start (v,p);
2505   s = g (p, va_arg (v,int));
2506   va_end (v);
2507   return s;
2508 }
2509 int test (int i, double x);
2510 struct s1 {int (*f) (int a);};
2511 struct s2 {int (*f) (double a);};
2512 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2513 int argc;
2514 char **argv;
2515 int
2516 main ()
2517 {
2518 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 # Don't try gcc -ansi; that turns off useful extensions and
2524 # breaks some systems' header files.
2525 # AIX                   -qlanglvl=ansi
2526 # Ultrix and OSF/1      -std1
2527 # HP-UX 10.20 and later -Ae
2528 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2529 # SVR4                  -Xc -D__EXTENSIONS__
2530 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2531 do
2532   CC="$ac_save_CC $ac_arg"
2533   rm -f conftest.$ac_objext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535   (eval $ac_compile) 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); } &&
2539          { ac_try='test -s conftest.$ac_objext'
2540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541   (eval $ac_try) 2>&5
2542   ac_status=$?
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); }; }; then
2545   ac_cv_prog_cc_stdc=$ac_arg
2546 break
2547 else
2548   echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 fi
2552 rm -f conftest.$ac_objext
2553 done
2554 rm -f conftest.$ac_ext conftest.$ac_objext
2555 CC=$ac_save_CC
2556
2557 fi
2558
2559 case "x$ac_cv_prog_cc_stdc" in
2560   x|xno)
2561     echo "$as_me:$LINENO: result: none needed" >&5
2562 echo "${ECHO_T}none needed" >&6 ;;
2563   *)
2564     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2565 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2566     CC="$CC $ac_cv_prog_cc_stdc" ;;
2567 esac
2568
2569 # Some people use a C++ compiler to compile C.  Since we use `exit',
2570 # in C++ we need to declare it.  In case someone uses the same compiler
2571 # for both compiling C and C++ we need to have the C++ compiler decide
2572 # the declaration of exit, since it's the most demanding environment.
2573 cat >conftest.$ac_ext <<_ACEOF
2574 #ifndef __cplusplus
2575   choke me
2576 #endif
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580   (eval $ac_compile) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); } &&
2584          { ac_try='test -s conftest.$ac_objext'
2585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586   (eval $ac_try) 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; }; then
2590   for ac_declaration in \
2591    ''\
2592    '#include <stdlib.h>' \
2593    'extern "C" void std::exit (int) throw (); using std::exit;' \
2594    'extern "C" void std::exit (int); using std::exit;' \
2595    'extern "C" void exit (int) throw ();' \
2596    'extern "C" void exit (int);' \
2597    'void exit (int);'
2598 do
2599   cat >conftest.$ac_ext <<_ACEOF
2600 #line $LINENO "configure"
2601 /* confdefs.h.  */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h.  */
2606 #include <stdlib.h>
2607 $ac_declaration
2608 int
2609 main ()
2610 {
2611 exit (42);
2612   ;
2613   return 0;
2614 }
2615 _ACEOF
2616 rm -f conftest.$ac_objext
2617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618   (eval $ac_compile) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); } &&
2622          { ac_try='test -s conftest.$ac_objext'
2623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624   (eval $ac_try) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }; }; then
2628   :
2629 else
2630   echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2632
2633 continue
2634 fi
2635 rm -f conftest.$ac_objext conftest.$ac_ext
2636   cat >conftest.$ac_ext <<_ACEOF
2637 #line $LINENO "configure"
2638 /* confdefs.h.  */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h.  */
2643 $ac_declaration
2644 int
2645 main ()
2646 {
2647 exit (42);
2648   ;
2649   return 0;
2650 }
2651 _ACEOF
2652 rm -f conftest.$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654   (eval $ac_compile) 2>&5
2655   ac_status=$?
2656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657   (exit $ac_status); } &&
2658          { ac_try='test -s conftest.$ac_objext'
2659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660   (eval $ac_try) 2>&5
2661   ac_status=$?
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); }; }; then
2664   break
2665 else
2666   echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2668
2669 fi
2670 rm -f conftest.$ac_objext conftest.$ac_ext
2671 done
2672 rm -f conftest*
2673 if test -n "$ac_declaration"; then
2674   echo '#ifdef __cplusplus' >>confdefs.h
2675   echo $ac_declaration      >>confdefs.h
2676   echo '#endif'             >>confdefs.h
2677 fi
2678
2679 else
2680   echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 fi
2684 rm -f conftest.$ac_objext conftest.$ac_ext
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690
2691 ac_ext=cc
2692 ac_cpp='$CXXCPP $CPPFLAGS'
2693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2696 if test -n "$ac_tool_prefix"; then
2697   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2698   do
2699     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2701 echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2703 if test "${ac_cv_prog_CXX+set}" = set; then
2704   echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706   if test -n "$CXX"; then
2707   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712   IFS=$as_save_IFS
2713   test -z "$as_dir" && as_dir=.
2714   for ac_exec_ext in '' $ac_executable_extensions; do
2715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718     break 2
2719   fi
2720 done
2721 done
2722
2723 fi
2724 fi
2725 CXX=$ac_cv_prog_CXX
2726 if test -n "$CXX"; then
2727   echo "$as_me:$LINENO: result: $CXX" >&5
2728 echo "${ECHO_T}$CXX" >&6
2729 else
2730   echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6
2732 fi
2733
2734     test -n "$CXX" && break
2735   done
2736 fi
2737 if test -z "$CXX"; then
2738   ac_ct_CXX=$CXX
2739   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2740 do
2741   # Extract the first word of "$ac_prog", so it can be a program name with args.
2742 set dummy $ac_prog; ac_word=$2
2743 echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2745 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2746   echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748   if test -n "$ac_ct_CXX"; then
2749   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754   IFS=$as_save_IFS
2755   test -z "$as_dir" && as_dir=.
2756   for ac_exec_ext in '' $ac_executable_extensions; do
2757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2758     ac_cv_prog_ac_ct_CXX="$ac_prog"
2759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760     break 2
2761   fi
2762 done
2763 done
2764
2765 fi
2766 fi
2767 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2768 if test -n "$ac_ct_CXX"; then
2769   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2770 echo "${ECHO_T}$ac_ct_CXX" >&6
2771 else
2772   echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6
2774 fi
2775
2776   test -n "$ac_ct_CXX" && break
2777 done
2778 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2779
2780   CXX=$ac_ct_CXX
2781 fi
2782
2783
2784 # Provide some information about the compiler.
2785 echo "$as_me:$LINENO:" \
2786      "checking for C++ compiler version" >&5
2787 ac_compiler=`set X $ac_compile; echo $2`
2788 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2789   (eval $ac_compiler --version </dev/null >&5) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }
2793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2794   (eval $ac_compiler -v </dev/null >&5) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }
2798 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2799   (eval $ac_compiler -V </dev/null >&5) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }
2803
2804 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2805 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2806 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2807   echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809   cat >conftest.$ac_ext <<_ACEOF
2810 #line $LINENO "configure"
2811 /* confdefs.h.  */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h.  */
2816
2817 int
2818 main ()
2819 {
2820 #ifndef __GNUC__
2821        choke me
2822 #endif
2823
2824   ;
2825   return 0;
2826 }
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830   (eval $ac_compile) 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); } &&
2834          { ac_try='test -s conftest.$ac_objext'
2835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836   (eval $ac_try) 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }; }; then
2840   ac_compiler_gnu=yes
2841 else
2842   echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 ac_compiler_gnu=no
2846 fi
2847 rm -f conftest.$ac_objext conftest.$ac_ext
2848 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2849
2850 fi
2851 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2852 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2853 GXX=`test $ac_compiler_gnu = yes && echo yes`
2854 ac_test_CXXFLAGS=${CXXFLAGS+set}
2855 ac_save_CXXFLAGS=$CXXFLAGS
2856 CXXFLAGS="-g"
2857 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2858 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2859 if test "${ac_cv_prog_cxx_g+set}" = set; then
2860   echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862   cat >conftest.$ac_ext <<_ACEOF
2863 #line $LINENO "configure"
2864 /* confdefs.h.  */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h.  */
2869
2870 int
2871 main ()
2872 {
2873
2874   ;
2875   return 0;
2876 }
2877 _ACEOF
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880   (eval $ac_compile) 2>&5
2881   ac_status=$?
2882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883   (exit $ac_status); } &&
2884          { ac_try='test -s conftest.$ac_objext'
2885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886   (eval $ac_try) 2>&5
2887   ac_status=$?
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); }; }; then
2890   ac_cv_prog_cxx_g=yes
2891 else
2892   echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2894
2895 ac_cv_prog_cxx_g=no
2896 fi
2897 rm -f conftest.$ac_objext conftest.$ac_ext
2898 fi
2899 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2900 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2901 if test "$ac_test_CXXFLAGS" = set; then
2902   CXXFLAGS=$ac_save_CXXFLAGS
2903 elif test $ac_cv_prog_cxx_g = yes; then
2904   if test "$GXX" = yes; then
2905     CXXFLAGS="-g -O2"
2906   else
2907     CXXFLAGS="-g"
2908   fi
2909 else
2910   if test "$GXX" = yes; then
2911     CXXFLAGS="-O2"
2912   else
2913     CXXFLAGS=
2914   fi
2915 fi
2916 for ac_declaration in \
2917    ''\
2918    '#include <stdlib.h>' \
2919    'extern "C" void std::exit (int) throw (); using std::exit;' \
2920    'extern "C" void std::exit (int); using std::exit;' \
2921    'extern "C" void exit (int) throw ();' \
2922    'extern "C" void exit (int);' \
2923    'void exit (int);'
2924 do
2925   cat >conftest.$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932 #include <stdlib.h>
2933 $ac_declaration
2934 int
2935 main ()
2936 {
2937 exit (42);
2938   ;
2939   return 0;
2940 }
2941 _ACEOF
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944   (eval $ac_compile) 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); } &&
2948          { ac_try='test -s conftest.$ac_objext'
2949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950   (eval $ac_try) 2>&5
2951   ac_status=$?
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); }; }; then
2954   :
2955 else
2956   echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959 continue
2960 fi
2961 rm -f conftest.$ac_objext conftest.$ac_ext
2962   cat >conftest.$ac_ext <<_ACEOF
2963 #line $LINENO "configure"
2964 /* confdefs.h.  */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h.  */
2969 $ac_declaration
2970 int
2971 main ()
2972 {
2973 exit (42);
2974   ;
2975   return 0;
2976 }
2977 _ACEOF
2978 rm -f conftest.$ac_objext
2979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980   (eval $ac_compile) 2>&5
2981   ac_status=$?
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); } &&
2984          { ac_try='test -s conftest.$ac_objext'
2985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986   (eval $ac_try) 2>&5
2987   ac_status=$?
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); }; }; then
2990   break
2991 else
2992   echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995 fi
2996 rm -f conftest.$ac_objext conftest.$ac_ext
2997 done
2998 rm -f conftest*
2999 if test -n "$ac_declaration"; then
3000   echo '#ifdef __cplusplus' >>confdefs.h
3001   echo $ac_declaration      >>confdefs.h
3002   echo '#endif'             >>confdefs.h
3003 fi
3004
3005 ac_ext=c
3006 ac_cpp='$CPP $CPPFLAGS'
3007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010
3011
3012 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3013 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3014 if test "${ac_cv_c_bigendian+set}" = set; then
3015   echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017   # See if sys/param.h defines the BYTE_ORDER macro.
3018 cat >conftest.$ac_ext <<_ACEOF
3019 #line $LINENO "configure"
3020 /* confdefs.h.  */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h.  */
3025 #include <sys/types.h>
3026 #include <sys/param.h>
3027
3028 int
3029 main ()
3030 {
3031 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3032  bogus endian macros
3033 #endif
3034
3035   ;
3036   return 0;
3037 }
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041   (eval $ac_compile) 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); } &&
3045          { ac_try='test -s conftest.$ac_objext'
3046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047   (eval $ac_try) 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); }; }; then
3051   # It does; now see whether it defined to BIG_ENDIAN or not.
3052 cat >conftest.$ac_ext <<_ACEOF
3053 #line $LINENO "configure"
3054 /* confdefs.h.  */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h.  */
3059 #include <sys/types.h>
3060 #include <sys/param.h>
3061
3062 int
3063 main ()
3064 {
3065 #if BYTE_ORDER != BIG_ENDIAN
3066  not big endian
3067 #endif
3068
3069   ;
3070   return 0;
3071 }
3072 _ACEOF
3073 rm -f conftest.$ac_objext
3074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075   (eval $ac_compile) 2>&5
3076   ac_status=$?
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); } &&
3079          { ac_try='test -s conftest.$ac_objext'
3080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081   (eval $ac_try) 2>&5
3082   ac_status=$?
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); }; }; then
3085   ac_cv_c_bigendian=yes
3086 else
3087   echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3089
3090 ac_cv_c_bigendian=no
3091 fi
3092 rm -f conftest.$ac_objext conftest.$ac_ext
3093 else
3094   echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3096
3097 # It does not; compile a test program.
3098 if test "$cross_compiling" = yes; then
3099   # try to guess the endianness by grepping values into an object file
3100   ac_cv_c_bigendian=unknown
3101   cat >conftest.$ac_ext <<_ACEOF
3102 #line $LINENO "configure"
3103 /* confdefs.h.  */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h.  */
3108 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3109 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3110 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3111 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3112 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3113 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3114 int
3115 main ()
3116 {
3117  _ascii (); _ebcdic ();
3118   ;
3119   return 0;
3120 }
3121 _ACEOF
3122 rm -f conftest.$ac_objext
3123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3124   (eval $ac_compile) 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); } &&
3128          { ac_try='test -s conftest.$ac_objext'
3129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130   (eval $ac_try) 2>&5
3131   ac_status=$?
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); }; }; then
3134   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3135   ac_cv_c_bigendian=yes
3136 fi
3137 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3138   if test "$ac_cv_c_bigendian" = unknown; then
3139     ac_cv_c_bigendian=no
3140   else
3141     # finding both strings is unlikely to happen, but who knows?
3142     ac_cv_c_bigendian=unknown
3143   fi
3144 fi
3145 else
3146   echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149 fi
3150 rm -f conftest.$ac_objext conftest.$ac_ext
3151 else
3152   cat >conftest.$ac_ext <<_ACEOF
3153 #line $LINENO "configure"
3154 /* confdefs.h.  */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h.  */
3159 int
3160 main ()
3161 {
3162   /* Are we little or big endian?  From Harbison&Steele.  */
3163   union
3164   {
3165     long l;
3166     char c[sizeof (long)];
3167   } u;
3168   u.l = 1;
3169   exit (u.c[sizeof (long) - 1] == 1);
3170 }
3171 _ACEOF
3172 rm -f conftest$ac_exeext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3174   (eval $ac_link) 2>&5
3175   ac_status=$?
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179   (eval $ac_try) 2>&5
3180   ac_status=$?
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); }; }; then
3183   ac_cv_c_bigendian=no
3184 else
3185   echo "$as_me: program exited with status $ac_status" >&5
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 ( exit $ac_status )
3190 ac_cv_c_bigendian=yes
3191 fi
3192 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3193 fi
3194 fi
3195 rm -f conftest.$ac_objext conftest.$ac_ext
3196 fi
3197 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3198 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3199 case $ac_cv_c_bigendian in
3200   yes)
3201
3202 cat >>confdefs.h <<\_ACEOF
3203 #define WORDS_BIGENDIAN 1
3204 _ACEOF
3205  ;;
3206   no)
3207      ;;
3208   *)
3209     { { echo "$as_me:$LINENO: error: unknown endianness
3210 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3211 echo "$as_me: error: unknown endianness
3212 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3213    { (exit 1); exit 1; }; } ;;
3214 esac
3215
3216
3217 # Extract the first word of "wx-config", so it can be a program name with args.
3218 set dummy wx-config; ac_word=$2
3219 echo "$as_me:$LINENO: checking for $ac_word" >&5
3220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3221 if test "${ac_cv_path_wxconfig+set}" = set; then
3222   echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224   case $wxconfig in
3225   [\\/]* | ?:[\\/]*)
3226   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3227   ;;
3228   *)
3229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3231 do
3232   IFS=$as_save_IFS
3233   test -z "$as_dir" && as_dir=.
3234   for ac_exec_ext in '' $ac_executable_extensions; do
3235   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3238     break 2
3239   fi
3240 done
3241 done
3242
3243   ;;
3244 esac
3245 fi
3246 wxconfig=$ac_cv_path_wxconfig
3247
3248 if test -n "$wxconfig"; then
3249   echo "$as_me:$LINENO: result: $wxconfig" >&5
3250 echo "${ECHO_T}$wxconfig" >&6
3251 else
3252   echo "$as_me:$LINENO: result: no" >&5
3253 echo "${ECHO_T}no" >&6
3254 fi
3255
3256
3257 # Make sure we can run config.sub.
3258 $ac_config_sub sun4 >/dev/null 2>&1 ||
3259   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3260 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3261    { (exit 1); exit 1; }; }
3262
3263 echo "$as_me:$LINENO: checking build system type" >&5
3264 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3265 if test "${ac_cv_build+set}" = set; then
3266   echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268   ac_cv_build_alias=$build_alias
3269 test -z "$ac_cv_build_alias" &&
3270   ac_cv_build_alias=`$ac_config_guess`
3271 test -z "$ac_cv_build_alias" &&
3272   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3273 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3274    { (exit 1); exit 1; }; }
3275 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3276   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3277 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3278    { (exit 1); exit 1; }; }
3279
3280 fi
3281 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3282 echo "${ECHO_T}$ac_cv_build" >&6
3283 build=$ac_cv_build
3284 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3285 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3286 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3287
3288
3289 echo "$as_me:$LINENO: checking host system type" >&5
3290 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3291 if test "${ac_cv_host+set}" = set; then
3292   echo $ECHO_N "(cached) $ECHO_C" >&6
3293 else
3294   ac_cv_host_alias=$host_alias
3295 test -z "$ac_cv_host_alias" &&
3296   ac_cv_host_alias=$ac_cv_build_alias
3297 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3298   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3299 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3300    { (exit 1); exit 1; }; }
3301
3302 fi
3303 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3304 echo "${ECHO_T}$ac_cv_host" >&6
3305 host=$ac_cv_host
3306 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3307 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3308 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3309
3310
3311 echo "$as_me:$LINENO: checking for inline" >&5
3312 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3313 if test "${ac_cv_c_inline+set}" = set; then
3314   echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316   ac_cv_c_inline=no
3317 for ac_kw in inline __inline__ __inline; do
3318   cat >conftest.$ac_ext <<_ACEOF
3319 #line $LINENO "configure"
3320 /* confdefs.h.  */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h.  */
3325 #ifndef __cplusplus
3326 typedef int foo_t;
3327 static $ac_kw foo_t static_foo () {return 0; }
3328 $ac_kw foo_t foo () {return 0; }
3329 #endif
3330
3331 _ACEOF
3332 rm -f conftest.$ac_objext
3333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334   (eval $ac_compile) 2>&5
3335   ac_status=$?
3336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337   (exit $ac_status); } &&
3338          { ac_try='test -s conftest.$ac_objext'
3339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340   (eval $ac_try) 2>&5
3341   ac_status=$?
3342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343   (exit $ac_status); }; }; then
3344   ac_cv_c_inline=$ac_kw; break
3345 else
3346   echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3348
3349 fi
3350 rm -f conftest.$ac_objext conftest.$ac_ext
3351 done
3352
3353 fi
3354 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3355 echo "${ECHO_T}$ac_cv_c_inline" >&6
3356 case $ac_cv_c_inline in
3357   inline | yes) ;;
3358   no)
3359 cat >>confdefs.h <<\_ACEOF
3360 #define inline
3361 _ACEOF
3362  ;;
3363   *)  cat >>confdefs.h <<_ACEOF
3364 #define inline $ac_cv_c_inline
3365 _ACEOF
3366  ;;
3367 esac
3368
3369 ac_ext=c
3370 ac_cpp='$CPP $CPPFLAGS'
3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3375 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3376 # On Suns, sometimes $CPP names a directory.
3377 if test -n "$CPP" && test -d "$CPP"; then
3378   CPP=
3379 fi
3380 if test -z "$CPP"; then
3381   if test "${ac_cv_prog_CPP+set}" = set; then
3382   echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384       # Double quotes because CPP needs to be expanded
3385     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3386     do
3387       ac_preproc_ok=false
3388 for ac_c_preproc_warn_flag in '' yes
3389 do
3390   # Use a header file that comes with gcc, so configuring glibc
3391   # with a fresh cross-compiler works.
3392   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3393   # <limits.h> exists even on freestanding compilers.
3394   # On the NeXT, cc -E runs the code through the compiler's parser,
3395   # not just through cpp. "Syntax error" is here to catch this case.
3396   cat >conftest.$ac_ext <<_ACEOF
3397 #line $LINENO "configure"
3398 /* confdefs.h.  */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h.  */
3403 #ifdef __STDC__
3404 # include <limits.h>
3405 #else
3406 # include <assert.h>
3407 #endif
3408                      Syntax error
3409 _ACEOF
3410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3412   ac_status=$?
3413   grep -v '^ *+' conftest.er1 >conftest.err
3414   rm -f conftest.er1
3415   cat conftest.err >&5
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); } >/dev/null; then
3418   if test -s conftest.err; then
3419     ac_cpp_err=$ac_c_preproc_warn_flag
3420   else
3421     ac_cpp_err=
3422   fi
3423 else
3424   ac_cpp_err=yes
3425 fi
3426 if test -z "$ac_cpp_err"; then
3427   :
3428 else
3429   echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3431
3432   # Broken: fails on valid input.
3433 continue
3434 fi
3435 rm -f conftest.err conftest.$ac_ext
3436
3437   # OK, works on sane cases.  Now check whether non-existent headers
3438   # can be detected and how.
3439   cat >conftest.$ac_ext <<_ACEOF
3440 #line $LINENO "configure"
3441 /* confdefs.h.  */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h.  */
3446 #include <ac_nonexistent.h>
3447 _ACEOF
3448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3450   ac_status=$?
3451   grep -v '^ *+' conftest.er1 >conftest.err
3452   rm -f conftest.er1
3453   cat conftest.err >&5
3454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455   (exit $ac_status); } >/dev/null; then
3456   if test -s conftest.err; then
3457     ac_cpp_err=$ac_c_preproc_warn_flag
3458   else
3459     ac_cpp_err=
3460   fi
3461 else
3462   ac_cpp_err=yes
3463 fi
3464 if test -z "$ac_cpp_err"; then
3465   # Broken: success on invalid input.
3466 continue
3467 else
3468   echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471   # Passes both tests.
3472 ac_preproc_ok=:
3473 break
3474 fi
3475 rm -f conftest.err conftest.$ac_ext
3476
3477 done
3478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3479 rm -f conftest.err conftest.$ac_ext
3480 if $ac_preproc_ok; then
3481   break
3482 fi
3483
3484     done
3485     ac_cv_prog_CPP=$CPP
3486
3487 fi
3488   CPP=$ac_cv_prog_CPP
3489 else
3490   ac_cv_prog_CPP=$CPP
3491 fi
3492 echo "$as_me:$LINENO: result: $CPP" >&5
3493 echo "${ECHO_T}$CPP" >&6
3494 ac_preproc_ok=false
3495 for ac_c_preproc_warn_flag in '' yes
3496 do
3497   # Use a header file that comes with gcc, so configuring glibc
3498   # with a fresh cross-compiler works.
3499   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3500   # <limits.h> exists even on freestanding compilers.
3501   # On the NeXT, cc -E runs the code through the compiler's parser,
3502   # not just through cpp. "Syntax error" is here to catch this case.
3503   cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3505 /* confdefs.h.  */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h.  */
3510 #ifdef __STDC__
3511 # include <limits.h>
3512 #else
3513 # include <assert.h>
3514 #endif
3515                      Syntax error
3516 _ACEOF
3517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3518   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3519   ac_status=$?
3520   grep -v '^ *+' conftest.er1 >conftest.err
3521   rm -f conftest.er1
3522   cat conftest.err >&5
3523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524   (exit $ac_status); } >/dev/null; then
3525   if test -s conftest.err; then
3526     ac_cpp_err=$ac_c_preproc_warn_flag
3527   else
3528     ac_cpp_err=
3529   fi
3530 else
3531   ac_cpp_err=yes
3532 fi
3533 if test -z "$ac_cpp_err"; then
3534   :
3535 else
3536   echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3538
3539   # Broken: fails on valid input.
3540 continue
3541 fi
3542 rm -f conftest.err conftest.$ac_ext
3543
3544   # OK, works on sane cases.  Now check whether non-existent headers
3545   # can be detected and how.
3546   cat >conftest.$ac_ext <<_ACEOF
3547 #line $LINENO "configure"
3548 /* confdefs.h.  */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h.  */
3553 #include <ac_nonexistent.h>
3554 _ACEOF
3555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3556   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3557   ac_status=$?
3558   grep -v '^ *+' conftest.er1 >conftest.err
3559   rm -f conftest.er1
3560   cat conftest.err >&5
3561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562   (exit $ac_status); } >/dev/null; then
3563   if test -s conftest.err; then
3564     ac_cpp_err=$ac_c_preproc_warn_flag
3565   else
3566     ac_cpp_err=
3567   fi
3568 else
3569   ac_cpp_err=yes
3570 fi
3571 if test -z "$ac_cpp_err"; then
3572   # Broken: success on invalid input.
3573 continue
3574 else
3575   echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578   # Passes both tests.
3579 ac_preproc_ok=:
3580 break
3581 fi
3582 rm -f conftest.err conftest.$ac_ext
3583
3584 done
3585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3586 rm -f conftest.err conftest.$ac_ext
3587 if $ac_preproc_ok; then
3588   :
3589 else
3590   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3591 See \`config.log' for more details." >&5
3592 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3593 See \`config.log' for more details." >&2;}
3594    { (exit 1); exit 1; }; }
3595 fi
3596
3597 ac_ext=c
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602
3603
3604 echo "$as_me:$LINENO: checking for egrep" >&5
3605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3606 if test "${ac_cv_prog_egrep+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3610     then ac_cv_prog_egrep='grep -E'
3611     else ac_cv_prog_egrep='egrep'
3612     fi
3613 fi
3614 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3615 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3616  EGREP=$ac_cv_prog_egrep
3617
3618
3619 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3620 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3621 if test "${ac_cv_header_stdc+set}" = set; then
3622   echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624   cat >conftest.$ac_ext <<_ACEOF
3625 #line $LINENO "configure"
3626 /* confdefs.h.  */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h.  */
3631 #include <stdlib.h>
3632 #include <stdarg.h>
3633 #include <string.h>
3634 #include <float.h>
3635
3636 int
3637 main ()
3638 {
3639
3640   ;
3641   return 0;
3642 }
3643 _ACEOF
3644 rm -f conftest.$ac_objext
3645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3646   (eval $ac_compile) 2>&5
3647   ac_status=$?
3648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); } &&
3650          { ac_try='test -s conftest.$ac_objext'
3651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652   (eval $ac_try) 2>&5
3653   ac_status=$?
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); }; }; then
3656   ac_cv_header_stdc=yes
3657 else
3658   echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 ac_cv_header_stdc=no
3662 fi
3663 rm -f conftest.$ac_objext conftest.$ac_ext
3664
3665 if test $ac_cv_header_stdc = yes; then
3666   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3667   cat >conftest.$ac_ext <<_ACEOF
3668 #line $LINENO "configure"
3669 /* confdefs.h.  */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h.  */
3674 #include <string.h>
3675
3676 _ACEOF
3677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3678   $EGREP "memchr" >/dev/null 2>&1; then
3679   :
3680 else
3681   ac_cv_header_stdc=no
3682 fi
3683 rm -f conftest*
3684
3685 fi
3686
3687 if test $ac_cv_header_stdc = yes; then
3688   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3689   cat >conftest.$ac_ext <<_ACEOF
3690 #line $LINENO "configure"
3691 /* confdefs.h.  */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h.  */
3696 #include <stdlib.h>
3697
3698 _ACEOF
3699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3700   $EGREP "free" >/dev/null 2>&1; then
3701   :
3702 else
3703   ac_cv_header_stdc=no
3704 fi
3705 rm -f conftest*
3706
3707 fi
3708
3709 if test $ac_cv_header_stdc = yes; then
3710   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3711   if test "$cross_compiling" = yes; then
3712   :
3713 else
3714   cat >conftest.$ac_ext <<_ACEOF
3715 #line $LINENO "configure"
3716 /* confdefs.h.  */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h.  */
3721 #include <ctype.h>
3722 #if ((' ' & 0x0FF) == 0x020)
3723 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3724 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3725 #else
3726 # define ISLOWER(c) \
3727                    (('a' <= (c) && (c) <= 'i') \
3728                      || ('j' <= (c) && (c) <= 'r') \
3729                      || ('s' <= (c) && (c) <= 'z'))
3730 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3731 #endif
3732
3733 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3734 int
3735 main ()
3736 {
3737   int i;
3738   for (i = 0; i < 256; i++)
3739     if (XOR (islower (i), ISLOWER (i))
3740         || toupper (i) != TOUPPER (i))
3741       exit(2);
3742   exit (0);
3743 }
3744 _ACEOF
3745 rm -f conftest$ac_exeext
3746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3747   (eval $ac_link) 2>&5
3748   ac_status=$?
3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752   (eval $ac_try) 2>&5
3753   ac_status=$?
3754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755   (exit $ac_status); }; }; then
3756   :
3757 else
3758   echo "$as_me: program exited with status $ac_status" >&5
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3761
3762 ( exit $ac_status )
3763 ac_cv_header_stdc=no
3764 fi
3765 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3766 fi
3767 fi
3768 fi
3769 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3770 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3771 if test $ac_cv_header_stdc = yes; then
3772
3773 cat >>confdefs.h <<\_ACEOF
3774 #define STDC_HEADERS 1
3775 _ACEOF
3776
3777 fi
3778
3779 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3790                   inttypes.h stdint.h unistd.h
3791 do
3792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3793 echo "$as_me:$LINENO: checking for $ac_header" >&5
3794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3796   echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798   cat >conftest.$ac_ext <<_ACEOF
3799 #line $LINENO "configure"
3800 /* confdefs.h.  */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h.  */
3805 $ac_includes_default
3806
3807 #include <$ac_header>
3808 _ACEOF
3809 rm -f conftest.$ac_objext
3810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3811   (eval $ac_compile) 2>&5
3812   ac_status=$?
3813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814   (exit $ac_status); } &&
3815          { ac_try='test -s conftest.$ac_objext'
3816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817   (eval $ac_try) 2>&5
3818   ac_status=$?
3819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820   (exit $ac_status); }; }; then
3821   eval "$as_ac_Header=yes"
3822 else
3823   echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 eval "$as_ac_Header=no"
3827 fi
3828 rm -f conftest.$ac_objext conftest.$ac_ext
3829 fi
3830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3833   cat >>confdefs.h <<_ACEOF
3834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3835 _ACEOF
3836
3837 fi
3838
3839 done
3840
3841
3842 echo "$as_me:$LINENO: checking for short" >&5
3843 echo $ECHO_N "checking for short... $ECHO_C" >&6
3844 if test "${ac_cv_type_short+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   cat >conftest.$ac_ext <<_ACEOF
3848 #line $LINENO "configure"
3849 /* confdefs.h.  */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h.  */
3854 $ac_includes_default
3855 int
3856 main ()
3857 {
3858 if ((short *) 0)
3859   return 0;
3860 if (sizeof (short))
3861   return 0;
3862   ;
3863   return 0;
3864 }
3865 _ACEOF
3866 rm -f conftest.$ac_objext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868   (eval $ac_compile) 2>&5
3869   ac_status=$?
3870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871   (exit $ac_status); } &&
3872          { ac_try='test -s conftest.$ac_objext'
3873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874   (eval $ac_try) 2>&5
3875   ac_status=$?
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); }; }; then
3878   ac_cv_type_short=yes
3879 else
3880   echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3882
3883 ac_cv_type_short=no
3884 fi
3885 rm -f conftest.$ac_objext conftest.$ac_ext
3886 fi
3887 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3888 echo "${ECHO_T}$ac_cv_type_short" >&6
3889
3890 echo "$as_me:$LINENO: checking size of short" >&5
3891 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3892 if test "${ac_cv_sizeof_short+set}" = set; then
3893   echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895   if test "$ac_cv_type_short" = yes; then
3896   # The cast to unsigned long works around a bug in the HP C Compiler
3897   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3898   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3899   # This bug is HP SR number 8606223364.
3900   if test "$cross_compiling" = yes; then
3901   # Depending upon the size, compute the lo and hi bounds.
3902 cat >conftest.$ac_ext <<_ACEOF
3903 #line $LINENO "configure"
3904 /* confdefs.h.  */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h.  */
3909 $ac_includes_default
3910 int
3911 main ()
3912 {
3913 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3914 test_array [0] = 0
3915
3916   ;
3917   return 0;
3918 }
3919 _ACEOF
3920 rm -f conftest.$ac_objext
3921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3922   (eval $ac_compile) 2>&5
3923   ac_status=$?
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); } &&
3926          { ac_try='test -s conftest.$ac_objext'
3927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928   (eval $ac_try) 2>&5
3929   ac_status=$?
3930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931   (exit $ac_status); }; }; then
3932   ac_lo=0 ac_mid=0
3933   while :; do
3934     cat >conftest.$ac_ext <<_ACEOF
3935 #line $LINENO "configure"
3936 /* confdefs.h.  */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h.  */
3941 $ac_includes_default
3942 int
3943 main ()
3944 {
3945 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3946 test_array [0] = 0
3947
3948   ;
3949   return 0;
3950 }
3951 _ACEOF
3952 rm -f conftest.$ac_objext
3953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3954   (eval $ac_compile) 2>&5
3955   ac_status=$?
3956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); } &&
3958          { ac_try='test -s conftest.$ac_objext'
3959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960   (eval $ac_try) 2>&5
3961   ac_status=$?
3962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963   (exit $ac_status); }; }; then
3964   ac_hi=$ac_mid; break
3965 else
3966   echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3968
3969 ac_lo=`expr $ac_mid + 1`
3970                     if test $ac_lo -le $ac_mid; then
3971                       ac_lo= ac_hi=
3972                       break
3973                     fi
3974                     ac_mid=`expr 2 '*' $ac_mid + 1`
3975 fi
3976 rm -f conftest.$ac_objext conftest.$ac_ext
3977   done
3978 else
3979   echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3981
3982 cat >conftest.$ac_ext <<_ACEOF
3983 #line $LINENO "configure"
3984 /* confdefs.h.  */
3985 _ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h.  */
3989 $ac_includes_default
3990 int
3991 main ()
3992 {
3993 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3994 test_array [0] = 0
3995
3996   ;
3997   return 0;
3998 }
3999 _ACEOF
4000 rm -f conftest.$ac_objext
4001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4002   (eval $ac_compile) 2>&5
4003   ac_status=$?
4004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005   (exit $ac_status); } &&
4006          { ac_try='test -s conftest.$ac_objext'
4007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008   (eval $ac_try) 2>&5
4009   ac_status=$?
4010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011   (exit $ac_status); }; }; then
4012   ac_hi=-1 ac_mid=-1
4013   while :; do
4014     cat >conftest.$ac_ext <<_ACEOF
4015 #line $LINENO "configure"
4016 /* confdefs.h.  */
4017 _ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h.  */
4021 $ac_includes_default
4022 int
4023 main ()
4024 {
4025 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4026 test_array [0] = 0
4027
4028   ;
4029   return 0;
4030 }
4031 _ACEOF
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034   (eval $ac_compile) 2>&5
4035   ac_status=$?
4036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); } &&
4038          { ac_try='test -s conftest.$ac_objext'
4039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040   (eval $ac_try) 2>&5
4041   ac_status=$?
4042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043   (exit $ac_status); }; }; then
4044   ac_lo=$ac_mid; break
4045 else
4046   echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 ac_hi=`expr '(' $ac_mid ')' - 1`
4050                        if test $ac_mid -le $ac_hi; then
4051                          ac_lo= ac_hi=
4052                          break
4053                        fi
4054                        ac_mid=`expr 2 '*' $ac_mid`
4055 fi
4056 rm -f conftest.$ac_objext conftest.$ac_ext
4057   done
4058 else
4059   echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4061
4062 ac_lo= ac_hi=
4063 fi
4064 rm -f conftest.$ac_objext conftest.$ac_ext
4065 fi
4066 rm -f conftest.$ac_objext conftest.$ac_ext
4067 # Binary search between lo and hi bounds.
4068 while test "x$ac_lo" != "x$ac_hi"; do
4069   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4070   cat >conftest.$ac_ext <<_ACEOF
4071 #line $LINENO "configure"
4072 /* confdefs.h.  */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h.  */
4077 $ac_includes_default
4078 int
4079 main ()
4080 {
4081 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4082 test_array [0] = 0
4083
4084   ;
4085   return 0;
4086 }
4087 _ACEOF
4088 rm -f conftest.$ac_objext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090   (eval $ac_compile) 2>&5
4091   ac_status=$?
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); } &&
4094          { ac_try='test -s conftest.$ac_objext'
4095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096   (eval $ac_try) 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); }; }; then
4100   ac_hi=$ac_mid
4101 else
4102   echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4104
4105 ac_lo=`expr '(' $ac_mid ')' + 1`
4106 fi
4107 rm -f conftest.$ac_objext conftest.$ac_ext
4108 done
4109 case $ac_lo in
4110 ?*) ac_cv_sizeof_short=$ac_lo;;
4111 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4112 See \`config.log' for more details." >&5
4113 echo "$as_me: error: cannot compute sizeof (short), 77
4114 See \`config.log' for more details." >&2;}
4115    { (exit 1); exit 1; }; } ;;
4116 esac
4117 else
4118   if test "$cross_compiling" = yes; then
4119   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4120 See \`config.log' for more details." >&5
4121 echo "$as_me: error: cannot run test program while cross compiling
4122 See \`config.log' for more details." >&2;}
4123    { (exit 1); exit 1; }; }
4124 else
4125   cat >conftest.$ac_ext <<_ACEOF
4126 #line $LINENO "configure"
4127 /* confdefs.h.  */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h.  */
4132 $ac_includes_default
4133 long longval () { return (long) (sizeof (short)); }
4134 unsigned long ulongval () { return (long) (sizeof (short)); }
4135 #include <stdio.h>
4136 #include <stdlib.h>
4137 int
4138 main ()
4139 {
4140
4141   FILE *f = fopen ("conftest.val", "w");
4142   if (! f)
4143     exit (1);
4144   if (((long) (sizeof (short))) < 0)
4145     {
4146       long i = longval ();
4147       if (i != ((long) (sizeof (short))))
4148         exit (1);
4149       fprintf (f, "%ld\n", i);
4150     }
4151   else
4152     {
4153       unsigned long i = ulongval ();
4154       if (i != ((long) (sizeof (short))))
4155         exit (1);
4156       fprintf (f, "%lu\n", i);
4157     }
4158   exit (ferror (f) || fclose (f) != 0);
4159
4160   ;
4161   return 0;
4162 }
4163 _ACEOF
4164 rm -f conftest$ac_exeext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4166   (eval $ac_link) 2>&5
4167   ac_status=$?
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171   (eval $ac_try) 2>&5
4172   ac_status=$?
4173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174   (exit $ac_status); }; }; then
4175   ac_cv_sizeof_short=`cat conftest.val`
4176 else
4177   echo "$as_me: program exited with status $ac_status" >&5
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181 ( exit $ac_status )
4182 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4183 See \`config.log' for more details." >&5
4184 echo "$as_me: error: cannot compute sizeof (short), 77
4185 See \`config.log' for more details." >&2;}
4186    { (exit 1); exit 1; }; }
4187 fi
4188 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4189 fi
4190 fi
4191 rm -f conftest.val
4192 else
4193   ac_cv_sizeof_short=0
4194 fi
4195 fi
4196 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4197 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4198 cat >>confdefs.h <<_ACEOF
4199 #define SIZEOF_SHORT $ac_cv_sizeof_short
4200 _ACEOF
4201
4202
4203 echo "$as_me:$LINENO: checking for int" >&5
4204 echo $ECHO_N "checking for int... $ECHO_C" >&6
4205 if test "${ac_cv_type_int+set}" = set; then
4206   echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208   cat >conftest.$ac_ext <<_ACEOF
4209 #line $LINENO "configure"
4210 /* confdefs.h.  */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h.  */
4215 $ac_includes_default
4216 int
4217 main ()
4218 {
4219 if ((int *) 0)
4220   return 0;
4221 if (sizeof (int))
4222   return 0;
4223   ;
4224   return 0;
4225 }
4226 _ACEOF
4227 rm -f conftest.$ac_objext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229   (eval $ac_compile) 2>&5
4230   ac_status=$?
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); } &&
4233          { ac_try='test -s conftest.$ac_objext'
4234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235   (eval $ac_try) 2>&5
4236   ac_status=$?
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); }; }; then
4239   ac_cv_type_int=yes
4240 else
4241   echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4243
4244 ac_cv_type_int=no
4245 fi
4246 rm -f conftest.$ac_objext conftest.$ac_ext
4247 fi
4248 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4249 echo "${ECHO_T}$ac_cv_type_int" >&6
4250
4251 echo "$as_me:$LINENO: checking size of int" >&5
4252 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4253 if test "${ac_cv_sizeof_int+set}" = set; then
4254   echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256   if test "$ac_cv_type_int" = yes; then
4257   # The cast to unsigned long works around a bug in the HP C Compiler
4258   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4259   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4260   # This bug is HP SR number 8606223364.
4261   if test "$cross_compiling" = yes; then
4262   # Depending upon the size, compute the lo and hi bounds.
4263 cat >conftest.$ac_ext <<_ACEOF
4264 #line $LINENO "configure"
4265 /* confdefs.h.  */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h.  */
4270 $ac_includes_default
4271 int
4272 main ()
4273 {
4274 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4275 test_array [0] = 0
4276
4277   ;
4278   return 0;
4279 }
4280 _ACEOF
4281 rm -f conftest.$ac_objext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283   (eval $ac_compile) 2>&5
4284   ac_status=$?
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); } &&
4287          { ac_try='test -s conftest.$ac_objext'
4288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289   (eval $ac_try) 2>&5
4290   ac_status=$?
4291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292   (exit $ac_status); }; }; then
4293   ac_lo=0 ac_mid=0
4294   while :; do
4295     cat >conftest.$ac_ext <<_ACEOF
4296 #line $LINENO "configure"
4297 /* confdefs.h.  */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h.  */
4302 $ac_includes_default
4303 int
4304 main ()
4305 {
4306 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4307 test_array [0] = 0
4308
4309   ;
4310   return 0;
4311 }
4312 _ACEOF
4313 rm -f conftest.$ac_objext
4314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4315   (eval $ac_compile) 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); } &&
4319          { ac_try='test -s conftest.$ac_objext'
4320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321   (eval $ac_try) 2>&5
4322   ac_status=$?
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); }; }; then
4325   ac_hi=$ac_mid; break
4326 else
4327   echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330 ac_lo=`expr $ac_mid + 1`
4331                     if test $ac_lo -le $ac_mid; then
4332                       ac_lo= ac_hi=
4333                       break
4334                     fi
4335                     ac_mid=`expr 2 '*' $ac_mid + 1`
4336 fi
4337 rm -f conftest.$ac_objext conftest.$ac_ext
4338   done
4339 else
4340   echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4342
4343 cat >conftest.$ac_ext <<_ACEOF
4344 #line $LINENO "configure"
4345 /* confdefs.h.  */
4346 _ACEOF
4347 cat confdefs.h >>conftest.$ac_ext
4348 cat >>conftest.$ac_ext <<_ACEOF
4349 /* end confdefs.h.  */
4350 $ac_includes_default
4351 int
4352 main ()
4353 {
4354 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4355 test_array [0] = 0
4356
4357   ;
4358   return 0;
4359 }
4360 _ACEOF
4361 rm -f conftest.$ac_objext
4362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4363   (eval $ac_compile) 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); } &&
4367          { ac_try='test -s conftest.$ac_objext'
4368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369   (eval $ac_try) 2>&5
4370   ac_status=$?
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); }; }; then
4373   ac_hi=-1 ac_mid=-1
4374   while :; do
4375     cat >conftest.$ac_ext <<_ACEOF
4376 #line $LINENO "configure"
4377 /* confdefs.h.  */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h.  */
4382 $ac_includes_default
4383 int
4384 main ()
4385 {
4386 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4387 test_array [0] = 0
4388
4389   ;
4390   return 0;
4391 }
4392 _ACEOF
4393 rm -f conftest.$ac_objext
4394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4395   (eval $ac_compile) 2>&5
4396   ac_status=$?
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); } &&
4399          { ac_try='test -s conftest.$ac_objext'
4400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401   (eval $ac_try) 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); }; }; then
4405   ac_lo=$ac_mid; break
4406 else
4407   echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4409
4410 ac_hi=`expr '(' $ac_mid ')' - 1`
4411                        if test $ac_mid -le $ac_hi; then
4412                          ac_lo= ac_hi=
4413                          break
4414                        fi
4415                        ac_mid=`expr 2 '*' $ac_mid`
4416 fi
4417 rm -f conftest.$ac_objext conftest.$ac_ext
4418   done
4419 else
4420   echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4422
4423 ac_lo= ac_hi=
4424 fi
4425 rm -f conftest.$ac_objext conftest.$ac_ext
4426 fi
4427 rm -f conftest.$ac_objext conftest.$ac_ext
4428 # Binary search between lo and hi bounds.
4429 while test "x$ac_lo" != "x$ac_hi"; do
4430   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4431   cat >conftest.$ac_ext <<_ACEOF
4432 #line $LINENO "configure"
4433 /* confdefs.h.  */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h.  */
4438 $ac_includes_default
4439 int
4440 main ()
4441 {
4442 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4443 test_array [0] = 0
4444
4445   ;
4446   return 0;
4447 }
4448 _ACEOF
4449 rm -f conftest.$ac_objext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451   (eval $ac_compile) 2>&5
4452   ac_status=$?
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); } &&
4455          { ac_try='test -s conftest.$ac_objext'
4456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457   (eval $ac_try) 2>&5
4458   ac_status=$?
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); }; }; then
4461   ac_hi=$ac_mid
4462 else
4463   echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4465
4466 ac_lo=`expr '(' $ac_mid ')' + 1`
4467 fi
4468 rm -f conftest.$ac_objext conftest.$ac_ext
4469 done
4470 case $ac_lo in
4471 ?*) ac_cv_sizeof_int=$ac_lo;;
4472 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4473 See \`config.log' for more details." >&5
4474 echo "$as_me: error: cannot compute sizeof (int), 77
4475 See \`config.log' for more details." >&2;}
4476    { (exit 1); exit 1; }; } ;;
4477 esac
4478 else
4479   if test "$cross_compiling" = yes; then
4480   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4481 See \`config.log' for more details." >&5
4482 echo "$as_me: error: cannot run test program while cross compiling
4483 See \`config.log' for more details." >&2;}
4484    { (exit 1); exit 1; }; }
4485 else
4486   cat >conftest.$ac_ext <<_ACEOF
4487 #line $LINENO "configure"
4488 /* confdefs.h.  */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h.  */
4493 $ac_includes_default
4494 long longval () { return (long) (sizeof (int)); }
4495 unsigned long ulongval () { return (long) (sizeof (int)); }
4496 #include <stdio.h>
4497 #include <stdlib.h>
4498 int
4499 main ()
4500 {
4501
4502   FILE *f = fopen ("conftest.val", "w");
4503   if (! f)
4504     exit (1);
4505   if (((long) (sizeof (int))) < 0)
4506     {
4507       long i = longval ();
4508       if (i != ((long) (sizeof (int))))
4509         exit (1);
4510       fprintf (f, "%ld\n", i);
4511     }
4512   else
4513     {
4514       unsigned long i = ulongval ();
4515       if (i != ((long) (sizeof (int))))
4516         exit (1);
4517       fprintf (f, "%lu\n", i);
4518     }
4519   exit (ferror (f) || fclose (f) != 0);
4520
4521   ;
4522   return 0;
4523 }
4524 _ACEOF
4525 rm -f conftest$ac_exeext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4527   (eval $ac_link) 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532   (eval $ac_try) 2>&5
4533   ac_status=$?
4534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535   (exit $ac_status); }; }; then
4536   ac_cv_sizeof_int=`cat conftest.val`
4537 else
4538   echo "$as_me: program exited with status $ac_status" >&5
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542 ( exit $ac_status )
4543 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4544 See \`config.log' for more details." >&5
4545 echo "$as_me: error: cannot compute sizeof (int), 77
4546 See \`config.log' for more details." >&2;}
4547    { (exit 1); exit 1; }; }
4548 fi
4549 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4550 fi
4551 fi
4552 rm -f conftest.val
4553 else
4554   ac_cv_sizeof_int=0
4555 fi
4556 fi
4557 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4558 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4559 cat >>confdefs.h <<_ACEOF
4560 #define SIZEOF_INT $ac_cv_sizeof_int
4561 _ACEOF
4562
4563
4564 echo "$as_me:$LINENO: checking for long" >&5
4565 echo $ECHO_N "checking for long... $ECHO_C" >&6
4566 if test "${ac_cv_type_long+set}" = set; then
4567   echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569   cat >conftest.$ac_ext <<_ACEOF
4570 #line $LINENO "configure"
4571 /* confdefs.h.  */
4572 _ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h.  */
4576 $ac_includes_default
4577 int
4578 main ()
4579 {
4580 if ((long *) 0)
4581   return 0;
4582 if (sizeof (long))
4583   return 0;
4584   ;
4585   return 0;
4586 }
4587 _ACEOF
4588 rm -f conftest.$ac_objext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590   (eval $ac_compile) 2>&5
4591   ac_status=$?
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); } &&
4594          { ac_try='test -s conftest.$ac_objext'
4595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596   (eval $ac_try) 2>&5
4597   ac_status=$?
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); }; }; then
4600   ac_cv_type_long=yes
4601 else
4602   echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4604
4605 ac_cv_type_long=no
4606 fi
4607 rm -f conftest.$ac_objext conftest.$ac_ext
4608 fi
4609 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4610 echo "${ECHO_T}$ac_cv_type_long" >&6
4611
4612 echo "$as_me:$LINENO: checking size of long" >&5
4613 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4614 if test "${ac_cv_sizeof_long+set}" = set; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   if test "$ac_cv_type_long" = yes; then
4618   # The cast to unsigned long works around a bug in the HP C Compiler
4619   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4620   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4621   # This bug is HP SR number 8606223364.
4622   if test "$cross_compiling" = yes; then
4623   # Depending upon the size, compute the lo and hi bounds.
4624 cat >conftest.$ac_ext <<_ACEOF
4625 #line $LINENO "configure"
4626 /* confdefs.h.  */
4627 _ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h.  */
4631 $ac_includes_default
4632 int
4633 main ()
4634 {
4635 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4636 test_array [0] = 0
4637
4638   ;
4639   return 0;
4640 }
4641 _ACEOF
4642 rm -f conftest.$ac_objext
4643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4644   (eval $ac_compile) 2>&5
4645   ac_status=$?
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); } &&
4648          { ac_try='test -s conftest.$ac_objext'
4649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650   (eval $ac_try) 2>&5
4651   ac_status=$?
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); }; }; then
4654   ac_lo=0 ac_mid=0
4655   while :; do
4656     cat >conftest.$ac_ext <<_ACEOF
4657 #line $LINENO "configure"
4658 /* confdefs.h.  */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h.  */
4663 $ac_includes_default
4664 int
4665 main ()
4666 {
4667 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4668 test_array [0] = 0
4669
4670   ;
4671   return 0;
4672 }
4673 _ACEOF
4674 rm -f conftest.$ac_objext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676   (eval $ac_compile) 2>&5
4677   ac_status=$?
4678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); } &&
4680          { ac_try='test -s conftest.$ac_objext'
4681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682   (eval $ac_try) 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); }; }; then
4686   ac_hi=$ac_mid; break
4687 else
4688   echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4690
4691 ac_lo=`expr $ac_mid + 1`
4692                     if test $ac_lo -le $ac_mid; then
4693                       ac_lo= ac_hi=
4694                       break
4695                     fi
4696                     ac_mid=`expr 2 '*' $ac_mid + 1`
4697 fi
4698 rm -f conftest.$ac_objext conftest.$ac_ext
4699   done
4700 else
4701   echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4703
4704 cat >conftest.$ac_ext <<_ACEOF
4705 #line $LINENO "configure"
4706 /* confdefs.h.  */
4707 _ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h.  */
4711 $ac_includes_default
4712 int
4713 main ()
4714 {
4715 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4716 test_array [0] = 0
4717
4718   ;
4719   return 0;
4720 }
4721 _ACEOF
4722 rm -f conftest.$ac_objext
4723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4724   (eval $ac_compile) 2>&5
4725   ac_status=$?
4726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727   (exit $ac_status); } &&
4728          { ac_try='test -s conftest.$ac_objext'
4729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730   (eval $ac_try) 2>&5
4731   ac_status=$?
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); }; }; then
4734   ac_hi=-1 ac_mid=-1
4735   while :; do
4736     cat >conftest.$ac_ext <<_ACEOF
4737 #line $LINENO "configure"
4738 /* confdefs.h.  */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h.  */
4743 $ac_includes_default
4744 int
4745 main ()
4746 {
4747 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4748 test_array [0] = 0
4749
4750   ;
4751   return 0;
4752 }
4753 _ACEOF
4754 rm -f conftest.$ac_objext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756   (eval $ac_compile) 2>&5
4757   ac_status=$?
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); } &&
4760          { ac_try='test -s conftest.$ac_objext'
4761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762   (eval $ac_try) 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }; }; then
4766   ac_lo=$ac_mid; break
4767 else
4768   echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4770
4771 ac_hi=`expr '(' $ac_mid ')' - 1`
4772                        if test $ac_mid -le $ac_hi; then
4773                          ac_lo= ac_hi=
4774                          break
4775                        fi
4776                        ac_mid=`expr 2 '*' $ac_mid`
4777 fi
4778 rm -f conftest.$ac_objext conftest.$ac_ext
4779   done
4780 else
4781   echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4783
4784 ac_lo= ac_hi=
4785 fi
4786 rm -f conftest.$ac_objext conftest.$ac_ext
4787 fi
4788 rm -f conftest.$ac_objext conftest.$ac_ext
4789 # Binary search between lo and hi bounds.
4790 while test "x$ac_lo" != "x$ac_hi"; do
4791   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4792   cat >conftest.$ac_ext <<_ACEOF
4793 #line $LINENO "configure"
4794 /* confdefs.h.  */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h.  */
4799 $ac_includes_default
4800 int
4801 main ()
4802 {
4803 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4804 test_array [0] = 0
4805
4806   ;
4807   return 0;
4808 }
4809 _ACEOF
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812   (eval $ac_compile) 2>&5
4813   ac_status=$?
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); } &&
4816          { ac_try='test -s conftest.$ac_objext'
4817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818   (eval $ac_try) 2>&5
4819   ac_status=$?
4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); }; }; then
4822   ac_hi=$ac_mid
4823 else
4824   echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4826
4827 ac_lo=`expr '(' $ac_mid ')' + 1`
4828 fi
4829 rm -f conftest.$ac_objext conftest.$ac_ext
4830 done
4831 case $ac_lo in
4832 ?*) ac_cv_sizeof_long=$ac_lo;;
4833 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4834 See \`config.log' for more details." >&5
4835 echo "$as_me: error: cannot compute sizeof (long), 77
4836 See \`config.log' for more details." >&2;}
4837    { (exit 1); exit 1; }; } ;;
4838 esac
4839 else
4840   if test "$cross_compiling" = yes; then
4841   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4842 See \`config.log' for more details." >&5
4843 echo "$as_me: error: cannot run test program while cross compiling
4844 See \`config.log' for more details." >&2;}
4845    { (exit 1); exit 1; }; }
4846 else
4847   cat >conftest.$ac_ext <<_ACEOF
4848 #line $LINENO "configure"
4849 /* confdefs.h.  */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h.  */
4854 $ac_includes_default
4855 long longval () { return (long) (sizeof (long)); }
4856 unsigned long ulongval () { return (long) (sizeof (long)); }
4857 #include <stdio.h>
4858 #include <stdlib.h>
4859 int
4860 main ()
4861 {
4862
4863   FILE *f = fopen ("conftest.val", "w");
4864   if (! f)
4865     exit (1);
4866   if (((long) (sizeof (long))) < 0)
4867     {
4868       long i = longval ();
4869       if (i != ((long) (sizeof (long))))
4870         exit (1);
4871       fprintf (f, "%ld\n", i);
4872     }
4873   else
4874     {
4875       unsigned long i = ulongval ();
4876       if (i != ((long) (sizeof (long))))
4877         exit (1);
4878       fprintf (f, "%lu\n", i);
4879     }
4880   exit (ferror (f) || fclose (f) != 0);
4881
4882   ;
4883   return 0;
4884 }
4885 _ACEOF
4886 rm -f conftest$ac_exeext
4887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4888   (eval $ac_link) 2>&5
4889   ac_status=$?
4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893   (eval $ac_try) 2>&5
4894   ac_status=$?
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); }; }; then
4897   ac_cv_sizeof_long=`cat conftest.val`
4898 else
4899   echo "$as_me: program exited with status $ac_status" >&5
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4902
4903 ( exit $ac_status )
4904 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4905 See \`config.log' for more details." >&5
4906 echo "$as_me: error: cannot compute sizeof (long), 77
4907 See \`config.log' for more details." >&2;}
4908    { (exit 1); exit 1; }; }
4909 fi
4910 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4911 fi
4912 fi
4913 rm -f conftest.val
4914 else
4915   ac_cv_sizeof_long=0
4916 fi
4917 fi
4918 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4919 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4920 cat >>confdefs.h <<_ACEOF
4921 #define SIZEOF_LONG $ac_cv_sizeof_long
4922 _ACEOF
4923
4924
4925 echo "$as_me:$LINENO: checking for float" >&5
4926 echo $ECHO_N "checking for float... $ECHO_C" >&6
4927 if test "${ac_cv_type_float+set}" = set; then
4928   echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930   cat >conftest.$ac_ext <<_ACEOF
4931 #line $LINENO "configure"
4932 /* confdefs.h.  */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h.  */
4937 $ac_includes_default
4938 int
4939 main ()
4940 {
4941 if ((float *) 0)
4942   return 0;
4943 if (sizeof (float))
4944   return 0;
4945   ;
4946   return 0;
4947 }
4948 _ACEOF
4949 rm -f conftest.$ac_objext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951   (eval $ac_compile) 2>&5
4952   ac_status=$?
4953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); } &&
4955          { ac_try='test -s conftest.$ac_objext'
4956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957   (eval $ac_try) 2>&5
4958   ac_status=$?
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); }; }; then
4961   ac_cv_type_float=yes
4962 else
4963   echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4965
4966 ac_cv_type_float=no
4967 fi
4968 rm -f conftest.$ac_objext conftest.$ac_ext
4969 fi
4970 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
4971 echo "${ECHO_T}$ac_cv_type_float" >&6
4972
4973 echo "$as_me:$LINENO: checking size of float" >&5
4974 echo $ECHO_N "checking size of float... $ECHO_C" >&6
4975 if test "${ac_cv_sizeof_float+set}" = set; then
4976   echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978   if test "$ac_cv_type_float" = yes; then
4979   # The cast to unsigned long works around a bug in the HP C Compiler
4980   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4981   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4982   # This bug is HP SR number 8606223364.
4983   if test "$cross_compiling" = yes; then
4984   # Depending upon the size, compute the lo and hi bounds.
4985 cat >conftest.$ac_ext <<_ACEOF
4986 #line $LINENO "configure"
4987 /* confdefs.h.  */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h.  */
4992 $ac_includes_default
4993 int
4994 main ()
4995 {
4996 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
4997 test_array [0] = 0
4998
4999   ;
5000   return 0;
5001 }
5002 _ACEOF
5003 rm -f conftest.$ac_objext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005   (eval $ac_compile) 2>&5
5006   ac_status=$?
5007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008   (exit $ac_status); } &&
5009          { ac_try='test -s conftest.$ac_objext'
5010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011   (eval $ac_try) 2>&5
5012   ac_status=$?
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); }; }; then
5015   ac_lo=0 ac_mid=0
5016   while :; do
5017     cat >conftest.$ac_ext <<_ACEOF
5018 #line $LINENO "configure"
5019 /* confdefs.h.  */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h.  */
5024 $ac_includes_default
5025 int
5026 main ()
5027 {
5028 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5029 test_array [0] = 0
5030
5031   ;
5032   return 0;
5033 }
5034 _ACEOF
5035 rm -f conftest.$ac_objext
5036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037   (eval $ac_compile) 2>&5
5038   ac_status=$?
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); } &&
5041          { ac_try='test -s conftest.$ac_objext'
5042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043   (eval $ac_try) 2>&5
5044   ac_status=$?
5045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046   (exit $ac_status); }; }; then
5047   ac_hi=$ac_mid; break
5048 else
5049   echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5051
5052 ac_lo=`expr $ac_mid + 1`
5053                     if test $ac_lo -le $ac_mid; then
5054                       ac_lo= ac_hi=
5055                       break
5056                     fi
5057                     ac_mid=`expr 2 '*' $ac_mid + 1`
5058 fi
5059 rm -f conftest.$ac_objext conftest.$ac_ext
5060   done
5061 else
5062   echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065 cat >conftest.$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5067 /* confdefs.h.  */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h.  */
5072 $ac_includes_default
5073 int
5074 main ()
5075 {
5076 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5077 test_array [0] = 0
5078
5079   ;
5080   return 0;
5081 }
5082 _ACEOF
5083 rm -f conftest.$ac_objext
5084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5085   (eval $ac_compile) 2>&5
5086   ac_status=$?
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); } &&
5089          { ac_try='test -s conftest.$ac_objext'
5090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091   (eval $ac_try) 2>&5
5092   ac_status=$?
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); }; }; then
5095   ac_hi=-1 ac_mid=-1
5096   while :; do
5097     cat >conftest.$ac_ext <<_ACEOF
5098 #line $LINENO "configure"
5099 /* confdefs.h.  */
5100 _ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h.  */
5104 $ac_includes_default
5105 int
5106 main ()
5107 {
5108 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5109 test_array [0] = 0
5110
5111   ;
5112   return 0;
5113 }
5114 _ACEOF
5115 rm -f conftest.$ac_objext
5116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5117   (eval $ac_compile) 2>&5
5118   ac_status=$?
5119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); } &&
5121          { ac_try='test -s conftest.$ac_objext'
5122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123   (eval $ac_try) 2>&5
5124   ac_status=$?
5125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126   (exit $ac_status); }; }; then
5127   ac_lo=$ac_mid; break
5128 else
5129   echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5131
5132 ac_hi=`expr '(' $ac_mid ')' - 1`
5133                        if test $ac_mid -le $ac_hi; then
5134                          ac_lo= ac_hi=
5135                          break
5136                        fi
5137                        ac_mid=`expr 2 '*' $ac_mid`
5138 fi
5139 rm -f conftest.$ac_objext conftest.$ac_ext
5140   done
5141 else
5142   echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5144
5145 ac_lo= ac_hi=
5146 fi
5147 rm -f conftest.$ac_objext conftest.$ac_ext
5148 fi
5149 rm -f conftest.$ac_objext conftest.$ac_ext
5150 # Binary search between lo and hi bounds.
5151 while test "x$ac_lo" != "x$ac_hi"; do
5152   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5153   cat >conftest.$ac_ext <<_ACEOF
5154 #line $LINENO "configure"
5155 /* confdefs.h.  */
5156 _ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h.  */
5160 $ac_includes_default
5161 int
5162 main ()
5163 {
5164 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5165 test_array [0] = 0
5166
5167   ;
5168   return 0;
5169 }
5170 _ACEOF
5171 rm -f conftest.$ac_objext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5173   (eval $ac_compile) 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); } &&
5177          { ac_try='test -s conftest.$ac_objext'
5178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179   (eval $ac_try) 2>&5
5180   ac_status=$?
5181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182   (exit $ac_status); }; }; then
5183   ac_hi=$ac_mid
5184 else
5185   echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5187
5188 ac_lo=`expr '(' $ac_mid ')' + 1`
5189 fi
5190 rm -f conftest.$ac_objext conftest.$ac_ext
5191 done
5192 case $ac_lo in
5193 ?*) ac_cv_sizeof_float=$ac_lo;;
5194 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5195 See \`config.log' for more details." >&5
5196 echo "$as_me: error: cannot compute sizeof (float), 77
5197 See \`config.log' for more details." >&2;}
5198    { (exit 1); exit 1; }; } ;;
5199 esac
5200 else
5201   if test "$cross_compiling" = yes; then
5202   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5203 See \`config.log' for more details." >&5
5204 echo "$as_me: error: cannot run test program while cross compiling
5205 See \`config.log' for more details." >&2;}
5206    { (exit 1); exit 1; }; }
5207 else
5208   cat >conftest.$ac_ext <<_ACEOF
5209 #line $LINENO "configure"
5210 /* confdefs.h.  */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h.  */
5215 $ac_includes_default
5216 long longval () { return (long) (sizeof (float)); }
5217 unsigned long ulongval () { return (long) (sizeof (float)); }
5218 #include <stdio.h>
5219 #include <stdlib.h>
5220 int
5221 main ()
5222 {
5223
5224   FILE *f = fopen ("conftest.val", "w");
5225   if (! f)
5226     exit (1);
5227   if (((long) (sizeof (float))) < 0)
5228     {
5229       long i = longval ();
5230       if (i != ((long) (sizeof (float))))
5231         exit (1);
5232       fprintf (f, "%ld\n", i);
5233     }
5234   else
5235     {
5236       unsigned long i = ulongval ();
5237       if (i != ((long) (sizeof (float))))
5238         exit (1);
5239       fprintf (f, "%lu\n", i);
5240     }
5241   exit (ferror (f) || fclose (f) != 0);
5242
5243   ;
5244   return 0;
5245 }
5246 _ACEOF
5247 rm -f conftest$ac_exeext
5248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5249   (eval $ac_link) 2>&5
5250   ac_status=$?
5251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254   (eval $ac_try) 2>&5
5255   ac_status=$?
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); }; }; then
5258   ac_cv_sizeof_float=`cat conftest.val`
5259 else
5260   echo "$as_me: program exited with status $ac_status" >&5
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5263
5264 ( exit $ac_status )
5265 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5266 See \`config.log' for more details." >&5
5267 echo "$as_me: error: cannot compute sizeof (float), 77
5268 See \`config.log' for more details." >&2;}
5269    { (exit 1); exit 1; }; }
5270 fi
5271 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5272 fi
5273 fi
5274 rm -f conftest.val
5275 else
5276   ac_cv_sizeof_float=0
5277 fi
5278 fi
5279 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5280 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5281 cat >>confdefs.h <<_ACEOF
5282 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5283 _ACEOF
5284
5285
5286 echo "$as_me:$LINENO: checking for double" >&5
5287 echo $ECHO_N "checking for double... $ECHO_C" >&6
5288 if test "${ac_cv_type_double+set}" = set; then
5289   echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291   cat >conftest.$ac_ext <<_ACEOF
5292 #line $LINENO "configure"
5293 /* confdefs.h.  */
5294 _ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h.  */
5298 $ac_includes_default
5299 int
5300 main ()
5301 {
5302 if ((double *) 0)
5303   return 0;
5304 if (sizeof (double))
5305   return 0;
5306   ;
5307   return 0;
5308 }
5309 _ACEOF
5310 rm -f conftest.$ac_objext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5312   (eval $ac_compile) 2>&5
5313   ac_status=$?
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); } &&
5316          { ac_try='test -s conftest.$ac_objext'
5317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318   (eval $ac_try) 2>&5
5319   ac_status=$?
5320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321   (exit $ac_status); }; }; then
5322   ac_cv_type_double=yes
5323 else
5324   echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327 ac_cv_type_double=no
5328 fi
5329 rm -f conftest.$ac_objext conftest.$ac_ext
5330 fi
5331 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5332 echo "${ECHO_T}$ac_cv_type_double" >&6
5333
5334 echo "$as_me:$LINENO: checking size of double" >&5
5335 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5336 if test "${ac_cv_sizeof_double+set}" = set; then
5337   echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339   if test "$ac_cv_type_double" = yes; then
5340   # The cast to unsigned long works around a bug in the HP C Compiler
5341   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5342   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5343   # This bug is HP SR number 8606223364.
5344   if test "$cross_compiling" = yes; then
5345   # Depending upon the size, compute the lo and hi bounds.
5346 cat >conftest.$ac_ext <<_ACEOF
5347 #line $LINENO "configure"
5348 /* confdefs.h.  */
5349 _ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h.  */
5353 $ac_includes_default
5354 int
5355 main ()
5356 {
5357 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5358 test_array [0] = 0
5359
5360   ;
5361   return 0;
5362 }
5363 _ACEOF
5364 rm -f conftest.$ac_objext
5365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366   (eval $ac_compile) 2>&5
5367   ac_status=$?
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); } &&
5370          { ac_try='test -s conftest.$ac_objext'
5371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372   (eval $ac_try) 2>&5
5373   ac_status=$?
5374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375   (exit $ac_status); }; }; then
5376   ac_lo=0 ac_mid=0
5377   while :; do
5378     cat >conftest.$ac_ext <<_ACEOF
5379 #line $LINENO "configure"
5380 /* confdefs.h.  */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h.  */
5385 $ac_includes_default
5386 int
5387 main ()
5388 {
5389 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5390 test_array [0] = 0
5391
5392   ;
5393   return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398   (eval $ac_compile) 2>&5
5399   ac_status=$?
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); } &&
5402          { ac_try='test -s conftest.$ac_objext'
5403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404   (eval $ac_try) 2>&5
5405   ac_status=$?
5406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407   (exit $ac_status); }; }; then
5408   ac_hi=$ac_mid; break
5409 else
5410   echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5412
5413 ac_lo=`expr $ac_mid + 1`
5414                     if test $ac_lo -le $ac_mid; then
5415                       ac_lo= ac_hi=
5416                       break
5417                     fi
5418                     ac_mid=`expr 2 '*' $ac_mid + 1`
5419 fi
5420 rm -f conftest.$ac_objext conftest.$ac_ext
5421   done
5422 else
5423   echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5425
5426 cat >conftest.$ac_ext <<_ACEOF
5427 #line $LINENO "configure"
5428 /* confdefs.h.  */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h.  */
5433 $ac_includes_default
5434 int
5435 main ()
5436 {
5437 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5438 test_array [0] = 0
5439
5440   ;
5441   return 0;
5442 }
5443 _ACEOF
5444 rm -f conftest.$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446   (eval $ac_compile) 2>&5
5447   ac_status=$?
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); } &&
5450          { ac_try='test -s conftest.$ac_objext'
5451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452   (eval $ac_try) 2>&5
5453   ac_status=$?
5454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455   (exit $ac_status); }; }; then
5456   ac_hi=-1 ac_mid=-1
5457   while :; do
5458     cat >conftest.$ac_ext <<_ACEOF
5459 #line $LINENO "configure"
5460 /* confdefs.h.  */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h.  */
5465 $ac_includes_default
5466 int
5467 main ()
5468 {
5469 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5470 test_array [0] = 0
5471
5472   ;
5473   return 0;
5474 }
5475 _ACEOF
5476 rm -f conftest.$ac_objext
5477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5478   (eval $ac_compile) 2>&5
5479   ac_status=$?
5480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481   (exit $ac_status); } &&
5482          { ac_try='test -s conftest.$ac_objext'
5483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484   (eval $ac_try) 2>&5
5485   ac_status=$?
5486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487   (exit $ac_status); }; }; then
5488   ac_lo=$ac_mid; break
5489 else
5490   echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5492
5493 ac_hi=`expr '(' $ac_mid ')' - 1`
5494                        if test $ac_mid -le $ac_hi; then
5495                          ac_lo= ac_hi=
5496                          break
5497                        fi
5498                        ac_mid=`expr 2 '*' $ac_mid`
5499 fi
5500 rm -f conftest.$ac_objext conftest.$ac_ext
5501   done
5502 else
5503   echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506 ac_lo= ac_hi=
5507 fi
5508 rm -f conftest.$ac_objext conftest.$ac_ext
5509 fi
5510 rm -f conftest.$ac_objext conftest.$ac_ext
5511 # Binary search between lo and hi bounds.
5512 while test "x$ac_lo" != "x$ac_hi"; do
5513   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5514   cat >conftest.$ac_ext <<_ACEOF
5515 #line $LINENO "configure"
5516 /* confdefs.h.  */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h.  */
5521 $ac_includes_default
5522 int
5523 main ()
5524 {
5525 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5526 test_array [0] = 0
5527
5528   ;
5529   return 0;
5530 }
5531 _ACEOF
5532 rm -f conftest.$ac_objext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5534   (eval $ac_compile) 2>&5
5535   ac_status=$?
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); } &&
5538          { ac_try='test -s conftest.$ac_objext'
5539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540   (eval $ac_try) 2>&5
5541   ac_status=$?
5542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543   (exit $ac_status); }; }; then
5544   ac_hi=$ac_mid
5545 else
5546   echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5548
5549 ac_lo=`expr '(' $ac_mid ')' + 1`
5550 fi
5551 rm -f conftest.$ac_objext conftest.$ac_ext
5552 done
5553 case $ac_lo in
5554 ?*) ac_cv_sizeof_double=$ac_lo;;
5555 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5556 See \`config.log' for more details." >&5
5557 echo "$as_me: error: cannot compute sizeof (double), 77
5558 See \`config.log' for more details." >&2;}
5559    { (exit 1); exit 1; }; } ;;
5560 esac
5561 else
5562   if test "$cross_compiling" = yes; then
5563   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5564 See \`config.log' for more details." >&5
5565 echo "$as_me: error: cannot run test program while cross compiling
5566 See \`config.log' for more details." >&2;}
5567    { (exit 1); exit 1; }; }
5568 else
5569   cat >conftest.$ac_ext <<_ACEOF
5570 #line $LINENO "configure"
5571 /* confdefs.h.  */
5572 _ACEOF
5573 cat confdefs.h >>conftest.$ac_ext
5574 cat >>conftest.$ac_ext <<_ACEOF
5575 /* end confdefs.h.  */
5576 $ac_includes_default
5577 long longval () { return (long) (sizeof (double)); }
5578 unsigned long ulongval () { return (long) (sizeof (double)); }
5579 #include <stdio.h>
5580 #include <stdlib.h>
5581 int
5582 main ()
5583 {
5584
5585   FILE *f = fopen ("conftest.val", "w");
5586   if (! f)
5587     exit (1);
5588   if (((long) (sizeof (double))) < 0)
5589     {
5590       long i = longval ();
5591       if (i != ((long) (sizeof (double))))
5592         exit (1);
5593       fprintf (f, "%ld\n", i);
5594     }
5595   else
5596     {
5597       unsigned long i = ulongval ();
5598       if (i != ((long) (sizeof (double))))
5599         exit (1);
5600       fprintf (f, "%lu\n", i);
5601     }
5602   exit (ferror (f) || fclose (f) != 0);
5603
5604   ;
5605   return 0;
5606 }
5607 _ACEOF
5608 rm -f conftest$ac_exeext
5609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5610   (eval $ac_link) 2>&5
5611   ac_status=$?
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615   (eval $ac_try) 2>&5
5616   ac_status=$?
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); }; }; then
5619   ac_cv_sizeof_double=`cat conftest.val`
5620 else
5621   echo "$as_me: program exited with status $ac_status" >&5
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5624
5625 ( exit $ac_status )
5626 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5627 See \`config.log' for more details." >&5
5628 echo "$as_me: error: cannot compute sizeof (double), 77
5629 See \`config.log' for more details." >&2;}
5630    { (exit 1); exit 1; }; }
5631 fi
5632 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5633 fi
5634 fi
5635 rm -f conftest.val
5636 else
5637   ac_cv_sizeof_double=0
5638 fi
5639 fi
5640 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5641 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5642 cat >>confdefs.h <<_ACEOF
5643 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5644 _ACEOF
5645
5646
5647
5648
5649 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5650 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5651 if test "${ac_cv_lib_z_deflate+set}" = set; then
5652   echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654   ac_check_lib_save_LIBS=$LIBS
5655 LIBS="-lz  $LIBS"
5656 cat >conftest.$ac_ext <<_ACEOF
5657 #line $LINENO "configure"
5658 /* confdefs.h.  */
5659 _ACEOF
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h.  */
5663
5664 /* Override any gcc2 internal prototype to avoid an error.  */
5665 #ifdef __cplusplus
5666 extern "C"
5667 #endif
5668 /* We use char because int might match the return type of a gcc2
5669    builtin and then its argument prototype would still apply.  */
5670 char deflate ();
5671 int
5672 main ()
5673 {
5674 deflate ();
5675   ;
5676   return 0;
5677 }
5678 _ACEOF
5679 rm -f conftest.$ac_objext conftest$ac_exeext
5680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5681   (eval $ac_link) 2>&5
5682   ac_status=$?
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); } &&
5685          { ac_try='test -s conftest$ac_exeext'
5686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687   (eval $ac_try) 2>&5
5688   ac_status=$?
5689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690   (exit $ac_status); }; }; then
5691   ac_cv_lib_z_deflate=yes
5692 else
5693   echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5695
5696 ac_cv_lib_z_deflate=no
5697 fi
5698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5699 LIBS=$ac_check_lib_save_LIBS
5700 fi
5701 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5702 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5703 if test $ac_cv_lib_z_deflate = yes; then
5704    zlib="true"
5705 else
5706    zlib="false" ;  { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
5707 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5708 fi
5709
5710
5711 echo "$as_me:$LINENO: checking for sin in -lm" >&5
5712 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
5713 if test "${ac_cv_lib_m_sin+set}" = set; then
5714   echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716   ac_check_lib_save_LIBS=$LIBS
5717 LIBS="-lm  $LIBS"
5718 cat >conftest.$ac_ext <<_ACEOF
5719 #line $LINENO "configure"
5720 /* confdefs.h.  */
5721 _ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h.  */
5725
5726 /* Override any gcc2 internal prototype to avoid an error.  */
5727 #ifdef __cplusplus
5728 extern "C"
5729 #endif
5730 /* We use char because int might match the return type of a gcc2
5731    builtin and then its argument prototype would still apply.  */
5732 char sin ();
5733 int
5734 main ()
5735 {
5736 sin ();
5737   ;
5738   return 0;
5739 }
5740 _ACEOF
5741 rm -f conftest.$ac_objext conftest$ac_exeext
5742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5743   (eval $ac_link) 2>&5
5744   ac_status=$?
5745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746   (exit $ac_status); } &&
5747          { ac_try='test -s conftest$ac_exeext'
5748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749   (eval $ac_try) 2>&5
5750   ac_status=$?
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); }; }; then
5753   ac_cv_lib_m_sin=yes
5754 else
5755   echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5757
5758 ac_cv_lib_m_sin=no
5759 fi
5760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5761 LIBS=$ac_check_lib_save_LIBS
5762 fi
5763 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
5764 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
5765 if test $ac_cv_lib_m_sin = yes; then
5766   cat >>confdefs.h <<_ACEOF
5767 #define HAVE_LIBM 1
5768 _ACEOF
5769
5770   LIBS="-lm $LIBS"
5771
5772 fi
5773
5774 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
5775 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
5776 if test "${ac_cv_lib_curses_main+set}" = set; then
5777   echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779   ac_check_lib_save_LIBS=$LIBS
5780 LIBS="-lcurses  $LIBS"
5781 cat >conftest.$ac_ext <<_ACEOF
5782 #line $LINENO "configure"
5783 /* confdefs.h.  */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h.  */
5788
5789
5790 int
5791 main ()
5792 {
5793 main ();
5794   ;
5795   return 0;
5796 }
5797 _ACEOF
5798 rm -f conftest.$ac_objext conftest$ac_exeext
5799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5800   (eval $ac_link) 2>&5
5801   ac_status=$?
5802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803   (exit $ac_status); } &&
5804          { ac_try='test -s conftest$ac_exeext'
5805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806   (eval $ac_try) 2>&5
5807   ac_status=$?
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); }; }; then
5810   ac_cv_lib_curses_main=yes
5811 else
5812   echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5814
5815 ac_cv_lib_curses_main=no
5816 fi
5817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5818 LIBS=$ac_check_lib_save_LIBS
5819 fi
5820 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
5821 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
5822 if test $ac_cv_lib_curses_main = yes; then
5823   curses=true
5824 else
5825   curses=false
5826 fi
5827
5828 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
5829 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
5830 if test "${ac_cv_lib_ncurses_main+set}" = set; then
5831   echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833   ac_check_lib_save_LIBS=$LIBS
5834 LIBS="-lncurses  $LIBS"
5835 cat >conftest.$ac_ext <<_ACEOF
5836 #line $LINENO "configure"
5837 /* confdefs.h.  */
5838 _ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h.  */
5842
5843
5844 int
5845 main ()
5846 {
5847 main ();
5848   ;
5849   return 0;
5850 }
5851 _ACEOF
5852 rm -f conftest.$ac_objext conftest$ac_exeext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5854   (eval $ac_link) 2>&5
5855   ac_status=$?
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); } &&
5858          { ac_try='test -s conftest$ac_exeext'
5859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860   (eval $ac_try) 2>&5
5861   ac_status=$?
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); }; }; then
5864   ac_cv_lib_ncurses_main=yes
5865 else
5866   echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5868
5869 ac_cv_lib_ncurses_main=no
5870 fi
5871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5872 LIBS=$ac_check_lib_save_LIBS
5873 fi
5874 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
5875 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
5876 if test $ac_cv_lib_ncurses_main = yes; then
5877   ncurses=true
5878 else
5879   ncurses=false
5880 fi
5881
5882 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
5883 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
5884 if test "${ac_cv_lib_readline_main+set}" = set; then
5885   echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887   ac_check_lib_save_LIBS=$LIBS
5888 LIBS="-lreadline -lcurses $LIBS"
5889 cat >conftest.$ac_ext <<_ACEOF
5890 #line $LINENO "configure"
5891 /* confdefs.h.  */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h.  */
5896
5897
5898 int
5899 main ()
5900 {
5901 main ();
5902   ;
5903   return 0;
5904 }
5905 _ACEOF
5906 rm -f conftest.$ac_objext conftest$ac_exeext
5907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5908   (eval $ac_link) 2>&5
5909   ac_status=$?
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); } &&
5912          { ac_try='test -s conftest$ac_exeext'
5913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914   (eval $ac_try) 2>&5
5915   ac_status=$?
5916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917   (exit $ac_status); }; }; then
5918   ac_cv_lib_readline_main=yes
5919 else
5920   echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5922
5923 ac_cv_lib_readline_main=no
5924 fi
5925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5926 LIBS=$ac_check_lib_save_LIBS
5927 fi
5928 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
5929 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
5930 if test $ac_cv_lib_readline_main = yes; then
5931   readline=true;
5932
5933 cat >>confdefs.h <<\_ACEOF
5934 #define HAVE_READLINE 1
5935 _ACEOF
5936
5937 else
5938   readline=false
5939 fi
5940
5941 wxwin=false
5942 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
5943 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
5944 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
5945   echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947   ac_check_lib_save_LIBS=$LIBS
5948 LIBS="-lwx_gtk-2.4  $LIBS"
5949 cat >conftest.$ac_ext <<_ACEOF
5950 #line $LINENO "configure"
5951 /* confdefs.h.  */
5952 _ACEOF
5953 cat confdefs.h >>conftest.$ac_ext
5954 cat >>conftest.$ac_ext <<_ACEOF
5955 /* end confdefs.h.  */
5956
5957
5958 int
5959 main ()
5960 {
5961 main ();
5962   ;
5963   return 0;
5964 }
5965 _ACEOF
5966 rm -f conftest.$ac_objext conftest$ac_exeext
5967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5968   (eval $ac_link) 2>&5
5969   ac_status=$?
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); } &&
5972          { ac_try='test -s conftest$ac_exeext'
5973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974   (eval $ac_try) 2>&5
5975   ac_status=$?
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); }; }; then
5978   ac_cv_lib_wx_gtk_2_4_main=yes
5979 else
5980   echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5982
5983 ac_cv_lib_wx_gtk_2_4_main=no
5984 fi
5985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5986 LIBS=$ac_check_lib_save_LIBS
5987 fi
5988 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
5989 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
5990 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
5991   wxwin=true; wx_gtk=true;
5992 cat >>confdefs.h <<\_ACEOF
5993 #define HAVE_WXWINDOWS 1
5994 _ACEOF
5995
5996 fi
5997
5998 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
5999 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
6000 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
6001   echo $ECHO_N "(cached) $ECHO_C" >&6
6002 else
6003   ac_check_lib_save_LIBS=$LIBS
6004 LIBS="-lwx_mac-2.4  $LIBS"
6005 cat >conftest.$ac_ext <<_ACEOF
6006 #line $LINENO "configure"
6007 /* confdefs.h.  */
6008 _ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h.  */
6012
6013
6014 int
6015 main ()
6016 {
6017 main ();
6018   ;
6019   return 0;
6020 }
6021 _ACEOF
6022 rm -f conftest.$ac_objext conftest$ac_exeext
6023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6024   (eval $ac_link) 2>&5
6025   ac_status=$?
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); } &&
6028          { ac_try='test -s conftest$ac_exeext'
6029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030   (eval $ac_try) 2>&5
6031   ac_status=$?
6032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033   (exit $ac_status); }; }; then
6034   ac_cv_lib_wx_mac_2_4_main=yes
6035 else
6036   echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6038
6039 ac_cv_lib_wx_mac_2_4_main=no
6040 fi
6041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6042 LIBS=$ac_check_lib_save_LIBS
6043 fi
6044 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
6045 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
6046 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
6047   wxwin=true; wx_mac=true;
6048 cat >>confdefs.h <<\_ACEOF
6049 #define HAVE_WXWINDOWS 1
6050 _ACEOF
6051
6052 fi
6053
6054 echo "$as_me:$LINENO: checking for fftw_one in -lfftw" >&5
6055 echo $ECHO_N "checking for fftw_one in -lfftw... $ECHO_C" >&6
6056 if test "${ac_cv_lib_fftw_fftw_one+set}" = set; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059   ac_check_lib_save_LIBS=$LIBS
6060 LIBS="-lfftw  $LIBS"
6061 cat >conftest.$ac_ext <<_ACEOF
6062 #line $LINENO "configure"
6063 /* confdefs.h.  */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h.  */
6068
6069 /* Override any gcc2 internal prototype to avoid an error.  */
6070 #ifdef __cplusplus
6071 extern "C"
6072 #endif
6073 /* We use char because int might match the return type of a gcc2
6074    builtin and then its argument prototype would still apply.  */
6075 char fftw_one ();
6076 int
6077 main ()
6078 {
6079 fftw_one ();
6080   ;
6081   return 0;
6082 }
6083 _ACEOF
6084 rm -f conftest.$ac_objext conftest$ac_exeext
6085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6086   (eval $ac_link) 2>&5
6087   ac_status=$?
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); } &&
6090          { ac_try='test -s conftest$ac_exeext'
6091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092   (eval $ac_try) 2>&5
6093   ac_status=$?
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); }; }; then
6096   ac_cv_lib_fftw_fftw_one=yes
6097 else
6098   echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 ac_cv_lib_fftw_fftw_one=no
6102 fi
6103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6104 LIBS=$ac_check_lib_save_LIBS
6105 fi
6106 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_one" >&5
6107 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_one" >&6
6108 if test $ac_cv_lib_fftw_fftw_one = yes; then
6109   fftw=true;
6110 cat >>confdefs.h <<\_ACEOF
6111 #define HAVE_FFTW 1
6112 _ACEOF
6113
6114 else
6115   fftw=false
6116 fi
6117
6118 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6119 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6120 if test "${ac_cv_lib_GL_main+set}" = set; then
6121   echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123   ac_check_lib_save_LIBS=$LIBS
6124 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
6125 cat >conftest.$ac_ext <<_ACEOF
6126 #line $LINENO "configure"
6127 /* confdefs.h.  */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h.  */
6132
6133
6134 int
6135 main ()
6136 {
6137 main ();
6138   ;
6139   return 0;
6140 }
6141 _ACEOF
6142 rm -f conftest.$ac_objext conftest$ac_exeext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6144   (eval $ac_link) 2>&5
6145   ac_status=$?
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); } &&
6148          { ac_try='test -s conftest$ac_exeext'
6149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150   (eval $ac_try) 2>&5
6151   ac_status=$?
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); }; }; then
6154   ac_cv_lib_GL_main=yes
6155 else
6156   echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6158
6159 ac_cv_lib_GL_main=no
6160 fi
6161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6162 LIBS=$ac_check_lib_save_LIBS
6163 fi
6164 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6165 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6166 if test $ac_cv_lib_GL_main = yes; then
6167   libgl=true
6168 else
6169   libgl=false
6170 fi
6171
6172 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6173 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6174 if test "${ac_cv_lib_pthread_main+set}" = set; then
6175   echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177   ac_check_lib_save_LIBS=$LIBS
6178 LIBS="-lpthread  $LIBS"
6179 cat >conftest.$ac_ext <<_ACEOF
6180 #line $LINENO "configure"
6181 /* confdefs.h.  */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h.  */
6186
6187
6188 int
6189 main ()
6190 {
6191 main ();
6192   ;
6193   return 0;
6194 }
6195 _ACEOF
6196 rm -f conftest.$ac_objext conftest$ac_exeext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198   (eval $ac_link) 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); } &&
6202          { ac_try='test -s conftest$ac_exeext'
6203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204   (eval $ac_try) 2>&5
6205   ac_status=$?
6206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207   (exit $ac_status); }; }; then
6208   ac_cv_lib_pthread_main=yes
6209 else
6210   echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6212
6213 ac_cv_lib_pthread_main=no
6214 fi
6215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6216 LIBS=$ac_check_lib_save_LIBS
6217 fi
6218 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6219 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6220 if test $ac_cv_lib_pthread_main = yes; then
6221   pthread=true
6222 else
6223   pthread=false
6224 fi
6225
6226
6227 if test "$zlib" = "true" ; then
6228   echo "$as_me:$LINENO: checking for main in -lpng" >&5
6229 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6230 if test "${ac_cv_lib_png_main+set}" = set; then
6231   echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233   ac_check_lib_save_LIBS=$LIBS
6234 LIBS="-lpng -lz -lm $LIBS"
6235 cat >conftest.$ac_ext <<_ACEOF
6236 #line $LINENO "configure"
6237 /* confdefs.h.  */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h.  */
6242
6243
6244 int
6245 main ()
6246 {
6247 main ();
6248   ;
6249   return 0;
6250 }
6251 _ACEOF
6252 rm -f conftest.$ac_objext conftest$ac_exeext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6254   (eval $ac_link) 2>&5
6255   ac_status=$?
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); } &&
6258          { ac_try='test -s conftest$ac_exeext'
6259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260   (eval $ac_try) 2>&5
6261   ac_status=$?
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); }; }; then
6264   ac_cv_lib_png_main=yes
6265 else
6266   echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6268
6269 ac_cv_lib_png_main=no
6270 fi
6271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6272 LIBS=$ac_check_lib_save_LIBS
6273 fi
6274 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6275 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6276 if test $ac_cv_lib_png_main = yes; then
6277   png=true ;
6278 cat >>confdefs.h <<\_ACEOF
6279 #define HAVE_PNG 1
6280 _ACEOF
6281
6282 else
6283   png=false
6284 fi
6285
6286 fi
6287
6288 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6289 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6290 if test "${ac_cv_header_stdc+set}" = set; then
6291   echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293   cat >conftest.$ac_ext <<_ACEOF
6294 #line $LINENO "configure"
6295 /* confdefs.h.  */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h.  */
6300 #include <stdlib.h>
6301 #include <stdarg.h>
6302 #include <string.h>
6303 #include <float.h>
6304
6305 int
6306 main ()
6307 {
6308
6309   ;
6310   return 0;
6311 }
6312 _ACEOF
6313 rm -f conftest.$ac_objext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315   (eval $ac_compile) 2>&5
6316   ac_status=$?
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); } &&
6319          { ac_try='test -s conftest.$ac_objext'
6320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321   (eval $ac_try) 2>&5
6322   ac_status=$?
6323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324   (exit $ac_status); }; }; then
6325   ac_cv_header_stdc=yes
6326 else
6327   echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6329
6330 ac_cv_header_stdc=no
6331 fi
6332 rm -f conftest.$ac_objext conftest.$ac_ext
6333
6334 if test $ac_cv_header_stdc = yes; then
6335   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6336   cat >conftest.$ac_ext <<_ACEOF
6337 #line $LINENO "configure"
6338 /* confdefs.h.  */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h.  */
6343 #include <string.h>
6344
6345 _ACEOF
6346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347   $EGREP "memchr" >/dev/null 2>&1; then
6348   :
6349 else
6350   ac_cv_header_stdc=no
6351 fi
6352 rm -f conftest*
6353
6354 fi
6355
6356 if test $ac_cv_header_stdc = yes; then
6357   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6358   cat >conftest.$ac_ext <<_ACEOF
6359 #line $LINENO "configure"
6360 /* confdefs.h.  */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h.  */
6365 #include <stdlib.h>
6366
6367 _ACEOF
6368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6369   $EGREP "free" >/dev/null 2>&1; then
6370   :
6371 else
6372   ac_cv_header_stdc=no
6373 fi
6374 rm -f conftest*
6375
6376 fi
6377
6378 if test $ac_cv_header_stdc = yes; then
6379   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6380   if test "$cross_compiling" = yes; then
6381   :
6382 else
6383   cat >conftest.$ac_ext <<_ACEOF
6384 #line $LINENO "configure"
6385 /* confdefs.h.  */
6386 _ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h.  */
6390 #include <ctype.h>
6391 #if ((' ' & 0x0FF) == 0x020)
6392 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6393 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6394 #else
6395 # define ISLOWER(c) \
6396                    (('a' <= (c) && (c) <= 'i') \
6397                      || ('j' <= (c) && (c) <= 'r') \
6398                      || ('s' <= (c) && (c) <= 'z'))
6399 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6400 #endif
6401
6402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6403 int
6404 main ()
6405 {
6406   int i;
6407   for (i = 0; i < 256; i++)
6408     if (XOR (islower (i), ISLOWER (i))
6409         || toupper (i) != TOUPPER (i))
6410       exit(2);
6411   exit (0);
6412 }
6413 _ACEOF
6414 rm -f conftest$ac_exeext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6416   (eval $ac_link) 2>&5
6417   ac_status=$?
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421   (eval $ac_try) 2>&5
6422   ac_status=$?
6423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424   (exit $ac_status); }; }; then
6425   :
6426 else
6427   echo "$as_me: program exited with status $ac_status" >&5
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431 ( exit $ac_status )
6432 ac_cv_header_stdc=no
6433 fi
6434 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6435 fi
6436 fi
6437 fi
6438 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6439 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6440 if test $ac_cv_header_stdc = yes; then
6441
6442 cat >>confdefs.h <<\_ACEOF
6443 #define STDC_HEADERS 1
6444 _ACEOF
6445
6446 fi
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472 for ac_header in fcntl.h unistd.h getopt.h sys/fcntl.h setjmp.h stdarg.h stddef.h sys/types.h sys/stat.h string.h ctype.h math.h stdio.h netinet/in.h inttypes.h sys/param.h stdint.h stdlib.h assert.h sys/time.h sys/resource.h sys/time.h readline.h readline/readline.h
6473 do
6474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6476   echo "$as_me:$LINENO: checking for $ac_header" >&5
6477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6479   echo $ECHO_N "(cached) $ECHO_C" >&6
6480 fi
6481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6483 else
6484   # Is the header compilable?
6485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6487 cat >conftest.$ac_ext <<_ACEOF
6488 #line $LINENO "configure"
6489 /* confdefs.h.  */
6490 _ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h.  */
6494 $ac_includes_default
6495 #include <$ac_header>
6496 _ACEOF
6497 rm -f conftest.$ac_objext
6498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6499   (eval $ac_compile) 2>&5
6500   ac_status=$?
6501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502   (exit $ac_status); } &&
6503          { ac_try='test -s conftest.$ac_objext'
6504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505   (eval $ac_try) 2>&5
6506   ac_status=$?
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); }; }; then
6509   ac_header_compiler=yes
6510 else
6511   echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6513
6514 ac_header_compiler=no
6515 fi
6516 rm -f conftest.$ac_objext conftest.$ac_ext
6517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6518 echo "${ECHO_T}$ac_header_compiler" >&6
6519
6520 # Is the header present?
6521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6523 cat >conftest.$ac_ext <<_ACEOF
6524 #line $LINENO "configure"
6525 /* confdefs.h.  */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h.  */
6530 #include <$ac_header>
6531 _ACEOF
6532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6534   ac_status=$?
6535   grep -v '^ *+' conftest.er1 >conftest.err
6536   rm -f conftest.er1
6537   cat conftest.err >&5
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); } >/dev/null; then
6540   if test -s conftest.err; then
6541     ac_cpp_err=$ac_c_preproc_warn_flag
6542   else
6543     ac_cpp_err=
6544   fi
6545 else
6546   ac_cpp_err=yes
6547 fi
6548 if test -z "$ac_cpp_err"; then
6549   ac_header_preproc=yes
6550 else
6551   echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6553
6554   ac_header_preproc=no
6555 fi
6556 rm -f conftest.err conftest.$ac_ext
6557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6558 echo "${ECHO_T}$ac_header_preproc" >&6
6559
6560 # So?  What about this header?
6561 case $ac_header_compiler:$ac_header_preproc in
6562   yes:no )
6563     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6567     (
6568       cat <<\_ASBOX
6569 ## ------------------------------------ ##
6570 ## Report this to bug-autoconf@gnu.org. ##
6571 ## ------------------------------------ ##
6572 _ASBOX
6573     ) |
6574       sed "s/^/$as_me: WARNING:     /" >&2
6575     ;;
6576   no:yes )
6577     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6579     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6583     (
6584       cat <<\_ASBOX
6585 ## ------------------------------------ ##
6586 ## Report this to bug-autoconf@gnu.org. ##
6587 ## ------------------------------------ ##
6588 _ASBOX
6589     ) |
6590       sed "s/^/$as_me: WARNING:     /" >&2
6591     ;;
6592 esac
6593 echo "$as_me:$LINENO: checking for $ac_header" >&5
6594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   eval "$as_ac_Header=$ac_header_preproc"
6599 fi
6600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6602
6603 fi
6604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6605   cat >>confdefs.h <<_ACEOF
6606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6607 _ACEOF
6608
6609 fi
6610
6611 done
6612
6613
6614 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6615 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6616 if test "${ac_cv_c_const+set}" = set; then
6617   echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619   cat >conftest.$ac_ext <<_ACEOF
6620 #line $LINENO "configure"
6621 /* confdefs.h.  */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h.  */
6626
6627 int
6628 main ()
6629 {
6630 /* FIXME: Include the comments suggested by Paul. */
6631 #ifndef __cplusplus
6632   /* Ultrix mips cc rejects this.  */
6633   typedef int charset[2];
6634   const charset x;
6635   /* SunOS 4.1.1 cc rejects this.  */
6636   char const *const *ccp;
6637   char **p;
6638   /* NEC SVR4.0.2 mips cc rejects this.  */
6639   struct point {int x, y;};
6640   static struct point const zero = {0,0};
6641   /* AIX XL C 1.02.0.0 rejects this.
6642      It does not let you subtract one const X* pointer from another in
6643      an arm of an if-expression whose if-part is not a constant
6644      expression */
6645   const char *g = "string";
6646   ccp = &g + (g ? g-g : 0);
6647   /* HPUX 7.0 cc rejects these. */
6648   ++ccp;
6649   p = (char**) ccp;
6650   ccp = (char const *const *) p;
6651   { /* SCO 3.2v4 cc rejects this.  */
6652     char *t;
6653     char const *s = 0 ? (char *) 0 : (char const *) 0;
6654
6655     *t++ = 0;
6656   }
6657   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6658     int x[] = {25, 17};
6659     const int *foo = &x[0];
6660     ++foo;
6661   }
6662   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6663     typedef const int *iptr;
6664     iptr p = 0;
6665     ++p;
6666   }
6667   { /* AIX XL C 1.02.0.0 rejects this saying
6668        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6669     struct s { int j; const int *ap[3]; };
6670     struct s *b; b->j = 5;
6671   }
6672   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6673     const int foo = 10;
6674   }
6675 #endif
6676
6677   ;
6678   return 0;
6679 }
6680 _ACEOF
6681 rm -f conftest.$ac_objext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6683   (eval $ac_compile) 2>&5
6684   ac_status=$?
6685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686   (exit $ac_status); } &&
6687          { ac_try='test -s conftest.$ac_objext'
6688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689   (eval $ac_try) 2>&5
6690   ac_status=$?
6691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692   (exit $ac_status); }; }; then
6693   ac_cv_c_const=yes
6694 else
6695   echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6697
6698 ac_cv_c_const=no
6699 fi
6700 rm -f conftest.$ac_objext conftest.$ac_ext
6701 fi
6702 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6703 echo "${ECHO_T}$ac_cv_c_const" >&6
6704 if test $ac_cv_c_const = no; then
6705
6706 cat >>confdefs.h <<\_ACEOF
6707 #define const
6708 _ACEOF
6709
6710 fi
6711
6712 echo "$as_me:$LINENO: checking for off_t" >&5
6713 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6714 if test "${ac_cv_type_off_t+set}" = set; then
6715   echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717   cat >conftest.$ac_ext <<_ACEOF
6718 #line $LINENO "configure"
6719 /* confdefs.h.  */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h.  */
6724 $ac_includes_default
6725 int
6726 main ()
6727 {
6728 if ((off_t *) 0)
6729   return 0;
6730 if (sizeof (off_t))
6731   return 0;
6732   ;
6733   return 0;
6734 }
6735 _ACEOF
6736 rm -f conftest.$ac_objext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6738   (eval $ac_compile) 2>&5
6739   ac_status=$?
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); } &&
6742          { ac_try='test -s conftest.$ac_objext'
6743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744   (eval $ac_try) 2>&5
6745   ac_status=$?
6746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747   (exit $ac_status); }; }; then
6748   ac_cv_type_off_t=yes
6749 else
6750   echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6752
6753 ac_cv_type_off_t=no
6754 fi
6755 rm -f conftest.$ac_objext conftest.$ac_ext
6756 fi
6757 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6758 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6759 if test $ac_cv_type_off_t = yes; then
6760   :
6761 else
6762
6763 cat >>confdefs.h <<_ACEOF
6764 #define off_t long
6765 _ACEOF
6766
6767 fi
6768
6769 echo "$as_me:$LINENO: checking for size_t" >&5
6770 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6771 if test "${ac_cv_type_size_t+set}" = set; then
6772   echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774   cat >conftest.$ac_ext <<_ACEOF
6775 #line $LINENO "configure"
6776 /* confdefs.h.  */
6777 _ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h.  */
6781 $ac_includes_default
6782 int
6783 main ()
6784 {
6785 if ((size_t *) 0)
6786   return 0;
6787 if (sizeof (size_t))
6788   return 0;
6789   ;
6790   return 0;
6791 }
6792 _ACEOF
6793 rm -f conftest.$ac_objext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6795   (eval $ac_compile) 2>&5
6796   ac_status=$?
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); } &&
6799          { ac_try='test -s conftest.$ac_objext'
6800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801   (eval $ac_try) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); }; }; then
6805   ac_cv_type_size_t=yes
6806 else
6807   echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6809
6810 ac_cv_type_size_t=no
6811 fi
6812 rm -f conftest.$ac_objext conftest.$ac_ext
6813 fi
6814 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6815 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6816 if test $ac_cv_type_size_t = yes; then
6817   :
6818 else
6819
6820 cat >>confdefs.h <<_ACEOF
6821 #define size_t unsigned
6822 _ACEOF
6823
6824 fi
6825
6826 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6827 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6828 if test "${ac_cv_struct_tm+set}" = set; then
6829   echo $ECHO_N "(cached) $ECHO_C" >&6
6830 else
6831   cat >conftest.$ac_ext <<_ACEOF
6832 #line $LINENO "configure"
6833 /* confdefs.h.  */
6834 _ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h.  */
6838 #include <sys/types.h>
6839 #include <time.h>
6840
6841 int
6842 main ()
6843 {
6844 struct tm *tp; tp->tm_sec;
6845   ;
6846   return 0;
6847 }
6848 _ACEOF
6849 rm -f conftest.$ac_objext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6851   (eval $ac_compile) 2>&5
6852   ac_status=$?
6853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854   (exit $ac_status); } &&
6855          { ac_try='test -s conftest.$ac_objext'
6856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857   (eval $ac_try) 2>&5
6858   ac_status=$?
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); }; }; then
6861   ac_cv_struct_tm=time.h
6862 else
6863   echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6865
6866 ac_cv_struct_tm=sys/time.h
6867 fi
6868 rm -f conftest.$ac_objext conftest.$ac_ext
6869 fi
6870 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6871 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6872 if test $ac_cv_struct_tm = sys/time.h; then
6873
6874 cat >>confdefs.h <<\_ACEOF
6875 #define TM_IN_SYS_TIME 1
6876 _ACEOF
6877
6878 fi
6879
6880
6881
6882 for ac_func in vprintf
6883 do
6884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6885 echo "$as_me:$LINENO: checking for $ac_func" >&5
6886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6887 if eval "test \"\${$as_ac_var+set}\" = set"; then
6888   echo $ECHO_N "(cached) $ECHO_C" >&6
6889 else
6890   cat >conftest.$ac_ext <<_ACEOF
6891 #line $LINENO "configure"
6892 /* confdefs.h.  */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h.  */
6897 /* System header to define __stub macros and hopefully few prototypes,
6898     which can conflict with char $ac_func (); below.
6899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6900     <limits.h> exists even on freestanding compilers.  */
6901 #ifdef __STDC__
6902 # include <limits.h>
6903 #else
6904 # include <assert.h>
6905 #endif
6906 /* Override any gcc2 internal prototype to avoid an error.  */
6907 #ifdef __cplusplus
6908 extern "C"
6909 {
6910 #endif
6911 /* We use char because int might match the return type of a gcc2
6912    builtin and then its argument prototype would still apply.  */
6913 char $ac_func ();
6914 /* The GNU C library defines this for functions which it implements
6915     to always fail with ENOSYS.  Some functions are actually named
6916     something starting with __ and the normal name is an alias.  */
6917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6918 choke me
6919 #else
6920 char (*f) () = $ac_func;
6921 #endif
6922 #ifdef __cplusplus
6923 }
6924 #endif
6925
6926 int
6927 main ()
6928 {
6929 return f != $ac_func;
6930   ;
6931   return 0;
6932 }
6933 _ACEOF
6934 rm -f conftest.$ac_objext conftest$ac_exeext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936   (eval $ac_link) 2>&5
6937   ac_status=$?
6938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939   (exit $ac_status); } &&
6940          { ac_try='test -s conftest$ac_exeext'
6941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942   (eval $ac_try) 2>&5
6943   ac_status=$?
6944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945   (exit $ac_status); }; }; then
6946   eval "$as_ac_var=yes"
6947 else
6948   echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6950
6951 eval "$as_ac_var=no"
6952 fi
6953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6954 fi
6955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6957 if test `eval echo '${'$as_ac_var'}'` = yes; then
6958   cat >>confdefs.h <<_ACEOF
6959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6960 _ACEOF
6961
6962 echo "$as_me:$LINENO: checking for _doprnt" >&5
6963 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6964 if test "${ac_cv_func__doprnt+set}" = set; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967   cat >conftest.$ac_ext <<_ACEOF
6968 #line $LINENO "configure"
6969 /* confdefs.h.  */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h.  */
6974 /* System header to define __stub macros and hopefully few prototypes,
6975     which can conflict with char _doprnt (); below.
6976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6977     <limits.h> exists even on freestanding compilers.  */
6978 #ifdef __STDC__
6979 # include <limits.h>
6980 #else
6981 # include <assert.h>
6982 #endif
6983 /* Override any gcc2 internal prototype to avoid an error.  */
6984 #ifdef __cplusplus
6985 extern "C"
6986 {
6987 #endif
6988 /* We use char because int might match the return type of a gcc2
6989    builtin and then its argument prototype would still apply.  */
6990 char _doprnt ();
6991 /* The GNU C library defines this for functions which it implements
6992     to always fail with ENOSYS.  Some functions are actually named
6993     something starting with __ and the normal name is an alias.  */
6994 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6995 choke me
6996 #else
6997 char (*f) () = _doprnt;
6998 #endif
6999 #ifdef __cplusplus
7000 }
7001 #endif
7002
7003 int
7004 main ()
7005 {
7006 return f != _doprnt;
7007   ;
7008   return 0;
7009 }
7010 _ACEOF
7011 rm -f conftest.$ac_objext conftest$ac_exeext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013   (eval $ac_link) 2>&5
7014   ac_status=$?
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); } &&
7017          { ac_try='test -s conftest$ac_exeext'
7018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019   (eval $ac_try) 2>&5
7020   ac_status=$?
7021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022   (exit $ac_status); }; }; then
7023   ac_cv_func__doprnt=yes
7024 else
7025   echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7027
7028 ac_cv_func__doprnt=no
7029 fi
7030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7031 fi
7032 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7033 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7034 if test $ac_cv_func__doprnt = yes; then
7035
7036 cat >>confdefs.h <<\_ACEOF
7037 #define HAVE_DOPRNT 1
7038 _ACEOF
7039
7040 fi
7041
7042 fi
7043 done
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
7054 do
7055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7056 echo "$as_me:$LINENO: checking for $ac_func" >&5
7057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7058 if eval "test \"\${$as_ac_var+set}\" = set"; then
7059   echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061   cat >conftest.$ac_ext <<_ACEOF
7062 #line $LINENO "configure"
7063 /* confdefs.h.  */
7064 _ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h.  */
7068 /* System header to define __stub macros and hopefully few prototypes,
7069     which can conflict with char $ac_func (); below.
7070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7071     <limits.h> exists even on freestanding compilers.  */
7072 #ifdef __STDC__
7073 # include <limits.h>
7074 #else
7075 # include <assert.h>
7076 #endif
7077 /* Override any gcc2 internal prototype to avoid an error.  */
7078 #ifdef __cplusplus
7079 extern "C"
7080 {
7081 #endif
7082 /* We use char because int might match the return type of a gcc2
7083    builtin and then its argument prototype would still apply.  */
7084 char $ac_func ();
7085 /* The GNU C library defines this for functions which it implements
7086     to always fail with ENOSYS.  Some functions are actually named
7087     something starting with __ and the normal name is an alias.  */
7088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7089 choke me
7090 #else
7091 char (*f) () = $ac_func;
7092 #endif
7093 #ifdef __cplusplus
7094 }
7095 #endif
7096
7097 int
7098 main ()
7099 {
7100 return f != $ac_func;
7101   ;
7102   return 0;
7103 }
7104 _ACEOF
7105 rm -f conftest.$ac_objext conftest$ac_exeext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7107   (eval $ac_link) 2>&5
7108   ac_status=$?
7109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110   (exit $ac_status); } &&
7111          { ac_try='test -s conftest$ac_exeext'
7112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113   (eval $ac_try) 2>&5
7114   ac_status=$?
7115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116   (exit $ac_status); }; }; then
7117   eval "$as_ac_var=yes"
7118 else
7119   echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7121
7122 eval "$as_ac_var=no"
7123 fi
7124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7125 fi
7126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7128 if test `eval echo '${'$as_ac_var'}'` = yes; then
7129   cat >>confdefs.h <<_ACEOF
7130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7131 _ACEOF
7132
7133 fi
7134 done
7135
7136 echo "$as_me:$LINENO: checking for basename" >&5
7137 echo $ECHO_N "checking for basename... $ECHO_C" >&6
7138 if test "${ac_cv_func_basename+set}" = set; then
7139   echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141   cat >conftest.$ac_ext <<_ACEOF
7142 #line $LINENO "configure"
7143 /* confdefs.h.  */
7144 _ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h.  */
7148 /* System header to define __stub macros and hopefully few prototypes,
7149     which can conflict with char basename (); below.
7150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7151     <limits.h> exists even on freestanding compilers.  */
7152 #ifdef __STDC__
7153 # include <limits.h>
7154 #else
7155 # include <assert.h>
7156 #endif
7157 /* Override any gcc2 internal prototype to avoid an error.  */
7158 #ifdef __cplusplus
7159 extern "C"
7160 {
7161 #endif
7162 /* We use char because int might match the return type of a gcc2
7163    builtin and then its argument prototype would still apply.  */
7164 char basename ();
7165 /* The GNU C library defines this for functions which it implements
7166     to always fail with ENOSYS.  Some functions are actually named
7167     something starting with __ and the normal name is an alias.  */
7168 #if defined (__stub_basename) || defined (__stub___basename)
7169 choke me
7170 #else
7171 char (*f) () = basename;
7172 #endif
7173 #ifdef __cplusplus
7174 }
7175 #endif
7176
7177 int
7178 main ()
7179 {
7180 return f != basename;
7181   ;
7182   return 0;
7183 }
7184 _ACEOF
7185 rm -f conftest.$ac_objext conftest$ac_exeext
7186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7187   (eval $ac_link) 2>&5
7188   ac_status=$?
7189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190   (exit $ac_status); } &&
7191          { ac_try='test -s conftest$ac_exeext'
7192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193   (eval $ac_try) 2>&5
7194   ac_status=$?
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); }; }; then
7197   ac_cv_func_basename=yes
7198 else
7199   echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7201
7202 ac_cv_func_basename=no
7203 fi
7204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7205 fi
7206 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
7207 echo "${ECHO_T}$ac_cv_func_basename" >&6
7208
7209 echo "$as_me:$LINENO: checking for setjmp" >&5
7210 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
7211 if test "${ac_cv_func_setjmp+set}" = set; then
7212   echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214   cat >conftest.$ac_ext <<_ACEOF
7215 #line $LINENO "configure"
7216 /* confdefs.h.  */
7217 _ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h.  */
7221 /* System header to define __stub macros and hopefully few prototypes,
7222     which can conflict with char setjmp (); below.
7223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7224     <limits.h> exists even on freestanding compilers.  */
7225 #ifdef __STDC__
7226 # include <limits.h>
7227 #else
7228 # include <assert.h>
7229 #endif
7230 /* Override any gcc2 internal prototype to avoid an error.  */
7231 #ifdef __cplusplus
7232 extern "C"
7233 {
7234 #endif
7235 /* We use char because int might match the return type of a gcc2
7236    builtin and then its argument prototype would still apply.  */
7237 char setjmp ();
7238 /* The GNU C library defines this for functions which it implements
7239     to always fail with ENOSYS.  Some functions are actually named
7240     something starting with __ and the normal name is an alias.  */
7241 #if defined (__stub_setjmp) || defined (__stub___setjmp)
7242 choke me
7243 #else
7244 char (*f) () = setjmp;
7245 #endif
7246 #ifdef __cplusplus
7247 }
7248 #endif
7249
7250 int
7251 main ()
7252 {
7253 return f != setjmp;
7254   ;
7255   return 0;
7256 }
7257 _ACEOF
7258 rm -f conftest.$ac_objext conftest$ac_exeext
7259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7260   (eval $ac_link) 2>&5
7261   ac_status=$?
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); } &&
7264          { ac_try='test -s conftest$ac_exeext'
7265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266   (eval $ac_try) 2>&5
7267   ac_status=$?
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); }; }; then
7270   ac_cv_func_setjmp=yes
7271 else
7272   echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7274
7275 ac_cv_func_setjmp=no
7276 fi
7277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7278 fi
7279 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
7280 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
7281
7282 echo "$as_me:$LINENO: checking for setpriority" >&5
7283 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
7284 if test "${ac_cv_func_setpriority+set}" = set; then
7285   echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287   cat >conftest.$ac_ext <<_ACEOF
7288 #line $LINENO "configure"
7289 /* confdefs.h.  */
7290 _ACEOF
7291 cat confdefs.h >>conftest.$ac_ext
7292 cat >>conftest.$ac_ext <<_ACEOF
7293 /* end confdefs.h.  */
7294 /* System header to define __stub macros and hopefully few prototypes,
7295     which can conflict with char setpriority (); below.
7296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7297     <limits.h> exists even on freestanding compilers.  */
7298 #ifdef __STDC__
7299 # include <limits.h>
7300 #else
7301 # include <assert.h>
7302 #endif
7303 /* Override any gcc2 internal prototype to avoid an error.  */
7304 #ifdef __cplusplus
7305 extern "C"
7306 {
7307 #endif
7308 /* We use char because int might match the return type of a gcc2
7309    builtin and then its argument prototype would still apply.  */
7310 char setpriority ();
7311 /* The GNU C library defines this for functions which it implements
7312     to always fail with ENOSYS.  Some functions are actually named
7313     something starting with __ and the normal name is an alias.  */
7314 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7315 choke me
7316 #else
7317 char (*f) () = setpriority;
7318 #endif
7319 #ifdef __cplusplus
7320 }
7321 #endif
7322
7323 int
7324 main ()
7325 {
7326 return f != setpriority;
7327   ;
7328   return 0;
7329 }
7330 _ACEOF
7331 rm -f conftest.$ac_objext conftest$ac_exeext
7332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7333   (eval $ac_link) 2>&5
7334   ac_status=$?
7335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   (exit $ac_status); } &&
7337          { ac_try='test -s conftest$ac_exeext'
7338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339   (eval $ac_try) 2>&5
7340   ac_status=$?
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); }; }; then
7343   ac_cv_func_setpriority=yes
7344 else
7345   echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7347
7348 ac_cv_func_setpriority=no
7349 fi
7350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7351 fi
7352 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7353 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7354
7355 echo "$as_me:$LINENO: checking for time" >&5
7356 echo $ECHO_N "checking for time... $ECHO_C" >&6
7357 if test "${ac_cv_func_time+set}" = set; then
7358   echo $ECHO_N "(cached) $ECHO_C" >&6
7359 else
7360   cat >conftest.$ac_ext <<_ACEOF
7361 #line $LINENO "configure"
7362 /* confdefs.h.  */
7363 _ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h.  */
7367 /* System header to define __stub macros and hopefully few prototypes,
7368     which can conflict with char time (); below.
7369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7370     <limits.h> exists even on freestanding compilers.  */
7371 #ifdef __STDC__
7372 # include <limits.h>
7373 #else
7374 # include <assert.h>
7375 #endif
7376 /* Override any gcc2 internal prototype to avoid an error.  */
7377 #ifdef __cplusplus
7378 extern "C"
7379 {
7380 #endif
7381 /* We use char because int might match the return type of a gcc2
7382    builtin and then its argument prototype would still apply.  */
7383 char time ();
7384 /* The GNU C library defines this for functions which it implements
7385     to always fail with ENOSYS.  Some functions are actually named
7386     something starting with __ and the normal name is an alias.  */
7387 #if defined (__stub_time) || defined (__stub___time)
7388 choke me
7389 #else
7390 char (*f) () = time;
7391 #endif
7392 #ifdef __cplusplus
7393 }
7394 #endif
7395
7396 int
7397 main ()
7398 {
7399 return f != time;
7400   ;
7401   return 0;
7402 }
7403 _ACEOF
7404 rm -f conftest.$ac_objext conftest$ac_exeext
7405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7406   (eval $ac_link) 2>&5
7407   ac_status=$?
7408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409   (exit $ac_status); } &&
7410          { ac_try='test -s conftest$ac_exeext'
7411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412   (eval $ac_try) 2>&5
7413   ac_status=$?
7414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415   (exit $ac_status); }; }; then
7416   ac_cv_func_time=yes
7417 else
7418   echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7420
7421 ac_cv_func_time=no
7422 fi
7423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7424 fi
7425 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7426 echo "${ECHO_T}$ac_cv_func_time" >&6
7427
7428 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7429 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7430 if test "${ac_cv_func_gettimeofday+set}" = set; then
7431   echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433   cat >conftest.$ac_ext <<_ACEOF
7434 #line $LINENO "configure"
7435 /* confdefs.h.  */
7436 _ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h.  */
7440 /* System header to define __stub macros and hopefully few prototypes,
7441     which can conflict with char gettimeofday (); below.
7442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7443     <limits.h> exists even on freestanding compilers.  */
7444 #ifdef __STDC__
7445 # include <limits.h>
7446 #else
7447 # include <assert.h>
7448 #endif
7449 /* Override any gcc2 internal prototype to avoid an error.  */
7450 #ifdef __cplusplus
7451 extern "C"
7452 {
7453 #endif
7454 /* We use char because int might match the return type of a gcc2
7455    builtin and then its argument prototype would still apply.  */
7456 char gettimeofday ();
7457 /* The GNU C library defines this for functions which it implements
7458     to always fail with ENOSYS.  Some functions are actually named
7459     something starting with __ and the normal name is an alias.  */
7460 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7461 choke me
7462 #else
7463 char (*f) () = gettimeofday;
7464 #endif
7465 #ifdef __cplusplus
7466 }
7467 #endif
7468
7469 int
7470 main ()
7471 {
7472 return f != gettimeofday;
7473   ;
7474   return 0;
7475 }
7476 _ACEOF
7477 rm -f conftest.$ac_objext conftest$ac_exeext
7478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479   (eval $ac_link) 2>&5
7480   ac_status=$?
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); } &&
7483          { ac_try='test -s conftest$ac_exeext'
7484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485   (eval $ac_try) 2>&5
7486   ac_status=$?
7487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488   (exit $ac_status); }; }; then
7489   ac_cv_func_gettimeofday=yes
7490 else
7491   echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7493
7494 ac_cv_func_gettimeofday=no
7495 fi
7496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7497 fi
7498 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7499 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7500
7501 echo "$as_me:$LINENO: checking for getopt" >&5
7502 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
7503 if test "${ac_cv_func_getopt+set}" = set; then
7504   echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506   cat >conftest.$ac_ext <<_ACEOF
7507 #line $LINENO "configure"
7508 /* confdefs.h.  */
7509 _ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h.  */
7513 /* System header to define __stub macros and hopefully few prototypes,
7514     which can conflict with char getopt (); below.
7515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7516     <limits.h> exists even on freestanding compilers.  */
7517 #ifdef __STDC__
7518 # include <limits.h>
7519 #else
7520 # include <assert.h>
7521 #endif
7522 /* Override any gcc2 internal prototype to avoid an error.  */
7523 #ifdef __cplusplus
7524 extern "C"
7525 {
7526 #endif
7527 /* We use char because int might match the return type of a gcc2
7528    builtin and then its argument prototype would still apply.  */
7529 char getopt ();
7530 /* The GNU C library defines this for functions which it implements
7531     to always fail with ENOSYS.  Some functions are actually named
7532     something starting with __ and the normal name is an alias.  */
7533 #if defined (__stub_getopt) || defined (__stub___getopt)
7534 choke me
7535 #else
7536 char (*f) () = getopt;
7537 #endif
7538 #ifdef __cplusplus
7539 }
7540 #endif
7541
7542 int
7543 main ()
7544 {
7545 return f != getopt;
7546   ;
7547   return 0;
7548 }
7549 _ACEOF
7550 rm -f conftest.$ac_objext conftest$ac_exeext
7551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7552   (eval $ac_link) 2>&5
7553   ac_status=$?
7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); } &&
7556          { ac_try='test -s conftest$ac_exeext'
7557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558   (eval $ac_try) 2>&5
7559   ac_status=$?
7560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561   (exit $ac_status); }; }; then
7562   ac_cv_func_getopt=yes
7563 else
7564   echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7566
7567 ac_cv_func_getopt=no
7568 fi
7569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7570 fi
7571 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
7572 echo "${ECHO_T}$ac_cv_func_getopt" >&6
7573 if test $ac_cv_func_getopt = yes; then
7574    getopt=true
7575 else
7576    getopt=false
7577 fi
7578
7579
7580 if test "${OSTYPE}" = "cygwin" ; then
7581   getopt_long=false
7582 else
7583   echo "$as_me:$LINENO: checking for getopt_long" >&5
7584 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7585 if test "${ac_cv_func_getopt_long+set}" = set; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588   cat >conftest.$ac_ext <<_ACEOF
7589 #line $LINENO "configure"
7590 /* confdefs.h.  */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h.  */
7595 /* System header to define __stub macros and hopefully few prototypes,
7596     which can conflict with char getopt_long (); below.
7597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7598     <limits.h> exists even on freestanding compilers.  */
7599 #ifdef __STDC__
7600 # include <limits.h>
7601 #else
7602 # include <assert.h>
7603 #endif
7604 /* Override any gcc2 internal prototype to avoid an error.  */
7605 #ifdef __cplusplus
7606 extern "C"
7607 {
7608 #endif
7609 /* We use char because int might match the return type of a gcc2
7610    builtin and then its argument prototype would still apply.  */
7611 char getopt_long ();
7612 /* The GNU C library defines this for functions which it implements
7613     to always fail with ENOSYS.  Some functions are actually named
7614     something starting with __ and the normal name is an alias.  */
7615 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
7616 choke me
7617 #else
7618 char (*f) () = getopt_long;
7619 #endif
7620 #ifdef __cplusplus
7621 }
7622 #endif
7623
7624 int
7625 main ()
7626 {
7627 return f != getopt_long;
7628   ;
7629   return 0;
7630 }
7631 _ACEOF
7632 rm -f conftest.$ac_objext conftest$ac_exeext
7633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7634   (eval $ac_link) 2>&5
7635   ac_status=$?
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); } &&
7638          { ac_try='test -s conftest$ac_exeext'
7639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640   (eval $ac_try) 2>&5
7641   ac_status=$?
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); }; }; then
7644   ac_cv_func_getopt_long=yes
7645 else
7646   echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7648
7649 ac_cv_func_getopt_long=no
7650 fi
7651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7652 fi
7653 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
7654 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
7655 if test $ac_cv_func_getopt_long = yes; then
7656    getopt_long=true
7657 else
7658    getopt_long=false
7659 fi
7660
7661 fi
7662
7663 if test "${getopt_long}" = "false" ; then
7664   my_includes="$my_includes -I../getopt"
7665
7666 cat >>confdefs.h <<\_ACEOF
7667 #define HAVE_GETOPT_LONG 1
7668 _ACEOF
7669
7670   ctlibs_base="$ctlibs_base -lgetopt"
7671   LDFLAGS="$LDFLAGS -L../getopt"
7672
7673
7674 if test 1==1; then
7675   INCLUDED_GETOPT_LONG_TRUE=
7676   INCLUDED_GETOPT_LONG_FALSE='#'
7677 else
7678   INCLUDED_GETOPT_LONG_TRUE='#'
7679   INCLUDED_GETOPT_LONG_FALSE=
7680 fi
7681 fi
7682
7683 if test "${readline}" = "true" ; then
7684   ctlibs_base="$ctlibs_base -lreadline"
7685   if test "${ncurses}" = "true"; then
7686     ctlibs_base="$ctlibs_base -lncurses"
7687   elif test "${curses}" = "true"; then
7688     ctlibs_base="$ctlibs_base -lcurses"
7689   fi
7690 fi
7691
7692 echo "$as_me:$LINENO: checking debug" >&5
7693 echo $ECHO_N "checking debug... $ECHO_C" >&6
7694 # Check whether --enable-debug or --disable-debug was given.
7695 if test "${enable_debug+set}" = set; then
7696   enableval="$enable_debug"
7697   case "${enableval}" in
7698   yes) debug=true
7699        echo "$as_me:$LINENO: result: yes" >&5
7700 echo "${ECHO_T}yes" >&6
7701        ;;
7702   no)  debug=false
7703        echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6
7705        ;;
7706   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
7707 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
7708        ;;
7709 esac
7710 else
7711   debug=false; echo "$as_me:$LINENO: result: no" >&5
7712 echo "${ECHO_T}no" >&6
7713 fi;
7714
7715
7716 if test "$debug" = "true"; then
7717   DEBUG_TRUE=
7718   DEBUG_FALSE='#'
7719 else
7720   DEBUG_TRUE='#'
7721   DEBUG_FALSE=
7722 fi
7723
7724 if test "$datadir" != "" ; then
7725   CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
7726 fi
7727
7728 if test "$debug" = "true" ; then
7729   CFLAGS="$CFLAGS -g -DDEBUG"
7730
7731 cat >>confdefs.h <<\_ACEOF
7732 #define DEBUG 1
7733 _ACEOF
7734
7735 else
7736   CFLAGS="$CFLAGS -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops"
7737
7738 cat >>confdefs.h <<\_ACEOF
7739 #define NDEBUG 1
7740 _ACEOF
7741
7742 fi
7743
7744 if test "${pthread}" = "true" ; then
7745
7746 cat >>confdefs.h <<\_ACEOF
7747 #define HAVE_WXTHREADS 1
7748 _ACEOF
7749
7750 fi
7751
7752 echo "$as_me:$LINENO: checking sstream" >&5
7753 echo $ECHO_N "checking sstream... $ECHO_C" >&6
7754  if  test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
7755      test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
7756      test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
7757
7758 cat >>confdefs.h <<\_ACEOF
7759 #define HAVE_SSTREAM 1
7760 _ACEOF
7761
7762    echo "$as_me:$LINENO: result: yes" >&5
7763 echo "${ECHO_T}yes" >&6
7764   else
7765    echo "$as_me:$LINENO: result: no" >&5
7766 echo "${ECHO_T}no" >&6
7767  fi
7768
7769
7770 CFLAGS="$CFLAGS -Wall"
7771 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
7772 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
7773 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
7774 if test "${enable_verbose_warnings+set}" = set; then
7775   enableval="$enable_verbose_warnings"
7776    case "$enableval" in
7777   yes)
7778     echo "$as_me:$LINENO: result: yes" >&5
7779 echo "${ECHO_T}yes" >&6
7780     CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
7781     ;;
7782   *)
7783     echo "$as_me:$LINENO: result: no" >&5
7784 echo "${ECHO_T}no" >&6
7785     ;;
7786   esac
7787 else
7788   echo "$as_me:$LINENO: result: no" >&5
7789 echo "${ECHO_T}no" >&6
7790
7791 fi;
7792
7793 echo "$as_me:$LINENO: checking static executables" >&5
7794 echo $ECHO_N "checking static executables... $ECHO_C" >&6
7795 # Check whether --enable-static or --disable-static was given.
7796 if test "${enable_static+set}" = set; then
7797   enableval="$enable_static"
7798    case "$enableval" in
7799   yes)
7800     echo "$as_me:$LINENO: result: yes" >&5
7801 echo "${ECHO_T}yes" >&6
7802     CFLAGS="$CFLAGS --static"
7803     ;;
7804   *)
7805     echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6
7807     ;;
7808   esac
7809 else
7810   echo "$as_me:$LINENO: result: no" >&5
7811 echo "${ECHO_T}no" >&6
7812
7813 fi;
7814
7815
7816 # Check whether --with-lam or --without-lam was given.
7817 if test "${with_lam+set}" = set; then
7818   withval="$with_lam"
7819       if test "$withval" != "no" ; then
7820          trylamdir=$withval
7821      fi
7822
7823 fi;
7824
7825 if test "$withval" != "no" ; then
7826   if test "$prefix" != "NONE" ; then
7827      trylamdir="$trylamdir $prefix"
7828   fi
7829
7830   echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
7831 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
7832   for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
7833     if test -x "$testlamdir/bin/hcp" ; then
7834       if test "$testlamdir" != "/usr"; then
7835         LDFLAGS="$LDFLAGS -L$testlamdir/lib"
7836         CFLAGS="$CFLAGS -I$testlamdir/include"
7837       fi
7838       CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
7839       lamdir="$testlamdir"
7840
7841       mpienable="true"
7842
7843       break
7844     fi
7845   done
7846   echo "$as_me:$LINENO: result: $lamdir" >&5
7847 echo "${ECHO_T}$lamdir" >&6
7848 else
7849   echo "$as_me:$LINENO: result: no" >&5
7850 echo "${ECHO_T}no" >&6
7851 fi
7852
7853
7854
7855 # Check whether --with-ctn or --without-ctn was given.
7856 if test "${with_ctn+set}" = set; then
7857   withval="$with_ctn"
7858       if test "$withval" != "no" ; then
7859          tryctndir=$withval
7860      fi
7861
7862 fi;
7863
7864 if test "$withval" == "no" -o "$withval" == "NONE" ; then
7865   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7866 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7867   echo "$as_me:$LINENO: result: disabled" >&5
7868 echo "${ECHO_T}disabled" >&6
7869 else
7870   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7871 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7872   for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
7873     if test -f "$testctndir/libctn.a" ; then
7874       LDFLAGS="$LDFLAGS -L$testctndir"
7875       ctnlib="true"
7876       break
7877     fi
7878   done
7879   for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
7880     if test -f "$testctndir/ctn_os.h" ; then
7881       CFLAGS="$CFLAGS -I$testctndir"
7882       ctninclude="true"
7883       break
7884     fi
7885   done
7886   if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
7887       ctn="true"
7888
7889 cat >>confdefs.h <<\_ACEOF
7890 #define HAVE_CTN_DICOM 1
7891 _ACEOF
7892
7893       echo "$as_me:$LINENO: result: yes" >&5
7894 echo "${ECHO_T}yes" >&6
7895   else
7896     echo "$as_me:$LINENO: result: no" >&5
7897 echo "${ECHO_T}no" >&6
7898   fi
7899 fi
7900
7901 echo "$as_me:$LINENO: checking for web access" >&5
7902 echo $ECHO_N "checking for web access... $ECHO_C" >&6
7903
7904 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
7905 if test "${with_cgibin_dir+set}" = set; then
7906   withval="$with_cgibin_dir"
7907    cgibindir=$withval ;
7908 fi;
7909
7910
7911 # Check whether --with-cgibin-url or --without-cgibin-url was given.
7912 if test "${with_cgibin_url+set}" = set; then
7913   withval="$with_cgibin_url"
7914    cgibinurl=$withval ;
7915 fi;
7916
7917
7918 # Check whether --with-webdata-dir or --without-webdata-dir was given.
7919 if test "${with_webdata_dir+set}" = set; then
7920   withval="$with_webdata_dir"
7921    webdatadir=$withval ;
7922 fi;
7923
7924
7925 # Check whether --with-webdata-url or --without-webdata-url was given.
7926 if test "${with_webdata_url+set}" = set; then
7927   withval="$with_webdata_url"
7928    webdataurl=$withval ;
7929 fi;
7930
7931
7932 # Check whether --with-html-dir or --without-html-dir was given.
7933 if test "${with_html_dir+set}" = set; then
7934   withval="$with_html_dir"
7935    htmldir=$withval ;
7936 fi;
7937
7938 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
7939   cgiprograms="ctsim.cgi ctsim.conf"
7940
7941 fi
7942
7943 if test -n "$htmldir" ; then
7944   htmldata=simulate.html
7945
7946 fi
7947
7948
7949 if test -n "$htmldir"; then
7950   USE_HTML_TRUE=
7951   USE_HTML_FALSE='#'
7952 else
7953   USE_HTML_TRUE='#'
7954   USE_HTML_FALSE=
7955 fi
7956
7957 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
7958   webenabled=true
7959
7960   echo "$as_me:$LINENO: result: yes" >&5
7961 echo "${ECHO_T}yes" >&6
7962   if test -z "$cgibindir" ; then
7963     { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
7964 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
7965    { (exit 1); exit 1; }; }
7966   elif test -z "$cgibinurl" ; then
7967     { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
7968 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
7969    { (exit 1); exit 1; }; }
7970   elif test -z "$webdatadir" ; then
7971     { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
7972 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
7973    { (exit 1); exit 1; }; }
7974   elif test -z "$webdataurl" ; then
7975     { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
7976 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
7977    { (exit 1); exit 1; }; }
7978   elif test -z "$htmldir" ; then
7979     { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
7980 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
7981    { (exit 1); exit 1; }; }
7982   fi
7983 else
7984   echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6
7986 fi
7987
7988
7989
7990 if test -n "$lamdir"; then
7991   USE_LAM_TRUE=
7992   USE_LAM_FALSE='#'
7993 else
7994   USE_LAM_TRUE='#'
7995   USE_LAM_FALSE=
7996 fi
7997
7998
7999 echo "$as_me:$LINENO: checking for X" >&5
8000 echo $ECHO_N "checking for X... $ECHO_C" >&6
8001
8002
8003 # Check whether --with-x or --without-x was given.
8004 if test "${with_x+set}" = set; then
8005   withval="$with_x"
8006
8007 fi;
8008 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8009 if test "x$with_x" = xno; then
8010   # The user explicitly disabled X.
8011   have_x=disabled
8012 else
8013   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8014     # Both variables are already set.
8015     have_x=yes
8016   else
8017     if test "${ac_cv_have_x+set}" = set; then
8018   echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020   # One or both of the vars are not set, and there is no cached value.
8021 ac_x_includes=no ac_x_libraries=no
8022 rm -fr conftest.dir
8023 if mkdir conftest.dir; then
8024   cd conftest.dir
8025   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8026   cat >Imakefile <<'_ACEOF'
8027 acfindx:
8028         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8029 _ACEOF
8030   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8031     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8032     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8033     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8034     for ac_extension in a so sl; do
8035       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8036          test -f $ac_im_libdir/libX11.$ac_extension; then
8037         ac_im_usrlibdir=$ac_im_libdir; break
8038       fi
8039     done
8040     # Screen out bogus values from the imake configuration.  They are
8041     # bogus both because they are the default anyway, and because
8042     # using them would break gcc on systems where it needs fixed includes.
8043     case $ac_im_incroot in
8044         /usr/include) ;;
8045         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8046     esac
8047     case $ac_im_usrlibdir in
8048         /usr/lib | /lib) ;;
8049         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8050     esac
8051   fi
8052   cd ..
8053   rm -fr conftest.dir
8054 fi
8055
8056 # Standard set of common directories for X headers.
8057 # Check X11 before X11Rn because it is often a symlink to the current release.
8058 ac_x_header_dirs='
8059 /usr/X11/include
8060 /usr/X11R6/include
8061 /usr/X11R5/include
8062 /usr/X11R4/include
8063
8064 /usr/include/X11
8065 /usr/include/X11R6
8066 /usr/include/X11R5
8067 /usr/include/X11R4
8068
8069 /usr/local/X11/include
8070 /usr/local/X11R6/include
8071 /usr/local/X11R5/include
8072 /usr/local/X11R4/include
8073
8074 /usr/local/include/X11
8075 /usr/local/include/X11R6
8076 /usr/local/include/X11R5
8077 /usr/local/include/X11R4
8078
8079 /usr/X386/include
8080 /usr/x386/include
8081 /usr/XFree86/include/X11
8082
8083 /usr/include
8084 /usr/local/include
8085 /usr/unsupported/include
8086 /usr/athena/include
8087 /usr/local/x11r5/include
8088 /usr/lpp/Xamples/include
8089
8090 /usr/openwin/include
8091 /usr/openwin/share/include'
8092
8093 if test "$ac_x_includes" = no; then
8094   # Guess where to find include files, by looking for Intrinsic.h.
8095   # First, try using that file with no special directory specified.
8096   cat >conftest.$ac_ext <<_ACEOF
8097 #line $LINENO "configure"
8098 /* confdefs.h.  */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h.  */
8103 #include <X11/Intrinsic.h>
8104 _ACEOF
8105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8106   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8107   ac_status=$?
8108   grep -v '^ *+' conftest.er1 >conftest.err
8109   rm -f conftest.er1
8110   cat conftest.err >&5
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); } >/dev/null; then
8113   if test -s conftest.err; then
8114     ac_cpp_err=$ac_c_preproc_warn_flag
8115   else
8116     ac_cpp_err=
8117   fi
8118 else
8119   ac_cpp_err=yes
8120 fi
8121 if test -z "$ac_cpp_err"; then
8122   # We can compile using X headers with no special include directory.
8123 ac_x_includes=
8124 else
8125   echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128   for ac_dir in $ac_x_header_dirs; do
8129   if test -r "$ac_dir/X11/Intrinsic.h"; then
8130     ac_x_includes=$ac_dir
8131     break
8132   fi
8133 done
8134 fi
8135 rm -f conftest.err conftest.$ac_ext
8136 fi # $ac_x_includes = no
8137
8138 if test "$ac_x_libraries" = no; then
8139   # Check for the libraries.
8140   # See if we find them without any special options.
8141   # Don't add to $LIBS permanently.
8142   ac_save_LIBS=$LIBS
8143   LIBS="-lXt $LIBS"
8144   cat >conftest.$ac_ext <<_ACEOF
8145 #line $LINENO "configure"
8146 /* confdefs.h.  */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h.  */
8151 #include <X11/Intrinsic.h>
8152 int
8153 main ()
8154 {
8155 XtMalloc (0)
8156   ;
8157   return 0;
8158 }
8159 _ACEOF
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162   (eval $ac_link) 2>&5
8163   ac_status=$?
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); } &&
8166          { ac_try='test -s conftest$ac_exeext'
8167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168   (eval $ac_try) 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); }; }; then
8172   LIBS=$ac_save_LIBS
8173 # We can link X programs with no special library path.
8174 ac_x_libraries=
8175 else
8176   echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8178
8179 LIBS=$ac_save_LIBS
8180 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8181 do
8182   # Don't even attempt the hair of trying to link an X program!
8183   for ac_extension in a so sl; do
8184     if test -r $ac_dir/libXt.$ac_extension; then
8185       ac_x_libraries=$ac_dir
8186       break 2
8187     fi
8188   done
8189 done
8190 fi
8191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8192 fi # $ac_x_libraries = no
8193
8194 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8195   # Didn't find X anywhere.  Cache the known absence of X.
8196   ac_cv_have_x="have_x=no"
8197 else
8198   # Record where we found X for the cache.
8199   ac_cv_have_x="have_x=yes \
8200                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8201 fi
8202 fi
8203
8204   fi
8205   eval "$ac_cv_have_x"
8206 fi # $with_x != no
8207
8208 if test "$have_x" != yes; then
8209   echo "$as_me:$LINENO: result: $have_x" >&5
8210 echo "${ECHO_T}$have_x" >&6
8211   no_x=yes
8212 else
8213   # If each of the values was on the command line, it overrides each guess.
8214   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8215   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8216   # Update the cache value to reflect the command line values.
8217   ac_cv_have_x="have_x=yes \
8218                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8219   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8220 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8221 fi
8222
8223 if test "$no_x" = yes; then
8224   # Not all programs may use this symbol, but it does not hurt to define it.
8225
8226 cat >>confdefs.h <<\_ACEOF
8227 #define X_DISPLAY_MISSING 1
8228 _ACEOF
8229
8230   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8231 else
8232   if test -n "$x_includes"; then
8233     X_CFLAGS="$X_CFLAGS -I$x_includes"
8234   fi
8235
8236   # It would also be nice to do this for all -L options, not just this one.
8237   if test -n "$x_libraries"; then
8238     X_LIBS="$X_LIBS -L$x_libraries"
8239     # For Solaris; some versions of Sun CC require a space after -R and
8240     # others require no space.  Words are not sufficient . . . .
8241     case `(uname -sr) 2>/dev/null` in
8242     "SunOS 5"*)
8243       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8244 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8245       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8246       cat >conftest.$ac_ext <<_ACEOF
8247 #line $LINENO "configure"
8248 /* confdefs.h.  */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h.  */
8253
8254 int
8255 main ()
8256 {
8257
8258   ;
8259   return 0;
8260 }
8261 _ACEOF
8262 rm -f conftest.$ac_objext conftest$ac_exeext
8263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8264   (eval $ac_link) 2>&5
8265   ac_status=$?
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); } &&
8268          { ac_try='test -s conftest$ac_exeext'
8269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270   (eval $ac_try) 2>&5
8271   ac_status=$?
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); }; }; then
8274   ac_R_nospace=yes
8275 else
8276   echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8278
8279 ac_R_nospace=no
8280 fi
8281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8282       if test $ac_R_nospace = yes; then
8283         echo "$as_me:$LINENO: result: no" >&5
8284 echo "${ECHO_T}no" >&6
8285         X_LIBS="$X_LIBS -R$x_libraries"
8286       else
8287         LIBS="$ac_xsave_LIBS -R $x_libraries"
8288         cat >conftest.$ac_ext <<_ACEOF
8289 #line $LINENO "configure"
8290 /* confdefs.h.  */
8291 _ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h.  */
8295
8296 int
8297 main ()
8298 {
8299
8300   ;
8301   return 0;
8302 }
8303 _ACEOF
8304 rm -f conftest.$ac_objext conftest$ac_exeext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8306   (eval $ac_link) 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); } &&
8310          { ac_try='test -s conftest$ac_exeext'
8311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312   (eval $ac_try) 2>&5
8313   ac_status=$?
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); }; }; then
8316   ac_R_space=yes
8317 else
8318   echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8320
8321 ac_R_space=no
8322 fi
8323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8324         if test $ac_R_space = yes; then
8325           echo "$as_me:$LINENO: result: yes" >&5
8326 echo "${ECHO_T}yes" >&6
8327           X_LIBS="$X_LIBS -R $x_libraries"
8328         else
8329           echo "$as_me:$LINENO: result: neither works" >&5
8330 echo "${ECHO_T}neither works" >&6
8331         fi
8332       fi
8333       LIBS=$ac_xsave_LIBS
8334     esac
8335   fi
8336
8337   # Check for system-dependent libraries X programs must link with.
8338   # Do this before checking for the system-independent R6 libraries
8339   # (-lICE), since we may need -lsocket or whatever for X linking.
8340
8341   if test "$ISC" = yes; then
8342     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8343   else
8344     # Martyn Johnson says this is needed for Ultrix, if the X
8345     # libraries were built with DECnet support.  And Karl Berry says
8346     # the Alpha needs dnet_stub (dnet does not exist).
8347     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8348     cat >conftest.$ac_ext <<_ACEOF
8349 #line $LINENO "configure"
8350 /* confdefs.h.  */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h.  */
8355
8356 /* Override any gcc2 internal prototype to avoid an error.  */
8357 #ifdef __cplusplus
8358 extern "C"
8359 #endif
8360 /* We use char because int might match the return type of a gcc2
8361    builtin and then its argument prototype would still apply.  */
8362 char XOpenDisplay ();
8363 int
8364 main ()
8365 {
8366 XOpenDisplay ();
8367   ;
8368   return 0;
8369 }
8370 _ACEOF
8371 rm -f conftest.$ac_objext conftest$ac_exeext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8373   (eval $ac_link) 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); } &&
8377          { ac_try='test -s conftest$ac_exeext'
8378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379   (eval $ac_try) 2>&5
8380   ac_status=$?
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); }; }; then
8383   :
8384 else
8385   echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8387
8388 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8389 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8390 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8391   echo $ECHO_N "(cached) $ECHO_C" >&6
8392 else
8393   ac_check_lib_save_LIBS=$LIBS
8394 LIBS="-ldnet  $LIBS"
8395 cat >conftest.$ac_ext <<_ACEOF
8396 #line $LINENO "configure"
8397 /* confdefs.h.  */
8398 _ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h.  */
8402
8403 /* Override any gcc2 internal prototype to avoid an error.  */
8404 #ifdef __cplusplus
8405 extern "C"
8406 #endif
8407 /* We use char because int might match the return type of a gcc2
8408    builtin and then its argument prototype would still apply.  */
8409 char dnet_ntoa ();
8410 int
8411 main ()
8412 {
8413 dnet_ntoa ();
8414   ;
8415   return 0;
8416 }
8417 _ACEOF
8418 rm -f conftest.$ac_objext conftest$ac_exeext
8419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8420   (eval $ac_link) 2>&5
8421   ac_status=$?
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); } &&
8424          { ac_try='test -s conftest$ac_exeext'
8425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426   (eval $ac_try) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); }; }; then
8430   ac_cv_lib_dnet_dnet_ntoa=yes
8431 else
8432   echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8434
8435 ac_cv_lib_dnet_dnet_ntoa=no
8436 fi
8437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8438 LIBS=$ac_check_lib_save_LIBS
8439 fi
8440 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8441 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8442 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8443   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8444 fi
8445
8446     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8447       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8448 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8449 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8450   echo $ECHO_N "(cached) $ECHO_C" >&6
8451 else
8452   ac_check_lib_save_LIBS=$LIBS
8453 LIBS="-ldnet_stub  $LIBS"
8454 cat >conftest.$ac_ext <<_ACEOF
8455 #line $LINENO "configure"
8456 /* confdefs.h.  */
8457 _ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h.  */
8461
8462 /* Override any gcc2 internal prototype to avoid an error.  */
8463 #ifdef __cplusplus
8464 extern "C"
8465 #endif
8466 /* We use char because int might match the return type of a gcc2
8467    builtin and then its argument prototype would still apply.  */
8468 char dnet_ntoa ();
8469 int
8470 main ()
8471 {
8472 dnet_ntoa ();
8473   ;
8474   return 0;
8475 }
8476 _ACEOF
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8479   (eval $ac_link) 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); } &&
8483          { ac_try='test -s conftest$ac_exeext'
8484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485   (eval $ac_try) 2>&5
8486   ac_status=$?
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); }; }; then
8489   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8490 else
8491   echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8493
8494 ac_cv_lib_dnet_stub_dnet_ntoa=no
8495 fi
8496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8497 LIBS=$ac_check_lib_save_LIBS
8498 fi
8499 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8500 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8501 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8502   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8503 fi
8504
8505     fi
8506 fi
8507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8508     LIBS="$ac_xsave_LIBS"
8509
8510     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8511     # to get the SysV transport functions.
8512     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8513     # needs -lnsl.
8514     # The nsl library prevents programs from opening the X display
8515     # on Irix 5.2, according to T.E. Dickey.
8516     # The functions gethostbyname, getservbyname, and inet_addr are
8517     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8518     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8519 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8520 if test "${ac_cv_func_gethostbyname+set}" = set; then
8521   echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523   cat >conftest.$ac_ext <<_ACEOF
8524 #line $LINENO "configure"
8525 /* confdefs.h.  */
8526 _ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h.  */
8530 /* System header to define __stub macros and hopefully few prototypes,
8531     which can conflict with char gethostbyname (); below.
8532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8533     <limits.h> exists even on freestanding compilers.  */
8534 #ifdef __STDC__
8535 # include <limits.h>
8536 #else
8537 # include <assert.h>
8538 #endif
8539 /* Override any gcc2 internal prototype to avoid an error.  */
8540 #ifdef __cplusplus
8541 extern "C"
8542 {
8543 #endif
8544 /* We use char because int might match the return type of a gcc2
8545    builtin and then its argument prototype would still apply.  */
8546 char gethostbyname ();
8547 /* The GNU C library defines this for functions which it implements
8548     to always fail with ENOSYS.  Some functions are actually named
8549     something starting with __ and the normal name is an alias.  */
8550 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8551 choke me
8552 #else
8553 char (*f) () = gethostbyname;
8554 #endif
8555 #ifdef __cplusplus
8556 }
8557 #endif
8558
8559 int
8560 main ()
8561 {
8562 return f != gethostbyname;
8563   ;
8564   return 0;
8565 }
8566 _ACEOF
8567 rm -f conftest.$ac_objext conftest$ac_exeext
8568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8569   (eval $ac_link) 2>&5
8570   ac_status=$?
8571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572   (exit $ac_status); } &&
8573          { ac_try='test -s conftest$ac_exeext'
8574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575   (eval $ac_try) 2>&5
8576   ac_status=$?
8577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578   (exit $ac_status); }; }; then
8579   ac_cv_func_gethostbyname=yes
8580 else
8581   echo "$as_me: failed program was:" >&5
8582 sed 's/^/| /' conftest.$ac_ext >&5
8583
8584 ac_cv_func_gethostbyname=no
8585 fi
8586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8587 fi
8588 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8589 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8590
8591     if test $ac_cv_func_gethostbyname = no; then
8592       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8593 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8594 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8595   echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597   ac_check_lib_save_LIBS=$LIBS
8598 LIBS="-lnsl  $LIBS"
8599 cat >conftest.$ac_ext <<_ACEOF
8600 #line $LINENO "configure"
8601 /* confdefs.h.  */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h.  */
8606
8607 /* Override any gcc2 internal prototype to avoid an error.  */
8608 #ifdef __cplusplus
8609 extern "C"
8610 #endif
8611 /* We use char because int might match the return type of a gcc2
8612    builtin and then its argument prototype would still apply.  */
8613 char gethostbyname ();
8614 int
8615 main ()
8616 {
8617 gethostbyname ();
8618   ;
8619   return 0;
8620 }
8621 _ACEOF
8622 rm -f conftest.$ac_objext conftest$ac_exeext
8623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8624   (eval $ac_link) 2>&5
8625   ac_status=$?
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); } &&
8628          { ac_try='test -s conftest$ac_exeext'
8629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630   (eval $ac_try) 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); }; }; then
8634   ac_cv_lib_nsl_gethostbyname=yes
8635 else
8636   echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8638
8639 ac_cv_lib_nsl_gethostbyname=no
8640 fi
8641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8642 LIBS=$ac_check_lib_save_LIBS
8643 fi
8644 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8645 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8646 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8647   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8648 fi
8649
8650       if test $ac_cv_lib_nsl_gethostbyname = no; then
8651         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8652 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8653 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8654   echo $ECHO_N "(cached) $ECHO_C" >&6
8655 else
8656   ac_check_lib_save_LIBS=$LIBS
8657 LIBS="-lbsd  $LIBS"
8658 cat >conftest.$ac_ext <<_ACEOF
8659 #line $LINENO "configure"
8660 /* confdefs.h.  */
8661 _ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h.  */
8665
8666 /* Override any gcc2 internal prototype to avoid an error.  */
8667 #ifdef __cplusplus
8668 extern "C"
8669 #endif
8670 /* We use char because int might match the return type of a gcc2
8671    builtin and then its argument prototype would still apply.  */
8672 char gethostbyname ();
8673 int
8674 main ()
8675 {
8676 gethostbyname ();
8677   ;
8678   return 0;
8679 }
8680 _ACEOF
8681 rm -f conftest.$ac_objext conftest$ac_exeext
8682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8683   (eval $ac_link) 2>&5
8684   ac_status=$?
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); } &&
8687          { ac_try='test -s conftest$ac_exeext'
8688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689   (eval $ac_try) 2>&5
8690   ac_status=$?
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); }; }; then
8693   ac_cv_lib_bsd_gethostbyname=yes
8694 else
8695   echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8697
8698 ac_cv_lib_bsd_gethostbyname=no
8699 fi
8700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8701 LIBS=$ac_check_lib_save_LIBS
8702 fi
8703 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8704 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8705 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8706   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8707 fi
8708
8709       fi
8710     fi
8711
8712     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8713     # socket/setsockopt and other routines are undefined under SCO ODT
8714     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8715     # on later versions), says Simon Leinen: it contains gethostby*
8716     # variants that don't use the name server (or something).  -lsocket
8717     # must be given before -lnsl if both are needed.  We assume that
8718     # if connect needs -lnsl, so does gethostbyname.
8719     echo "$as_me:$LINENO: checking for connect" >&5
8720 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8721 if test "${ac_cv_func_connect+set}" = set; then
8722   echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724   cat >conftest.$ac_ext <<_ACEOF
8725 #line $LINENO "configure"
8726 /* confdefs.h.  */
8727 _ACEOF
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h.  */
8731 /* System header to define __stub macros and hopefully few prototypes,
8732     which can conflict with char connect (); below.
8733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8734     <limits.h> exists even on freestanding compilers.  */
8735 #ifdef __STDC__
8736 # include <limits.h>
8737 #else
8738 # include <assert.h>
8739 #endif
8740 /* Override any gcc2 internal prototype to avoid an error.  */
8741 #ifdef __cplusplus
8742 extern "C"
8743 {
8744 #endif
8745 /* We use char because int might match the return type of a gcc2
8746    builtin and then its argument prototype would still apply.  */
8747 char connect ();
8748 /* The GNU C library defines this for functions which it implements
8749     to always fail with ENOSYS.  Some functions are actually named
8750     something starting with __ and the normal name is an alias.  */
8751 #if defined (__stub_connect) || defined (__stub___connect)
8752 choke me
8753 #else
8754 char (*f) () = connect;
8755 #endif
8756 #ifdef __cplusplus
8757 }
8758 #endif
8759
8760 int
8761 main ()
8762 {
8763 return f != connect;
8764   ;
8765   return 0;
8766 }
8767 _ACEOF
8768 rm -f conftest.$ac_objext conftest$ac_exeext
8769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8770   (eval $ac_link) 2>&5
8771   ac_status=$?
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); } &&
8774          { ac_try='test -s conftest$ac_exeext'
8775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776   (eval $ac_try) 2>&5
8777   ac_status=$?
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); }; }; then
8780   ac_cv_func_connect=yes
8781 else
8782   echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8784
8785 ac_cv_func_connect=no
8786 fi
8787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8788 fi
8789 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8790 echo "${ECHO_T}$ac_cv_func_connect" >&6
8791
8792     if test $ac_cv_func_connect = no; then
8793       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8794 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8795 if test "${ac_cv_lib_socket_connect+set}" = set; then
8796   echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798   ac_check_lib_save_LIBS=$LIBS
8799 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8800 cat >conftest.$ac_ext <<_ACEOF
8801 #line $LINENO "configure"
8802 /* confdefs.h.  */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h.  */
8807
8808 /* Override any gcc2 internal prototype to avoid an error.  */
8809 #ifdef __cplusplus
8810 extern "C"
8811 #endif
8812 /* We use char because int might match the return type of a gcc2
8813    builtin and then its argument prototype would still apply.  */
8814 char connect ();
8815 int
8816 main ()
8817 {
8818 connect ();
8819   ;
8820   return 0;
8821 }
8822 _ACEOF
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825   (eval $ac_link) 2>&5
8826   ac_status=$?
8827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828   (exit $ac_status); } &&
8829          { ac_try='test -s conftest$ac_exeext'
8830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831   (eval $ac_try) 2>&5
8832   ac_status=$?
8833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834   (exit $ac_status); }; }; then
8835   ac_cv_lib_socket_connect=yes
8836 else
8837   echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8839
8840 ac_cv_lib_socket_connect=no
8841 fi
8842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8843 LIBS=$ac_check_lib_save_LIBS
8844 fi
8845 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8846 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8847 if test $ac_cv_lib_socket_connect = yes; then
8848   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8849 fi
8850
8851     fi
8852
8853     # Guillermo Gomez says -lposix is necessary on A/UX.
8854     echo "$as_me:$LINENO: checking for remove" >&5
8855 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8856 if test "${ac_cv_func_remove+set}" = set; then
8857   echo $ECHO_N "(cached) $ECHO_C" >&6
8858 else
8859   cat >conftest.$ac_ext <<_ACEOF
8860 #line $LINENO "configure"
8861 /* confdefs.h.  */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h.  */
8866 /* System header to define __stub macros and hopefully few prototypes,
8867     which can conflict with char remove (); below.
8868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8869     <limits.h> exists even on freestanding compilers.  */
8870 #ifdef __STDC__
8871 # include <limits.h>
8872 #else
8873 # include <assert.h>
8874 #endif
8875 /* Override any gcc2 internal prototype to avoid an error.  */
8876 #ifdef __cplusplus
8877 extern "C"
8878 {
8879 #endif
8880 /* We use char because int might match the return type of a gcc2
8881    builtin and then its argument prototype would still apply.  */
8882 char remove ();
8883 /* The GNU C library defines this for functions which it implements
8884     to always fail with ENOSYS.  Some functions are actually named
8885     something starting with __ and the normal name is an alias.  */
8886 #if defined (__stub_remove) || defined (__stub___remove)
8887 choke me
8888 #else
8889 char (*f) () = remove;
8890 #endif
8891 #ifdef __cplusplus
8892 }
8893 #endif
8894
8895 int
8896 main ()
8897 {
8898 return f != remove;
8899   ;
8900   return 0;
8901 }
8902 _ACEOF
8903 rm -f conftest.$ac_objext conftest$ac_exeext
8904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8905   (eval $ac_link) 2>&5
8906   ac_status=$?
8907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908   (exit $ac_status); } &&
8909          { ac_try='test -s conftest$ac_exeext'
8910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911   (eval $ac_try) 2>&5
8912   ac_status=$?
8913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); }; }; then
8915   ac_cv_func_remove=yes
8916 else
8917   echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8919
8920 ac_cv_func_remove=no
8921 fi
8922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8923 fi
8924 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8925 echo "${ECHO_T}$ac_cv_func_remove" >&6
8926
8927     if test $ac_cv_func_remove = no; then
8928       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8929 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8930 if test "${ac_cv_lib_posix_remove+set}" = set; then
8931   echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933   ac_check_lib_save_LIBS=$LIBS
8934 LIBS="-lposix  $LIBS"
8935 cat >conftest.$ac_ext <<_ACEOF
8936 #line $LINENO "configure"
8937 /* confdefs.h.  */
8938 _ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h.  */
8942
8943 /* Override any gcc2 internal prototype to avoid an error.  */
8944 #ifdef __cplusplus
8945 extern "C"
8946 #endif
8947 /* We use char because int might match the return type of a gcc2
8948    builtin and then its argument prototype would still apply.  */
8949 char remove ();
8950 int
8951 main ()
8952 {
8953 remove ();
8954   ;
8955   return 0;
8956 }
8957 _ACEOF
8958 rm -f conftest.$ac_objext conftest$ac_exeext
8959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8960   (eval $ac_link) 2>&5
8961   ac_status=$?
8962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); } &&
8964          { ac_try='test -s conftest$ac_exeext'
8965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966   (eval $ac_try) 2>&5
8967   ac_status=$?
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); }; }; then
8970   ac_cv_lib_posix_remove=yes
8971 else
8972   echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8974
8975 ac_cv_lib_posix_remove=no
8976 fi
8977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8978 LIBS=$ac_check_lib_save_LIBS
8979 fi
8980 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8981 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8982 if test $ac_cv_lib_posix_remove = yes; then
8983   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8984 fi
8985
8986     fi
8987
8988     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8989     echo "$as_me:$LINENO: checking for shmat" >&5
8990 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8991 if test "${ac_cv_func_shmat+set}" = set; then
8992   echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994   cat >conftest.$ac_ext <<_ACEOF
8995 #line $LINENO "configure"
8996 /* confdefs.h.  */
8997 _ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h.  */
9001 /* System header to define __stub macros and hopefully few prototypes,
9002     which can conflict with char shmat (); below.
9003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9004     <limits.h> exists even on freestanding compilers.  */
9005 #ifdef __STDC__
9006 # include <limits.h>
9007 #else
9008 # include <assert.h>
9009 #endif
9010 /* Override any gcc2 internal prototype to avoid an error.  */
9011 #ifdef __cplusplus
9012 extern "C"
9013 {
9014 #endif
9015 /* We use char because int might match the return type of a gcc2
9016    builtin and then its argument prototype would still apply.  */
9017 char shmat ();
9018 /* The GNU C library defines this for functions which it implements
9019     to always fail with ENOSYS.  Some functions are actually named
9020     something starting with __ and the normal name is an alias.  */
9021 #if defined (__stub_shmat) || defined (__stub___shmat)
9022 choke me
9023 #else
9024 char (*f) () = shmat;
9025 #endif
9026 #ifdef __cplusplus
9027 }
9028 #endif
9029
9030 int
9031 main ()
9032 {
9033 return f != shmat;
9034   ;
9035   return 0;
9036 }
9037 _ACEOF
9038 rm -f conftest.$ac_objext conftest$ac_exeext
9039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9040   (eval $ac_link) 2>&5
9041   ac_status=$?
9042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043   (exit $ac_status); } &&
9044          { ac_try='test -s conftest$ac_exeext'
9045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046   (eval $ac_try) 2>&5
9047   ac_status=$?
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); }; }; then
9050   ac_cv_func_shmat=yes
9051 else
9052   echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9054
9055 ac_cv_func_shmat=no
9056 fi
9057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9058 fi
9059 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9060 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9061
9062     if test $ac_cv_func_shmat = no; then
9063       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9064 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9065 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9066   echo $ECHO_N "(cached) $ECHO_C" >&6
9067 else
9068   ac_check_lib_save_LIBS=$LIBS
9069 LIBS="-lipc  $LIBS"
9070 cat >conftest.$ac_ext <<_ACEOF
9071 #line $LINENO "configure"
9072 /* confdefs.h.  */
9073 _ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h.  */
9077
9078 /* Override any gcc2 internal prototype to avoid an error.  */
9079 #ifdef __cplusplus
9080 extern "C"
9081 #endif
9082 /* We use char because int might match the return type of a gcc2
9083    builtin and then its argument prototype would still apply.  */
9084 char shmat ();
9085 int
9086 main ()
9087 {
9088 shmat ();
9089   ;
9090   return 0;
9091 }
9092 _ACEOF
9093 rm -f conftest.$ac_objext conftest$ac_exeext
9094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9095   (eval $ac_link) 2>&5
9096   ac_status=$?
9097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098   (exit $ac_status); } &&
9099          { ac_try='test -s conftest$ac_exeext'
9100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101   (eval $ac_try) 2>&5
9102   ac_status=$?
9103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104   (exit $ac_status); }; }; then
9105   ac_cv_lib_ipc_shmat=yes
9106 else
9107   echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9109
9110 ac_cv_lib_ipc_shmat=no
9111 fi
9112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9113 LIBS=$ac_check_lib_save_LIBS
9114 fi
9115 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9116 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9117 if test $ac_cv_lib_ipc_shmat = yes; then
9118   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9119 fi
9120
9121     fi
9122   fi
9123
9124   # Check for libraries that X11R6 Xt/Xaw programs need.
9125   ac_save_LDFLAGS=$LDFLAGS
9126   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9127   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9128   # check for ICE first), but we must link in the order -lSM -lICE or
9129   # we get undefined symbols.  So assume we have SM if we have ICE.
9130   # These have to be linked with before -lX11, unlike the other
9131   # libraries we check for below, so use a different variable.
9132   # John Interrante, Karl Berry
9133   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9134 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9135 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9136   echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9138   ac_check_lib_save_LIBS=$LIBS
9139 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9140 cat >conftest.$ac_ext <<_ACEOF
9141 #line $LINENO "configure"
9142 /* confdefs.h.  */
9143 _ACEOF
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h.  */
9147
9148 /* Override any gcc2 internal prototype to avoid an error.  */
9149 #ifdef __cplusplus
9150 extern "C"
9151 #endif
9152 /* We use char because int might match the return type of a gcc2
9153    builtin and then its argument prototype would still apply.  */
9154 char IceConnectionNumber ();
9155 int
9156 main ()
9157 {
9158 IceConnectionNumber ();
9159   ;
9160   return 0;
9161 }
9162 _ACEOF
9163 rm -f conftest.$ac_objext conftest$ac_exeext
9164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9165   (eval $ac_link) 2>&5
9166   ac_status=$?
9167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); } &&
9169          { ac_try='test -s conftest$ac_exeext'
9170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171   (eval $ac_try) 2>&5
9172   ac_status=$?
9173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174   (exit $ac_status); }; }; then
9175   ac_cv_lib_ICE_IceConnectionNumber=yes
9176 else
9177   echo "$as_me: failed program was:" >&5
9178 sed 's/^/| /' conftest.$ac_ext >&5
9179
9180 ac_cv_lib_ICE_IceConnectionNumber=no
9181 fi
9182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9183 LIBS=$ac_check_lib_save_LIBS
9184 fi
9185 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9186 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9187 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9188   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9189 fi
9190
9191   LDFLAGS=$ac_save_LDFLAGS
9192
9193 fi
9194
9195
9196
9197
9198
9199
9200
9201
9202 X_TOOLKIT_LIBS="-lXt"
9203 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9204
9205 our_saved_LDFLAGS="$LDFLAGS"
9206 LDFLAGS="$X_LIBS $LDFLAGS"
9207 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9208 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9209 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9210   echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212   ac_check_lib_save_LIBS=$LIBS
9213 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9214 cat >conftest.$ac_ext <<_ACEOF
9215 #line $LINENO "configure"
9216 /* confdefs.h.  */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h.  */
9221
9222 /* Override any gcc2 internal prototype to avoid an error.  */
9223 #ifdef __cplusplus
9224 extern "C"
9225 #endif
9226 /* We use char because int might match the return type of a gcc2
9227    builtin and then its argument prototype would still apply.  */
9228 char XtToolkitThreadInitialize ();
9229 int
9230 main ()
9231 {
9232 XtToolkitThreadInitialize ();
9233   ;
9234   return 0;
9235 }
9236 _ACEOF
9237 rm -f conftest.$ac_objext conftest$ac_exeext
9238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9239   (eval $ac_link) 2>&5
9240   ac_status=$?
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); } &&
9243          { ac_try='test -s conftest$ac_exeext'
9244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245   (eval $ac_try) 2>&5
9246   ac_status=$?
9247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248   (exit $ac_status); }; }; then
9249   ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9250 else
9251   echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9253
9254 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9255 fi
9256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9257 LIBS=$ac_check_lib_save_LIBS
9258 fi
9259 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9260 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9261 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9262
9263 cat >>confdefs.h <<\_ACEOF
9264 #define X_THREAD_SUPPORT 1
9265 _ACEOF
9266
9267 fi
9268
9269 LDFLAGS="$our_saved_LDFLAGS"
9270
9271
9272
9273 if test "x$no_x" = "xyes"; then
9274   NO_X_TRUE=
9275   NO_X_FALSE='#'
9276 else
9277   NO_X_TRUE='#'
9278   NO_X_FALSE=
9279 fi
9280
9281 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9282
9283
9284 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9285
9286 echo "$as_me:$LINENO: checking for X" >&5
9287 echo $ECHO_N "checking for X... $ECHO_C" >&6
9288 if test "$no_x" != "yes" ; then
9289
9290 cat >>confdefs.h <<\_ACEOF
9291 #define HAVE_X11 1
9292 _ACEOF
9293
9294   LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
9295   my_includes="$my_includes -I/usr/X11R6/include"
9296   ctlib_graphics="$ctlibs_base -lctgraphics"
9297   echo "$as_me:$LINENO: result: yes" >&5
9298 echo "${ECHO_T}yes" >&6
9299   ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9300   if test "$libgl" = "true" ; then
9301     # Removed "-lglut" for Mac OS X compilation
9302     ctlib_graphics="$ctlib_graphics -lGL -lGLU"
9303     if test "$wxwin" = "true" ; then
9304       if  "$wx_gtk" ; then
9305         ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.4"
9306       elif  "$wx_mac" ; then
9307         ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
9308       fi
9309     fi
9310   fi
9311   if test "$wxwin" = "true" ; then
9312
9313 cat >>confdefs.h <<\_ACEOF
9314 #define HAVE_SGP 1
9315 _ACEOF
9316
9317
9318
9319 if test 1==1; then
9320   HAVE_SGP_TRUE=
9321   HAVE_SGP_FALSE='#'
9322 else
9323   HAVE_SGP_TRUE='#'
9324   HAVE_SGP_FALSE=
9325 fi
9326   fi
9327 else
9328   echo "$as_me:$LINENO: result: no" >&5
9329 echo "${ECHO_T}no" >&6
9330 fi
9331
9332 if test "$png" = "true" ; then
9333   ctlibs_tools="$ctlibs_tools -lpng"
9334 fi
9335 if test "$zlib" = "true" ; then
9336   ctlibs_tools="$ctlibs_tools -lz"
9337 fi
9338 if test "$fftw" = "true" ; then
9339   ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
9340 fi
9341 if test "$ctn" = "true"; then
9342   ctlibs_tools="$ctlibs_tools -lctn"
9343 fi
9344
9345 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9346 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9347 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9348   echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350   ac_check_lib_save_LIBS=$LIBS
9351 LIBS="-ldmallocxx  $LIBS"
9352 cat >conftest.$ac_ext <<_ACEOF
9353 #line $LINENO "configure"
9354 /* confdefs.h.  */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h.  */
9359
9360
9361 int
9362 main ()
9363 {
9364 main ();
9365   ;
9366   return 0;
9367 }
9368 _ACEOF
9369 rm -f conftest.$ac_objext conftest$ac_exeext
9370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9371   (eval $ac_link) 2>&5
9372   ac_status=$?
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); } &&
9375          { ac_try='test -s conftest$ac_exeext'
9376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377   (eval $ac_try) 2>&5
9378   ac_status=$?
9379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380   (exit $ac_status); }; }; then
9381   ac_cv_lib_dmallocxx_main=yes
9382 else
9383   echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9385
9386 ac_cv_lib_dmallocxx_main=no
9387 fi
9388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9389 LIBS=$ac_check_lib_save_LIBS
9390 fi
9391 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9392 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9393 if test $ac_cv_lib_dmallocxx_main = yes; then
9394   dmallocxx=true
9395 else
9396   dmallocxx=false
9397 fi
9398
9399 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9400 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9401 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9402 if test "${enable_dmalloc+set}" = set; then
9403   enableval="$enable_dmalloc"
9404   case "${enableval}" in
9405   yes) usedmalloc=true
9406        echo "$as_me:$LINENO: result: yes" >&5
9407 echo "${ECHO_T}yes" >&6
9408        ;;
9409   no)  usedmalloc=false
9410        echo "$as_me:$LINENO: result: no" >&5
9411 echo "${ECHO_T}no" >&6
9412        ;;
9413   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9414 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9415        ;;
9416 esac
9417 else
9418   usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9419 echo "${ECHO_T}no" >&6
9420 fi;
9421
9422 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9423   ctlibs_tools="$ctlibs_tools -ldmallocxx"
9424
9425 cat >>confdefs.h <<\_ACEOF
9426 #define HAVE_DMALLOC 1
9427 _ACEOF
9428
9429   echo "$as_me:$LINENO: result: Using dmalloc" >&5
9430 echo "${ECHO_T}Using dmalloc" >&6
9431 fi
9432
9433 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9434 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9435 if test "${ac_cv_lib_efence_main+set}" = set; then
9436   echo $ECHO_N "(cached) $ECHO_C" >&6
9437 else
9438   ac_check_lib_save_LIBS=$LIBS
9439 LIBS="-lefence  $LIBS"
9440 cat >conftest.$ac_ext <<_ACEOF
9441 #line $LINENO "configure"
9442 /* confdefs.h.  */
9443 _ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h.  */
9447
9448
9449 int
9450 main ()
9451 {
9452 main ();
9453   ;
9454   return 0;
9455 }
9456 _ACEOF
9457 rm -f conftest.$ac_objext conftest$ac_exeext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459   (eval $ac_link) 2>&5
9460   ac_status=$?
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); } &&
9463          { ac_try='test -s conftest$ac_exeext'
9464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465   (eval $ac_try) 2>&5
9466   ac_status=$?
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); }; }; then
9469   ac_cv_lib_efence_main=yes
9470 else
9471   echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9473
9474 ac_cv_lib_efence_main=no
9475 fi
9476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9477 LIBS=$ac_check_lib_save_LIBS
9478 fi
9479 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9480 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9481 if test $ac_cv_lib_efence_main = yes; then
9482   efence=true
9483 else
9484   efence=false
9485 fi
9486
9487 echo "$as_me:$LINENO: checking for enable-efence" >&5
9488 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9489 # Check whether --enable-efence or --disable-efence was given.
9490 if test "${enable_efence+set}" = set; then
9491   enableval="$enable_efence"
9492   case "${enableval}" in
9493   yes) useefence=true
9494        echo "$as_me:$LINENO: result: yes" >&5
9495 echo "${ECHO_T}yes" >&6
9496        ;;
9497   no)  useefence=false
9498        echo "$as_me:$LINENO: result: no" >&5
9499 echo "${ECHO_T}no" >&6
9500        ;;
9501   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9502 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9503        ;;
9504 esac
9505 else
9506   useefence=false; echo "$as_me:$LINENO: result: no" >&5
9507 echo "${ECHO_T}no" >&6
9508 fi;
9509
9510 if test "$efence" = "true" -a "$useefence" = "true" ; then
9511   ctlibs_tools="$ctlibs_tools -lefence"
9512
9513 cat >>confdefs.h <<\_ACEOF
9514 #define HAVE_EFENCE 1
9515 _ACEOF
9516
9517   echo "$as_me:$LINENO: result: Using efence" >&5
9518 echo "${ECHO_T}Using efence" >&6
9519 fi
9520
9521 if test "$wxwin" = "true" ; then
9522   if  "$wx_gtk" = "true"  ||  "$wx_mac" == "true"  ; then
9523     wxcflags=`$wxconfig --cflags`
9524     wxlibs=`$wxconfig --libs`
9525   else
9526         wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9527         wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9528   fi
9529   CFLAGS="$CFLAGS -I../include $wxcflags"
9530   ctlib_graphics="$ctlib_graphics $wxlibs"
9531
9532
9533 if test 1==1 ; then
9534   HAVE_WXWINDOWS_TRUE=
9535   HAVE_WXWINDOWS_FALSE='#'
9536 else
9537   HAVE_WXWINDOWS_TRUE='#'
9538   HAVE_WXWINDOWS_FALSE=
9539 fi
9540 fi
9541
9542
9543
9544 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9545 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9546
9547
9548 if test -n "$lamdir" ; then
9549   lamprograms="ctsimtext-lam"
9550
9551   lamdefs="$CFLAGS"
9552
9553 fi
9554
9555 CXXFLAGS="$CFLAGS"
9556
9557                                                                                                                                                                           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"
9558
9559
9560 cat >confcache <<\_ACEOF
9561 # This file is a shell script that caches the results of configure
9562 # tests run on this system so they can be shared between configure
9563 # scripts and configure runs, see configure's option --config-cache.
9564 # It is not useful on other systems.  If it contains results you don't
9565 # want to keep, you may remove or edit it.
9566 #
9567 # config.status only pays attention to the cache file if you give it
9568 # the --recheck option to rerun configure.
9569 #
9570 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9571 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9572 # following values.
9573
9574 _ACEOF
9575
9576 # The following way of writing the cache mishandles newlines in values,
9577 # but we know of no workaround that is simple, portable, and efficient.
9578 # So, don't put newlines in cache variables' values.
9579 # Ultrix sh set writes to stderr and can't be redirected directly,
9580 # and sets the high bit in the cache file unless we assign to the vars.
9581 {
9582   (set) 2>&1 |
9583     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9584     *ac_space=\ *)
9585       # `set' does not quote correctly, so add quotes (double-quote
9586       # substitution turns \\\\ into \\, and sed turns \\ into \).
9587       sed -n \
9588         "s/'/'\\\\''/g;
9589           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9590       ;;
9591     *)
9592       # `set' quotes correctly as required by POSIX, so do not add quotes.
9593       sed -n \
9594         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9595       ;;
9596     esac;
9597 } |
9598   sed '
9599      t clear
9600      : clear
9601      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9602      t end
9603      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9604      : end' >>confcache
9605 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9606   if test -w $cache_file; then
9607     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9608     cat confcache >$cache_file
9609   else
9610     echo "not updating unwritable cache $cache_file"
9611   fi
9612 fi
9613 rm -f confcache
9614
9615 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9616 # Let make expand exec_prefix.
9617 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9618
9619 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9620 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9621 # trailing colons and then remove the whole line if VPATH becomes empty
9622 # (actually we leave an empty line to preserve line numbers).
9623 if test "x$srcdir" = x.; then
9624   ac_vpsub='/^[         ]*VPATH[        ]*=/{
9625 s/:*\$(srcdir):*/:/;
9626 s/:*\${srcdir}:*/:/;
9627 s/:*@srcdir@:*/:/;
9628 s/^\([^=]*=[    ]*\):*/\1/;
9629 s/:*$//;
9630 s/^[^=]*=[      ]*$//;
9631 }'
9632 fi
9633
9634 DEFS=-DHAVE_CONFIG_H
9635
9636 ac_libobjs=
9637 ac_ltlibobjs=
9638 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9639   # 1. Remove the extension, and $U if already installed.
9640   ac_i=`echo "$ac_i" |
9641          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9642   # 2. Add them.
9643   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9644   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9645 done
9646 LIBOBJS=$ac_libobjs
9647
9648 LTLIBOBJS=$ac_ltlibobjs
9649
9650
9651
9652 : ${CONFIG_STATUS=./config.status}
9653 ac_clean_files_save=$ac_clean_files
9654 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9655 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9656 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9657 cat >$CONFIG_STATUS <<_ACEOF
9658 #! $SHELL
9659 # Generated by $as_me.
9660 # Run this file to recreate the current configuration.
9661 # Compiler output produced by configure, useful for debugging
9662 # configure, is in config.log if it exists.
9663
9664 debug=false
9665 ac_cs_recheck=false
9666 ac_cs_silent=false
9667 SHELL=\${CONFIG_SHELL-$SHELL}
9668 _ACEOF
9669
9670 cat >>$CONFIG_STATUS <<\_ACEOF
9671 ## --------------------- ##
9672 ## M4sh Initialization.  ##
9673 ## --------------------- ##
9674
9675 # Be Bourne compatible
9676 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9677   emulate sh
9678   NULLCMD=:
9679   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9680   # is contrary to our usage.  Disable this feature.
9681   alias -g '${1+"$@"}'='"$@"'
9682 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9683   set -o posix
9684 fi
9685
9686 # Support unset when possible.
9687 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9688   as_unset=unset
9689 else
9690   as_unset=false
9691 fi
9692
9693
9694 # Work around bugs in pre-3.0 UWIN ksh.
9695 $as_unset ENV MAIL MAILPATH
9696 PS1='$ '
9697 PS2='> '
9698 PS4='+ '
9699
9700 # NLS nuisances.
9701 for as_var in \
9702   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9703   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9704   LC_TELEPHONE LC_TIME
9705 do
9706   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9707     eval $as_var=C; export $as_var
9708   else
9709     $as_unset $as_var
9710   fi
9711 done
9712
9713 # Required to use basename.
9714 if expr a : '\(a\)' >/dev/null 2>&1; then
9715   as_expr=expr
9716 else
9717   as_expr=false
9718 fi
9719
9720 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9721   as_basename=basename
9722 else
9723   as_basename=false
9724 fi
9725
9726
9727 # Name of the executable.
9728 as_me=`$as_basename "$0" ||
9729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9730          X"$0" : 'X\(//\)$' \| \
9731          X"$0" : 'X\(/\)$' \| \
9732          .     : '\(.\)' 2>/dev/null ||
9733 echo X/"$0" |
9734     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9735           /^X\/\(\/\/\)$/{ s//\1/; q; }
9736           /^X\/\(\/\).*/{ s//\1/; q; }
9737           s/.*/./; q'`
9738
9739
9740 # PATH needs CR, and LINENO needs CR and PATH.
9741 # Avoid depending upon Character Ranges.
9742 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9743 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9744 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9745 as_cr_digits='0123456789'
9746 as_cr_alnum=$as_cr_Letters$as_cr_digits
9747
9748 # The user is always right.
9749 if test "${PATH_SEPARATOR+set}" != set; then
9750   echo "#! /bin/sh" >conf$$.sh
9751   echo  "exit 0"   >>conf$$.sh
9752   chmod +x conf$$.sh
9753   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9754     PATH_SEPARATOR=';'
9755   else
9756     PATH_SEPARATOR=:
9757   fi
9758   rm -f conf$$.sh
9759 fi
9760
9761
9762   as_lineno_1=$LINENO
9763   as_lineno_2=$LINENO
9764   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9765   test "x$as_lineno_1" != "x$as_lineno_2" &&
9766   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9767   # Find who we are.  Look in the path if we contain no path at all
9768   # relative or not.
9769   case $0 in
9770     *[\\/]* ) as_myself=$0 ;;
9771     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772 for as_dir in $PATH
9773 do
9774   IFS=$as_save_IFS
9775   test -z "$as_dir" && as_dir=.
9776   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9777 done
9778
9779        ;;
9780   esac
9781   # We did not find ourselves, most probably we were run as `sh COMMAND'
9782   # in which case we are not to be found in the path.
9783   if test "x$as_myself" = x; then
9784     as_myself=$0
9785   fi
9786   if test ! -f "$as_myself"; then
9787     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9788 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9789    { (exit 1); exit 1; }; }
9790   fi
9791   case $CONFIG_SHELL in
9792   '')
9793     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9794 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9795 do
9796   IFS=$as_save_IFS
9797   test -z "$as_dir" && as_dir=.
9798   for as_base in sh bash ksh sh5; do
9799          case $as_dir in
9800          /*)
9801            if ("$as_dir/$as_base" -c '
9802   as_lineno_1=$LINENO
9803   as_lineno_2=$LINENO
9804   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9805   test "x$as_lineno_1" != "x$as_lineno_2" &&
9806   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9807              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9808              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9809              CONFIG_SHELL=$as_dir/$as_base
9810              export CONFIG_SHELL
9811              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9812            fi;;
9813          esac
9814        done
9815 done
9816 ;;
9817   esac
9818
9819   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9820   # uniformly replaced by the line number.  The first 'sed' inserts a
9821   # line-number line before each line; the second 'sed' does the real
9822   # work.  The second script uses 'N' to pair each line-number line
9823   # with the numbered line, and appends trailing '-' during
9824   # substitution so that $LINENO is not a special case at line end.
9825   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9826   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9827   sed '=' <$as_myself |
9828     sed '
9829       N
9830       s,$,-,
9831       : loop
9832       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9833       t loop
9834       s,-$,,
9835       s,^['$as_cr_digits']*\n,,
9836     ' >$as_me.lineno &&
9837   chmod +x $as_me.lineno ||
9838     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9839 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9840    { (exit 1); exit 1; }; }
9841
9842   # Don't try to exec as it changes $[0], causing all sort of problems
9843   # (the dirname of $[0] is not the place where we might find the
9844   # original and so on.  Autoconf is especially sensible to this).
9845   . ./$as_me.lineno
9846   # Exit status is that of the last command.
9847   exit
9848 }
9849
9850
9851 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9852   *c*,-n*) ECHO_N= ECHO_C='
9853 ' ECHO_T='      ' ;;
9854   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9855   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9856 esac
9857
9858 if expr a : '\(a\)' >/dev/null 2>&1; then
9859   as_expr=expr
9860 else
9861   as_expr=false
9862 fi
9863
9864 rm -f conf$$ conf$$.exe conf$$.file
9865 echo >conf$$.file
9866 if ln -s conf$$.file conf$$ 2>/dev/null; then
9867   # We could just check for DJGPP; but this test a) works b) is more generic
9868   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9869   if test -f conf$$.exe; then
9870     # Don't use ln at all; we don't have any links
9871     as_ln_s='cp -p'
9872   else
9873     as_ln_s='ln -s'
9874   fi
9875 elif ln conf$$.file conf$$ 2>/dev/null; then
9876   as_ln_s=ln
9877 else
9878   as_ln_s='cp -p'
9879 fi
9880 rm -f conf$$ conf$$.exe conf$$.file
9881
9882 if mkdir -p . 2>/dev/null; then
9883   as_mkdir_p=:
9884 else
9885   as_mkdir_p=false
9886 fi
9887
9888 as_executable_p="test -f"
9889
9890 # Sed expression to map a string onto a valid CPP name.
9891 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9892
9893 # Sed expression to map a string onto a valid variable name.
9894 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9895
9896
9897 # IFS
9898 # We need space, tab and new line, in precisely that order.
9899 as_nl='
9900 '
9901 IFS="   $as_nl"
9902
9903 # CDPATH.
9904 $as_unset CDPATH
9905
9906 exec 6>&1
9907
9908 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9909 # report actual input values of CONFIG_FILES etc. instead of their
9910 # values after options handling.  Logging --version etc. is OK.
9911 exec 5>>config.log
9912 {
9913   echo
9914   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9915 ## Running $as_me. ##
9916 _ASBOX
9917 } >&5
9918 cat >&5 <<_CSEOF
9919
9920 This file was extended by $as_me, which was
9921 generated by GNU Autoconf 2.57.  Invocation command line was
9922
9923   CONFIG_FILES    = $CONFIG_FILES
9924   CONFIG_HEADERS  = $CONFIG_HEADERS
9925   CONFIG_LINKS    = $CONFIG_LINKS
9926   CONFIG_COMMANDS = $CONFIG_COMMANDS
9927   $ $0 $@
9928
9929 _CSEOF
9930 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9931 echo >&5
9932 _ACEOF
9933
9934 # Files that config.status was made for.
9935 if test -n "$ac_config_files"; then
9936   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9937 fi
9938
9939 if test -n "$ac_config_headers"; then
9940   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9941 fi
9942
9943 if test -n "$ac_config_links"; then
9944   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9945 fi
9946
9947 if test -n "$ac_config_commands"; then
9948   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9949 fi
9950
9951 cat >>$CONFIG_STATUS <<\_ACEOF
9952
9953 ac_cs_usage="\
9954 \`$as_me' instantiates files from templates according to the
9955 current configuration.
9956
9957 Usage: $0 [OPTIONS] [FILE]...
9958
9959   -h, --help       print this help, then exit
9960   -V, --version    print version number, then exit
9961   -q, --quiet      do not print progress messages
9962   -d, --debug      don't remove temporary files
9963       --recheck    update $as_me by reconfiguring in the same conditions
9964   --file=FILE[:TEMPLATE]
9965                    instantiate the configuration file FILE
9966   --header=FILE[:TEMPLATE]
9967                    instantiate the configuration header FILE
9968
9969 Configuration files:
9970 $config_files
9971
9972 Configuration headers:
9973 $config_headers
9974
9975 Configuration commands:
9976 $config_commands
9977
9978 Report bugs to <bug-autoconf@gnu.org>."
9979 _ACEOF
9980
9981 cat >>$CONFIG_STATUS <<_ACEOF
9982 ac_cs_version="\\
9983 config.status
9984 configured by $0, generated by GNU Autoconf 2.57,
9985   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9986
9987 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9988 Free Software Foundation, Inc.
9989 This config.status script is free software; the Free Software Foundation
9990 gives unlimited permission to copy, distribute and modify it."
9991 srcdir=$srcdir
9992 INSTALL="$INSTALL"
9993 _ACEOF
9994
9995 cat >>$CONFIG_STATUS <<\_ACEOF
9996 # If no file are specified by the user, then we need to provide default
9997 # value.  By we need to know if files were specified by the user.
9998 ac_need_defaults=:
9999 while test $# != 0
10000 do
10001   case $1 in
10002   --*=*)
10003     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10004     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10005     ac_shift=:
10006     ;;
10007   -*)
10008     ac_option=$1
10009     ac_optarg=$2
10010     ac_shift=shift
10011     ;;
10012   *) # This is not an option, so the user has probably given explicit
10013      # arguments.
10014      ac_option=$1
10015      ac_need_defaults=false;;
10016   esac
10017
10018   case $ac_option in
10019   # Handling of the options.
10020 _ACEOF
10021 cat >>$CONFIG_STATUS <<\_ACEOF
10022   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10023     ac_cs_recheck=: ;;
10024   --version | --vers* | -V )
10025     echo "$ac_cs_version"; exit 0 ;;
10026   --he | --h)
10027     # Conflict between --help and --header
10028     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10029 Try \`$0 --help' for more information." >&5
10030 echo "$as_me: error: ambiguous option: $1
10031 Try \`$0 --help' for more information." >&2;}
10032    { (exit 1); exit 1; }; };;
10033   --help | --hel | -h )
10034     echo "$ac_cs_usage"; exit 0 ;;
10035   --debug | --d* | -d )
10036     debug=: ;;
10037   --file | --fil | --fi | --f )
10038     $ac_shift
10039     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10040     ac_need_defaults=false;;
10041   --header | --heade | --head | --hea )
10042     $ac_shift
10043     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10044     ac_need_defaults=false;;
10045   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10046   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10047     ac_cs_silent=: ;;
10048
10049   # This is an error.
10050   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10051 Try \`$0 --help' for more information." >&5
10052 echo "$as_me: error: unrecognized option: $1
10053 Try \`$0 --help' for more information." >&2;}
10054    { (exit 1); exit 1; }; } ;;
10055
10056   *) ac_config_targets="$ac_config_targets $1" ;;
10057
10058   esac
10059   shift
10060 done
10061
10062 ac_configure_extra_args=
10063
10064 if $ac_cs_silent; then
10065   exec 6>/dev/null
10066   ac_configure_extra_args="$ac_configure_extra_args --silent"
10067 fi
10068
10069 _ACEOF
10070 cat >>$CONFIG_STATUS <<_ACEOF
10071 if \$ac_cs_recheck; then
10072   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10073   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10074 fi
10075
10076 _ACEOF
10077
10078 cat >>$CONFIG_STATUS <<_ACEOF
10079 #
10080 # INIT-COMMANDS section.
10081 #
10082
10083
10084
10085 _ACEOF
10086
10087
10088
10089 cat >>$CONFIG_STATUS <<\_ACEOF
10090 for ac_config_target in $ac_config_targets
10091 do
10092   case "$ac_config_target" in
10093   # Handling of arguments.
10094   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10095   "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
10096   "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
10097   "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
10098   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10099   "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
10100   "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
10101   "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
10102   "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
10103   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10104   "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
10105   "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
10106   "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
10107   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10108   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10109   "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
10110   "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
10111   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10112   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10113   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10114 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10115    { (exit 1); exit 1; }; };;
10116   esac
10117 done
10118
10119 # If the user did not use the arguments to specify the items to instantiate,
10120 # then the envvar interface is used.  Set only those that are not.
10121 # We use the long form for the default assignment because of an extremely
10122 # bizarre bug on SunOS 4.1.3.
10123 if $ac_need_defaults; then
10124   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10125   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10126   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10127 fi
10128
10129 # Have a temporary directory for convenience.  Make it in the build tree
10130 # simply because there is no reason to put it here, and in addition,
10131 # creating and moving files from /tmp can sometimes cause problems.
10132 # Create a temporary directory, and hook for its removal unless debugging.
10133 $debug ||
10134 {
10135   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10136   trap '{ (exit 1); exit 1; }' 1 2 13 15
10137 }
10138
10139 # Create a (secure) tmp directory for tmp files.
10140
10141 {
10142   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10143   test -n "$tmp" && test -d "$tmp"
10144 }  ||
10145 {
10146   tmp=./confstat$$-$RANDOM
10147   (umask 077 && mkdir $tmp)
10148 } ||
10149 {
10150    echo "$me: cannot create a temporary directory in ." >&2
10151    { (exit 1); exit 1; }
10152 }
10153
10154 _ACEOF
10155
10156 cat >>$CONFIG_STATUS <<_ACEOF
10157
10158 #
10159 # CONFIG_FILES section.
10160 #
10161
10162 # No need to generate the scripts if there are no CONFIG_FILES.
10163 # This happens for instance when ./config.status config.h
10164 if test -n "\$CONFIG_FILES"; then
10165   # Protect against being on the right side of a sed subst in config.status.
10166   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10167    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10168 s,@SHELL@,$SHELL,;t t
10169 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10170 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10171 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10172 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10173 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10174 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10175 s,@exec_prefix@,$exec_prefix,;t t
10176 s,@prefix@,$prefix,;t t
10177 s,@program_transform_name@,$program_transform_name,;t t
10178 s,@bindir@,$bindir,;t t
10179 s,@sbindir@,$sbindir,;t t
10180 s,@libexecdir@,$libexecdir,;t t
10181 s,@datadir@,$datadir,;t t
10182 s,@sysconfdir@,$sysconfdir,;t t
10183 s,@sharedstatedir@,$sharedstatedir,;t t
10184 s,@localstatedir@,$localstatedir,;t t
10185 s,@libdir@,$libdir,;t t
10186 s,@includedir@,$includedir,;t t
10187 s,@oldincludedir@,$oldincludedir,;t t
10188 s,@infodir@,$infodir,;t t
10189 s,@mandir@,$mandir,;t t
10190 s,@build_alias@,$build_alias,;t t
10191 s,@host_alias@,$host_alias,;t t
10192 s,@target_alias@,$target_alias,;t t
10193 s,@DEFS@,$DEFS,;t t
10194 s,@ECHO_C@,$ECHO_C,;t t
10195 s,@ECHO_N@,$ECHO_N,;t t
10196 s,@ECHO_T@,$ECHO_T,;t t
10197 s,@LIBS@,$LIBS,;t t
10198 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10199 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10200 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10201 s,@PACKAGE@,$PACKAGE,;t t
10202 s,@VERSION@,$VERSION,;t t
10203 s,@ACLOCAL@,$ACLOCAL,;t t
10204 s,@AUTOCONF@,$AUTOCONF,;t t
10205 s,@AUTOMAKE@,$AUTOMAKE,;t t
10206 s,@AUTOHEADER@,$AUTOHEADER,;t t
10207 s,@MAKEINFO@,$MAKEINFO,;t t
10208 s,@SET_MAKE@,$SET_MAKE,;t t
10209 s,@AWK@,$AWK,;t t
10210 s,@RANLIB@,$RANLIB,;t t
10211 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10212 s,@CC@,$CC,;t t
10213 s,@CFLAGS@,$CFLAGS,;t t
10214 s,@LDFLAGS@,$LDFLAGS,;t t
10215 s,@CPPFLAGS@,$CPPFLAGS,;t t
10216 s,@ac_ct_CC@,$ac_ct_CC,;t t
10217 s,@EXEEXT@,$EXEEXT,;t t
10218 s,@OBJEXT@,$OBJEXT,;t t
10219 s,@CXX@,$CXX,;t t
10220 s,@CXXFLAGS@,$CXXFLAGS,;t t
10221 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10222 s,@wxconfig@,$wxconfig,;t t
10223 s,@build@,$build,;t t
10224 s,@build_cpu@,$build_cpu,;t t
10225 s,@build_vendor@,$build_vendor,;t t
10226 s,@build_os@,$build_os,;t t
10227 s,@host@,$host,;t t
10228 s,@host_cpu@,$host_cpu,;t t
10229 s,@host_vendor@,$host_vendor,;t t
10230 s,@host_os@,$host_os,;t t
10231 s,@CPP@,$CPP,;t t
10232 s,@EGREP@,$EGREP,;t t
10233 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10234 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10235 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10236 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10237 s,@lamdir@,$lamdir,;t t
10238 s,@mpienable@,$mpienable,;t t
10239 s,@cgibindir@,$cgibindir,;t t
10240 s,@cgibinurl@,$cgibinurl,;t t
10241 s,@webdatadir@,$webdatadir,;t t
10242 s,@webdataurl@,$webdataurl,;t t
10243 s,@htmldir@,$htmldir,;t t
10244 s,@cgiprograms@,$cgiprograms,;t t
10245 s,@htmldata@,$htmldata,;t t
10246 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10247 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10248 s,@webenabled@,$webenabled,;t t
10249 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10250 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10251 s,@X_CFLAGS@,$X_CFLAGS,;t t
10252 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10253 s,@X_LIBS@,$X_LIBS,;t t
10254 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10255 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10256 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10257 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10258 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10259 s,@my_includes@,$my_includes,;t t
10260 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10261 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10262 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10263 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10264 s,@wxcflags@,$wxcflags,;t t
10265 s,@wxlibs@,$wxlibs,;t t
10266 s,@ctlibs@,$ctlibs,;t t
10267 s,@lamprograms@,$lamprograms,;t t
10268 s,@lamdefs@,$lamdefs,;t t
10269 s,@LIBOBJS@,$LIBOBJS,;t t
10270 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10271 CEOF
10272
10273 _ACEOF
10274
10275   cat >>$CONFIG_STATUS <<\_ACEOF
10276   # Split the substitutions into bite-sized pieces for seds with
10277   # small command number limits, like on Digital OSF/1 and HP-UX.
10278   ac_max_sed_lines=48
10279   ac_sed_frag=1 # Number of current file.
10280   ac_beg=1 # First line for current file.
10281   ac_end=$ac_max_sed_lines # Line after last line for current file.
10282   ac_more_lines=:
10283   ac_sed_cmds=
10284   while $ac_more_lines; do
10285     if test $ac_beg -gt 1; then
10286       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10287     else
10288       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10289     fi
10290     if test ! -s $tmp/subs.frag; then
10291       ac_more_lines=false
10292     else
10293       # The purpose of the label and of the branching condition is to
10294       # speed up the sed processing (if there are no `@' at all, there
10295       # is no need to browse any of the substitutions).
10296       # These are the two extra sed commands mentioned above.
10297       (echo ':t
10298   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10299       if test -z "$ac_sed_cmds"; then
10300         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10301       else
10302         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10303       fi
10304       ac_sed_frag=`expr $ac_sed_frag + 1`
10305       ac_beg=$ac_end
10306       ac_end=`expr $ac_end + $ac_max_sed_lines`
10307     fi
10308   done
10309   if test -z "$ac_sed_cmds"; then
10310     ac_sed_cmds=cat
10311   fi
10312 fi # test -n "$CONFIG_FILES"
10313
10314 _ACEOF
10315 cat >>$CONFIG_STATUS <<\_ACEOF
10316 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10317   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10318   case $ac_file in
10319   - | *:- | *:-:* ) # input from stdin
10320         cat >$tmp/stdin
10321         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10322         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10323   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10324         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10325   * )   ac_file_in=$ac_file.in ;;
10326   esac
10327
10328   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10329   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10330 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10331          X"$ac_file" : 'X\(//\)[^/]' \| \
10332          X"$ac_file" : 'X\(//\)$' \| \
10333          X"$ac_file" : 'X\(/\)' \| \
10334          .     : '\(.\)' 2>/dev/null ||
10335 echo X"$ac_file" |
10336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10337           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10338           /^X\(\/\/\)$/{ s//\1/; q; }
10339           /^X\(\/\).*/{ s//\1/; q; }
10340           s/.*/./; q'`
10341   { if $as_mkdir_p; then
10342     mkdir -p "$ac_dir"
10343   else
10344     as_dir="$ac_dir"
10345     as_dirs=
10346     while test ! -d "$as_dir"; do
10347       as_dirs="$as_dir $as_dirs"
10348       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10350          X"$as_dir" : 'X\(//\)[^/]' \| \
10351          X"$as_dir" : 'X\(//\)$' \| \
10352          X"$as_dir" : 'X\(/\)' \| \
10353          .     : '\(.\)' 2>/dev/null ||
10354 echo X"$as_dir" |
10355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10356           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10357           /^X\(\/\/\)$/{ s//\1/; q; }
10358           /^X\(\/\).*/{ s//\1/; q; }
10359           s/.*/./; q'`
10360     done
10361     test ! -n "$as_dirs" || mkdir $as_dirs
10362   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10363 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10364    { (exit 1); exit 1; }; }; }
10365
10366   ac_builddir=.
10367
10368 if test "$ac_dir" != .; then
10369   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10370   # A "../" for each directory in $ac_dir_suffix.
10371   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10372 else
10373   ac_dir_suffix= ac_top_builddir=
10374 fi
10375
10376 case $srcdir in
10377   .)  # No --srcdir option.  We are building in place.
10378     ac_srcdir=.
10379     if test -z "$ac_top_builddir"; then
10380        ac_top_srcdir=.
10381     else
10382        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10383     fi ;;
10384   [\\/]* | ?:[\\/]* )  # Absolute path.
10385     ac_srcdir=$srcdir$ac_dir_suffix;
10386     ac_top_srcdir=$srcdir ;;
10387   *) # Relative path.
10388     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10389     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10390 esac
10391 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10392 # absolute.
10393 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10394 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10395 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10396 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10397
10398
10399   case $INSTALL in
10400   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10401   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10402   esac
10403
10404   if test x"$ac_file" != x-; then
10405     { echo "$as_me:$LINENO: creating $ac_file" >&5
10406 echo "$as_me: creating $ac_file" >&6;}
10407     rm -f "$ac_file"
10408   fi
10409   # Let's still pretend it is `configure' which instantiates (i.e., don't
10410   # use $as_me), people would be surprised to read:
10411   #    /* config.h.  Generated by config.status.  */
10412   if test x"$ac_file" = x-; then
10413     configure_input=
10414   else
10415     configure_input="$ac_file.  "
10416   fi
10417   configure_input=$configure_input"Generated from `echo $ac_file_in |
10418                                      sed 's,.*/,,'` by configure."
10419
10420   # First look for the input files in the build tree, otherwise in the
10421   # src tree.
10422   ac_file_inputs=`IFS=:
10423     for f in $ac_file_in; do
10424       case $f in
10425       -) echo $tmp/stdin ;;
10426       [\\/$]*)
10427          # Absolute (can't be DOS-style, as IFS=:)
10428          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10429 echo "$as_me: error: cannot find input file: $f" >&2;}
10430    { (exit 1); exit 1; }; }
10431          echo $f;;
10432       *) # Relative
10433          if test -f "$f"; then
10434            # Build tree
10435            echo $f
10436          elif test -f "$srcdir/$f"; then
10437            # Source tree
10438            echo $srcdir/$f
10439          else
10440            # /dev/null tree
10441            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10442 echo "$as_me: error: cannot find input file: $f" >&2;}
10443    { (exit 1); exit 1; }; }
10444          fi;;
10445       esac
10446     done` || { (exit 1); exit 1; }
10447 _ACEOF
10448 cat >>$CONFIG_STATUS <<_ACEOF
10449   sed "$ac_vpsub
10450 $extrasub
10451 _ACEOF
10452 cat >>$CONFIG_STATUS <<\_ACEOF
10453 :t
10454 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10455 s,@configure_input@,$configure_input,;t t
10456 s,@srcdir@,$ac_srcdir,;t t
10457 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10458 s,@top_srcdir@,$ac_top_srcdir,;t t
10459 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10460 s,@builddir@,$ac_builddir,;t t
10461 s,@abs_builddir@,$ac_abs_builddir,;t t
10462 s,@top_builddir@,$ac_top_builddir,;t t
10463 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10464 s,@INSTALL@,$ac_INSTALL,;t t
10465 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10466   rm -f $tmp/stdin
10467   if test x"$ac_file" != x-; then
10468     mv $tmp/out $ac_file
10469   else
10470     cat $tmp/out
10471     rm -f $tmp/out
10472   fi
10473
10474 done
10475 _ACEOF
10476 cat >>$CONFIG_STATUS <<\_ACEOF
10477
10478 #
10479 # CONFIG_HEADER section.
10480 #
10481
10482 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10483 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10484 #
10485 # ac_d sets the value in "#define NAME VALUE" lines.
10486 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
10487 ac_dB='[        ].*$,\1#\2'
10488 ac_dC=' '
10489 ac_dD=',;t'
10490 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10491 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10492 ac_uB='$,\1#\2define\3'
10493 ac_uC=' '
10494 ac_uD=',;t'
10495
10496 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10497   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10498   case $ac_file in
10499   - | *:- | *:-:* ) # input from stdin
10500         cat >$tmp/stdin
10501         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10502         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10503   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10504         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10505   * )   ac_file_in=$ac_file.in ;;
10506   esac
10507
10508   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10509 echo "$as_me: creating $ac_file" >&6;}
10510
10511   # First look for the input files in the build tree, otherwise in the
10512   # src tree.
10513   ac_file_inputs=`IFS=:
10514     for f in $ac_file_in; do
10515       case $f in
10516       -) echo $tmp/stdin ;;
10517       [\\/$]*)
10518          # Absolute (can't be DOS-style, as IFS=:)
10519          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10520 echo "$as_me: error: cannot find input file: $f" >&2;}
10521    { (exit 1); exit 1; }; }
10522          echo $f;;
10523       *) # Relative
10524          if test -f "$f"; then
10525            # Build tree
10526            echo $f
10527          elif test -f "$srcdir/$f"; then
10528            # Source tree
10529            echo $srcdir/$f
10530          else
10531            # /dev/null tree
10532            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10533 echo "$as_me: error: cannot find input file: $f" >&2;}
10534    { (exit 1); exit 1; }; }
10535          fi;;
10536       esac
10537     done` || { (exit 1); exit 1; }
10538   # Remove the trailing spaces.
10539   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
10540
10541 _ACEOF
10542
10543 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10544 # `conftest.undefs', that substitutes the proper values into
10545 # config.h.in to produce config.h.  The first handles `#define'
10546 # templates, and the second `#undef' templates.
10547 # And first: Protect against being on the right side of a sed subst in
10548 # config.status.  Protect against being in an unquoted here document
10549 # in config.status.
10550 rm -f conftest.defines conftest.undefs
10551 # Using a here document instead of a string reduces the quoting nightmare.
10552 # Putting comments in sed scripts is not portable.
10553 #
10554 # `end' is used to avoid that the second main sed command (meant for
10555 # 0-ary CPP macros) applies to n-ary macro definitions.
10556 # See the Autoconf documentation for `clear'.
10557 cat >confdef2sed.sed <<\_ACEOF
10558 s/[\\&,]/\\&/g
10559 s,[\\$`],\\&,g
10560 t clear
10561 : clear
10562 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10563 t end
10564 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10565 : end
10566 _ACEOF
10567 # If some macros were called several times there might be several times
10568 # the same #defines, which is useless.  Nevertheless, we may not want to
10569 # sort them, since we want the *last* AC-DEFINE to be honored.
10570 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10571 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10572 rm -f confdef2sed.sed
10573
10574 # This sed command replaces #undef with comments.  This is necessary, for
10575 # example, in the case of _POSIX_SOURCE, which is predefined and required
10576 # on some systems where configure will not decide to define it.
10577 cat >>conftest.undefs <<\_ACEOF
10578 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10579 _ACEOF
10580
10581 # Break up conftest.defines because some shells have a limit on the size
10582 # of here documents, and old seds have small limits too (100 cmds).
10583 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10584 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10585 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10586 echo '  :' >>$CONFIG_STATUS
10587 rm -f conftest.tail
10588 while grep . conftest.defines >/dev/null
10589 do
10590   # Write a limited-size here document to $tmp/defines.sed.
10591   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10592   # Speed up: don't consider the non `#define' lines.
10593   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
10594   # Work around the forget-to-reset-the-flag bug.
10595   echo 't clr' >>$CONFIG_STATUS
10596   echo ': clr' >>$CONFIG_STATUS
10597   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10598   echo 'CEOF
10599   sed -f $tmp/defines.sed $tmp/in >$tmp/out
10600   rm -f $tmp/in
10601   mv $tmp/out $tmp/in
10602 ' >>$CONFIG_STATUS
10603   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10604   rm -f conftest.defines
10605   mv conftest.tail conftest.defines
10606 done
10607 rm -f conftest.defines
10608 echo '  fi # grep' >>$CONFIG_STATUS
10609 echo >>$CONFIG_STATUS
10610
10611 # Break up conftest.undefs because some shells have a limit on the size
10612 # of here documents, and old seds have small limits too (100 cmds).
10613 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10614 rm -f conftest.tail
10615 while grep . conftest.undefs >/dev/null
10616 do
10617   # Write a limited-size here document to $tmp/undefs.sed.
10618   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10619   # Speed up: don't consider the non `#undef'
10620   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10621   # Work around the forget-to-reset-the-flag bug.
10622   echo 't clr' >>$CONFIG_STATUS
10623   echo ': clr' >>$CONFIG_STATUS
10624   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10625   echo 'CEOF
10626   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10627   rm -f $tmp/in
10628   mv $tmp/out $tmp/in
10629 ' >>$CONFIG_STATUS
10630   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10631   rm -f conftest.undefs
10632   mv conftest.tail conftest.undefs
10633 done
10634 rm -f conftest.undefs
10635
10636 cat >>$CONFIG_STATUS <<\_ACEOF
10637   # Let's still pretend it is `configure' which instantiates (i.e., don't
10638   # use $as_me), people would be surprised to read:
10639   #    /* config.h.  Generated by config.status.  */
10640   if test x"$ac_file" = x-; then
10641     echo "/* Generated by configure.  */" >$tmp/config.h
10642   else
10643     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10644   fi
10645   cat $tmp/in >>$tmp/config.h
10646   rm -f $tmp/in
10647   if test x"$ac_file" != x-; then
10648     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10649       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10650 echo "$as_me: $ac_file is unchanged" >&6;}
10651     else
10652       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10653 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10654          X"$ac_file" : 'X\(//\)[^/]' \| \
10655          X"$ac_file" : 'X\(//\)$' \| \
10656          X"$ac_file" : 'X\(/\)' \| \
10657          .     : '\(.\)' 2>/dev/null ||
10658 echo X"$ac_file" |
10659     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10660           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10661           /^X\(\/\/\)$/{ s//\1/; q; }
10662           /^X\(\/\).*/{ s//\1/; q; }
10663           s/.*/./; q'`
10664       { if $as_mkdir_p; then
10665     mkdir -p "$ac_dir"
10666   else
10667     as_dir="$ac_dir"
10668     as_dirs=
10669     while test ! -d "$as_dir"; do
10670       as_dirs="$as_dir $as_dirs"
10671       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10672 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10673          X"$as_dir" : 'X\(//\)[^/]' \| \
10674          X"$as_dir" : 'X\(//\)$' \| \
10675          X"$as_dir" : 'X\(/\)' \| \
10676          .     : '\(.\)' 2>/dev/null ||
10677 echo X"$as_dir" |
10678     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10679           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10680           /^X\(\/\/\)$/{ s//\1/; q; }
10681           /^X\(\/\).*/{ s//\1/; q; }
10682           s/.*/./; q'`
10683     done
10684     test ! -n "$as_dirs" || mkdir $as_dirs
10685   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10686 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10687    { (exit 1); exit 1; }; }; }
10688
10689       rm -f $ac_file
10690       mv $tmp/config.h $ac_file
10691     fi
10692   else
10693     cat $tmp/config.h
10694     rm -f $tmp/config.h
10695   fi
10696 done
10697 _ACEOF
10698 cat >>$CONFIG_STATUS <<\_ACEOF
10699
10700 #
10701 # CONFIG_COMMANDS section.
10702 #
10703 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10704   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10705   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10706   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10707 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10708          X"$ac_dest" : 'X\(//\)[^/]' \| \
10709          X"$ac_dest" : 'X\(//\)$' \| \
10710          X"$ac_dest" : 'X\(/\)' \| \
10711          .     : '\(.\)' 2>/dev/null ||
10712 echo X"$ac_dest" |
10713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10714           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10715           /^X\(\/\/\)$/{ s//\1/; q; }
10716           /^X\(\/\).*/{ s//\1/; q; }
10717           s/.*/./; q'`
10718   ac_builddir=.
10719
10720 if test "$ac_dir" != .; then
10721   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10722   # A "../" for each directory in $ac_dir_suffix.
10723   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10724 else
10725   ac_dir_suffix= ac_top_builddir=
10726 fi
10727
10728 case $srcdir in
10729   .)  # No --srcdir option.  We are building in place.
10730     ac_srcdir=.
10731     if test -z "$ac_top_builddir"; then
10732        ac_top_srcdir=.
10733     else
10734        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10735     fi ;;
10736   [\\/]* | ?:[\\/]* )  # Absolute path.
10737     ac_srcdir=$srcdir$ac_dir_suffix;
10738     ac_top_srcdir=$srcdir ;;
10739   *) # Relative path.
10740     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10741     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10742 esac
10743 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10744 # absolute.
10745 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10746 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10747 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10748 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10749
10750
10751   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10752 echo "$as_me: executing $ac_dest commands" >&6;}
10753   case $ac_dest in
10754     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10755   esac
10756 done
10757 _ACEOF
10758
10759 cat >>$CONFIG_STATUS <<\_ACEOF
10760
10761 { (exit 0); exit 0; }
10762 _ACEOF
10763 chmod +x $CONFIG_STATUS
10764 ac_clean_files=$ac_clean_files_save
10765
10766
10767 # configure is writing to config.log, and then calls config.status.
10768 # config.status does its own redirection, appending to config.log.
10769 # Unfortunately, on DOS this fails, as config.log is still kept open
10770 # by configure, so config.status won't be able to write to it; its
10771 # output is simply discarded.  So we exec the FD to /dev/null,
10772 # effectively closing config.log, so it can be properly (re)opened and
10773 # appended to by config.status.  When coming back to configure, we
10774 # need to make the FD available again.
10775 if test "$no_create" != yes; then
10776   ac_cs_success=:
10777   ac_config_status_args=
10778   test "$silent" = yes &&
10779     ac_config_status_args="$ac_config_status_args --quiet"
10780   exec 5>/dev/null
10781   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10782   exec 5>>config.log
10783   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10784   # would make configure fail if this is the last instruction.
10785   $ac_cs_success || { (exit 1); exit 1; }
10786 fi
10787