r3892: Auto commit for Debian build
[ctsim.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/ctsim.cpp"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AWK RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX wxconfig build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP INCLUDED_GETOPT_LONG_TRUE INCLUDED_GETOPT_LONG_FALSE DEBUG_TRUE DEBUG_FALSE lamdir mpienable cgibindir cgibinurl webdatadir webdataurl htmldir cgiprograms htmldata USE_HTML_TRUE USE_HTML_FALSE webenabled USE_LAM_TRUE USE_LAM_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_TOOLKIT_LIBS X_BASIC_LIBS NO_X_TRUE NO_X_FALSE my_includes HAVE_SGP_TRUE HAVE_SGP_FALSE HAVE_WXWINDOWS_TRUE HAVE_WXWINDOWS_FALSE wxcflags wxlibs ctlibs lamprograms lamdefs LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 Program names:
842   --program-prefix=PREFIX            prepend PREFIX to installed program names
843   --program-suffix=SUFFIX            append SUFFIX to installed program names
844   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
845
846 X features:
847   --x-includes=DIR    X include files are in DIR
848   --x-libraries=DIR   X library files are in DIR
849
850 System types:
851   --build=BUILD     configure for building on BUILD [guessed]
852   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
853 _ACEOF
854 fi
855
856 if test -n "$ac_init_help"; then
857
858   cat <<\_ACEOF
859
860 Optional Features:
861   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
862   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
863   --enable-debug          Turn on debugging
864   --enable-verbose-warnings
865                           Enable verbose compiler warnings.
866   --enable-static
867                             Enable static executables.
868   --enable-dmalloc        Use dmalloc memory allocation
869   --enable-efence        Use ElectricFence memory allocation
870
871 Optional Packages:
872   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
873   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
874   --with-lam=PATH         Set path of LAM MPI
875   --with-ctn=PATH         Set path of CTN DICOM library
876   --with-mcpu=CPU         Set name of CPU for gcc -mcpu
877   --with-cgibin-dir=PATH  Set path of CGI binaries directory
878   --with-cgibin-url=PATH  Set URL path of CGI binaries
879   --with-webdata-dir=PATH Set path of webdata
880   --with-webdata-url=PATH Set URL path of webdata
881   --with-html-dir=PATH    Set directory of html files
882   --with-x                use the X Window System
883
884 Some influential environment variables:
885   CC          C compiler command
886   CFLAGS      C compiler flags
887   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
888               nonstandard directory <lib dir>
889   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
890               headers in a nonstandard directory <include dir>
891   CXX         C++ compiler command
892   CXXFLAGS    C++ compiler flags
893   CPP         C preprocessor
894
895 Use these variables to override the choices made by `configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
897
898 _ACEOF
899 fi
900
901 if test "$ac_init_help" = "recursive"; then
902   # If there are subdirs, report their specific --help.
903   ac_popdir=`pwd`
904   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
905     test -d $ac_dir || continue
906     ac_builddir=.
907
908 if test "$ac_dir" != .; then
909   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
910   # A "../" for each directory in $ac_dir_suffix.
911   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
912 else
913   ac_dir_suffix= ac_top_builddir=
914 fi
915
916 case $srcdir in
917   .)  # No --srcdir option.  We are building in place.
918     ac_srcdir=.
919     if test -z "$ac_top_builddir"; then
920        ac_top_srcdir=.
921     else
922        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
923     fi ;;
924   [\\/]* | ?:[\\/]* )  # Absolute path.
925     ac_srcdir=$srcdir$ac_dir_suffix;
926     ac_top_srcdir=$srcdir ;;
927   *) # Relative path.
928     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929     ac_top_srcdir=$ac_top_builddir$srcdir ;;
930 esac
931 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
932 # absolute.
933 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
934 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
935 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
936 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
937
938     cd $ac_dir
939     # Check for guested configure; otherwise get Cygnus style configure.
940     if test -f $ac_srcdir/configure.gnu; then
941       echo
942       $SHELL $ac_srcdir/configure.gnu  --help=recursive
943     elif test -f $ac_srcdir/configure; then
944       echo
945       $SHELL $ac_srcdir/configure  --help=recursive
946     elif test -f $ac_srcdir/configure.ac ||
947            test -f $ac_srcdir/configure.in; then
948       echo
949       $ac_configure --help
950     else
951       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952     fi
953     cd $ac_popdir
954   done
955 fi
956
957 test -n "$ac_init_help" && exit 0
958 if $ac_init_version; then
959   cat <<\_ACEOF
960
961 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
962 Free Software Foundation, Inc.
963 This configure script is free software; the Free Software Foundation
964 gives unlimited permission to copy, distribute and modify it.
965 _ACEOF
966   exit 0
967 fi
968 exec 5>config.log
969 cat >&5 <<_ACEOF
970 This file contains any messages produced by compilers while
971 running configure, to aid debugging if configure makes a mistake.
972
973 It was created by $as_me, which was
974 generated by GNU Autoconf 2.57.  Invocation command line was
975
976   $ $0 $@
977
978 _ACEOF
979 {
980 cat <<_ASUNAME
981 ## --------- ##
982 ## Platform. ##
983 ## --------- ##
984
985 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
986 uname -m = `(uname -m) 2>/dev/null || echo unknown`
987 uname -r = `(uname -r) 2>/dev/null || echo unknown`
988 uname -s = `(uname -s) 2>/dev/null || echo unknown`
989 uname -v = `(uname -v) 2>/dev/null || echo unknown`
990
991 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
992 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
993
994 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
995 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
996 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
997 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
998 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
999 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1000 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1001
1002 _ASUNAME
1003
1004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 for as_dir in $PATH
1006 do
1007   IFS=$as_save_IFS
1008   test -z "$as_dir" && as_dir=.
1009   echo "PATH: $as_dir"
1010 done
1011
1012 } >&5
1013
1014 cat >&5 <<_ACEOF
1015
1016
1017 ## ----------- ##
1018 ## Core tests. ##
1019 ## ----------- ##
1020
1021 _ACEOF
1022
1023
1024 # Keep a trace of the command line.
1025 # Strip out --no-create and --no-recursion so they do not pile up.
1026 # Strip out --silent because we don't want to record it for future runs.
1027 # Also quote any args containing shell meta-characters.
1028 # Make two passes to allow for proper duplicate-argument suppression.
1029 ac_configure_args=
1030 ac_configure_args0=
1031 ac_configure_args1=
1032 ac_sep=
1033 ac_must_keep_next=false
1034 for ac_pass in 1 2
1035 do
1036   for ac_arg
1037   do
1038     case $ac_arg in
1039     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1040     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041     | -silent | --silent | --silen | --sile | --sil)
1042       continue ;;
1043     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1044       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1045     esac
1046     case $ac_pass in
1047     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1048     2)
1049       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1050       if test $ac_must_keep_next = true; then
1051         ac_must_keep_next=false # Got value, back to normal.
1052       else
1053         case $ac_arg in
1054           *=* | --config-cache | -C | -disable-* | --disable-* \
1055           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1056           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1057           | -with-* | --with-* | -without-* | --without-* | --x)
1058             case "$ac_configure_args0 " in
1059               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1060             esac
1061             ;;
1062           -* ) ac_must_keep_next=true ;;
1063         esac
1064       fi
1065       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1066       # Get rid of the leading space.
1067       ac_sep=" "
1068       ;;
1069     esac
1070   done
1071 done
1072 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1073 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1074
1075 # When interrupted or exit'd, cleanup temporary files, and complete
1076 # config.log.  We remove comments because anyway the quotes in there
1077 # would cause problems or look ugly.
1078 # WARNING: Be sure not to use single quotes in there, as some shells,
1079 # such as our DU 5.0 friend, will then `close' the trap.
1080 trap 'exit_status=$?
1081   # Save into config.log some information that might help in debugging.
1082   {
1083     echo
1084
1085     cat <<\_ASBOX
1086 ## ---------------- ##
1087 ## Cache variables. ##
1088 ## ---------------- ##
1089 _ASBOX
1090     echo
1091     # The following way of writing the cache mishandles newlines in values,
1092 {
1093   (set) 2>&1 |
1094     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1095     *ac_space=\ *)
1096       sed -n \
1097         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1098           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1099       ;;
1100     *)
1101       sed -n \
1102         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1103       ;;
1104     esac;
1105 }
1106     echo
1107
1108     cat <<\_ASBOX
1109 ## ----------------- ##
1110 ## Output variables. ##
1111 ## ----------------- ##
1112 _ASBOX
1113     echo
1114     for ac_var in $ac_subst_vars
1115     do
1116       eval ac_val=$`echo $ac_var`
1117       echo "$ac_var='"'"'$ac_val'"'"'"
1118     done | sort
1119     echo
1120
1121     if test -n "$ac_subst_files"; then
1122       cat <<\_ASBOX
1123 ## ------------- ##
1124 ## Output files. ##
1125 ## ------------- ##
1126 _ASBOX
1127       echo
1128       for ac_var in $ac_subst_files
1129       do
1130         eval ac_val=$`echo $ac_var`
1131         echo "$ac_var='"'"'$ac_val'"'"'"
1132       done | sort
1133       echo
1134     fi
1135
1136     if test -s confdefs.h; then
1137       cat <<\_ASBOX
1138 ## ----------- ##
1139 ## confdefs.h. ##
1140 ## ----------- ##
1141 _ASBOX
1142       echo
1143       sed "/^$/d" confdefs.h | sort
1144       echo
1145     fi
1146     test "$ac_signal" != 0 &&
1147       echo "$as_me: caught signal $ac_signal"
1148     echo "$as_me: exit $exit_status"
1149   } >&5
1150   rm -f core core.* *.core &&
1151   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1152     exit $exit_status
1153      ' 0
1154 for ac_signal in 1 2 13 15; do
1155   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1156 done
1157 ac_signal=0
1158
1159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1160 rm -rf conftest* confdefs.h
1161 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1162 echo >confdefs.h
1163
1164 # Predefined preprocessor variables.
1165
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_NAME "$PACKAGE_NAME"
1168 _ACEOF
1169
1170
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1173 _ACEOF
1174
1175
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1178 _ACEOF
1179
1180
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_STRING "$PACKAGE_STRING"
1183 _ACEOF
1184
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1188 _ACEOF
1189
1190
1191 # Let the site file select an alternate cache file if it wants to.
1192 # Prefer explicitly selected file to automatically selected ones.
1193 if test -z "$CONFIG_SITE"; then
1194   if test "x$prefix" != xNONE; then
1195     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1196   else
1197     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1198   fi
1199 fi
1200 for ac_site_file in $CONFIG_SITE; do
1201   if test -r "$ac_site_file"; then
1202     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1203 echo "$as_me: loading site script $ac_site_file" >&6;}
1204     sed 's/^/| /' "$ac_site_file" >&5
1205     . "$ac_site_file"
1206   fi
1207 done
1208
1209 if test -r "$cache_file"; then
1210   # Some versions of bash will fail to source /dev/null (special
1211   # files actually), so we avoid doing that.
1212   if test -f "$cache_file"; then
1213     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1214 echo "$as_me: loading cache $cache_file" >&6;}
1215     case $cache_file in
1216       [\\/]* | ?:[\\/]* ) . $cache_file;;
1217       *)                      . ./$cache_file;;
1218     esac
1219   fi
1220 else
1221   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1222 echo "$as_me: creating cache $cache_file" >&6;}
1223   >$cache_file
1224 fi
1225
1226 # Check that the precious variables saved in the cache have kept the same
1227 # value.
1228 ac_cache_corrupted=false
1229 for ac_var in `(set) 2>&1 |
1230                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1231   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1232   eval ac_new_set=\$ac_env_${ac_var}_set
1233   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1234   eval ac_new_val="\$ac_env_${ac_var}_value"
1235   case $ac_old_set,$ac_new_set in
1236     set,)
1237       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1239       ac_cache_corrupted=: ;;
1240     ,set)
1241       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1243       ac_cache_corrupted=: ;;
1244     ,);;
1245     *)
1246       if test "x$ac_old_val" != "x$ac_new_val"; then
1247         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1248 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1249         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1250 echo "$as_me:   former value:  $ac_old_val" >&2;}
1251         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1252 echo "$as_me:   current value: $ac_new_val" >&2;}
1253         ac_cache_corrupted=:
1254       fi;;
1255   esac
1256   # Pass precious variables to config.status.
1257   if test "$ac_new_set" = set; then
1258     case $ac_new_val in
1259     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1261     *) ac_arg=$ac_var=$ac_new_val ;;
1262     esac
1263     case " $ac_configure_args " in
1264       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1265       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1266     esac
1267   fi
1268 done
1269 if $ac_cache_corrupted; then
1270   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1271 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1272   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1273 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1274    { (exit 1); exit 1; }; }
1275 fi
1276
1277 ac_ext=c
1278 ac_cpp='$CPP $CPPFLAGS'
1279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302 am__api_version="1.4"
1303 ac_aux_dir=
1304 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1305   if test -f $ac_dir/install-sh; then
1306     ac_aux_dir=$ac_dir
1307     ac_install_sh="$ac_aux_dir/install-sh -c"
1308     break
1309   elif test -f $ac_dir/install.sh; then
1310     ac_aux_dir=$ac_dir
1311     ac_install_sh="$ac_aux_dir/install.sh -c"
1312     break
1313   elif test -f $ac_dir/shtool; then
1314     ac_aux_dir=$ac_dir
1315     ac_install_sh="$ac_aux_dir/shtool install -c"
1316     break
1317   fi
1318 done
1319 if test -z "$ac_aux_dir"; then
1320   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1321 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1322    { (exit 1); exit 1; }; }
1323 fi
1324 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1325 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1326 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1327
1328 # Find a good install program.  We prefer a C program (faster),
1329 # so one script is as good as another.  But avoid the broken or
1330 # incompatible versions:
1331 # SysV /etc/install, /usr/sbin/install
1332 # SunOS /usr/etc/install
1333 # IRIX /sbin/install
1334 # AIX /bin/install
1335 # AmigaOS /C/install, which installs bootblocks on floppy discs
1336 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1337 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1338 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1339 # ./install, which can be erroneously created by make from ./install.sh.
1340 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1341 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1342 if test -z "$INSTALL"; then
1343 if test "${ac_cv_path_install+set}" = set; then
1344   echo $ECHO_N "(cached) $ECHO_C" >&6
1345 else
1346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1347 for as_dir in $PATH
1348 do
1349   IFS=$as_save_IFS
1350   test -z "$as_dir" && as_dir=.
1351   # Account for people who put trailing slashes in PATH elements.
1352 case $as_dir/ in
1353   ./ | .// | /cC/* | \
1354   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1355   /usr/ucb/* ) ;;
1356   *)
1357     # OSF1 and SCO ODT 3.0 have their own names for install.
1358     # Don't use installbsd from OSF since it installs stuff as root
1359     # by default.
1360     for ac_prog in ginstall scoinst install; do
1361       for ac_exec_ext in '' $ac_executable_extensions; do
1362         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1363           if test $ac_prog = install &&
1364             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1365             # AIX install.  It has an incompatible calling convention.
1366             :
1367           elif test $ac_prog = install &&
1368             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1369             # program-specific install script used by HP pwplus--don't use.
1370             :
1371           else
1372             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1373             break 3
1374           fi
1375         fi
1376       done
1377     done
1378     ;;
1379 esac
1380 done
1381
1382
1383 fi
1384   if test "${ac_cv_path_install+set}" = set; then
1385     INSTALL=$ac_cv_path_install
1386   else
1387     # As a last resort, use the slow shell script.  We don't cache a
1388     # path for INSTALL within a source directory, because that will
1389     # break other packages using the cache if that directory is
1390     # removed, or if the path is relative.
1391     INSTALL=$ac_install_sh
1392   fi
1393 fi
1394 echo "$as_me:$LINENO: result: $INSTALL" >&5
1395 echo "${ECHO_T}$INSTALL" >&6
1396
1397 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1398 # It thinks the first close brace ends the variable substitution.
1399 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1400
1401 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1402
1403 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1404
1405 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1406 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1407 # Just in case
1408 sleep 1
1409 echo timestamp > conftestfile
1410 # Do `set' in a subshell so we don't clobber the current shell's
1411 # arguments.  Must try -L first in case configure is actually a
1412 # symlink; some systems play weird games with the mod time of symlinks
1413 # (eg FreeBSD returns the mod time of the symlink's containing
1414 # directory).
1415 if (
1416    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1417    if test "$*" = "X"; then
1418       # -L didn't work.
1419       set X `ls -t $srcdir/configure conftestfile`
1420    fi
1421    if test "$*" != "X $srcdir/configure conftestfile" \
1422       && test "$*" != "X conftestfile $srcdir/configure"; then
1423
1424       # If neither matched, then we have a broken ls.  This can happen
1425       # if, for instance, CONFIG_SHELL is bash and it inherits a
1426       # broken ls alias from the environment.  This has actually
1427       # happened.  Such a system could not be considered "sane".
1428       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1429 alias in your environment" >&5
1430 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1431 alias in your environment" >&2;}
1432    { (exit 1); exit 1; }; }
1433    fi
1434
1435    test "$2" = conftestfile
1436    )
1437 then
1438    # Ok.
1439    :
1440 else
1441    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1442 Check your system clock" >&5
1443 echo "$as_me: error: newly created file is older than distributed files!
1444 Check your system clock" >&2;}
1445    { (exit 1); exit 1; }; }
1446 fi
1447 rm -f conftest*
1448 echo "$as_me:$LINENO: result: yes" >&5
1449 echo "${ECHO_T}yes" >&6
1450 test "$program_prefix" != NONE &&
1451   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1452 # Use a double $ so make ignores it.
1453 test "$program_suffix" != NONE &&
1454   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1455 # Double any \ or $.  echo might interpret backslashes.
1456 # By default was `s,x,x', remove it if useless.
1457 cat <<\_ACEOF >conftest.sed
1458 s/[\\$]/&&/g;s/;s,x,x,$//
1459 _ACEOF
1460 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1461 rm conftest.sed
1462
1463 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1464 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1465 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1466 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1467   echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469   cat >conftest.make <<\_ACEOF
1470 all:
1471         @echo 'ac_maketemp="$(MAKE)"'
1472 _ACEOF
1473 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1474 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1475 if test -n "$ac_maketemp"; then
1476   eval ac_cv_prog_make_${ac_make}_set=yes
1477 else
1478   eval ac_cv_prog_make_${ac_make}_set=no
1479 fi
1480 rm -f conftest.make
1481 fi
1482 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1483   echo "$as_me:$LINENO: result: yes" >&5
1484 echo "${ECHO_T}yes" >&6
1485   SET_MAKE=
1486 else
1487   echo "$as_me:$LINENO: result: no" >&5
1488 echo "${ECHO_T}no" >&6
1489   SET_MAKE="MAKE=${MAKE-make}"
1490 fi
1491
1492
1493 PACKAGE=ctsim
1494
1495 VERSION=4.0.2
1496
1497 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1498   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1499 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1500    { (exit 1); exit 1; }; }
1501 fi
1502
1503 cat >>confdefs.h <<_ACEOF
1504 #define PACKAGE "$PACKAGE"
1505 _ACEOF
1506
1507
1508 cat >>confdefs.h <<_ACEOF
1509 #define VERSION "$VERSION"
1510 _ACEOF
1511
1512
1513
1514 missing_dir=`cd $ac_aux_dir && pwd`
1515 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1516 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1517 # Run test in a subshell; some versions of sh will print an error if
1518 # an executable is not found, even if stderr is redirected.
1519 # Redirect stdin to placate older versions of autoconf.  Sigh.
1520 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1521    ACLOCAL=aclocal-${am__api_version}
1522    echo "$as_me:$LINENO: result: found" >&5
1523 echo "${ECHO_T}found" >&6
1524 else
1525    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1526    echo "$as_me:$LINENO: result: missing" >&5
1527 echo "${ECHO_T}missing" >&6
1528 fi
1529
1530 echo "$as_me:$LINENO: checking for working autoconf" >&5
1531 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1532 # Run test in a subshell; some versions of sh will print an error if
1533 # an executable is not found, even if stderr is redirected.
1534 # Redirect stdin to placate older versions of autoconf.  Sigh.
1535 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1536    AUTOCONF=autoconf
1537    echo "$as_me:$LINENO: result: found" >&5
1538 echo "${ECHO_T}found" >&6
1539 else
1540    AUTOCONF="$missing_dir/missing autoconf"
1541    echo "$as_me:$LINENO: result: missing" >&5
1542 echo "${ECHO_T}missing" >&6
1543 fi
1544
1545 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1546 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1547 # Run test in a subshell; some versions of sh will print an error if
1548 # an executable is not found, even if stderr is redirected.
1549 # Redirect stdin to placate older versions of autoconf.  Sigh.
1550 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1551    AUTOMAKE=automake-${am__api_version}
1552    echo "$as_me:$LINENO: result: found" >&5
1553 echo "${ECHO_T}found" >&6
1554 else
1555    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1556    echo "$as_me:$LINENO: result: missing" >&5
1557 echo "${ECHO_T}missing" >&6
1558 fi
1559
1560 echo "$as_me:$LINENO: checking for working autoheader" >&5
1561 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1562 # Run test in a subshell; some versions of sh will print an error if
1563 # an executable is not found, even if stderr is redirected.
1564 # Redirect stdin to placate older versions of autoconf.  Sigh.
1565 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1566    AUTOHEADER=autoheader
1567    echo "$as_me:$LINENO: result: found" >&5
1568 echo "${ECHO_T}found" >&6
1569 else
1570    AUTOHEADER="$missing_dir/missing autoheader"
1571    echo "$as_me:$LINENO: result: missing" >&5
1572 echo "${ECHO_T}missing" >&6
1573 fi
1574
1575 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1576 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1577 # Run test in a subshell; some versions of sh will print an error if
1578 # an executable is not found, even if stderr is redirected.
1579 # Redirect stdin to placate older versions of autoconf.  Sigh.
1580 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1581    MAKEINFO=makeinfo
1582    echo "$as_me:$LINENO: result: found" >&5
1583 echo "${ECHO_T}found" >&6
1584 else
1585    MAKEINFO="$missing_dir/missing makeinfo"
1586    echo "$as_me:$LINENO: result: missing" >&5
1587 echo "${ECHO_T}missing" >&6
1588 fi
1589
1590
1591
1592           ac_config_headers="$ac_config_headers config.h"
1593
1594           ac_config_commands="$ac_config_commands default-1"
1595
1596
1597 for ac_prog in gawk mawk nawk awk
1598 do
1599   # Extract the first word of "$ac_prog", so it can be a program name with args.
1600 set dummy $ac_prog; ac_word=$2
1601 echo "$as_me:$LINENO: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_AWK+set}" = set; then
1604   echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606   if test -n "$AWK"; then
1607   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1608 else
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 for as_dir in $PATH
1611 do
1612   IFS=$as_save_IFS
1613   test -z "$as_dir" && as_dir=.
1614   for ac_exec_ext in '' $ac_executable_extensions; do
1615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616     ac_cv_prog_AWK="$ac_prog"
1617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618     break 2
1619   fi
1620 done
1621 done
1622
1623 fi
1624 fi
1625 AWK=$ac_cv_prog_AWK
1626 if test -n "$AWK"; then
1627   echo "$as_me:$LINENO: result: $AWK" >&5
1628 echo "${ECHO_T}$AWK" >&6
1629 else
1630   echo "$as_me:$LINENO: result: no" >&5
1631 echo "${ECHO_T}no" >&6
1632 fi
1633
1634   test -n "$AWK" && break
1635 done
1636
1637 # Find a good install program.  We prefer a C program (faster),
1638 # so one script is as good as another.  But avoid the broken or
1639 # incompatible versions:
1640 # SysV /etc/install, /usr/sbin/install
1641 # SunOS /usr/etc/install
1642 # IRIX /sbin/install
1643 # AIX /bin/install
1644 # AmigaOS /C/install, which installs bootblocks on floppy discs
1645 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1646 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1647 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1648 # ./install, which can be erroneously created by make from ./install.sh.
1649 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1650 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1651 if test -z "$INSTALL"; then
1652 if test "${ac_cv_path_install+set}" = set; then
1653   echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658   IFS=$as_save_IFS
1659   test -z "$as_dir" && as_dir=.
1660   # Account for people who put trailing slashes in PATH elements.
1661 case $as_dir/ in
1662   ./ | .// | /cC/* | \
1663   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1664   /usr/ucb/* ) ;;
1665   *)
1666     # OSF1 and SCO ODT 3.0 have their own names for install.
1667     # Don't use installbsd from OSF since it installs stuff as root
1668     # by default.
1669     for ac_prog in ginstall scoinst install; do
1670       for ac_exec_ext in '' $ac_executable_extensions; do
1671         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1672           if test $ac_prog = install &&
1673             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1674             # AIX install.  It has an incompatible calling convention.
1675             :
1676           elif test $ac_prog = install &&
1677             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1678             # program-specific install script used by HP pwplus--don't use.
1679             :
1680           else
1681             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1682             break 3
1683           fi
1684         fi
1685       done
1686     done
1687     ;;
1688 esac
1689 done
1690
1691
1692 fi
1693   if test "${ac_cv_path_install+set}" = set; then
1694     INSTALL=$ac_cv_path_install
1695   else
1696     # As a last resort, use the slow shell script.  We don't cache a
1697     # path for INSTALL within a source directory, because that will
1698     # break other packages using the cache if that directory is
1699     # removed, or if the path is relative.
1700     INSTALL=$ac_install_sh
1701   fi
1702 fi
1703 echo "$as_me:$LINENO: result: $INSTALL" >&5
1704 echo "${ECHO_T}$INSTALL" >&6
1705
1706 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1707 # It thinks the first close brace ends the variable substitution.
1708 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1709
1710 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1711
1712 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1713
1714 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1715 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1716 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1717 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1718   echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720   cat >conftest.make <<\_ACEOF
1721 all:
1722         @echo 'ac_maketemp="$(MAKE)"'
1723 _ACEOF
1724 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1725 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1726 if test -n "$ac_maketemp"; then
1727   eval ac_cv_prog_make_${ac_make}_set=yes
1728 else
1729   eval ac_cv_prog_make_${ac_make}_set=no
1730 fi
1731 rm -f conftest.make
1732 fi
1733 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1734   echo "$as_me:$LINENO: result: yes" >&5
1735 echo "${ECHO_T}yes" >&6
1736   SET_MAKE=
1737 else
1738   echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1740   SET_MAKE="MAKE=${MAKE-make}"
1741 fi
1742
1743 if test -n "$ac_tool_prefix"; then
1744   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1745 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1746 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748 if test "${ac_cv_prog_RANLIB+set}" = set; then
1749   echo $ECHO_N "(cached) $ECHO_C" >&6
1750 else
1751   if test -n "$RANLIB"; then
1752   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1753 else
1754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 for as_dir in $PATH
1756 do
1757   IFS=$as_save_IFS
1758   test -z "$as_dir" && as_dir=.
1759   for ac_exec_ext in '' $ac_executable_extensions; do
1760   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763     break 2
1764   fi
1765 done
1766 done
1767
1768 fi
1769 fi
1770 RANLIB=$ac_cv_prog_RANLIB
1771 if test -n "$RANLIB"; then
1772   echo "$as_me:$LINENO: result: $RANLIB" >&5
1773 echo "${ECHO_T}$RANLIB" >&6
1774 else
1775   echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1777 fi
1778
1779 fi
1780 if test -z "$ac_cv_prog_RANLIB"; then
1781   ac_ct_RANLIB=$RANLIB
1782   # Extract the first word of "ranlib", so it can be a program name with args.
1783 set dummy ranlib; ac_word=$2
1784 echo "$as_me:$LINENO: checking for $ac_word" >&5
1785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1787   echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789   if test -n "$ac_ct_RANLIB"; then
1790   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1791 else
1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793 for as_dir in $PATH
1794 do
1795   IFS=$as_save_IFS
1796   test -z "$as_dir" && as_dir=.
1797   for ac_exec_ext in '' $ac_executable_extensions; do
1798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799     ac_cv_prog_ac_ct_RANLIB="ranlib"
1800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801     break 2
1802   fi
1803 done
1804 done
1805
1806   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1807 fi
1808 fi
1809 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1810 if test -n "$ac_ct_RANLIB"; then
1811   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1812 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1813 else
1814   echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816 fi
1817
1818   RANLIB=$ac_ct_RANLIB
1819 else
1820   RANLIB="$ac_cv_prog_RANLIB"
1821 fi
1822
1823
1824 ac_ext=c
1825 ac_cpp='$CPP $CPPFLAGS'
1826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1829 if test -n "$ac_tool_prefix"; then
1830   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1831 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_CC+set}" = set; then
1835   echo $ECHO_N "(cached) $ECHO_C" >&6
1836 else
1837   if test -n "$CC"; then
1838   ac_cv_prog_CC="$CC" # Let the user override the test.
1839 else
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 for as_dir in $PATH
1842 do
1843   IFS=$as_save_IFS
1844   test -z "$as_dir" && as_dir=.
1845   for ac_exec_ext in '' $ac_executable_extensions; do
1846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849     break 2
1850   fi
1851 done
1852 done
1853
1854 fi
1855 fi
1856 CC=$ac_cv_prog_CC
1857 if test -n "$CC"; then
1858   echo "$as_me:$LINENO: result: $CC" >&5
1859 echo "${ECHO_T}$CC" >&6
1860 else
1861   echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1863 fi
1864
1865 fi
1866 if test -z "$ac_cv_prog_CC"; then
1867   ac_ct_CC=$CC
1868   # Extract the first word of "gcc", so it can be a program name with args.
1869 set dummy gcc; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   if test -n "$ac_ct_CC"; then
1876   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1877 else
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1880 do
1881   IFS=$as_save_IFS
1882   test -z "$as_dir" && as_dir=.
1883   for ac_exec_ext in '' $ac_executable_extensions; do
1884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885     ac_cv_prog_ac_ct_CC="gcc"
1886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887     break 2
1888   fi
1889 done
1890 done
1891
1892 fi
1893 fi
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1898 else
1899   echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1901 fi
1902
1903   CC=$ac_ct_CC
1904 else
1905   CC="$ac_cv_prog_CC"
1906 fi
1907
1908 if test -z "$CC"; then
1909   if test -n "$ac_tool_prefix"; then
1910   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1911 set dummy ${ac_tool_prefix}cc; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_CC+set}" = set; then
1915   echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917   if test -n "$CC"; then
1918   ac_cv_prog_CC="$CC" # Let the user override the test.
1919 else
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1922 do
1923   IFS=$as_save_IFS
1924   test -z "$as_dir" && as_dir=.
1925   for ac_exec_ext in '' $ac_executable_extensions; do
1926   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927     ac_cv_prog_CC="${ac_tool_prefix}cc"
1928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929     break 2
1930   fi
1931 done
1932 done
1933
1934 fi
1935 fi
1936 CC=$ac_cv_prog_CC
1937 if test -n "$CC"; then
1938   echo "$as_me:$LINENO: result: $CC" >&5
1939 echo "${ECHO_T}$CC" >&6
1940 else
1941   echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1943 fi
1944
1945 fi
1946 if test -z "$ac_cv_prog_CC"; then
1947   ac_ct_CC=$CC
1948   # Extract the first word of "cc", so it can be a program name with args.
1949 set dummy cc; ac_word=$2
1950 echo "$as_me:$LINENO: checking for $ac_word" >&5
1951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1952 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1953   echo $ECHO_N "(cached) $ECHO_C" >&6
1954 else
1955   if test -n "$ac_ct_CC"; then
1956   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1957 else
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 for as_dir in $PATH
1960 do
1961   IFS=$as_save_IFS
1962   test -z "$as_dir" && as_dir=.
1963   for ac_exec_ext in '' $ac_executable_extensions; do
1964   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1965     ac_cv_prog_ac_ct_CC="cc"
1966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967     break 2
1968   fi
1969 done
1970 done
1971
1972 fi
1973 fi
1974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1975 if test -n "$ac_ct_CC"; then
1976   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1977 echo "${ECHO_T}$ac_ct_CC" >&6
1978 else
1979   echo "$as_me:$LINENO: result: no" >&5
1980 echo "${ECHO_T}no" >&6
1981 fi
1982
1983   CC=$ac_ct_CC
1984 else
1985   CC="$ac_cv_prog_CC"
1986 fi
1987
1988 fi
1989 if test -z "$CC"; then
1990   # Extract the first word of "cc", so it can be a program name with args.
1991 set dummy cc; ac_word=$2
1992 echo "$as_me:$LINENO: checking for $ac_word" >&5
1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1994 if test "${ac_cv_prog_CC+set}" = set; then
1995   echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997   if test -n "$CC"; then
1998   ac_cv_prog_CC="$CC" # Let the user override the test.
1999 else
2000   ac_prog_rejected=no
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 for as_dir in $PATH
2003 do
2004   IFS=$as_save_IFS
2005   test -z "$as_dir" && as_dir=.
2006   for ac_exec_ext in '' $ac_executable_extensions; do
2007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2009        ac_prog_rejected=yes
2010        continue
2011      fi
2012     ac_cv_prog_CC="cc"
2013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014     break 2
2015   fi
2016 done
2017 done
2018
2019 if test $ac_prog_rejected = yes; then
2020   # We found a bogon in the path, so make sure we never use it.
2021   set dummy $ac_cv_prog_CC
2022   shift
2023   if test $# != 0; then
2024     # We chose a different compiler from the bogus one.
2025     # However, it has the same basename, so the bogon will be chosen
2026     # first if we set CC to just the basename; use the full file name.
2027     shift
2028     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2029   fi
2030 fi
2031 fi
2032 fi
2033 CC=$ac_cv_prog_CC
2034 if test -n "$CC"; then
2035   echo "$as_me:$LINENO: result: $CC" >&5
2036 echo "${ECHO_T}$CC" >&6
2037 else
2038   echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2040 fi
2041
2042 fi
2043 if test -z "$CC"; then
2044   if test -n "$ac_tool_prefix"; then
2045   for ac_prog in cl
2046   do
2047     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_CC+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   if test -n "$CC"; then
2055   ac_cv_prog_CC="$CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060   IFS=$as_save_IFS
2061   test -z "$as_dir" && as_dir=.
2062   for ac_exec_ext in '' $ac_executable_extensions; do
2063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066     break 2
2067   fi
2068 done
2069 done
2070
2071 fi
2072 fi
2073 CC=$ac_cv_prog_CC
2074 if test -n "$CC"; then
2075   echo "$as_me:$LINENO: result: $CC" >&5
2076 echo "${ECHO_T}$CC" >&6
2077 else
2078   echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2080 fi
2081
2082     test -n "$CC" && break
2083   done
2084 fi
2085 if test -z "$CC"; then
2086   ac_ct_CC=$CC
2087   for ac_prog in cl
2088 do
2089   # Extract the first word of "$ac_prog", so it can be a program name with args.
2090 set dummy $ac_prog; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   if test -n "$ac_ct_CC"; then
2097   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102   IFS=$as_save_IFS
2103   test -z "$as_dir" && as_dir=.
2104   for ac_exec_ext in '' $ac_executable_extensions; do
2105   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106     ac_cv_prog_ac_ct_CC="$ac_prog"
2107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108     break 2
2109   fi
2110 done
2111 done
2112
2113 fi
2114 fi
2115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2116 if test -n "$ac_ct_CC"; then
2117   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2118 echo "${ECHO_T}$ac_ct_CC" >&6
2119 else
2120   echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2122 fi
2123
2124   test -n "$ac_ct_CC" && break
2125 done
2126
2127   CC=$ac_ct_CC
2128 fi
2129
2130 fi
2131
2132
2133 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2134 See \`config.log' for more details." >&5
2135 echo "$as_me: error: no acceptable C compiler found in \$PATH
2136 See \`config.log' for more details." >&2;}
2137    { (exit 1); exit 1; }; }
2138
2139 # Provide some information about the compiler.
2140 echo "$as_me:$LINENO:" \
2141      "checking for C compiler version" >&5
2142 ac_compiler=`set X $ac_compile; echo $2`
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2144   (eval $ac_compiler --version </dev/null >&5) 2>&5
2145   ac_status=$?
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); }
2148 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2149   (eval $ac_compiler -v </dev/null >&5) 2>&5
2150   ac_status=$?
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); }
2153 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2154   (eval $ac_compiler -V </dev/null >&5) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }
2158
2159 cat >conftest.$ac_ext <<_ACEOF
2160 #line $LINENO "configure"
2161 /* confdefs.h.  */
2162 _ACEOF
2163 cat confdefs.h >>conftest.$ac_ext
2164 cat >>conftest.$ac_ext <<_ACEOF
2165 /* end confdefs.h.  */
2166
2167 int
2168 main ()
2169 {
2170
2171   ;
2172   return 0;
2173 }
2174 _ACEOF
2175 ac_clean_files_save=$ac_clean_files
2176 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2177 # Try to create an executable without -o first, disregard a.out.
2178 # It will help us diagnose broken compilers, and finding out an intuition
2179 # of exeext.
2180 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2181 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2182 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2183 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2184   (eval $ac_link_default) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }; then
2188   # Find the output, starting from the most likely.  This scheme is
2189 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2190 # resort.
2191
2192 # Be careful to initialize this variable, since it used to be cached.
2193 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2194 ac_cv_exeext=
2195 # b.out is created by i960 compilers.
2196 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2197 do
2198   test -f "$ac_file" || continue
2199   case $ac_file in
2200     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2201         ;;
2202     conftest.$ac_ext )
2203         # This is the source file.
2204         ;;
2205     [ab].out )
2206         # We found the default executable, but exeext='' is most
2207         # certainly right.
2208         break;;
2209     *.* )
2210         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2211         # FIXME: I believe we export ac_cv_exeext for Libtool,
2212         # but it would be cool to find out if it's true.  Does anybody
2213         # maintain Libtool? --akim.
2214         export ac_cv_exeext
2215         break;;
2216     * )
2217         break;;
2218   esac
2219 done
2220 else
2221   echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2223
2224 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: C compiler cannot create executables
2227 See \`config.log' for more details." >&2;}
2228    { (exit 77); exit 77; }; }
2229 fi
2230
2231 ac_exeext=$ac_cv_exeext
2232 echo "$as_me:$LINENO: result: $ac_file" >&5
2233 echo "${ECHO_T}$ac_file" >&6
2234
2235 # Check the compiler produces executables we can run.  If not, either
2236 # the compiler is broken, or we cross compile.
2237 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2238 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2239 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2240 # If not cross compiling, check that we can run a simple program.
2241 if test "$cross_compiling" != yes; then
2242   if { ac_try='./$ac_file'
2243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244   (eval $ac_try) 2>&5
2245   ac_status=$?
2246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247   (exit $ac_status); }; }; then
2248     cross_compiling=no
2249   else
2250     if test "$cross_compiling" = maybe; then
2251         cross_compiling=yes
2252     else
2253         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2254 If you meant to cross compile, use \`--host'.
2255 See \`config.log' for more details." >&5
2256 echo "$as_me: error: cannot run C compiled programs.
2257 If you meant to cross compile, use \`--host'.
2258 See \`config.log' for more details." >&2;}
2259    { (exit 1); exit 1; }; }
2260     fi
2261   fi
2262 fi
2263 echo "$as_me:$LINENO: result: yes" >&5
2264 echo "${ECHO_T}yes" >&6
2265
2266 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2267 ac_clean_files=$ac_clean_files_save
2268 # Check the compiler produces executables we can run.  If not, either
2269 # the compiler is broken, or we cross compile.
2270 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2271 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2272 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2273 echo "${ECHO_T}$cross_compiling" >&6
2274
2275 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2276 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2278   (eval $ac_link) 2>&5
2279   ac_status=$?
2280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281   (exit $ac_status); }; then
2282   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2283 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2284 # work properly (i.e., refer to `conftest.exe'), while it won't with
2285 # `rm'.
2286 for ac_file in conftest.exe conftest conftest.*; do
2287   test -f "$ac_file" || continue
2288   case $ac_file in
2289     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2290     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2291           export ac_cv_exeext
2292           break;;
2293     * ) break;;
2294   esac
2295 done
2296 else
2297   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2300 See \`config.log' for more details." >&2;}
2301    { (exit 1); exit 1; }; }
2302 fi
2303
2304 rm -f conftest$ac_cv_exeext
2305 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2306 echo "${ECHO_T}$ac_cv_exeext" >&6
2307
2308 rm -f conftest.$ac_ext
2309 EXEEXT=$ac_cv_exeext
2310 ac_exeext=$EXEEXT
2311 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2312 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2313 if test "${ac_cv_objext+set}" = set; then
2314   echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316   cat >conftest.$ac_ext <<_ACEOF
2317 #line $LINENO "configure"
2318 /* confdefs.h.  */
2319 _ACEOF
2320 cat confdefs.h >>conftest.$ac_ext
2321 cat >>conftest.$ac_ext <<_ACEOF
2322 /* end confdefs.h.  */
2323
2324 int
2325 main ()
2326 {
2327
2328   ;
2329   return 0;
2330 }
2331 _ACEOF
2332 rm -f conftest.o conftest.obj
2333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2334   (eval $ac_compile) 2>&5
2335   ac_status=$?
2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337   (exit $ac_status); }; then
2338   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2339   case $ac_file in
2340     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2341     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2342        break;;
2343   esac
2344 done
2345 else
2346   echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2348
2349 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2350 See \`config.log' for more details." >&5
2351 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2352 See \`config.log' for more details." >&2;}
2353    { (exit 1); exit 1; }; }
2354 fi
2355
2356 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2357 fi
2358 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2359 echo "${ECHO_T}$ac_cv_objext" >&6
2360 OBJEXT=$ac_cv_objext
2361 ac_objext=$OBJEXT
2362 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2363 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2364 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2365   echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367   cat >conftest.$ac_ext <<_ACEOF
2368 #line $LINENO "configure"
2369 /* confdefs.h.  */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h.  */
2374
2375 int
2376 main ()
2377 {
2378 #ifndef __GNUC__
2379        choke me
2380 #endif
2381
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388   (eval $ac_compile) 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); } &&
2392          { ac_try='test -s conftest.$ac_objext'
2393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394   (eval $ac_try) 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; }; then
2398   ac_compiler_gnu=yes
2399 else
2400   echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 ac_compiler_gnu=no
2404 fi
2405 rm -f conftest.$ac_objext conftest.$ac_ext
2406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2407
2408 fi
2409 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2411 GCC=`test $ac_compiler_gnu = yes && echo yes`
2412 ac_test_CFLAGS=${CFLAGS+set}
2413 ac_save_CFLAGS=$CFLAGS
2414 CFLAGS="-g"
2415 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2416 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2417 if test "${ac_cv_prog_cc_g+set}" = set; then
2418   echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420   cat >conftest.$ac_ext <<_ACEOF
2421 #line $LINENO "configure"
2422 /* confdefs.h.  */
2423 _ACEOF
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h.  */
2427
2428 int
2429 main ()
2430 {
2431
2432   ;
2433   return 0;
2434 }
2435 _ACEOF
2436 rm -f conftest.$ac_objext
2437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2438   (eval $ac_compile) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); } &&
2442          { ac_try='test -s conftest.$ac_objext'
2443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444   (eval $ac_try) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }; }; then
2448   ac_cv_prog_cc_g=yes
2449 else
2450   echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2452
2453 ac_cv_prog_cc_g=no
2454 fi
2455 rm -f conftest.$ac_objext conftest.$ac_ext
2456 fi
2457 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2458 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2459 if test "$ac_test_CFLAGS" = set; then
2460   CFLAGS=$ac_save_CFLAGS
2461 elif test $ac_cv_prog_cc_g = yes; then
2462   if test "$GCC" = yes; then
2463     CFLAGS="-g -O2"
2464   else
2465     CFLAGS="-g"
2466   fi
2467 else
2468   if test "$GCC" = yes; then
2469     CFLAGS="-O2"
2470   else
2471     CFLAGS=
2472   fi
2473 fi
2474 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2475 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2476 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   ac_cv_prog_cc_stdc=no
2480 ac_save_CC=$CC
2481 cat >conftest.$ac_ext <<_ACEOF
2482 #line $LINENO "configure"
2483 /* confdefs.h.  */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h.  */
2488 #include <stdarg.h>
2489 #include <stdio.h>
2490 #include <sys/types.h>
2491 #include <sys/stat.h>
2492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2493 struct buf { int x; };
2494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2495 static char *e (p, i)
2496      char **p;
2497      int i;
2498 {
2499   return p[i];
2500 }
2501 static char *f (char * (*g) (char **, int), char **p, ...)
2502 {
2503   char *s;
2504   va_list v;
2505   va_start (v,p);
2506   s = g (p, va_arg (v,int));
2507   va_end (v);
2508   return s;
2509 }
2510 int test (int i, double x);
2511 struct s1 {int (*f) (int a);};
2512 struct s2 {int (*f) (double a);};
2513 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2514 int argc;
2515 char **argv;
2516 int
2517 main ()
2518 {
2519 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 # Don't try gcc -ansi; that turns off useful extensions and
2525 # breaks some systems' header files.
2526 # AIX                   -qlanglvl=ansi
2527 # Ultrix and OSF/1      -std1
2528 # HP-UX 10.20 and later -Ae
2529 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2530 # SVR4                  -Xc -D__EXTENSIONS__
2531 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2532 do
2533   CC="$ac_save_CC $ac_arg"
2534   rm -f conftest.$ac_objext
2535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2536   (eval $ac_compile) 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); } &&
2540          { ac_try='test -s conftest.$ac_objext'
2541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542   (eval $ac_try) 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }; }; then
2546   ac_cv_prog_cc_stdc=$ac_arg
2547 break
2548 else
2549   echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2551
2552 fi
2553 rm -f conftest.$ac_objext
2554 done
2555 rm -f conftest.$ac_ext conftest.$ac_objext
2556 CC=$ac_save_CC
2557
2558 fi
2559
2560 case "x$ac_cv_prog_cc_stdc" in
2561   x|xno)
2562     echo "$as_me:$LINENO: result: none needed" >&5
2563 echo "${ECHO_T}none needed" >&6 ;;
2564   *)
2565     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2566 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2567     CC="$CC $ac_cv_prog_cc_stdc" ;;
2568 esac
2569
2570 # Some people use a C++ compiler to compile C.  Since we use `exit',
2571 # in C++ we need to declare it.  In case someone uses the same compiler
2572 # for both compiling C and C++ we need to have the C++ compiler decide
2573 # the declaration of exit, since it's the most demanding environment.
2574 cat >conftest.$ac_ext <<_ACEOF
2575 #ifndef __cplusplus
2576   choke me
2577 #endif
2578 _ACEOF
2579 rm -f conftest.$ac_objext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581   (eval $ac_compile) 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); } &&
2585          { ac_try='test -s conftest.$ac_objext'
2586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587   (eval $ac_try) 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591   for ac_declaration in \
2592    ''\
2593    '#include <stdlib.h>' \
2594    'extern "C" void std::exit (int) throw (); using std::exit;' \
2595    'extern "C" void std::exit (int); using std::exit;' \
2596    'extern "C" void exit (int) throw ();' \
2597    'extern "C" void exit (int);' \
2598    'void exit (int);'
2599 do
2600   cat >conftest.$ac_ext <<_ACEOF
2601 #line $LINENO "configure"
2602 /* confdefs.h.  */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h.  */
2607 #include <stdlib.h>
2608 $ac_declaration
2609 int
2610 main ()
2611 {
2612 exit (42);
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619   (eval $ac_compile) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); } &&
2623          { ac_try='test -s conftest.$ac_objext'
2624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625   (eval $ac_try) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; }; then
2629   :
2630 else
2631   echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634 continue
2635 fi
2636 rm -f conftest.$ac_objext conftest.$ac_ext
2637   cat >conftest.$ac_ext <<_ACEOF
2638 #line $LINENO "configure"
2639 /* confdefs.h.  */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h.  */
2644 $ac_declaration
2645 int
2646 main ()
2647 {
2648 exit (42);
2649   ;
2650   return 0;
2651 }
2652 _ACEOF
2653 rm -f conftest.$ac_objext
2654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655   (eval $ac_compile) 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); } &&
2659          { ac_try='test -s conftest.$ac_objext'
2660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661   (eval $ac_try) 2>&5
2662   ac_status=$?
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); }; }; then
2665   break
2666 else
2667   echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2669
2670 fi
2671 rm -f conftest.$ac_objext conftest.$ac_ext
2672 done
2673 rm -f conftest*
2674 if test -n "$ac_declaration"; then
2675   echo '#ifdef __cplusplus' >>confdefs.h
2676   echo $ac_declaration      >>confdefs.h
2677   echo '#endif'             >>confdefs.h
2678 fi
2679
2680 else
2681   echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 fi
2685 rm -f conftest.$ac_objext conftest.$ac_ext
2686 ac_ext=c
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691
2692 ac_ext=cc
2693 ac_cpp='$CXXCPP $CPPFLAGS'
2694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2697 if test -n "$ac_tool_prefix"; then
2698   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2699   do
2700     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2701 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2702 echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2704 if test "${ac_cv_prog_CXX+set}" = set; then
2705   echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707   if test -n "$CXX"; then
2708   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713   IFS=$as_save_IFS
2714   test -z "$as_dir" && as_dir=.
2715   for ac_exec_ext in '' $ac_executable_extensions; do
2716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719     break 2
2720   fi
2721 done
2722 done
2723
2724 fi
2725 fi
2726 CXX=$ac_cv_prog_CXX
2727 if test -n "$CXX"; then
2728   echo "$as_me:$LINENO: result: $CXX" >&5
2729 echo "${ECHO_T}$CXX" >&6
2730 else
2731   echo "$as_me:$LINENO: result: no" >&5
2732 echo "${ECHO_T}no" >&6
2733 fi
2734
2735     test -n "$CXX" && break
2736   done
2737 fi
2738 if test -z "$CXX"; then
2739   ac_ct_CXX=$CXX
2740   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2741 do
2742   # Extract the first word of "$ac_prog", so it can be a program name with args.
2743 set dummy $ac_prog; ac_word=$2
2744 echo "$as_me:$LINENO: checking for $ac_word" >&5
2745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2746 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2747   echo $ECHO_N "(cached) $ECHO_C" >&6
2748 else
2749   if test -n "$ac_ct_CXX"; then
2750   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755   IFS=$as_save_IFS
2756   test -z "$as_dir" && as_dir=.
2757   for ac_exec_ext in '' $ac_executable_extensions; do
2758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759     ac_cv_prog_ac_ct_CXX="$ac_prog"
2760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761     break 2
2762   fi
2763 done
2764 done
2765
2766 fi
2767 fi
2768 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2769 if test -n "$ac_ct_CXX"; then
2770   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2771 echo "${ECHO_T}$ac_ct_CXX" >&6
2772 else
2773   echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2775 fi
2776
2777   test -n "$ac_ct_CXX" && break
2778 done
2779 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2780
2781   CXX=$ac_ct_CXX
2782 fi
2783
2784
2785 # Provide some information about the compiler.
2786 echo "$as_me:$LINENO:" \
2787      "checking for C++ compiler version" >&5
2788 ac_compiler=`set X $ac_compile; echo $2`
2789 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2790   (eval $ac_compiler --version </dev/null >&5) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }
2794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2795   (eval $ac_compiler -v </dev/null >&5) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }
2799 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2800   (eval $ac_compiler -V </dev/null >&5) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }
2804
2805 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2806 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2807 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2808   echo $ECHO_N "(cached) $ECHO_C" >&6
2809 else
2810   cat >conftest.$ac_ext <<_ACEOF
2811 #line $LINENO "configure"
2812 /* confdefs.h.  */
2813 _ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h.  */
2817
2818 int
2819 main ()
2820 {
2821 #ifndef __GNUC__
2822        choke me
2823 #endif
2824
2825   ;
2826   return 0;
2827 }
2828 _ACEOF
2829 rm -f conftest.$ac_objext
2830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2831   (eval $ac_compile) 2>&5
2832   ac_status=$?
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); } &&
2835          { ac_try='test -s conftest.$ac_objext'
2836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837   (eval $ac_try) 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); }; }; then
2841   ac_compiler_gnu=yes
2842 else
2843   echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2845
2846 ac_compiler_gnu=no
2847 fi
2848 rm -f conftest.$ac_objext conftest.$ac_ext
2849 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2850
2851 fi
2852 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2853 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2854 GXX=`test $ac_compiler_gnu = yes && echo yes`
2855 ac_test_CXXFLAGS=${CXXFLAGS+set}
2856 ac_save_CXXFLAGS=$CXXFLAGS
2857 CXXFLAGS="-g"
2858 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2859 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2860 if test "${ac_cv_prog_cxx_g+set}" = set; then
2861   echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863   cat >conftest.$ac_ext <<_ACEOF
2864 #line $LINENO "configure"
2865 /* confdefs.h.  */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h.  */
2870
2871 int
2872 main ()
2873 {
2874
2875   ;
2876   return 0;
2877 }
2878 _ACEOF
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881   (eval $ac_compile) 2>&5
2882   ac_status=$?
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); } &&
2885          { ac_try='test -s conftest.$ac_objext'
2886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887   (eval $ac_try) 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }; }; then
2891   ac_cv_prog_cxx_g=yes
2892 else
2893   echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2895
2896 ac_cv_prog_cxx_g=no
2897 fi
2898 rm -f conftest.$ac_objext conftest.$ac_ext
2899 fi
2900 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2901 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2902 if test "$ac_test_CXXFLAGS" = set; then
2903   CXXFLAGS=$ac_save_CXXFLAGS
2904 elif test $ac_cv_prog_cxx_g = yes; then
2905   if test "$GXX" = yes; then
2906     CXXFLAGS="-g -O2"
2907   else
2908     CXXFLAGS="-g"
2909   fi
2910 else
2911   if test "$GXX" = yes; then
2912     CXXFLAGS="-O2"
2913   else
2914     CXXFLAGS=
2915   fi
2916 fi
2917 for ac_declaration in \
2918    ''\
2919    '#include <stdlib.h>' \
2920    'extern "C" void std::exit (int) throw (); using std::exit;' \
2921    'extern "C" void std::exit (int); using std::exit;' \
2922    'extern "C" void exit (int) throw ();' \
2923    'extern "C" void exit (int);' \
2924    'void exit (int);'
2925 do
2926   cat >conftest.$ac_ext <<_ACEOF
2927 #line $LINENO "configure"
2928 /* confdefs.h.  */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h.  */
2933 #include <stdlib.h>
2934 $ac_declaration
2935 int
2936 main ()
2937 {
2938 exit (42);
2939   ;
2940   return 0;
2941 }
2942 _ACEOF
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2945   (eval $ac_compile) 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); } &&
2949          { ac_try='test -s conftest.$ac_objext'
2950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951   (eval $ac_try) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; }; then
2955   :
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 continue
2961 fi
2962 rm -f conftest.$ac_objext conftest.$ac_ext
2963   cat >conftest.$ac_ext <<_ACEOF
2964 #line $LINENO "configure"
2965 /* confdefs.h.  */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h.  */
2970 $ac_declaration
2971 int
2972 main ()
2973 {
2974 exit (42);
2975   ;
2976   return 0;
2977 }
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981   (eval $ac_compile) 2>&5
2982   ac_status=$?
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); } &&
2985          { ac_try='test -s conftest.$ac_objext'
2986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987   (eval $ac_try) 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }; }; then
2991   break
2992 else
2993   echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996 fi
2997 rm -f conftest.$ac_objext conftest.$ac_ext
2998 done
2999 rm -f conftest*
3000 if test -n "$ac_declaration"; then
3001   echo '#ifdef __cplusplus' >>confdefs.h
3002   echo $ac_declaration      >>confdefs.h
3003   echo '#endif'             >>confdefs.h
3004 fi
3005
3006 ac_ext=c
3007 ac_cpp='$CPP $CPPFLAGS'
3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011
3012
3013 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3014 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3015 if test "${ac_cv_c_bigendian+set}" = set; then
3016   echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018   # See if sys/param.h defines the BYTE_ORDER macro.
3019 cat >conftest.$ac_ext <<_ACEOF
3020 #line $LINENO "configure"
3021 /* confdefs.h.  */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h.  */
3026 #include <sys/types.h>
3027 #include <sys/param.h>
3028
3029 int
3030 main ()
3031 {
3032 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3033  bogus endian macros
3034 #endif
3035
3036   ;
3037   return 0;
3038 }
3039 _ACEOF
3040 rm -f conftest.$ac_objext
3041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3042   (eval $ac_compile) 2>&5
3043   ac_status=$?
3044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045   (exit $ac_status); } &&
3046          { ac_try='test -s conftest.$ac_objext'
3047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048   (eval $ac_try) 2>&5
3049   ac_status=$?
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); }; }; then
3052   # It does; now see whether it defined to BIG_ENDIAN or not.
3053 cat >conftest.$ac_ext <<_ACEOF
3054 #line $LINENO "configure"
3055 /* confdefs.h.  */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h.  */
3060 #include <sys/types.h>
3061 #include <sys/param.h>
3062
3063 int
3064 main ()
3065 {
3066 #if BYTE_ORDER != BIG_ENDIAN
3067  not big endian
3068 #endif
3069
3070   ;
3071   return 0;
3072 }
3073 _ACEOF
3074 rm -f conftest.$ac_objext
3075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3076   (eval $ac_compile) 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); } &&
3080          { ac_try='test -s conftest.$ac_objext'
3081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082   (eval $ac_try) 2>&5
3083   ac_status=$?
3084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085   (exit $ac_status); }; }; then
3086   ac_cv_c_bigendian=yes
3087 else
3088   echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3090
3091 ac_cv_c_bigendian=no
3092 fi
3093 rm -f conftest.$ac_objext conftest.$ac_ext
3094 else
3095   echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3097
3098 # It does not; compile a test program.
3099 if test "$cross_compiling" = yes; then
3100   # try to guess the endianness by grepping values into an object file
3101   ac_cv_c_bigendian=unknown
3102   cat >conftest.$ac_ext <<_ACEOF
3103 #line $LINENO "configure"
3104 /* confdefs.h.  */
3105 _ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h.  */
3109 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3110 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3111 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3112 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3113 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3114 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3115 int
3116 main ()
3117 {
3118  _ascii (); _ebcdic ();
3119   ;
3120   return 0;
3121 }
3122 _ACEOF
3123 rm -f conftest.$ac_objext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3125   (eval $ac_compile) 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); } &&
3129          { ac_try='test -s conftest.$ac_objext'
3130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131   (eval $ac_try) 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }; }; then
3135   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3136   ac_cv_c_bigendian=yes
3137 fi
3138 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3139   if test "$ac_cv_c_bigendian" = unknown; then
3140     ac_cv_c_bigendian=no
3141   else
3142     # finding both strings is unlikely to happen, but who knows?
3143     ac_cv_c_bigendian=unknown
3144   fi
3145 fi
3146 else
3147   echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150 fi
3151 rm -f conftest.$ac_objext conftest.$ac_ext
3152 else
3153   cat >conftest.$ac_ext <<_ACEOF
3154 #line $LINENO "configure"
3155 /* confdefs.h.  */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h.  */
3160 int
3161 main ()
3162 {
3163   /* Are we little or big endian?  From Harbison&Steele.  */
3164   union
3165   {
3166     long l;
3167     char c[sizeof (long)];
3168   } u;
3169   u.l = 1;
3170   exit (u.c[sizeof (long) - 1] == 1);
3171 }
3172 _ACEOF
3173 rm -f conftest$ac_exeext
3174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3175   (eval $ac_link) 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180   (eval $ac_try) 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); }; }; then
3184   ac_cv_c_bigendian=no
3185 else
3186   echo "$as_me: program exited with status $ac_status" >&5
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190 ( exit $ac_status )
3191 ac_cv_c_bigendian=yes
3192 fi
3193 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3194 fi
3195 fi
3196 rm -f conftest.$ac_objext conftest.$ac_ext
3197 fi
3198 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3199 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3200 case $ac_cv_c_bigendian in
3201   yes)
3202
3203 cat >>confdefs.h <<\_ACEOF
3204 #define WORDS_BIGENDIAN 1
3205 _ACEOF
3206  ;;
3207   no)
3208      ;;
3209   *)
3210     { { echo "$as_me:$LINENO: error: unknown endianness
3211 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3212 echo "$as_me: error: unknown endianness
3213 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3214    { (exit 1); exit 1; }; } ;;
3215 esac
3216
3217
3218 # Extract the first word of "wx-config", so it can be a program name with args.
3219 set dummy wx-config; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_path_wxconfig+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   case $wxconfig in
3226   [\\/]* | ?:[\\/]*)
3227   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3228   ;;
3229   *)
3230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233   IFS=$as_save_IFS
3234   test -z "$as_dir" && as_dir=.
3235   for ac_exec_ext in '' $ac_executable_extensions; do
3236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239     break 2
3240   fi
3241 done
3242 done
3243
3244   ;;
3245 esac
3246 fi
3247 wxconfig=$ac_cv_path_wxconfig
3248
3249 if test -n "$wxconfig"; then
3250   echo "$as_me:$LINENO: result: $wxconfig" >&5
3251 echo "${ECHO_T}$wxconfig" >&6
3252 else
3253   echo "$as_me:$LINENO: result: no" >&5
3254 echo "${ECHO_T}no" >&6
3255 fi
3256
3257
3258 # Make sure we can run config.sub.
3259 $ac_config_sub sun4 >/dev/null 2>&1 ||
3260   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3261 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3262    { (exit 1); exit 1; }; }
3263
3264 echo "$as_me:$LINENO: checking build system type" >&5
3265 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3266 if test "${ac_cv_build+set}" = set; then
3267   echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269   ac_cv_build_alias=$build_alias
3270 test -z "$ac_cv_build_alias" &&
3271   ac_cv_build_alias=`$ac_config_guess`
3272 test -z "$ac_cv_build_alias" &&
3273   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3274 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3275    { (exit 1); exit 1; }; }
3276 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3277   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3278 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3279    { (exit 1); exit 1; }; }
3280
3281 fi
3282 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3283 echo "${ECHO_T}$ac_cv_build" >&6
3284 build=$ac_cv_build
3285 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3286 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3287 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3288
3289
3290 echo "$as_me:$LINENO: checking host system type" >&5
3291 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3292 if test "${ac_cv_host+set}" = set; then
3293   echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295   ac_cv_host_alias=$host_alias
3296 test -z "$ac_cv_host_alias" &&
3297   ac_cv_host_alias=$ac_cv_build_alias
3298 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3299   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3300 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3301    { (exit 1); exit 1; }; }
3302
3303 fi
3304 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3305 echo "${ECHO_T}$ac_cv_host" >&6
3306 host=$ac_cv_host
3307 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3308 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3309 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3310
3311
3312 echo "$as_me:$LINENO: checking for inline" >&5
3313 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3314 if test "${ac_cv_c_inline+set}" = set; then
3315   echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317   ac_cv_c_inline=no
3318 for ac_kw in inline __inline__ __inline; do
3319   cat >conftest.$ac_ext <<_ACEOF
3320 #line $LINENO "configure"
3321 /* confdefs.h.  */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h.  */
3326 #ifndef __cplusplus
3327 typedef int foo_t;
3328 static $ac_kw foo_t static_foo () {return 0; }
3329 $ac_kw foo_t foo () {return 0; }
3330 #endif
3331
3332 _ACEOF
3333 rm -f conftest.$ac_objext
3334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335   (eval $ac_compile) 2>&5
3336   ac_status=$?
3337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338   (exit $ac_status); } &&
3339          { ac_try='test -s conftest.$ac_objext'
3340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341   (eval $ac_try) 2>&5
3342   ac_status=$?
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); }; }; then
3345   ac_cv_c_inline=$ac_kw; break
3346 else
3347   echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3349
3350 fi
3351 rm -f conftest.$ac_objext conftest.$ac_ext
3352 done
3353
3354 fi
3355 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3356 echo "${ECHO_T}$ac_cv_c_inline" >&6
3357 case $ac_cv_c_inline in
3358   inline | yes) ;;
3359   no)
3360 cat >>confdefs.h <<\_ACEOF
3361 #define inline
3362 _ACEOF
3363  ;;
3364   *)  cat >>confdefs.h <<_ACEOF
3365 #define inline $ac_cv_c_inline
3366 _ACEOF
3367  ;;
3368 esac
3369
3370 ac_ext=c
3371 ac_cpp='$CPP $CPPFLAGS'
3372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3376 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3377 # On Suns, sometimes $CPP names a directory.
3378 if test -n "$CPP" && test -d "$CPP"; then
3379   CPP=
3380 fi
3381 if test -z "$CPP"; then
3382   if test "${ac_cv_prog_CPP+set}" = set; then
3383   echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385       # Double quotes because CPP needs to be expanded
3386     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3387     do
3388       ac_preproc_ok=false
3389 for ac_c_preproc_warn_flag in '' yes
3390 do
3391   # Use a header file that comes with gcc, so configuring glibc
3392   # with a fresh cross-compiler works.
3393   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394   # <limits.h> exists even on freestanding compilers.
3395   # On the NeXT, cc -E runs the code through the compiler's parser,
3396   # not just through cpp. "Syntax error" is here to catch this case.
3397   cat >conftest.$ac_ext <<_ACEOF
3398 #line $LINENO "configure"
3399 /* confdefs.h.  */
3400 _ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h.  */
3404 #ifdef __STDC__
3405 # include <limits.h>
3406 #else
3407 # include <assert.h>
3408 #endif
3409                      Syntax error
3410 _ACEOF
3411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3412   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } >/dev/null; then
3419   if test -s conftest.err; then
3420     ac_cpp_err=$ac_c_preproc_warn_flag
3421   else
3422     ac_cpp_err=
3423   fi
3424 else
3425   ac_cpp_err=yes
3426 fi
3427 if test -z "$ac_cpp_err"; then
3428   :
3429 else
3430   echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433   # Broken: fails on valid input.
3434 continue
3435 fi
3436 rm -f conftest.err conftest.$ac_ext
3437
3438   # OK, works on sane cases.  Now check whether non-existent headers
3439   # can be detected and how.
3440   cat >conftest.$ac_ext <<_ACEOF
3441 #line $LINENO "configure"
3442 /* confdefs.h.  */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h.  */
3447 #include <ac_nonexistent.h>
3448 _ACEOF
3449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3451   ac_status=$?
3452   grep -v '^ *+' conftest.er1 >conftest.err
3453   rm -f conftest.er1
3454   cat conftest.err >&5
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); } >/dev/null; then
3457   if test -s conftest.err; then
3458     ac_cpp_err=$ac_c_preproc_warn_flag
3459   else
3460     ac_cpp_err=
3461   fi
3462 else
3463   ac_cpp_err=yes
3464 fi
3465 if test -z "$ac_cpp_err"; then
3466   # Broken: success on invalid input.
3467 continue
3468 else
3469   echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472   # Passes both tests.
3473 ac_preproc_ok=:
3474 break
3475 fi
3476 rm -f conftest.err conftest.$ac_ext
3477
3478 done
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3482   break
3483 fi
3484
3485     done
3486     ac_cv_prog_CPP=$CPP
3487
3488 fi
3489   CPP=$ac_cv_prog_CPP
3490 else
3491   ac_cv_prog_CPP=$CPP
3492 fi
3493 echo "$as_me:$LINENO: result: $CPP" >&5
3494 echo "${ECHO_T}$CPP" >&6
3495 ac_preproc_ok=false
3496 for ac_c_preproc_warn_flag in '' yes
3497 do
3498   # Use a header file that comes with gcc, so configuring glibc
3499   # with a fresh cross-compiler works.
3500   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3501   # <limits.h> exists even on freestanding compilers.
3502   # On the NeXT, cc -E runs the code through the compiler's parser,
3503   # not just through cpp. "Syntax error" is here to catch this case.
3504   cat >conftest.$ac_ext <<_ACEOF
3505 #line $LINENO "configure"
3506 /* confdefs.h.  */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h.  */
3511 #ifdef __STDC__
3512 # include <limits.h>
3513 #else
3514 # include <assert.h>
3515 #endif
3516                      Syntax error
3517 _ACEOF
3518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3519   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3520   ac_status=$?
3521   grep -v '^ *+' conftest.er1 >conftest.err
3522   rm -f conftest.er1
3523   cat conftest.err >&5
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); } >/dev/null; then
3526   if test -s conftest.err; then
3527     ac_cpp_err=$ac_c_preproc_warn_flag
3528   else
3529     ac_cpp_err=
3530   fi
3531 else
3532   ac_cpp_err=yes
3533 fi
3534 if test -z "$ac_cpp_err"; then
3535   :
3536 else
3537   echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540   # Broken: fails on valid input.
3541 continue
3542 fi
3543 rm -f conftest.err conftest.$ac_ext
3544
3545   # OK, works on sane cases.  Now check whether non-existent headers
3546   # can be detected and how.
3547   cat >conftest.$ac_ext <<_ACEOF
3548 #line $LINENO "configure"
3549 /* confdefs.h.  */
3550 _ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h.  */
3554 #include <ac_nonexistent.h>
3555 _ACEOF
3556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3557   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3558   ac_status=$?
3559   grep -v '^ *+' conftest.er1 >conftest.err
3560   rm -f conftest.er1
3561   cat conftest.err >&5
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } >/dev/null; then
3564   if test -s conftest.err; then
3565     ac_cpp_err=$ac_c_preproc_warn_flag
3566   else
3567     ac_cpp_err=
3568   fi
3569 else
3570   ac_cpp_err=yes
3571 fi
3572 if test -z "$ac_cpp_err"; then
3573   # Broken: success on invalid input.
3574 continue
3575 else
3576   echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579   # Passes both tests.
3580 ac_preproc_ok=:
3581 break
3582 fi
3583 rm -f conftest.err conftest.$ac_ext
3584
3585 done
3586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3587 rm -f conftest.err conftest.$ac_ext
3588 if $ac_preproc_ok; then
3589   :
3590 else
3591   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3592 See \`config.log' for more details." >&5
3593 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3594 See \`config.log' for more details." >&2;}
3595    { (exit 1); exit 1; }; }
3596 fi
3597
3598 ac_ext=c
3599 ac_cpp='$CPP $CPPFLAGS'
3600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3603
3604
3605 echo "$as_me:$LINENO: checking for egrep" >&5
3606 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3607 if test "${ac_cv_prog_egrep+set}" = set; then
3608   echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3611     then ac_cv_prog_egrep='grep -E'
3612     else ac_cv_prog_egrep='egrep'
3613     fi
3614 fi
3615 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3616 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3617  EGREP=$ac_cv_prog_egrep
3618
3619
3620 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3621 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3622 if test "${ac_cv_header_stdc+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   cat >conftest.$ac_ext <<_ACEOF
3626 #line $LINENO "configure"
3627 /* confdefs.h.  */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h.  */
3632 #include <stdlib.h>
3633 #include <stdarg.h>
3634 #include <string.h>
3635 #include <float.h>
3636
3637 int
3638 main ()
3639 {
3640
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 rm -f conftest.$ac_objext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3647   (eval $ac_compile) 2>&5
3648   ac_status=$?
3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); } &&
3651          { ac_try='test -s conftest.$ac_objext'
3652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653   (eval $ac_try) 2>&5
3654   ac_status=$?
3655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656   (exit $ac_status); }; }; then
3657   ac_cv_header_stdc=yes
3658 else
3659   echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 ac_cv_header_stdc=no
3663 fi
3664 rm -f conftest.$ac_objext conftest.$ac_ext
3665
3666 if test $ac_cv_header_stdc = yes; then
3667   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3668   cat >conftest.$ac_ext <<_ACEOF
3669 #line $LINENO "configure"
3670 /* confdefs.h.  */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h.  */
3675 #include <string.h>
3676
3677 _ACEOF
3678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3679   $EGREP "memchr" >/dev/null 2>&1; then
3680   :
3681 else
3682   ac_cv_header_stdc=no
3683 fi
3684 rm -f conftest*
3685
3686 fi
3687
3688 if test $ac_cv_header_stdc = yes; then
3689   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3690   cat >conftest.$ac_ext <<_ACEOF
3691 #line $LINENO "configure"
3692 /* confdefs.h.  */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h.  */
3697 #include <stdlib.h>
3698
3699 _ACEOF
3700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3701   $EGREP "free" >/dev/null 2>&1; then
3702   :
3703 else
3704   ac_cv_header_stdc=no
3705 fi
3706 rm -f conftest*
3707
3708 fi
3709
3710 if test $ac_cv_header_stdc = yes; then
3711   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3712   if test "$cross_compiling" = yes; then
3713   :
3714 else
3715   cat >conftest.$ac_ext <<_ACEOF
3716 #line $LINENO "configure"
3717 /* confdefs.h.  */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h.  */
3722 #include <ctype.h>
3723 #if ((' ' & 0x0FF) == 0x020)
3724 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3725 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3726 #else
3727 # define ISLOWER(c) \
3728                    (('a' <= (c) && (c) <= 'i') \
3729                      || ('j' <= (c) && (c) <= 'r') \
3730                      || ('s' <= (c) && (c) <= 'z'))
3731 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3732 #endif
3733
3734 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3735 int
3736 main ()
3737 {
3738   int i;
3739   for (i = 0; i < 256; i++)
3740     if (XOR (islower (i), ISLOWER (i))
3741         || toupper (i) != TOUPPER (i))
3742       exit(2);
3743   exit (0);
3744 }
3745 _ACEOF
3746 rm -f conftest$ac_exeext
3747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3748   (eval $ac_link) 2>&5
3749   ac_status=$?
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753   (eval $ac_try) 2>&5
3754   ac_status=$?
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); }; }; then
3757   :
3758 else
3759   echo "$as_me: program exited with status $ac_status" >&5
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3762
3763 ( exit $ac_status )
3764 ac_cv_header_stdc=no
3765 fi
3766 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3767 fi
3768 fi
3769 fi
3770 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3771 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3772 if test $ac_cv_header_stdc = yes; then
3773
3774 cat >>confdefs.h <<\_ACEOF
3775 #define STDC_HEADERS 1
3776 _ACEOF
3777
3778 fi
3779
3780 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3791                   inttypes.h stdint.h unistd.h
3792 do
3793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3794 echo "$as_me:$LINENO: checking for $ac_header" >&5
3795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3797   echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799   cat >conftest.$ac_ext <<_ACEOF
3800 #line $LINENO "configure"
3801 /* confdefs.h.  */
3802 _ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h.  */
3806 $ac_includes_default
3807
3808 #include <$ac_header>
3809 _ACEOF
3810 rm -f conftest.$ac_objext
3811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812   (eval $ac_compile) 2>&5
3813   ac_status=$?
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); } &&
3816          { ac_try='test -s conftest.$ac_objext'
3817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818   (eval $ac_try) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; }; then
3822   eval "$as_ac_Header=yes"
3823 else
3824   echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 eval "$as_ac_Header=no"
3828 fi
3829 rm -f conftest.$ac_objext conftest.$ac_ext
3830 fi
3831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3834   cat >>confdefs.h <<_ACEOF
3835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3836 _ACEOF
3837
3838 fi
3839
3840 done
3841
3842
3843 echo "$as_me:$LINENO: checking for short" >&5
3844 echo $ECHO_N "checking for short... $ECHO_C" >&6
3845 if test "${ac_cv_type_short+set}" = set; then
3846   echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848   cat >conftest.$ac_ext <<_ACEOF
3849 #line $LINENO "configure"
3850 /* confdefs.h.  */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h.  */
3855 $ac_includes_default
3856 int
3857 main ()
3858 {
3859 if ((short *) 0)
3860   return 0;
3861 if (sizeof (short))
3862   return 0;
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867 rm -f conftest.$ac_objext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3869   (eval $ac_compile) 2>&5
3870   ac_status=$?
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); } &&
3873          { ac_try='test -s conftest.$ac_objext'
3874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875   (eval $ac_try) 2>&5
3876   ac_status=$?
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); }; }; then
3879   ac_cv_type_short=yes
3880 else
3881   echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3883
3884 ac_cv_type_short=no
3885 fi
3886 rm -f conftest.$ac_objext conftest.$ac_ext
3887 fi
3888 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3889 echo "${ECHO_T}$ac_cv_type_short" >&6
3890
3891 echo "$as_me:$LINENO: checking size of short" >&5
3892 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3893 if test "${ac_cv_sizeof_short+set}" = set; then
3894   echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896   if test "$ac_cv_type_short" = yes; then
3897   # The cast to unsigned long works around a bug in the HP C Compiler
3898   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3899   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3900   # This bug is HP SR number 8606223364.
3901   if test "$cross_compiling" = yes; then
3902   # Depending upon the size, compute the lo and hi bounds.
3903 cat >conftest.$ac_ext <<_ACEOF
3904 #line $LINENO "configure"
3905 /* confdefs.h.  */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h.  */
3910 $ac_includes_default
3911 int
3912 main ()
3913 {
3914 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3915 test_array [0] = 0
3916
3917   ;
3918   return 0;
3919 }
3920 _ACEOF
3921 rm -f conftest.$ac_objext
3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923   (eval $ac_compile) 2>&5
3924   ac_status=$?
3925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926   (exit $ac_status); } &&
3927          { ac_try='test -s conftest.$ac_objext'
3928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929   (eval $ac_try) 2>&5
3930   ac_status=$?
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); }; }; then
3933   ac_lo=0 ac_mid=0
3934   while :; do
3935     cat >conftest.$ac_ext <<_ACEOF
3936 #line $LINENO "configure"
3937 /* confdefs.h.  */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h.  */
3942 $ac_includes_default
3943 int
3944 main ()
3945 {
3946 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3947 test_array [0] = 0
3948
3949   ;
3950   return 0;
3951 }
3952 _ACEOF
3953 rm -f conftest.$ac_objext
3954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955   (eval $ac_compile) 2>&5
3956   ac_status=$?
3957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958   (exit $ac_status); } &&
3959          { ac_try='test -s conftest.$ac_objext'
3960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961   (eval $ac_try) 2>&5
3962   ac_status=$?
3963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964   (exit $ac_status); }; }; then
3965   ac_hi=$ac_mid; break
3966 else
3967   echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3969
3970 ac_lo=`expr $ac_mid + 1`
3971                     if test $ac_lo -le $ac_mid; then
3972                       ac_lo= ac_hi=
3973                       break
3974                     fi
3975                     ac_mid=`expr 2 '*' $ac_mid + 1`
3976 fi
3977 rm -f conftest.$ac_objext conftest.$ac_ext
3978   done
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983 cat >conftest.$ac_ext <<_ACEOF
3984 #line $LINENO "configure"
3985 /* confdefs.h.  */
3986 _ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h.  */
3990 $ac_includes_default
3991 int
3992 main ()
3993 {
3994 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3995 test_array [0] = 0
3996
3997   ;
3998   return 0;
3999 }
4000 _ACEOF
4001 rm -f conftest.$ac_objext
4002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4003   (eval $ac_compile) 2>&5
4004   ac_status=$?
4005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006   (exit $ac_status); } &&
4007          { ac_try='test -s conftest.$ac_objext'
4008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009   (eval $ac_try) 2>&5
4010   ac_status=$?
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); }; }; then
4013   ac_hi=-1 ac_mid=-1
4014   while :; do
4015     cat >conftest.$ac_ext <<_ACEOF
4016 #line $LINENO "configure"
4017 /* confdefs.h.  */
4018 _ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h.  */
4022 $ac_includes_default
4023 int
4024 main ()
4025 {
4026 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4027 test_array [0] = 0
4028
4029   ;
4030   return 0;
4031 }
4032 _ACEOF
4033 rm -f conftest.$ac_objext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035   (eval $ac_compile) 2>&5
4036   ac_status=$?
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); } &&
4039          { ac_try='test -s conftest.$ac_objext'
4040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041   (eval $ac_try) 2>&5
4042   ac_status=$?
4043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); }; }; then
4045   ac_lo=$ac_mid; break
4046 else
4047   echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4049
4050 ac_hi=`expr '(' $ac_mid ')' - 1`
4051                        if test $ac_mid -le $ac_hi; then
4052                          ac_lo= ac_hi=
4053                          break
4054                        fi
4055                        ac_mid=`expr 2 '*' $ac_mid`
4056 fi
4057 rm -f conftest.$ac_objext conftest.$ac_ext
4058   done
4059 else
4060   echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4062
4063 ac_lo= ac_hi=
4064 fi
4065 rm -f conftest.$ac_objext conftest.$ac_ext
4066 fi
4067 rm -f conftest.$ac_objext conftest.$ac_ext
4068 # Binary search between lo and hi bounds.
4069 while test "x$ac_lo" != "x$ac_hi"; do
4070   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4071   cat >conftest.$ac_ext <<_ACEOF
4072 #line $LINENO "configure"
4073 /* confdefs.h.  */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h.  */
4078 $ac_includes_default
4079 int
4080 main ()
4081 {
4082 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4083 test_array [0] = 0
4084
4085   ;
4086   return 0;
4087 }
4088 _ACEOF
4089 rm -f conftest.$ac_objext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091   (eval $ac_compile) 2>&5
4092   ac_status=$?
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); } &&
4095          { ac_try='test -s conftest.$ac_objext'
4096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097   (eval $ac_try) 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }; }; then
4101   ac_hi=$ac_mid
4102 else
4103   echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4105
4106 ac_lo=`expr '(' $ac_mid ')' + 1`
4107 fi
4108 rm -f conftest.$ac_objext conftest.$ac_ext
4109 done
4110 case $ac_lo in
4111 ?*) ac_cv_sizeof_short=$ac_lo;;
4112 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4113 See \`config.log' for more details." >&5
4114 echo "$as_me: error: cannot compute sizeof (short), 77
4115 See \`config.log' for more details." >&2;}
4116    { (exit 1); exit 1; }; } ;;
4117 esac
4118 else
4119   if test "$cross_compiling" = yes; then
4120   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4121 See \`config.log' for more details." >&5
4122 echo "$as_me: error: cannot run test program while cross compiling
4123 See \`config.log' for more details." >&2;}
4124    { (exit 1); exit 1; }; }
4125 else
4126   cat >conftest.$ac_ext <<_ACEOF
4127 #line $LINENO "configure"
4128 /* confdefs.h.  */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h.  */
4133 $ac_includes_default
4134 long longval () { return (long) (sizeof (short)); }
4135 unsigned long ulongval () { return (long) (sizeof (short)); }
4136 #include <stdio.h>
4137 #include <stdlib.h>
4138 int
4139 main ()
4140 {
4141
4142   FILE *f = fopen ("conftest.val", "w");
4143   if (! f)
4144     exit (1);
4145   if (((long) (sizeof (short))) < 0)
4146     {
4147       long i = longval ();
4148       if (i != ((long) (sizeof (short))))
4149         exit (1);
4150       fprintf (f, "%ld\n", i);
4151     }
4152   else
4153     {
4154       unsigned long i = ulongval ();
4155       if (i != ((long) (sizeof (short))))
4156         exit (1);
4157       fprintf (f, "%lu\n", i);
4158     }
4159   exit (ferror (f) || fclose (f) != 0);
4160
4161   ;
4162   return 0;
4163 }
4164 _ACEOF
4165 rm -f conftest$ac_exeext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4167   (eval $ac_link) 2>&5
4168   ac_status=$?
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172   (eval $ac_try) 2>&5
4173   ac_status=$?
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); }; }; then
4176   ac_cv_sizeof_short=`cat conftest.val`
4177 else
4178   echo "$as_me: program exited with status $ac_status" >&5
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182 ( exit $ac_status )
4183 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4184 See \`config.log' for more details." >&5
4185 echo "$as_me: error: cannot compute sizeof (short), 77
4186 See \`config.log' for more details." >&2;}
4187    { (exit 1); exit 1; }; }
4188 fi
4189 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4190 fi
4191 fi
4192 rm -f conftest.val
4193 else
4194   ac_cv_sizeof_short=0
4195 fi
4196 fi
4197 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4198 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4199 cat >>confdefs.h <<_ACEOF
4200 #define SIZEOF_SHORT $ac_cv_sizeof_short
4201 _ACEOF
4202
4203
4204 echo "$as_me:$LINENO: checking for int" >&5
4205 echo $ECHO_N "checking for int... $ECHO_C" >&6
4206 if test "${ac_cv_type_int+set}" = set; then
4207   echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209   cat >conftest.$ac_ext <<_ACEOF
4210 #line $LINENO "configure"
4211 /* confdefs.h.  */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h.  */
4216 $ac_includes_default
4217 int
4218 main ()
4219 {
4220 if ((int *) 0)
4221   return 0;
4222 if (sizeof (int))
4223   return 0;
4224   ;
4225   return 0;
4226 }
4227 _ACEOF
4228 rm -f conftest.$ac_objext
4229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4230   (eval $ac_compile) 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); } &&
4234          { ac_try='test -s conftest.$ac_objext'
4235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236   (eval $ac_try) 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); }; }; then
4240   ac_cv_type_int=yes
4241 else
4242   echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4244
4245 ac_cv_type_int=no
4246 fi
4247 rm -f conftest.$ac_objext conftest.$ac_ext
4248 fi
4249 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4250 echo "${ECHO_T}$ac_cv_type_int" >&6
4251
4252 echo "$as_me:$LINENO: checking size of int" >&5
4253 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4254 if test "${ac_cv_sizeof_int+set}" = set; then
4255   echo $ECHO_N "(cached) $ECHO_C" >&6
4256 else
4257   if test "$ac_cv_type_int" = yes; then
4258   # The cast to unsigned long works around a bug in the HP C Compiler
4259   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4260   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4261   # This bug is HP SR number 8606223364.
4262   if test "$cross_compiling" = yes; then
4263   # Depending upon the size, compute the lo and hi bounds.
4264 cat >conftest.$ac_ext <<_ACEOF
4265 #line $LINENO "configure"
4266 /* confdefs.h.  */
4267 _ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h.  */
4271 $ac_includes_default
4272 int
4273 main ()
4274 {
4275 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4276 test_array [0] = 0
4277
4278   ;
4279   return 0;
4280 }
4281 _ACEOF
4282 rm -f conftest.$ac_objext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284   (eval $ac_compile) 2>&5
4285   ac_status=$?
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); } &&
4288          { ac_try='test -s conftest.$ac_objext'
4289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290   (eval $ac_try) 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); }; }; then
4294   ac_lo=0 ac_mid=0
4295   while :; do
4296     cat >conftest.$ac_ext <<_ACEOF
4297 #line $LINENO "configure"
4298 /* confdefs.h.  */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h.  */
4303 $ac_includes_default
4304 int
4305 main ()
4306 {
4307 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4308 test_array [0] = 0
4309
4310   ;
4311   return 0;
4312 }
4313 _ACEOF
4314 rm -f conftest.$ac_objext
4315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4316   (eval $ac_compile) 2>&5
4317   ac_status=$?
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); } &&
4320          { ac_try='test -s conftest.$ac_objext'
4321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322   (eval $ac_try) 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); }; }; then
4326   ac_hi=$ac_mid; break
4327 else
4328   echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4330
4331 ac_lo=`expr $ac_mid + 1`
4332                     if test $ac_lo -le $ac_mid; then
4333                       ac_lo= ac_hi=
4334                       break
4335                     fi
4336                     ac_mid=`expr 2 '*' $ac_mid + 1`
4337 fi
4338 rm -f conftest.$ac_objext conftest.$ac_ext
4339   done
4340 else
4341   echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 cat >conftest.$ac_ext <<_ACEOF
4345 #line $LINENO "configure"
4346 /* confdefs.h.  */
4347 _ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h.  */
4351 $ac_includes_default
4352 int
4353 main ()
4354 {
4355 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4356 test_array [0] = 0
4357
4358   ;
4359   return 0;
4360 }
4361 _ACEOF
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364   (eval $ac_compile) 2>&5
4365   ac_status=$?
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); } &&
4368          { ac_try='test -s conftest.$ac_objext'
4369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370   (eval $ac_try) 2>&5
4371   ac_status=$?
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); }; }; then
4374   ac_hi=-1 ac_mid=-1
4375   while :; do
4376     cat >conftest.$ac_ext <<_ACEOF
4377 #line $LINENO "configure"
4378 /* confdefs.h.  */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h.  */
4383 $ac_includes_default
4384 int
4385 main ()
4386 {
4387 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4388 test_array [0] = 0
4389
4390   ;
4391   return 0;
4392 }
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396   (eval $ac_compile) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); } &&
4400          { ac_try='test -s conftest.$ac_objext'
4401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402   (eval $ac_try) 2>&5
4403   ac_status=$?
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); }; }; then
4406   ac_lo=$ac_mid; break
4407 else
4408   echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411 ac_hi=`expr '(' $ac_mid ')' - 1`
4412                        if test $ac_mid -le $ac_hi; then
4413                          ac_lo= ac_hi=
4414                          break
4415                        fi
4416                        ac_mid=`expr 2 '*' $ac_mid`
4417 fi
4418 rm -f conftest.$ac_objext conftest.$ac_ext
4419   done
4420 else
4421   echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 ac_lo= ac_hi=
4425 fi
4426 rm -f conftest.$ac_objext conftest.$ac_ext
4427 fi
4428 rm -f conftest.$ac_objext conftest.$ac_ext
4429 # Binary search between lo and hi bounds.
4430 while test "x$ac_lo" != "x$ac_hi"; do
4431   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4432   cat >conftest.$ac_ext <<_ACEOF
4433 #line $LINENO "configure"
4434 /* confdefs.h.  */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h.  */
4439 $ac_includes_default
4440 int
4441 main ()
4442 {
4443 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4444 test_array [0] = 0
4445
4446   ;
4447   return 0;
4448 }
4449 _ACEOF
4450 rm -f conftest.$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452   (eval $ac_compile) 2>&5
4453   ac_status=$?
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); } &&
4456          { ac_try='test -s conftest.$ac_objext'
4457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458   (eval $ac_try) 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); }; }; then
4462   ac_hi=$ac_mid
4463 else
4464   echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 ac_lo=`expr '(' $ac_mid ')' + 1`
4468 fi
4469 rm -f conftest.$ac_objext conftest.$ac_ext
4470 done
4471 case $ac_lo in
4472 ?*) ac_cv_sizeof_int=$ac_lo;;
4473 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4474 See \`config.log' for more details." >&5
4475 echo "$as_me: error: cannot compute sizeof (int), 77
4476 See \`config.log' for more details." >&2;}
4477    { (exit 1); exit 1; }; } ;;
4478 esac
4479 else
4480   if test "$cross_compiling" = yes; then
4481   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4482 See \`config.log' for more details." >&5
4483 echo "$as_me: error: cannot run test program while cross compiling
4484 See \`config.log' for more details." >&2;}
4485    { (exit 1); exit 1; }; }
4486 else
4487   cat >conftest.$ac_ext <<_ACEOF
4488 #line $LINENO "configure"
4489 /* confdefs.h.  */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h.  */
4494 $ac_includes_default
4495 long longval () { return (long) (sizeof (int)); }
4496 unsigned long ulongval () { return (long) (sizeof (int)); }
4497 #include <stdio.h>
4498 #include <stdlib.h>
4499 int
4500 main ()
4501 {
4502
4503   FILE *f = fopen ("conftest.val", "w");
4504   if (! f)
4505     exit (1);
4506   if (((long) (sizeof (int))) < 0)
4507     {
4508       long i = longval ();
4509       if (i != ((long) (sizeof (int))))
4510         exit (1);
4511       fprintf (f, "%ld\n", i);
4512     }
4513   else
4514     {
4515       unsigned long i = ulongval ();
4516       if (i != ((long) (sizeof (int))))
4517         exit (1);
4518       fprintf (f, "%lu\n", i);
4519     }
4520   exit (ferror (f) || fclose (f) != 0);
4521
4522   ;
4523   return 0;
4524 }
4525 _ACEOF
4526 rm -f conftest$ac_exeext
4527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4528   (eval $ac_link) 2>&5
4529   ac_status=$?
4530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533   (eval $ac_try) 2>&5
4534   ac_status=$?
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); }; }; then
4537   ac_cv_sizeof_int=`cat conftest.val`
4538 else
4539   echo "$as_me: program exited with status $ac_status" >&5
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4542
4543 ( exit $ac_status )
4544 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4545 See \`config.log' for more details." >&5
4546 echo "$as_me: error: cannot compute sizeof (int), 77
4547 See \`config.log' for more details." >&2;}
4548    { (exit 1); exit 1; }; }
4549 fi
4550 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4551 fi
4552 fi
4553 rm -f conftest.val
4554 else
4555   ac_cv_sizeof_int=0
4556 fi
4557 fi
4558 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4559 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4560 cat >>confdefs.h <<_ACEOF
4561 #define SIZEOF_INT $ac_cv_sizeof_int
4562 _ACEOF
4563
4564
4565 echo "$as_me:$LINENO: checking for long" >&5
4566 echo $ECHO_N "checking for long... $ECHO_C" >&6
4567 if test "${ac_cv_type_long+set}" = set; then
4568   echo $ECHO_N "(cached) $ECHO_C" >&6
4569 else
4570   cat >conftest.$ac_ext <<_ACEOF
4571 #line $LINENO "configure"
4572 /* confdefs.h.  */
4573 _ACEOF
4574 cat confdefs.h >>conftest.$ac_ext
4575 cat >>conftest.$ac_ext <<_ACEOF
4576 /* end confdefs.h.  */
4577 $ac_includes_default
4578 int
4579 main ()
4580 {
4581 if ((long *) 0)
4582   return 0;
4583 if (sizeof (long))
4584   return 0;
4585   ;
4586   return 0;
4587 }
4588 _ACEOF
4589 rm -f conftest.$ac_objext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591   (eval $ac_compile) 2>&5
4592   ac_status=$?
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); } &&
4595          { ac_try='test -s conftest.$ac_objext'
4596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597   (eval $ac_try) 2>&5
4598   ac_status=$?
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); }; }; then
4601   ac_cv_type_long=yes
4602 else
4603   echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606 ac_cv_type_long=no
4607 fi
4608 rm -f conftest.$ac_objext conftest.$ac_ext
4609 fi
4610 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4611 echo "${ECHO_T}$ac_cv_type_long" >&6
4612
4613 echo "$as_me:$LINENO: checking size of long" >&5
4614 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4615 if test "${ac_cv_sizeof_long+set}" = set; then
4616   echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618   if test "$ac_cv_type_long" = yes; then
4619   # The cast to unsigned long works around a bug in the HP C Compiler
4620   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4621   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4622   # This bug is HP SR number 8606223364.
4623   if test "$cross_compiling" = yes; then
4624   # Depending upon the size, compute the lo and hi bounds.
4625 cat >conftest.$ac_ext <<_ACEOF
4626 #line $LINENO "configure"
4627 /* confdefs.h.  */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h.  */
4632 $ac_includes_default
4633 int
4634 main ()
4635 {
4636 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4637 test_array [0] = 0
4638
4639   ;
4640   return 0;
4641 }
4642 _ACEOF
4643 rm -f conftest.$ac_objext
4644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4645   (eval $ac_compile) 2>&5
4646   ac_status=$?
4647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648   (exit $ac_status); } &&
4649          { ac_try='test -s conftest.$ac_objext'
4650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651   (eval $ac_try) 2>&5
4652   ac_status=$?
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); }; }; then
4655   ac_lo=0 ac_mid=0
4656   while :; do
4657     cat >conftest.$ac_ext <<_ACEOF
4658 #line $LINENO "configure"
4659 /* confdefs.h.  */
4660 _ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h.  */
4664 $ac_includes_default
4665 int
4666 main ()
4667 {
4668 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4669 test_array [0] = 0
4670
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 rm -f conftest.$ac_objext
4676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4677   (eval $ac_compile) 2>&5
4678   ac_status=$?
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); } &&
4681          { ac_try='test -s conftest.$ac_objext'
4682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683   (eval $ac_try) 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); }; }; then
4687   ac_hi=$ac_mid; break
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692 ac_lo=`expr $ac_mid + 1`
4693                     if test $ac_lo -le $ac_mid; then
4694                       ac_lo= ac_hi=
4695                       break
4696                     fi
4697                     ac_mid=`expr 2 '*' $ac_mid + 1`
4698 fi
4699 rm -f conftest.$ac_objext conftest.$ac_ext
4700   done
4701 else
4702   echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4704
4705 cat >conftest.$ac_ext <<_ACEOF
4706 #line $LINENO "configure"
4707 /* confdefs.h.  */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h.  */
4712 $ac_includes_default
4713 int
4714 main ()
4715 {
4716 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4717 test_array [0] = 0
4718
4719   ;
4720   return 0;
4721 }
4722 _ACEOF
4723 rm -f conftest.$ac_objext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4725   (eval $ac_compile) 2>&5
4726   ac_status=$?
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); } &&
4729          { ac_try='test -s conftest.$ac_objext'
4730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731   (eval $ac_try) 2>&5
4732   ac_status=$?
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); }; }; then
4735   ac_hi=-1 ac_mid=-1
4736   while :; do
4737     cat >conftest.$ac_ext <<_ACEOF
4738 #line $LINENO "configure"
4739 /* confdefs.h.  */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h.  */
4744 $ac_includes_default
4745 int
4746 main ()
4747 {
4748 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4749 test_array [0] = 0
4750
4751   ;
4752   return 0;
4753 }
4754 _ACEOF
4755 rm -f conftest.$ac_objext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4757   (eval $ac_compile) 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); } &&
4761          { ac_try='test -s conftest.$ac_objext'
4762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763   (eval $ac_try) 2>&5
4764   ac_status=$?
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); }; }; then
4767   ac_lo=$ac_mid; break
4768 else
4769   echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 ac_hi=`expr '(' $ac_mid ')' - 1`
4773                        if test $ac_mid -le $ac_hi; then
4774                          ac_lo= ac_hi=
4775                          break
4776                        fi
4777                        ac_mid=`expr 2 '*' $ac_mid`
4778 fi
4779 rm -f conftest.$ac_objext conftest.$ac_ext
4780   done
4781 else
4782   echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785 ac_lo= ac_hi=
4786 fi
4787 rm -f conftest.$ac_objext conftest.$ac_ext
4788 fi
4789 rm -f conftest.$ac_objext conftest.$ac_ext
4790 # Binary search between lo and hi bounds.
4791 while test "x$ac_lo" != "x$ac_hi"; do
4792   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4793   cat >conftest.$ac_ext <<_ACEOF
4794 #line $LINENO "configure"
4795 /* confdefs.h.  */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h.  */
4800 $ac_includes_default
4801 int
4802 main ()
4803 {
4804 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4805 test_array [0] = 0
4806
4807   ;
4808   return 0;
4809 }
4810 _ACEOF
4811 rm -f conftest.$ac_objext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813   (eval $ac_compile) 2>&5
4814   ac_status=$?
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); } &&
4817          { ac_try='test -s conftest.$ac_objext'
4818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819   (eval $ac_try) 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); }; }; then
4823   ac_hi=$ac_mid
4824 else
4825   echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828 ac_lo=`expr '(' $ac_mid ')' + 1`
4829 fi
4830 rm -f conftest.$ac_objext conftest.$ac_ext
4831 done
4832 case $ac_lo in
4833 ?*) ac_cv_sizeof_long=$ac_lo;;
4834 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4835 See \`config.log' for more details." >&5
4836 echo "$as_me: error: cannot compute sizeof (long), 77
4837 See \`config.log' for more details." >&2;}
4838    { (exit 1); exit 1; }; } ;;
4839 esac
4840 else
4841   if test "$cross_compiling" = yes; then
4842   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4843 See \`config.log' for more details." >&5
4844 echo "$as_me: error: cannot run test program while cross compiling
4845 See \`config.log' for more details." >&2;}
4846    { (exit 1); exit 1; }; }
4847 else
4848   cat >conftest.$ac_ext <<_ACEOF
4849 #line $LINENO "configure"
4850 /* confdefs.h.  */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h.  */
4855 $ac_includes_default
4856 long longval () { return (long) (sizeof (long)); }
4857 unsigned long ulongval () { return (long) (sizeof (long)); }
4858 #include <stdio.h>
4859 #include <stdlib.h>
4860 int
4861 main ()
4862 {
4863
4864   FILE *f = fopen ("conftest.val", "w");
4865   if (! f)
4866     exit (1);
4867   if (((long) (sizeof (long))) < 0)
4868     {
4869       long i = longval ();
4870       if (i != ((long) (sizeof (long))))
4871         exit (1);
4872       fprintf (f, "%ld\n", i);
4873     }
4874   else
4875     {
4876       unsigned long i = ulongval ();
4877       if (i != ((long) (sizeof (long))))
4878         exit (1);
4879       fprintf (f, "%lu\n", i);
4880     }
4881   exit (ferror (f) || fclose (f) != 0);
4882
4883   ;
4884   return 0;
4885 }
4886 _ACEOF
4887 rm -f conftest$ac_exeext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4889   (eval $ac_link) 2>&5
4890   ac_status=$?
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894   (eval $ac_try) 2>&5
4895   ac_status=$?
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); }; }; then
4898   ac_cv_sizeof_long=`cat conftest.val`
4899 else
4900   echo "$as_me: program exited with status $ac_status" >&5
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4903
4904 ( exit $ac_status )
4905 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4906 See \`config.log' for more details." >&5
4907 echo "$as_me: error: cannot compute sizeof (long), 77
4908 See \`config.log' for more details." >&2;}
4909    { (exit 1); exit 1; }; }
4910 fi
4911 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4912 fi
4913 fi
4914 rm -f conftest.val
4915 else
4916   ac_cv_sizeof_long=0
4917 fi
4918 fi
4919 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4920 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4921 cat >>confdefs.h <<_ACEOF
4922 #define SIZEOF_LONG $ac_cv_sizeof_long
4923 _ACEOF
4924
4925
4926 echo "$as_me:$LINENO: checking for float" >&5
4927 echo $ECHO_N "checking for float... $ECHO_C" >&6
4928 if test "${ac_cv_type_float+set}" = set; then
4929   echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931   cat >conftest.$ac_ext <<_ACEOF
4932 #line $LINENO "configure"
4933 /* confdefs.h.  */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h.  */
4938 $ac_includes_default
4939 int
4940 main ()
4941 {
4942 if ((float *) 0)
4943   return 0;
4944 if (sizeof (float))
4945   return 0;
4946   ;
4947   return 0;
4948 }
4949 _ACEOF
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952   (eval $ac_compile) 2>&5
4953   ac_status=$?
4954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955   (exit $ac_status); } &&
4956          { ac_try='test -s conftest.$ac_objext'
4957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958   (eval $ac_try) 2>&5
4959   ac_status=$?
4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961   (exit $ac_status); }; }; then
4962   ac_cv_type_float=yes
4963 else
4964   echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 ac_cv_type_float=no
4968 fi
4969 rm -f conftest.$ac_objext conftest.$ac_ext
4970 fi
4971 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
4972 echo "${ECHO_T}$ac_cv_type_float" >&6
4973
4974 echo "$as_me:$LINENO: checking size of float" >&5
4975 echo $ECHO_N "checking size of float... $ECHO_C" >&6
4976 if test "${ac_cv_sizeof_float+set}" = set; then
4977   echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979   if test "$ac_cv_type_float" = yes; then
4980   # The cast to unsigned long works around a bug in the HP C Compiler
4981   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4982   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4983   # This bug is HP SR number 8606223364.
4984   if test "$cross_compiling" = yes; then
4985   # Depending upon the size, compute the lo and hi bounds.
4986 cat >conftest.$ac_ext <<_ACEOF
4987 #line $LINENO "configure"
4988 /* confdefs.h.  */
4989 _ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h.  */
4993 $ac_includes_default
4994 int
4995 main ()
4996 {
4997 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
4998 test_array [0] = 0
4999
5000   ;
5001   return 0;
5002 }
5003 _ACEOF
5004 rm -f conftest.$ac_objext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006   (eval $ac_compile) 2>&5
5007   ac_status=$?
5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); } &&
5010          { ac_try='test -s conftest.$ac_objext'
5011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012   (eval $ac_try) 2>&5
5013   ac_status=$?
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); }; }; then
5016   ac_lo=0 ac_mid=0
5017   while :; do
5018     cat >conftest.$ac_ext <<_ACEOF
5019 #line $LINENO "configure"
5020 /* confdefs.h.  */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h.  */
5025 $ac_includes_default
5026 int
5027 main ()
5028 {
5029 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5030 test_array [0] = 0
5031
5032   ;
5033   return 0;
5034 }
5035 _ACEOF
5036 rm -f conftest.$ac_objext
5037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038   (eval $ac_compile) 2>&5
5039   ac_status=$?
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); } &&
5042          { ac_try='test -s conftest.$ac_objext'
5043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044   (eval $ac_try) 2>&5
5045   ac_status=$?
5046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047   (exit $ac_status); }; }; then
5048   ac_hi=$ac_mid; break
5049 else
5050   echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5052
5053 ac_lo=`expr $ac_mid + 1`
5054                     if test $ac_lo -le $ac_mid; then
5055                       ac_lo= ac_hi=
5056                       break
5057                     fi
5058                     ac_mid=`expr 2 '*' $ac_mid + 1`
5059 fi
5060 rm -f conftest.$ac_objext conftest.$ac_ext
5061   done
5062 else
5063   echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5065
5066 cat >conftest.$ac_ext <<_ACEOF
5067 #line $LINENO "configure"
5068 /* confdefs.h.  */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h.  */
5073 $ac_includes_default
5074 int
5075 main ()
5076 {
5077 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5078 test_array [0] = 0
5079
5080   ;
5081   return 0;
5082 }
5083 _ACEOF
5084 rm -f conftest.$ac_objext
5085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086   (eval $ac_compile) 2>&5
5087   ac_status=$?
5088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089   (exit $ac_status); } &&
5090          { ac_try='test -s conftest.$ac_objext'
5091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092   (eval $ac_try) 2>&5
5093   ac_status=$?
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); }; }; then
5096   ac_hi=-1 ac_mid=-1
5097   while :; do
5098     cat >conftest.$ac_ext <<_ACEOF
5099 #line $LINENO "configure"
5100 /* confdefs.h.  */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h.  */
5105 $ac_includes_default
5106 int
5107 main ()
5108 {
5109 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5110 test_array [0] = 0
5111
5112   ;
5113   return 0;
5114 }
5115 _ACEOF
5116 rm -f conftest.$ac_objext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5118   (eval $ac_compile) 2>&5
5119   ac_status=$?
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); } &&
5122          { ac_try='test -s conftest.$ac_objext'
5123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124   (eval $ac_try) 2>&5
5125   ac_status=$?
5126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127   (exit $ac_status); }; }; then
5128   ac_lo=$ac_mid; break
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 ac_hi=`expr '(' $ac_mid ')' - 1`
5134                        if test $ac_mid -le $ac_hi; then
5135                          ac_lo= ac_hi=
5136                          break
5137                        fi
5138                        ac_mid=`expr 2 '*' $ac_mid`
5139 fi
5140 rm -f conftest.$ac_objext conftest.$ac_ext
5141   done
5142 else
5143   echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5145
5146 ac_lo= ac_hi=
5147 fi
5148 rm -f conftest.$ac_objext conftest.$ac_ext
5149 fi
5150 rm -f conftest.$ac_objext conftest.$ac_ext
5151 # Binary search between lo and hi bounds.
5152 while test "x$ac_lo" != "x$ac_hi"; do
5153   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5154   cat >conftest.$ac_ext <<_ACEOF
5155 #line $LINENO "configure"
5156 /* confdefs.h.  */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h.  */
5161 $ac_includes_default
5162 int
5163 main ()
5164 {
5165 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5166 test_array [0] = 0
5167
5168   ;
5169   return 0;
5170 }
5171 _ACEOF
5172 rm -f conftest.$ac_objext
5173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5174   (eval $ac_compile) 2>&5
5175   ac_status=$?
5176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177   (exit $ac_status); } &&
5178          { ac_try='test -s conftest.$ac_objext'
5179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180   (eval $ac_try) 2>&5
5181   ac_status=$?
5182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183   (exit $ac_status); }; }; then
5184   ac_hi=$ac_mid
5185 else
5186   echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5188
5189 ac_lo=`expr '(' $ac_mid ')' + 1`
5190 fi
5191 rm -f conftest.$ac_objext conftest.$ac_ext
5192 done
5193 case $ac_lo in
5194 ?*) ac_cv_sizeof_float=$ac_lo;;
5195 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5196 See \`config.log' for more details." >&5
5197 echo "$as_me: error: cannot compute sizeof (float), 77
5198 See \`config.log' for more details." >&2;}
5199    { (exit 1); exit 1; }; } ;;
5200 esac
5201 else
5202   if test "$cross_compiling" = yes; then
5203   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5204 See \`config.log' for more details." >&5
5205 echo "$as_me: error: cannot run test program while cross compiling
5206 See \`config.log' for more details." >&2;}
5207    { (exit 1); exit 1; }; }
5208 else
5209   cat >conftest.$ac_ext <<_ACEOF
5210 #line $LINENO "configure"
5211 /* confdefs.h.  */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h.  */
5216 $ac_includes_default
5217 long longval () { return (long) (sizeof (float)); }
5218 unsigned long ulongval () { return (long) (sizeof (float)); }
5219 #include <stdio.h>
5220 #include <stdlib.h>
5221 int
5222 main ()
5223 {
5224
5225   FILE *f = fopen ("conftest.val", "w");
5226   if (! f)
5227     exit (1);
5228   if (((long) (sizeof (float))) < 0)
5229     {
5230       long i = longval ();
5231       if (i != ((long) (sizeof (float))))
5232         exit (1);
5233       fprintf (f, "%ld\n", i);
5234     }
5235   else
5236     {
5237       unsigned long i = ulongval ();
5238       if (i != ((long) (sizeof (float))))
5239         exit (1);
5240       fprintf (f, "%lu\n", i);
5241     }
5242   exit (ferror (f) || fclose (f) != 0);
5243
5244   ;
5245   return 0;
5246 }
5247 _ACEOF
5248 rm -f conftest$ac_exeext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5250   (eval $ac_link) 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255   (eval $ac_try) 2>&5
5256   ac_status=$?
5257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258   (exit $ac_status); }; }; then
5259   ac_cv_sizeof_float=`cat conftest.val`
5260 else
5261   echo "$as_me: program exited with status $ac_status" >&5
5262 echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5264
5265 ( exit $ac_status )
5266 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5267 See \`config.log' for more details." >&5
5268 echo "$as_me: error: cannot compute sizeof (float), 77
5269 See \`config.log' for more details." >&2;}
5270    { (exit 1); exit 1; }; }
5271 fi
5272 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5273 fi
5274 fi
5275 rm -f conftest.val
5276 else
5277   ac_cv_sizeof_float=0
5278 fi
5279 fi
5280 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5281 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5282 cat >>confdefs.h <<_ACEOF
5283 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5284 _ACEOF
5285
5286
5287 echo "$as_me:$LINENO: checking for double" >&5
5288 echo $ECHO_N "checking for double... $ECHO_C" >&6
5289 if test "${ac_cv_type_double+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292   cat >conftest.$ac_ext <<_ACEOF
5293 #line $LINENO "configure"
5294 /* confdefs.h.  */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h.  */
5299 $ac_includes_default
5300 int
5301 main ()
5302 {
5303 if ((double *) 0)
5304   return 0;
5305 if (sizeof (double))
5306   return 0;
5307   ;
5308   return 0;
5309 }
5310 _ACEOF
5311 rm -f conftest.$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313   (eval $ac_compile) 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); } &&
5317          { ac_try='test -s conftest.$ac_objext'
5318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319   (eval $ac_try) 2>&5
5320   ac_status=$?
5321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322   (exit $ac_status); }; }; then
5323   ac_cv_type_double=yes
5324 else
5325   echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5327
5328 ac_cv_type_double=no
5329 fi
5330 rm -f conftest.$ac_objext conftest.$ac_ext
5331 fi
5332 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5333 echo "${ECHO_T}$ac_cv_type_double" >&6
5334
5335 echo "$as_me:$LINENO: checking size of double" >&5
5336 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5337 if test "${ac_cv_sizeof_double+set}" = set; then
5338   echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340   if test "$ac_cv_type_double" = yes; then
5341   # The cast to unsigned long works around a bug in the HP C Compiler
5342   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5343   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5344   # This bug is HP SR number 8606223364.
5345   if test "$cross_compiling" = yes; then
5346   # Depending upon the size, compute the lo and hi bounds.
5347 cat >conftest.$ac_ext <<_ACEOF
5348 #line $LINENO "configure"
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5354 $ac_includes_default
5355 int
5356 main ()
5357 {
5358 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5359 test_array [0] = 0
5360
5361   ;
5362   return 0;
5363 }
5364 _ACEOF
5365 rm -f conftest.$ac_objext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367   (eval $ac_compile) 2>&5
5368   ac_status=$?
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); } &&
5371          { ac_try='test -s conftest.$ac_objext'
5372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373   (eval $ac_try) 2>&5
5374   ac_status=$?
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); }; }; then
5377   ac_lo=0 ac_mid=0
5378   while :; do
5379     cat >conftest.$ac_ext <<_ACEOF
5380 #line $LINENO "configure"
5381 /* confdefs.h.  */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h.  */
5386 $ac_includes_default
5387 int
5388 main ()
5389 {
5390 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5391 test_array [0] = 0
5392
5393   ;
5394   return 0;
5395 }
5396 _ACEOF
5397 rm -f conftest.$ac_objext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5399   (eval $ac_compile) 2>&5
5400   ac_status=$?
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); } &&
5403          { ac_try='test -s conftest.$ac_objext'
5404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405   (eval $ac_try) 2>&5
5406   ac_status=$?
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); }; }; then
5409   ac_hi=$ac_mid; break
5410 else
5411   echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5413
5414 ac_lo=`expr $ac_mid + 1`
5415                     if test $ac_lo -le $ac_mid; then
5416                       ac_lo= ac_hi=
5417                       break
5418                     fi
5419                     ac_mid=`expr 2 '*' $ac_mid + 1`
5420 fi
5421 rm -f conftest.$ac_objext conftest.$ac_ext
5422   done
5423 else
5424   echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5426
5427 cat >conftest.$ac_ext <<_ACEOF
5428 #line $LINENO "configure"
5429 /* confdefs.h.  */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h.  */
5434 $ac_includes_default
5435 int
5436 main ()
5437 {
5438 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5439 test_array [0] = 0
5440
5441   ;
5442   return 0;
5443 }
5444 _ACEOF
5445 rm -f conftest.$ac_objext
5446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5447   (eval $ac_compile) 2>&5
5448   ac_status=$?
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); } &&
5451          { ac_try='test -s conftest.$ac_objext'
5452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453   (eval $ac_try) 2>&5
5454   ac_status=$?
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); }; }; then
5457   ac_hi=-1 ac_mid=-1
5458   while :; do
5459     cat >conftest.$ac_ext <<_ACEOF
5460 #line $LINENO "configure"
5461 /* confdefs.h.  */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h.  */
5466 $ac_includes_default
5467 int
5468 main ()
5469 {
5470 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5471 test_array [0] = 0
5472
5473   ;
5474   return 0;
5475 }
5476 _ACEOF
5477 rm -f conftest.$ac_objext
5478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5479   (eval $ac_compile) 2>&5
5480   ac_status=$?
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); } &&
5483          { ac_try='test -s conftest.$ac_objext'
5484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485   (eval $ac_try) 2>&5
5486   ac_status=$?
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); }; }; then
5489   ac_lo=$ac_mid; break
5490 else
5491   echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5493
5494 ac_hi=`expr '(' $ac_mid ')' - 1`
5495                        if test $ac_mid -le $ac_hi; then
5496                          ac_lo= ac_hi=
5497                          break
5498                        fi
5499                        ac_mid=`expr 2 '*' $ac_mid`
5500 fi
5501 rm -f conftest.$ac_objext conftest.$ac_ext
5502   done
5503 else
5504   echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5506
5507 ac_lo= ac_hi=
5508 fi
5509 rm -f conftest.$ac_objext conftest.$ac_ext
5510 fi
5511 rm -f conftest.$ac_objext conftest.$ac_ext
5512 # Binary search between lo and hi bounds.
5513 while test "x$ac_lo" != "x$ac_hi"; do
5514   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5515   cat >conftest.$ac_ext <<_ACEOF
5516 #line $LINENO "configure"
5517 /* confdefs.h.  */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h.  */
5522 $ac_includes_default
5523 int
5524 main ()
5525 {
5526 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5527 test_array [0] = 0
5528
5529   ;
5530   return 0;
5531 }
5532 _ACEOF
5533 rm -f conftest.$ac_objext
5534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535   (eval $ac_compile) 2>&5
5536   ac_status=$?
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); } &&
5539          { ac_try='test -s conftest.$ac_objext'
5540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541   (eval $ac_try) 2>&5
5542   ac_status=$?
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); }; }; then
5545   ac_hi=$ac_mid
5546 else
5547   echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5549
5550 ac_lo=`expr '(' $ac_mid ')' + 1`
5551 fi
5552 rm -f conftest.$ac_objext conftest.$ac_ext
5553 done
5554 case $ac_lo in
5555 ?*) ac_cv_sizeof_double=$ac_lo;;
5556 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5557 See \`config.log' for more details." >&5
5558 echo "$as_me: error: cannot compute sizeof (double), 77
5559 See \`config.log' for more details." >&2;}
5560    { (exit 1); exit 1; }; } ;;
5561 esac
5562 else
5563   if test "$cross_compiling" = yes; then
5564   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5565 See \`config.log' for more details." >&5
5566 echo "$as_me: error: cannot run test program while cross compiling
5567 See \`config.log' for more details." >&2;}
5568    { (exit 1); exit 1; }; }
5569 else
5570   cat >conftest.$ac_ext <<_ACEOF
5571 #line $LINENO "configure"
5572 /* confdefs.h.  */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h.  */
5577 $ac_includes_default
5578 long longval () { return (long) (sizeof (double)); }
5579 unsigned long ulongval () { return (long) (sizeof (double)); }
5580 #include <stdio.h>
5581 #include <stdlib.h>
5582 int
5583 main ()
5584 {
5585
5586   FILE *f = fopen ("conftest.val", "w");
5587   if (! f)
5588     exit (1);
5589   if (((long) (sizeof (double))) < 0)
5590     {
5591       long i = longval ();
5592       if (i != ((long) (sizeof (double))))
5593         exit (1);
5594       fprintf (f, "%ld\n", i);
5595     }
5596   else
5597     {
5598       unsigned long i = ulongval ();
5599       if (i != ((long) (sizeof (double))))
5600         exit (1);
5601       fprintf (f, "%lu\n", i);
5602     }
5603   exit (ferror (f) || fclose (f) != 0);
5604
5605   ;
5606   return 0;
5607 }
5608 _ACEOF
5609 rm -f conftest$ac_exeext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5611   (eval $ac_link) 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616   (eval $ac_try) 2>&5
5617   ac_status=$?
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); }; }; then
5620   ac_cv_sizeof_double=`cat conftest.val`
5621 else
5622   echo "$as_me: program exited with status $ac_status" >&5
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5625
5626 ( exit $ac_status )
5627 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5628 See \`config.log' for more details." >&5
5629 echo "$as_me: error: cannot compute sizeof (double), 77
5630 See \`config.log' for more details." >&2;}
5631    { (exit 1); exit 1; }; }
5632 fi
5633 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5634 fi
5635 fi
5636 rm -f conftest.val
5637 else
5638   ac_cv_sizeof_double=0
5639 fi
5640 fi
5641 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5642 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5643 cat >>confdefs.h <<_ACEOF
5644 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5645 _ACEOF
5646
5647
5648
5649
5650 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5651 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5652 if test "${ac_cv_lib_z_deflate+set}" = set; then
5653   echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655   ac_check_lib_save_LIBS=$LIBS
5656 LIBS="-lz  $LIBS"
5657 cat >conftest.$ac_ext <<_ACEOF
5658 #line $LINENO "configure"
5659 /* confdefs.h.  */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h.  */
5664
5665 /* Override any gcc2 internal prototype to avoid an error.  */
5666 #ifdef __cplusplus
5667 extern "C"
5668 #endif
5669 /* We use char because int might match the return type of a gcc2
5670    builtin and then its argument prototype would still apply.  */
5671 char deflate ();
5672 int
5673 main ()
5674 {
5675 deflate ();
5676   ;
5677   return 0;
5678 }
5679 _ACEOF
5680 rm -f conftest.$ac_objext conftest$ac_exeext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5682   (eval $ac_link) 2>&5
5683   ac_status=$?
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); } &&
5686          { ac_try='test -s conftest$ac_exeext'
5687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688   (eval $ac_try) 2>&5
5689   ac_status=$?
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); }; }; then
5692   ac_cv_lib_z_deflate=yes
5693 else
5694   echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5696
5697 ac_cv_lib_z_deflate=no
5698 fi
5699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5700 LIBS=$ac_check_lib_save_LIBS
5701 fi
5702 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5703 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5704 if test $ac_cv_lib_z_deflate = yes; then
5705    zlib="true"
5706 else
5707    zlib="false" ;  { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
5708 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5709 fi
5710
5711
5712 echo "$as_me:$LINENO: checking for sin in -lm" >&5
5713 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
5714 if test "${ac_cv_lib_m_sin+set}" = set; then
5715   echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717   ac_check_lib_save_LIBS=$LIBS
5718 LIBS="-lm  $LIBS"
5719 cat >conftest.$ac_ext <<_ACEOF
5720 #line $LINENO "configure"
5721 /* confdefs.h.  */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h.  */
5726
5727 /* Override any gcc2 internal prototype to avoid an error.  */
5728 #ifdef __cplusplus
5729 extern "C"
5730 #endif
5731 /* We use char because int might match the return type of a gcc2
5732    builtin and then its argument prototype would still apply.  */
5733 char sin ();
5734 int
5735 main ()
5736 {
5737 sin ();
5738   ;
5739   return 0;
5740 }
5741 _ACEOF
5742 rm -f conftest.$ac_objext conftest$ac_exeext
5743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5744   (eval $ac_link) 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); } &&
5748          { ac_try='test -s conftest$ac_exeext'
5749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750   (eval $ac_try) 2>&5
5751   ac_status=$?
5752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753   (exit $ac_status); }; }; then
5754   ac_cv_lib_m_sin=yes
5755 else
5756   echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5758
5759 ac_cv_lib_m_sin=no
5760 fi
5761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5762 LIBS=$ac_check_lib_save_LIBS
5763 fi
5764 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
5765 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
5766 if test $ac_cv_lib_m_sin = yes; then
5767   cat >>confdefs.h <<_ACEOF
5768 #define HAVE_LIBM 1
5769 _ACEOF
5770
5771   LIBS="-lm $LIBS"
5772
5773 fi
5774
5775 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
5776 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
5777 if test "${ac_cv_lib_curses_main+set}" = set; then
5778   echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780   ac_check_lib_save_LIBS=$LIBS
5781 LIBS="-lcurses  $LIBS"
5782 cat >conftest.$ac_ext <<_ACEOF
5783 #line $LINENO "configure"
5784 /* confdefs.h.  */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h.  */
5789
5790
5791 int
5792 main ()
5793 {
5794 main ();
5795   ;
5796   return 0;
5797 }
5798 _ACEOF
5799 rm -f conftest.$ac_objext conftest$ac_exeext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5801   (eval $ac_link) 2>&5
5802   ac_status=$?
5803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804   (exit $ac_status); } &&
5805          { ac_try='test -s conftest$ac_exeext'
5806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807   (eval $ac_try) 2>&5
5808   ac_status=$?
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); }; }; then
5811   ac_cv_lib_curses_main=yes
5812 else
5813   echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816 ac_cv_lib_curses_main=no
5817 fi
5818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5819 LIBS=$ac_check_lib_save_LIBS
5820 fi
5821 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
5822 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
5823 if test $ac_cv_lib_curses_main = yes; then
5824   curses=true
5825 else
5826   curses=false
5827 fi
5828
5829 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
5830 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
5831 if test "${ac_cv_lib_ncurses_main+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   ac_check_lib_save_LIBS=$LIBS
5835 LIBS="-lncurses  $LIBS"
5836 cat >conftest.$ac_ext <<_ACEOF
5837 #line $LINENO "configure"
5838 /* confdefs.h.  */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h.  */
5843
5844
5845 int
5846 main ()
5847 {
5848 main ();
5849   ;
5850   return 0;
5851 }
5852 _ACEOF
5853 rm -f conftest.$ac_objext conftest$ac_exeext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5855   (eval $ac_link) 2>&5
5856   ac_status=$?
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); } &&
5859          { ac_try='test -s conftest$ac_exeext'
5860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861   (eval $ac_try) 2>&5
5862   ac_status=$?
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); }; }; then
5865   ac_cv_lib_ncurses_main=yes
5866 else
5867   echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5869
5870 ac_cv_lib_ncurses_main=no
5871 fi
5872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5873 LIBS=$ac_check_lib_save_LIBS
5874 fi
5875 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
5876 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
5877 if test $ac_cv_lib_ncurses_main = yes; then
5878   ncurses=true
5879 else
5880   ncurses=false
5881 fi
5882
5883 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
5884 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
5885 if test "${ac_cv_lib_readline_main+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   ac_check_lib_save_LIBS=$LIBS
5889 LIBS="-lreadline -lcurses $LIBS"
5890 cat >conftest.$ac_ext <<_ACEOF
5891 #line $LINENO "configure"
5892 /* confdefs.h.  */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h.  */
5897
5898
5899 int
5900 main ()
5901 {
5902 main ();
5903   ;
5904   return 0;
5905 }
5906 _ACEOF
5907 rm -f conftest.$ac_objext conftest$ac_exeext
5908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5909   (eval $ac_link) 2>&5
5910   ac_status=$?
5911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912   (exit $ac_status); } &&
5913          { ac_try='test -s conftest$ac_exeext'
5914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915   (eval $ac_try) 2>&5
5916   ac_status=$?
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); }; }; then
5919   ac_cv_lib_readline_main=yes
5920 else
5921   echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5923
5924 ac_cv_lib_readline_main=no
5925 fi
5926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5927 LIBS=$ac_check_lib_save_LIBS
5928 fi
5929 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
5930 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
5931 if test $ac_cv_lib_readline_main = yes; then
5932   readline=true;
5933
5934 cat >>confdefs.h <<\_ACEOF
5935 #define HAVE_READLINE 1
5936 _ACEOF
5937
5938 else
5939   readline=false
5940 fi
5941
5942 wxwin=false
5943 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
5944 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
5945 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
5946   echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948   ac_check_lib_save_LIBS=$LIBS
5949 LIBS="-lwx_gtk-2.4  $LIBS"
5950 cat >conftest.$ac_ext <<_ACEOF
5951 #line $LINENO "configure"
5952 /* confdefs.h.  */
5953 _ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h.  */
5957
5958
5959 int
5960 main ()
5961 {
5962 main ();
5963   ;
5964   return 0;
5965 }
5966 _ACEOF
5967 rm -f conftest.$ac_objext conftest$ac_exeext
5968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5969   (eval $ac_link) 2>&5
5970   ac_status=$?
5971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972   (exit $ac_status); } &&
5973          { ac_try='test -s conftest$ac_exeext'
5974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975   (eval $ac_try) 2>&5
5976   ac_status=$?
5977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978   (exit $ac_status); }; }; then
5979   ac_cv_lib_wx_gtk_2_4_main=yes
5980 else
5981   echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5983
5984 ac_cv_lib_wx_gtk_2_4_main=no
5985 fi
5986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5987 LIBS=$ac_check_lib_save_LIBS
5988 fi
5989 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
5990 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
5991 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
5992   wxwin=true; wx_gtk=true;
5993 cat >>confdefs.h <<\_ACEOF
5994 #define HAVE_WXWINDOWS 1
5995 _ACEOF
5996
5997 fi
5998
5999 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
6000 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
6001 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
6002   echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004   ac_check_lib_save_LIBS=$LIBS
6005 LIBS="-lwx_mac-2.4  $LIBS"
6006 cat >conftest.$ac_ext <<_ACEOF
6007 #line $LINENO "configure"
6008 /* confdefs.h.  */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h.  */
6013
6014
6015 int
6016 main ()
6017 {
6018 main ();
6019   ;
6020   return 0;
6021 }
6022 _ACEOF
6023 rm -f conftest.$ac_objext conftest$ac_exeext
6024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6025   (eval $ac_link) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); } &&
6029          { ac_try='test -s conftest$ac_exeext'
6030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031   (eval $ac_try) 2>&5
6032   ac_status=$?
6033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034   (exit $ac_status); }; }; then
6035   ac_cv_lib_wx_mac_2_4_main=yes
6036 else
6037   echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6039
6040 ac_cv_lib_wx_mac_2_4_main=no
6041 fi
6042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6043 LIBS=$ac_check_lib_save_LIBS
6044 fi
6045 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
6046 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
6047 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
6048   wxwin=true; wx_mac=true;
6049 cat >>confdefs.h <<\_ACEOF
6050 #define HAVE_WXWINDOWS 1
6051 _ACEOF
6052
6053 fi
6054
6055 echo "$as_me:$LINENO: checking for fftw_one in -lfftw" >&5
6056 echo $ECHO_N "checking for fftw_one in -lfftw... $ECHO_C" >&6
6057 if test "${ac_cv_lib_fftw_fftw_one+set}" = set; then
6058   echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060   ac_check_lib_save_LIBS=$LIBS
6061 LIBS="-lfftw  $LIBS"
6062 cat >conftest.$ac_ext <<_ACEOF
6063 #line $LINENO "configure"
6064 /* confdefs.h.  */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h.  */
6069
6070 /* Override any gcc2 internal prototype to avoid an error.  */
6071 #ifdef __cplusplus
6072 extern "C"
6073 #endif
6074 /* We use char because int might match the return type of a gcc2
6075    builtin and then its argument prototype would still apply.  */
6076 char fftw_one ();
6077 int
6078 main ()
6079 {
6080 fftw_one ();
6081   ;
6082   return 0;
6083 }
6084 _ACEOF
6085 rm -f conftest.$ac_objext conftest$ac_exeext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6087   (eval $ac_link) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); } &&
6091          { ac_try='test -s conftest$ac_exeext'
6092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093   (eval $ac_try) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; }; then
6097   ac_cv_lib_fftw_fftw_one=yes
6098 else
6099   echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102 ac_cv_lib_fftw_fftw_one=no
6103 fi
6104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6105 LIBS=$ac_check_lib_save_LIBS
6106 fi
6107 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_one" >&5
6108 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_one" >&6
6109 if test $ac_cv_lib_fftw_fftw_one = yes; then
6110   fftw=true;
6111 cat >>confdefs.h <<\_ACEOF
6112 #define HAVE_FFTW 1
6113 _ACEOF
6114
6115 else
6116   fftw=false
6117 fi
6118
6119 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6120 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6121 if test "${ac_cv_lib_GL_main+set}" = set; then
6122   echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124   ac_check_lib_save_LIBS=$LIBS
6125 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
6126 cat >conftest.$ac_ext <<_ACEOF
6127 #line $LINENO "configure"
6128 /* confdefs.h.  */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h.  */
6133
6134
6135 int
6136 main ()
6137 {
6138 main ();
6139   ;
6140   return 0;
6141 }
6142 _ACEOF
6143 rm -f conftest.$ac_objext conftest$ac_exeext
6144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6145   (eval $ac_link) 2>&5
6146   ac_status=$?
6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148   (exit $ac_status); } &&
6149          { ac_try='test -s conftest$ac_exeext'
6150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151   (eval $ac_try) 2>&5
6152   ac_status=$?
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); }; }; then
6155   ac_cv_lib_GL_main=yes
6156 else
6157   echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6159
6160 ac_cv_lib_GL_main=no
6161 fi
6162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6163 LIBS=$ac_check_lib_save_LIBS
6164 fi
6165 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6166 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6167 if test $ac_cv_lib_GL_main = yes; then
6168   libgl=true
6169 else
6170   libgl=false
6171 fi
6172
6173 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6174 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6175 if test "${ac_cv_lib_pthread_main+set}" = set; then
6176   echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178   ac_check_lib_save_LIBS=$LIBS
6179 LIBS="-lpthread  $LIBS"
6180 cat >conftest.$ac_ext <<_ACEOF
6181 #line $LINENO "configure"
6182 /* confdefs.h.  */
6183 _ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h.  */
6187
6188
6189 int
6190 main ()
6191 {
6192 main ();
6193   ;
6194   return 0;
6195 }
6196 _ACEOF
6197 rm -f conftest.$ac_objext conftest$ac_exeext
6198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6199   (eval $ac_link) 2>&5
6200   ac_status=$?
6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); } &&
6203          { ac_try='test -s conftest$ac_exeext'
6204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205   (eval $ac_try) 2>&5
6206   ac_status=$?
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); }; }; then
6209   ac_cv_lib_pthread_main=yes
6210 else
6211   echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6213
6214 ac_cv_lib_pthread_main=no
6215 fi
6216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6217 LIBS=$ac_check_lib_save_LIBS
6218 fi
6219 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6220 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6221 if test $ac_cv_lib_pthread_main = yes; then
6222   pthread=true
6223 else
6224   pthread=false
6225 fi
6226
6227
6228 if test "$zlib" = "true" ; then
6229   echo "$as_me:$LINENO: checking for main in -lpng" >&5
6230 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6231 if test "${ac_cv_lib_png_main+set}" = set; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   ac_check_lib_save_LIBS=$LIBS
6235 LIBS="-lpng -lz -lm $LIBS"
6236 cat >conftest.$ac_ext <<_ACEOF
6237 #line $LINENO "configure"
6238 /* confdefs.h.  */
6239 _ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h.  */
6243
6244
6245 int
6246 main ()
6247 {
6248 main ();
6249   ;
6250   return 0;
6251 }
6252 _ACEOF
6253 rm -f conftest.$ac_objext conftest$ac_exeext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6255   (eval $ac_link) 2>&5
6256   ac_status=$?
6257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258   (exit $ac_status); } &&
6259          { ac_try='test -s conftest$ac_exeext'
6260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261   (eval $ac_try) 2>&5
6262   ac_status=$?
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); }; }; then
6265   ac_cv_lib_png_main=yes
6266 else
6267   echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6269
6270 ac_cv_lib_png_main=no
6271 fi
6272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6273 LIBS=$ac_check_lib_save_LIBS
6274 fi
6275 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6276 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6277 if test $ac_cv_lib_png_main = yes; then
6278   png=true ;
6279 cat >>confdefs.h <<\_ACEOF
6280 #define HAVE_PNG 1
6281 _ACEOF
6282
6283 else
6284   png=false
6285 fi
6286
6287 fi
6288
6289 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6290 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6291 if test "${ac_cv_header_stdc+set}" = set; then
6292   echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294   cat >conftest.$ac_ext <<_ACEOF
6295 #line $LINENO "configure"
6296 /* confdefs.h.  */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h.  */
6301 #include <stdlib.h>
6302 #include <stdarg.h>
6303 #include <string.h>
6304 #include <float.h>
6305
6306 int
6307 main ()
6308 {
6309
6310   ;
6311   return 0;
6312 }
6313 _ACEOF
6314 rm -f conftest.$ac_objext
6315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6316   (eval $ac_compile) 2>&5
6317   ac_status=$?
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); } &&
6320          { ac_try='test -s conftest.$ac_objext'
6321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322   (eval $ac_try) 2>&5
6323   ac_status=$?
6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); }; }; then
6326   ac_cv_header_stdc=yes
6327 else
6328   echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6330
6331 ac_cv_header_stdc=no
6332 fi
6333 rm -f conftest.$ac_objext conftest.$ac_ext
6334
6335 if test $ac_cv_header_stdc = yes; then
6336   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6337   cat >conftest.$ac_ext <<_ACEOF
6338 #line $LINENO "configure"
6339 /* confdefs.h.  */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h.  */
6344 #include <string.h>
6345
6346 _ACEOF
6347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6348   $EGREP "memchr" >/dev/null 2>&1; then
6349   :
6350 else
6351   ac_cv_header_stdc=no
6352 fi
6353 rm -f conftest*
6354
6355 fi
6356
6357 if test $ac_cv_header_stdc = yes; then
6358   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6359   cat >conftest.$ac_ext <<_ACEOF
6360 #line $LINENO "configure"
6361 /* confdefs.h.  */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h.  */
6366 #include <stdlib.h>
6367
6368 _ACEOF
6369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6370   $EGREP "free" >/dev/null 2>&1; then
6371   :
6372 else
6373   ac_cv_header_stdc=no
6374 fi
6375 rm -f conftest*
6376
6377 fi
6378
6379 if test $ac_cv_header_stdc = yes; then
6380   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6381   if test "$cross_compiling" = yes; then
6382   :
6383 else
6384   cat >conftest.$ac_ext <<_ACEOF
6385 #line $LINENO "configure"
6386 /* confdefs.h.  */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h.  */
6391 #include <ctype.h>
6392 #if ((' ' & 0x0FF) == 0x020)
6393 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6394 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6395 #else
6396 # define ISLOWER(c) \
6397                    (('a' <= (c) && (c) <= 'i') \
6398                      || ('j' <= (c) && (c) <= 'r') \
6399                      || ('s' <= (c) && (c) <= 'z'))
6400 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6401 #endif
6402
6403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6404 int
6405 main ()
6406 {
6407   int i;
6408   for (i = 0; i < 256; i++)
6409     if (XOR (islower (i), ISLOWER (i))
6410         || toupper (i) != TOUPPER (i))
6411       exit(2);
6412   exit (0);
6413 }
6414 _ACEOF
6415 rm -f conftest$ac_exeext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6417   (eval $ac_link) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422   (eval $ac_try) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; }; then
6426   :
6427 else
6428   echo "$as_me: program exited with status $ac_status" >&5
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432 ( exit $ac_status )
6433 ac_cv_header_stdc=no
6434 fi
6435 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6436 fi
6437 fi
6438 fi
6439 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6440 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6441 if test $ac_cv_header_stdc = yes; then
6442
6443 cat >>confdefs.h <<\_ACEOF
6444 #define STDC_HEADERS 1
6445 _ACEOF
6446
6447 fi
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473 for ac_header in fcntl.h unistd.h getopt.h sys/fcntl.h setjmp.h stdarg.h stddef.h sys/types.h sys/stat.h string.h ctype.h math.h stdio.h netinet/in.h inttypes.h sys/param.h stdint.h stdlib.h assert.h sys/time.h sys/resource.h sys/time.h readline.h readline/readline.h
6474 do
6475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6477   echo "$as_me:$LINENO: checking for $ac_header" >&5
6478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6480   echo $ECHO_N "(cached) $ECHO_C" >&6
6481 fi
6482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6484 else
6485   # Is the header compilable?
6486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6488 cat >conftest.$ac_ext <<_ACEOF
6489 #line $LINENO "configure"
6490 /* confdefs.h.  */
6491 _ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h.  */
6495 $ac_includes_default
6496 #include <$ac_header>
6497 _ACEOF
6498 rm -f conftest.$ac_objext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500   (eval $ac_compile) 2>&5
6501   ac_status=$?
6502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503   (exit $ac_status); } &&
6504          { ac_try='test -s conftest.$ac_objext'
6505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506   (eval $ac_try) 2>&5
6507   ac_status=$?
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); }; }; then
6510   ac_header_compiler=yes
6511 else
6512   echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 ac_header_compiler=no
6516 fi
6517 rm -f conftest.$ac_objext conftest.$ac_ext
6518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6519 echo "${ECHO_T}$ac_header_compiler" >&6
6520
6521 # Is the header present?
6522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line $LINENO "configure"
6526 /* confdefs.h.  */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h.  */
6531 #include <$ac_header>
6532 _ACEOF
6533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6534   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6535   ac_status=$?
6536   grep -v '^ *+' conftest.er1 >conftest.err
6537   rm -f conftest.er1
6538   cat conftest.err >&5
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); } >/dev/null; then
6541   if test -s conftest.err; then
6542     ac_cpp_err=$ac_c_preproc_warn_flag
6543   else
6544     ac_cpp_err=
6545   fi
6546 else
6547   ac_cpp_err=yes
6548 fi
6549 if test -z "$ac_cpp_err"; then
6550   ac_header_preproc=yes
6551 else
6552   echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6554
6555   ac_header_preproc=no
6556 fi
6557 rm -f conftest.err conftest.$ac_ext
6558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6559 echo "${ECHO_T}$ac_header_preproc" >&6
6560
6561 # So?  What about this header?
6562 case $ac_header_compiler:$ac_header_preproc in
6563   yes:no )
6564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6568     (
6569       cat <<\_ASBOX
6570 ## ------------------------------------ ##
6571 ## Report this to bug-autoconf@gnu.org. ##
6572 ## ------------------------------------ ##
6573 _ASBOX
6574     ) |
6575       sed "s/^/$as_me: WARNING:     /" >&2
6576     ;;
6577   no:yes )
6578     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6580     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6584     (
6585       cat <<\_ASBOX
6586 ## ------------------------------------ ##
6587 ## Report this to bug-autoconf@gnu.org. ##
6588 ## ------------------------------------ ##
6589 _ASBOX
6590     ) |
6591       sed "s/^/$as_me: WARNING:     /" >&2
6592     ;;
6593 esac
6594 echo "$as_me:$LINENO: checking for $ac_header" >&5
6595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6597   echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599   eval "$as_ac_Header=$ac_header_preproc"
6600 fi
6601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6603
6604 fi
6605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6606   cat >>confdefs.h <<_ACEOF
6607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6608 _ACEOF
6609
6610 fi
6611
6612 done
6613
6614
6615 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6616 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6617 if test "${ac_cv_c_const+set}" = set; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   cat >conftest.$ac_ext <<_ACEOF
6621 #line $LINENO "configure"
6622 /* confdefs.h.  */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h.  */
6627
6628 int
6629 main ()
6630 {
6631 /* FIXME: Include the comments suggested by Paul. */
6632 #ifndef __cplusplus
6633   /* Ultrix mips cc rejects this.  */
6634   typedef int charset[2];
6635   const charset x;
6636   /* SunOS 4.1.1 cc rejects this.  */
6637   char const *const *ccp;
6638   char **p;
6639   /* NEC SVR4.0.2 mips cc rejects this.  */
6640   struct point {int x, y;};
6641   static struct point const zero = {0,0};
6642   /* AIX XL C 1.02.0.0 rejects this.
6643      It does not let you subtract one const X* pointer from another in
6644      an arm of an if-expression whose if-part is not a constant
6645      expression */
6646   const char *g = "string";
6647   ccp = &g + (g ? g-g : 0);
6648   /* HPUX 7.0 cc rejects these. */
6649   ++ccp;
6650   p = (char**) ccp;
6651   ccp = (char const *const *) p;
6652   { /* SCO 3.2v4 cc rejects this.  */
6653     char *t;
6654     char const *s = 0 ? (char *) 0 : (char const *) 0;
6655
6656     *t++ = 0;
6657   }
6658   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6659     int x[] = {25, 17};
6660     const int *foo = &x[0];
6661     ++foo;
6662   }
6663   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6664     typedef const int *iptr;
6665     iptr p = 0;
6666     ++p;
6667   }
6668   { /* AIX XL C 1.02.0.0 rejects this saying
6669        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6670     struct s { int j; const int *ap[3]; };
6671     struct s *b; b->j = 5;
6672   }
6673   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6674     const int foo = 10;
6675   }
6676 #endif
6677
6678   ;
6679   return 0;
6680 }
6681 _ACEOF
6682 rm -f conftest.$ac_objext
6683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6684   (eval $ac_compile) 2>&5
6685   ac_status=$?
6686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); } &&
6688          { ac_try='test -s conftest.$ac_objext'
6689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690   (eval $ac_try) 2>&5
6691   ac_status=$?
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); }; }; then
6694   ac_cv_c_const=yes
6695 else
6696   echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6698
6699 ac_cv_c_const=no
6700 fi
6701 rm -f conftest.$ac_objext conftest.$ac_ext
6702 fi
6703 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6704 echo "${ECHO_T}$ac_cv_c_const" >&6
6705 if test $ac_cv_c_const = no; then
6706
6707 cat >>confdefs.h <<\_ACEOF
6708 #define const
6709 _ACEOF
6710
6711 fi
6712
6713 echo "$as_me:$LINENO: checking for off_t" >&5
6714 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6715 if test "${ac_cv_type_off_t+set}" = set; then
6716   echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718   cat >conftest.$ac_ext <<_ACEOF
6719 #line $LINENO "configure"
6720 /* confdefs.h.  */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h.  */
6725 $ac_includes_default
6726 int
6727 main ()
6728 {
6729 if ((off_t *) 0)
6730   return 0;
6731 if (sizeof (off_t))
6732   return 0;
6733   ;
6734   return 0;
6735 }
6736 _ACEOF
6737 rm -f conftest.$ac_objext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6739   (eval $ac_compile) 2>&5
6740   ac_status=$?
6741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); } &&
6743          { ac_try='test -s conftest.$ac_objext'
6744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745   (eval $ac_try) 2>&5
6746   ac_status=$?
6747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748   (exit $ac_status); }; }; then
6749   ac_cv_type_off_t=yes
6750 else
6751   echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6753
6754 ac_cv_type_off_t=no
6755 fi
6756 rm -f conftest.$ac_objext conftest.$ac_ext
6757 fi
6758 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6759 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6760 if test $ac_cv_type_off_t = yes; then
6761   :
6762 else
6763
6764 cat >>confdefs.h <<_ACEOF
6765 #define off_t long
6766 _ACEOF
6767
6768 fi
6769
6770 echo "$as_me:$LINENO: checking for size_t" >&5
6771 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6772 if test "${ac_cv_type_size_t+set}" = set; then
6773   echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775   cat >conftest.$ac_ext <<_ACEOF
6776 #line $LINENO "configure"
6777 /* confdefs.h.  */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h.  */
6782 $ac_includes_default
6783 int
6784 main ()
6785 {
6786 if ((size_t *) 0)
6787   return 0;
6788 if (sizeof (size_t))
6789   return 0;
6790   ;
6791   return 0;
6792 }
6793 _ACEOF
6794 rm -f conftest.$ac_objext
6795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6796   (eval $ac_compile) 2>&5
6797   ac_status=$?
6798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799   (exit $ac_status); } &&
6800          { ac_try='test -s conftest.$ac_objext'
6801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802   (eval $ac_try) 2>&5
6803   ac_status=$?
6804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805   (exit $ac_status); }; }; then
6806   ac_cv_type_size_t=yes
6807 else
6808   echo "$as_me: failed program was:" >&5
6809 sed 's/^/| /' conftest.$ac_ext >&5
6810
6811 ac_cv_type_size_t=no
6812 fi
6813 rm -f conftest.$ac_objext conftest.$ac_ext
6814 fi
6815 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6816 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6817 if test $ac_cv_type_size_t = yes; then
6818   :
6819 else
6820
6821 cat >>confdefs.h <<_ACEOF
6822 #define size_t unsigned
6823 _ACEOF
6824
6825 fi
6826
6827 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6828 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6829 if test "${ac_cv_struct_tm+set}" = set; then
6830   echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832   cat >conftest.$ac_ext <<_ACEOF
6833 #line $LINENO "configure"
6834 /* confdefs.h.  */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h.  */
6839 #include <sys/types.h>
6840 #include <time.h>
6841
6842 int
6843 main ()
6844 {
6845 struct tm *tp; tp->tm_sec;
6846   ;
6847   return 0;
6848 }
6849 _ACEOF
6850 rm -f conftest.$ac_objext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6852   (eval $ac_compile) 2>&5
6853   ac_status=$?
6854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855   (exit $ac_status); } &&
6856          { ac_try='test -s conftest.$ac_objext'
6857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858   (eval $ac_try) 2>&5
6859   ac_status=$?
6860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861   (exit $ac_status); }; }; then
6862   ac_cv_struct_tm=time.h
6863 else
6864   echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6866
6867 ac_cv_struct_tm=sys/time.h
6868 fi
6869 rm -f conftest.$ac_objext conftest.$ac_ext
6870 fi
6871 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6872 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6873 if test $ac_cv_struct_tm = sys/time.h; then
6874
6875 cat >>confdefs.h <<\_ACEOF
6876 #define TM_IN_SYS_TIME 1
6877 _ACEOF
6878
6879 fi
6880
6881
6882
6883 for ac_func in vprintf
6884 do
6885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6886 echo "$as_me:$LINENO: checking for $ac_func" >&5
6887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6888 if eval "test \"\${$as_ac_var+set}\" = set"; then
6889   echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891   cat >conftest.$ac_ext <<_ACEOF
6892 #line $LINENO "configure"
6893 /* confdefs.h.  */
6894 _ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h.  */
6898 /* System header to define __stub macros and hopefully few prototypes,
6899     which can conflict with char $ac_func (); below.
6900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6901     <limits.h> exists even on freestanding compilers.  */
6902 #ifdef __STDC__
6903 # include <limits.h>
6904 #else
6905 # include <assert.h>
6906 #endif
6907 /* Override any gcc2 internal prototype to avoid an error.  */
6908 #ifdef __cplusplus
6909 extern "C"
6910 {
6911 #endif
6912 /* We use char because int might match the return type of a gcc2
6913    builtin and then its argument prototype would still apply.  */
6914 char $ac_func ();
6915 /* The GNU C library defines this for functions which it implements
6916     to always fail with ENOSYS.  Some functions are actually named
6917     something starting with __ and the normal name is an alias.  */
6918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6919 choke me
6920 #else
6921 char (*f) () = $ac_func;
6922 #endif
6923 #ifdef __cplusplus
6924 }
6925 #endif
6926
6927 int
6928 main ()
6929 {
6930 return f != $ac_func;
6931   ;
6932   return 0;
6933 }
6934 _ACEOF
6935 rm -f conftest.$ac_objext conftest$ac_exeext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937   (eval $ac_link) 2>&5
6938   ac_status=$?
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); } &&
6941          { ac_try='test -s conftest$ac_exeext'
6942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943   (eval $ac_try) 2>&5
6944   ac_status=$?
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); }; }; then
6947   eval "$as_ac_var=yes"
6948 else
6949   echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6951
6952 eval "$as_ac_var=no"
6953 fi
6954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6955 fi
6956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6958 if test `eval echo '${'$as_ac_var'}'` = yes; then
6959   cat >>confdefs.h <<_ACEOF
6960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6961 _ACEOF
6962
6963 echo "$as_me:$LINENO: checking for _doprnt" >&5
6964 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6965 if test "${ac_cv_func__doprnt+set}" = set; then
6966   echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968   cat >conftest.$ac_ext <<_ACEOF
6969 #line $LINENO "configure"
6970 /* confdefs.h.  */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h.  */
6975 /* System header to define __stub macros and hopefully few prototypes,
6976     which can conflict with char _doprnt (); below.
6977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6978     <limits.h> exists even on freestanding compilers.  */
6979 #ifdef __STDC__
6980 # include <limits.h>
6981 #else
6982 # include <assert.h>
6983 #endif
6984 /* Override any gcc2 internal prototype to avoid an error.  */
6985 #ifdef __cplusplus
6986 extern "C"
6987 {
6988 #endif
6989 /* We use char because int might match the return type of a gcc2
6990    builtin and then its argument prototype would still apply.  */
6991 char _doprnt ();
6992 /* The GNU C library defines this for functions which it implements
6993     to always fail with ENOSYS.  Some functions are actually named
6994     something starting with __ and the normal name is an alias.  */
6995 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6996 choke me
6997 #else
6998 char (*f) () = _doprnt;
6999 #endif
7000 #ifdef __cplusplus
7001 }
7002 #endif
7003
7004 int
7005 main ()
7006 {
7007 return f != _doprnt;
7008   ;
7009   return 0;
7010 }
7011 _ACEOF
7012 rm -f conftest.$ac_objext conftest$ac_exeext
7013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7014   (eval $ac_link) 2>&5
7015   ac_status=$?
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); } &&
7018          { ac_try='test -s conftest$ac_exeext'
7019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020   (eval $ac_try) 2>&5
7021   ac_status=$?
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); }; }; then
7024   ac_cv_func__doprnt=yes
7025 else
7026   echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7028
7029 ac_cv_func__doprnt=no
7030 fi
7031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7032 fi
7033 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7034 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7035 if test $ac_cv_func__doprnt = yes; then
7036
7037 cat >>confdefs.h <<\_ACEOF
7038 #define HAVE_DOPRNT 1
7039 _ACEOF
7040
7041 fi
7042
7043 fi
7044 done
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
7055 do
7056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7057 echo "$as_me:$LINENO: checking for $ac_func" >&5
7058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7059 if eval "test \"\${$as_ac_var+set}\" = set"; then
7060   echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062   cat >conftest.$ac_ext <<_ACEOF
7063 #line $LINENO "configure"
7064 /* confdefs.h.  */
7065 _ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h.  */
7069 /* System header to define __stub macros and hopefully few prototypes,
7070     which can conflict with char $ac_func (); below.
7071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7072     <limits.h> exists even on freestanding compilers.  */
7073 #ifdef __STDC__
7074 # include <limits.h>
7075 #else
7076 # include <assert.h>
7077 #endif
7078 /* Override any gcc2 internal prototype to avoid an error.  */
7079 #ifdef __cplusplus
7080 extern "C"
7081 {
7082 #endif
7083 /* We use char because int might match the return type of a gcc2
7084    builtin and then its argument prototype would still apply.  */
7085 char $ac_func ();
7086 /* The GNU C library defines this for functions which it implements
7087     to always fail with ENOSYS.  Some functions are actually named
7088     something starting with __ and the normal name is an alias.  */
7089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7090 choke me
7091 #else
7092 char (*f) () = $ac_func;
7093 #endif
7094 #ifdef __cplusplus
7095 }
7096 #endif
7097
7098 int
7099 main ()
7100 {
7101 return f != $ac_func;
7102   ;
7103   return 0;
7104 }
7105 _ACEOF
7106 rm -f conftest.$ac_objext conftest$ac_exeext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7108   (eval $ac_link) 2>&5
7109   ac_status=$?
7110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111   (exit $ac_status); } &&
7112          { ac_try='test -s conftest$ac_exeext'
7113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114   (eval $ac_try) 2>&5
7115   ac_status=$?
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); }; }; then
7118   eval "$as_ac_var=yes"
7119 else
7120   echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7122
7123 eval "$as_ac_var=no"
7124 fi
7125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7126 fi
7127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7129 if test `eval echo '${'$as_ac_var'}'` = yes; then
7130   cat >>confdefs.h <<_ACEOF
7131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7132 _ACEOF
7133
7134 fi
7135 done
7136
7137 echo "$as_me:$LINENO: checking for basename" >&5
7138 echo $ECHO_N "checking for basename... $ECHO_C" >&6
7139 if test "${ac_cv_func_basename+set}" = set; then
7140   echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142   cat >conftest.$ac_ext <<_ACEOF
7143 #line $LINENO "configure"
7144 /* confdefs.h.  */
7145 _ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h.  */
7149 /* System header to define __stub macros and hopefully few prototypes,
7150     which can conflict with char basename (); below.
7151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7152     <limits.h> exists even on freestanding compilers.  */
7153 #ifdef __STDC__
7154 # include <limits.h>
7155 #else
7156 # include <assert.h>
7157 #endif
7158 /* Override any gcc2 internal prototype to avoid an error.  */
7159 #ifdef __cplusplus
7160 extern "C"
7161 {
7162 #endif
7163 /* We use char because int might match the return type of a gcc2
7164    builtin and then its argument prototype would still apply.  */
7165 char basename ();
7166 /* The GNU C library defines this for functions which it implements
7167     to always fail with ENOSYS.  Some functions are actually named
7168     something starting with __ and the normal name is an alias.  */
7169 #if defined (__stub_basename) || defined (__stub___basename)
7170 choke me
7171 #else
7172 char (*f) () = basename;
7173 #endif
7174 #ifdef __cplusplus
7175 }
7176 #endif
7177
7178 int
7179 main ()
7180 {
7181 return f != basename;
7182   ;
7183   return 0;
7184 }
7185 _ACEOF
7186 rm -f conftest.$ac_objext conftest$ac_exeext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7188   (eval $ac_link) 2>&5
7189   ac_status=$?
7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); } &&
7192          { ac_try='test -s conftest$ac_exeext'
7193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194   (eval $ac_try) 2>&5
7195   ac_status=$?
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); }; }; then
7198   ac_cv_func_basename=yes
7199 else
7200   echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7202
7203 ac_cv_func_basename=no
7204 fi
7205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7206 fi
7207 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
7208 echo "${ECHO_T}$ac_cv_func_basename" >&6
7209
7210 echo "$as_me:$LINENO: checking for setjmp" >&5
7211 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
7212 if test "${ac_cv_func_setjmp+set}" = set; then
7213   echo $ECHO_N "(cached) $ECHO_C" >&6
7214 else
7215   cat >conftest.$ac_ext <<_ACEOF
7216 #line $LINENO "configure"
7217 /* confdefs.h.  */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h.  */
7222 /* System header to define __stub macros and hopefully few prototypes,
7223     which can conflict with char setjmp (); below.
7224     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7225     <limits.h> exists even on freestanding compilers.  */
7226 #ifdef __STDC__
7227 # include <limits.h>
7228 #else
7229 # include <assert.h>
7230 #endif
7231 /* Override any gcc2 internal prototype to avoid an error.  */
7232 #ifdef __cplusplus
7233 extern "C"
7234 {
7235 #endif
7236 /* We use char because int might match the return type of a gcc2
7237    builtin and then its argument prototype would still apply.  */
7238 char setjmp ();
7239 /* The GNU C library defines this for functions which it implements
7240     to always fail with ENOSYS.  Some functions are actually named
7241     something starting with __ and the normal name is an alias.  */
7242 #if defined (__stub_setjmp) || defined (__stub___setjmp)
7243 choke me
7244 #else
7245 char (*f) () = setjmp;
7246 #endif
7247 #ifdef __cplusplus
7248 }
7249 #endif
7250
7251 int
7252 main ()
7253 {
7254 return f != setjmp;
7255   ;
7256   return 0;
7257 }
7258 _ACEOF
7259 rm -f conftest.$ac_objext conftest$ac_exeext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7261   (eval $ac_link) 2>&5
7262   ac_status=$?
7263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264   (exit $ac_status); } &&
7265          { ac_try='test -s conftest$ac_exeext'
7266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267   (eval $ac_try) 2>&5
7268   ac_status=$?
7269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270   (exit $ac_status); }; }; then
7271   ac_cv_func_setjmp=yes
7272 else
7273   echo "$as_me: failed program was:" >&5
7274 sed 's/^/| /' conftest.$ac_ext >&5
7275
7276 ac_cv_func_setjmp=no
7277 fi
7278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7279 fi
7280 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
7281 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
7282
7283 echo "$as_me:$LINENO: checking for setpriority" >&5
7284 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
7285 if test "${ac_cv_func_setpriority+set}" = set; then
7286   echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288   cat >conftest.$ac_ext <<_ACEOF
7289 #line $LINENO "configure"
7290 /* confdefs.h.  */
7291 _ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h.  */
7295 /* System header to define __stub macros and hopefully few prototypes,
7296     which can conflict with char setpriority (); below.
7297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7298     <limits.h> exists even on freestanding compilers.  */
7299 #ifdef __STDC__
7300 # include <limits.h>
7301 #else
7302 # include <assert.h>
7303 #endif
7304 /* Override any gcc2 internal prototype to avoid an error.  */
7305 #ifdef __cplusplus
7306 extern "C"
7307 {
7308 #endif
7309 /* We use char because int might match the return type of a gcc2
7310    builtin and then its argument prototype would still apply.  */
7311 char setpriority ();
7312 /* The GNU C library defines this for functions which it implements
7313     to always fail with ENOSYS.  Some functions are actually named
7314     something starting with __ and the normal name is an alias.  */
7315 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7316 choke me
7317 #else
7318 char (*f) () = setpriority;
7319 #endif
7320 #ifdef __cplusplus
7321 }
7322 #endif
7323
7324 int
7325 main ()
7326 {
7327 return f != setpriority;
7328   ;
7329   return 0;
7330 }
7331 _ACEOF
7332 rm -f conftest.$ac_objext conftest$ac_exeext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7334   (eval $ac_link) 2>&5
7335   ac_status=$?
7336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); } &&
7338          { ac_try='test -s conftest$ac_exeext'
7339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340   (eval $ac_try) 2>&5
7341   ac_status=$?
7342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343   (exit $ac_status); }; }; then
7344   ac_cv_func_setpriority=yes
7345 else
7346   echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7348
7349 ac_cv_func_setpriority=no
7350 fi
7351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7352 fi
7353 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7354 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7355
7356 echo "$as_me:$LINENO: checking for time" >&5
7357 echo $ECHO_N "checking for time... $ECHO_C" >&6
7358 if test "${ac_cv_func_time+set}" = set; then
7359   echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361   cat >conftest.$ac_ext <<_ACEOF
7362 #line $LINENO "configure"
7363 /* confdefs.h.  */
7364 _ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h.  */
7368 /* System header to define __stub macros and hopefully few prototypes,
7369     which can conflict with char time (); below.
7370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7371     <limits.h> exists even on freestanding compilers.  */
7372 #ifdef __STDC__
7373 # include <limits.h>
7374 #else
7375 # include <assert.h>
7376 #endif
7377 /* Override any gcc2 internal prototype to avoid an error.  */
7378 #ifdef __cplusplus
7379 extern "C"
7380 {
7381 #endif
7382 /* We use char because int might match the return type of a gcc2
7383    builtin and then its argument prototype would still apply.  */
7384 char time ();
7385 /* The GNU C library defines this for functions which it implements
7386     to always fail with ENOSYS.  Some functions are actually named
7387     something starting with __ and the normal name is an alias.  */
7388 #if defined (__stub_time) || defined (__stub___time)
7389 choke me
7390 #else
7391 char (*f) () = time;
7392 #endif
7393 #ifdef __cplusplus
7394 }
7395 #endif
7396
7397 int
7398 main ()
7399 {
7400 return f != time;
7401   ;
7402   return 0;
7403 }
7404 _ACEOF
7405 rm -f conftest.$ac_objext conftest$ac_exeext
7406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7407   (eval $ac_link) 2>&5
7408   ac_status=$?
7409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410   (exit $ac_status); } &&
7411          { ac_try='test -s conftest$ac_exeext'
7412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413   (eval $ac_try) 2>&5
7414   ac_status=$?
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); }; }; then
7417   ac_cv_func_time=yes
7418 else
7419   echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7421
7422 ac_cv_func_time=no
7423 fi
7424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7425 fi
7426 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7427 echo "${ECHO_T}$ac_cv_func_time" >&6
7428
7429 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7430 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7431 if test "${ac_cv_func_gettimeofday+set}" = set; then
7432   echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434   cat >conftest.$ac_ext <<_ACEOF
7435 #line $LINENO "configure"
7436 /* confdefs.h.  */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h.  */
7441 /* System header to define __stub macros and hopefully few prototypes,
7442     which can conflict with char gettimeofday (); below.
7443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7444     <limits.h> exists even on freestanding compilers.  */
7445 #ifdef __STDC__
7446 # include <limits.h>
7447 #else
7448 # include <assert.h>
7449 #endif
7450 /* Override any gcc2 internal prototype to avoid an error.  */
7451 #ifdef __cplusplus
7452 extern "C"
7453 {
7454 #endif
7455 /* We use char because int might match the return type of a gcc2
7456    builtin and then its argument prototype would still apply.  */
7457 char gettimeofday ();
7458 /* The GNU C library defines this for functions which it implements
7459     to always fail with ENOSYS.  Some functions are actually named
7460     something starting with __ and the normal name is an alias.  */
7461 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7462 choke me
7463 #else
7464 char (*f) () = gettimeofday;
7465 #endif
7466 #ifdef __cplusplus
7467 }
7468 #endif
7469
7470 int
7471 main ()
7472 {
7473 return f != gettimeofday;
7474   ;
7475   return 0;
7476 }
7477 _ACEOF
7478 rm -f conftest.$ac_objext conftest$ac_exeext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7480   (eval $ac_link) 2>&5
7481   ac_status=$?
7482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483   (exit $ac_status); } &&
7484          { ac_try='test -s conftest$ac_exeext'
7485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486   (eval $ac_try) 2>&5
7487   ac_status=$?
7488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489   (exit $ac_status); }; }; then
7490   ac_cv_func_gettimeofday=yes
7491 else
7492   echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7494
7495 ac_cv_func_gettimeofday=no
7496 fi
7497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7498 fi
7499 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7500 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7501
7502 echo "$as_me:$LINENO: checking for getopt" >&5
7503 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
7504 if test "${ac_cv_func_getopt+set}" = set; then
7505   echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507   cat >conftest.$ac_ext <<_ACEOF
7508 #line $LINENO "configure"
7509 /* confdefs.h.  */
7510 _ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h.  */
7514 /* System header to define __stub macros and hopefully few prototypes,
7515     which can conflict with char getopt (); below.
7516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7517     <limits.h> exists even on freestanding compilers.  */
7518 #ifdef __STDC__
7519 # include <limits.h>
7520 #else
7521 # include <assert.h>
7522 #endif
7523 /* Override any gcc2 internal prototype to avoid an error.  */
7524 #ifdef __cplusplus
7525 extern "C"
7526 {
7527 #endif
7528 /* We use char because int might match the return type of a gcc2
7529    builtin and then its argument prototype would still apply.  */
7530 char getopt ();
7531 /* The GNU C library defines this for functions which it implements
7532     to always fail with ENOSYS.  Some functions are actually named
7533     something starting with __ and the normal name is an alias.  */
7534 #if defined (__stub_getopt) || defined (__stub___getopt)
7535 choke me
7536 #else
7537 char (*f) () = getopt;
7538 #endif
7539 #ifdef __cplusplus
7540 }
7541 #endif
7542
7543 int
7544 main ()
7545 {
7546 return f != getopt;
7547   ;
7548   return 0;
7549 }
7550 _ACEOF
7551 rm -f conftest.$ac_objext conftest$ac_exeext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553   (eval $ac_link) 2>&5
7554   ac_status=$?
7555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556   (exit $ac_status); } &&
7557          { ac_try='test -s conftest$ac_exeext'
7558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559   (eval $ac_try) 2>&5
7560   ac_status=$?
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); }; }; then
7563   ac_cv_func_getopt=yes
7564 else
7565   echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7567
7568 ac_cv_func_getopt=no
7569 fi
7570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7571 fi
7572 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
7573 echo "${ECHO_T}$ac_cv_func_getopt" >&6
7574 if test $ac_cv_func_getopt = yes; then
7575    getopt=true
7576 else
7577    getopt=false
7578 fi
7579
7580
7581 if test "${OSTYPE}" = "cygwin" ; then
7582   getopt_long=false
7583 else
7584   echo "$as_me:$LINENO: checking for getopt_long" >&5
7585 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7586 if test "${ac_cv_func_getopt_long+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   cat >conftest.$ac_ext <<_ACEOF
7590 #line $LINENO "configure"
7591 /* confdefs.h.  */
7592 _ACEOF
7593 cat confdefs.h >>conftest.$ac_ext
7594 cat >>conftest.$ac_ext <<_ACEOF
7595 /* end confdefs.h.  */
7596 /* System header to define __stub macros and hopefully few prototypes,
7597     which can conflict with char getopt_long (); below.
7598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7599     <limits.h> exists even on freestanding compilers.  */
7600 #ifdef __STDC__
7601 # include <limits.h>
7602 #else
7603 # include <assert.h>
7604 #endif
7605 /* Override any gcc2 internal prototype to avoid an error.  */
7606 #ifdef __cplusplus
7607 extern "C"
7608 {
7609 #endif
7610 /* We use char because int might match the return type of a gcc2
7611    builtin and then its argument prototype would still apply.  */
7612 char getopt_long ();
7613 /* The GNU C library defines this for functions which it implements
7614     to always fail with ENOSYS.  Some functions are actually named
7615     something starting with __ and the normal name is an alias.  */
7616 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
7617 choke me
7618 #else
7619 char (*f) () = getopt_long;
7620 #endif
7621 #ifdef __cplusplus
7622 }
7623 #endif
7624
7625 int
7626 main ()
7627 {
7628 return f != getopt_long;
7629   ;
7630   return 0;
7631 }
7632 _ACEOF
7633 rm -f conftest.$ac_objext conftest$ac_exeext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635   (eval $ac_link) 2>&5
7636   ac_status=$?
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); } &&
7639          { ac_try='test -s conftest$ac_exeext'
7640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641   (eval $ac_try) 2>&5
7642   ac_status=$?
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); }; }; then
7645   ac_cv_func_getopt_long=yes
7646 else
7647   echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7649
7650 ac_cv_func_getopt_long=no
7651 fi
7652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7653 fi
7654 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
7655 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
7656 if test $ac_cv_func_getopt_long = yes; then
7657    getopt_long=true
7658 else
7659    getopt_long=false
7660 fi
7661
7662 fi
7663
7664 if test "${getopt_long}" = "false" ; then
7665   my_includes="$my_includes -I../getopt"
7666
7667 cat >>confdefs.h <<\_ACEOF
7668 #define HAVE_GETOPT_LONG 1
7669 _ACEOF
7670
7671   ctlibs_base="$ctlibs_base -lgetopt"
7672   LDFLAGS="$LDFLAGS -L../getopt"
7673
7674
7675 if test 1==1; then
7676   INCLUDED_GETOPT_LONG_TRUE=
7677   INCLUDED_GETOPT_LONG_FALSE='#'
7678 else
7679   INCLUDED_GETOPT_LONG_TRUE='#'
7680   INCLUDED_GETOPT_LONG_FALSE=
7681 fi
7682 fi
7683
7684 if test "${readline}" = "true" ; then
7685   ctlibs_base="$ctlibs_base -lreadline"
7686   if test "${ncurses}" = "true"; then
7687     ctlibs_base="$ctlibs_base -lncurses"
7688   elif test "${curses}" = "true"; then
7689     ctlibs_base="$ctlibs_base -lcurses"
7690   fi
7691 fi
7692
7693 echo "$as_me:$LINENO: checking debug" >&5
7694 echo $ECHO_N "checking debug... $ECHO_C" >&6
7695 # Check whether --enable-debug or --disable-debug was given.
7696 if test "${enable_debug+set}" = set; then
7697   enableval="$enable_debug"
7698   case "${enableval}" in
7699   yes) debug=true
7700        echo "$as_me:$LINENO: result: yes" >&5
7701 echo "${ECHO_T}yes" >&6
7702        ;;
7703   no)  debug=false
7704        echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6
7706        ;;
7707   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
7708 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
7709        ;;
7710 esac
7711 else
7712   debug=false; echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6
7714 fi;
7715
7716
7717 if test "$debug" = "true"; then
7718   DEBUG_TRUE=
7719   DEBUG_FALSE='#'
7720 else
7721   DEBUG_TRUE='#'
7722   DEBUG_FALSE=
7723 fi
7724
7725 if test "$datadir" != "" ; then
7726   CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
7727 fi
7728
7729 if test "$debug" = "true" ; then
7730   CFLAGS="$CFLAGS -g -DDEBUG"
7731
7732 cat >>confdefs.h <<\_ACEOF
7733 #define DEBUG 1
7734 _ACEOF
7735
7736 else
7737   CFLAGS="$CFLAGS -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops"
7738
7739 cat >>confdefs.h <<\_ACEOF
7740 #define NDEBUG 1
7741 _ACEOF
7742
7743 fi
7744
7745 if test "${pthread}" = "true" ; then
7746
7747 cat >>confdefs.h <<\_ACEOF
7748 #define HAVE_WXTHREADS 1
7749 _ACEOF
7750
7751 fi
7752
7753 echo "$as_me:$LINENO: checking sstream" >&5
7754 echo $ECHO_N "checking sstream... $ECHO_C" >&6
7755  if  test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
7756      test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
7757      test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
7758
7759 cat >>confdefs.h <<\_ACEOF
7760 #define HAVE_SSTREAM 1
7761 _ACEOF
7762
7763    echo "$as_me:$LINENO: result: yes" >&5
7764 echo "${ECHO_T}yes" >&6
7765   else
7766    echo "$as_me:$LINENO: result: no" >&5
7767 echo "${ECHO_T}no" >&6
7768  fi
7769
7770
7771 CFLAGS="$CFLAGS -Wall"
7772 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
7773 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
7774 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
7775 if test "${enable_verbose_warnings+set}" = set; then
7776   enableval="$enable_verbose_warnings"
7777    case "$enableval" in
7778   yes)
7779     echo "$as_me:$LINENO: result: yes" >&5
7780 echo "${ECHO_T}yes" >&6
7781     CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
7782     ;;
7783   *)
7784     echo "$as_me:$LINENO: result: no" >&5
7785 echo "${ECHO_T}no" >&6
7786     ;;
7787   esac
7788 else
7789   echo "$as_me:$LINENO: result: no" >&5
7790 echo "${ECHO_T}no" >&6
7791
7792 fi;
7793
7794 echo "$as_me:$LINENO: checking static executables" >&5
7795 echo $ECHO_N "checking static executables... $ECHO_C" >&6
7796 # Check whether --enable-static or --disable-static was given.
7797 if test "${enable_static+set}" = set; then
7798   enableval="$enable_static"
7799    case "$enableval" in
7800   yes)
7801     echo "$as_me:$LINENO: result: yes" >&5
7802 echo "${ECHO_T}yes" >&6
7803     CFLAGS="$CFLAGS --static"
7804     ;;
7805   *)
7806     echo "$as_me:$LINENO: result: no" >&5
7807 echo "${ECHO_T}no" >&6
7808     ;;
7809   esac
7810 else
7811   echo "$as_me:$LINENO: result: no" >&5
7812 echo "${ECHO_T}no" >&6
7813
7814 fi;
7815
7816
7817 # Check whether --with-lam or --without-lam was given.
7818 if test "${with_lam+set}" = set; then
7819   withval="$with_lam"
7820       if test "$withval" != "no" ; then
7821          trylamdir=$withval
7822      fi
7823
7824 fi;
7825
7826 if test "$withval" != "no" ; then
7827   if test "$prefix" != "NONE" ; then
7828      trylamdir="$trylamdir $prefix"
7829   fi
7830
7831   echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
7832 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
7833   for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
7834     if test -x "$testlamdir/bin/hcp" ; then
7835       if test "$testlamdir" != "/usr"; then
7836         LDFLAGS="$LDFLAGS -L$testlamdir/lib"
7837         CFLAGS="$CFLAGS -I$testlamdir/include"
7838       fi
7839       CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
7840       lamdir="$testlamdir"
7841
7842       mpienable="true"
7843
7844       break
7845     fi
7846   done
7847   echo "$as_me:$LINENO: result: $lamdir" >&5
7848 echo "${ECHO_T}$lamdir" >&6
7849 else
7850   echo "$as_me:$LINENO: result: no" >&5
7851 echo "${ECHO_T}no" >&6
7852 fi
7853
7854
7855
7856 # Check whether --with-ctn or --without-ctn was given.
7857 if test "${with_ctn+set}" = set; then
7858   withval="$with_ctn"
7859       if test "$withval" != "no" ; then
7860          tryctndir=$withval
7861      fi
7862
7863 fi;
7864
7865 if test "$withval" == "no" -o "$withval" == "NONE" ; then
7866   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7867 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7868   echo "$as_me:$LINENO: result: disabled" >&5
7869 echo "${ECHO_T}disabled" >&6
7870 else
7871   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7872 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7873   for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
7874     if test -f "$testctndir/libctn.a" ; then
7875       LDFLAGS="$LDFLAGS -L$testctndir"
7876       ctnlib="true"
7877       break
7878     fi
7879   done
7880   for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
7881     if test -f "$testctndir/ctn_os.h" ; then
7882       CFLAGS="$CFLAGS -I$testctndir"
7883       ctninclude="true"
7884       break
7885     fi
7886   done
7887   if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
7888       ctn="true"
7889
7890 cat >>confdefs.h <<\_ACEOF
7891 #define HAVE_CTN_DICOM 1
7892 _ACEOF
7893
7894       echo "$as_me:$LINENO: result: yes" >&5
7895 echo "${ECHO_T}yes" >&6
7896   else
7897     echo "$as_me:$LINENO: result: no" >&5
7898 echo "${ECHO_T}no" >&6
7899   fi
7900 fi
7901
7902 echo "$as_me:$LINENO: checking for CPU specification" >&5
7903 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6
7904
7905 # Check whether --with-mcpu or --without-mcpu was given.
7906 if test "${with_mcpu+set}" = set; then
7907   withval="$with_mcpu"
7908
7909 fi;
7910
7911 if test "$withval" == "pentium4" -o "$withval" == "athlon"  ; then
7912   echo "$as_me:$LINENO: result: $withval" >&5
7913 echo "${ECHO_T}$withval" >&6
7914   CFLAGS="$CFLAGS -mcpu=$withval"
7915 elif test "$withval" == "no"; then
7916   echo "$as_me:$LINENO: result: no" >&5
7917 echo "${ECHO_T}no" >&6
7918 else
7919   echo "$as_me:$LINENO: result: Unknown" >&5
7920 echo "${ECHO_T}Unknown" >&6
7921 fi
7922
7923 echo "$as_me:$LINENO: checking for web access" >&5
7924 echo $ECHO_N "checking for web access... $ECHO_C" >&6
7925
7926 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
7927 if test "${with_cgibin_dir+set}" = set; then
7928   withval="$with_cgibin_dir"
7929    cgibindir=$withval ;
7930 fi;
7931
7932
7933 # Check whether --with-cgibin-url or --without-cgibin-url was given.
7934 if test "${with_cgibin_url+set}" = set; then
7935   withval="$with_cgibin_url"
7936    cgibinurl=$withval ;
7937 fi;
7938
7939
7940 # Check whether --with-webdata-dir or --without-webdata-dir was given.
7941 if test "${with_webdata_dir+set}" = set; then
7942   withval="$with_webdata_dir"
7943    webdatadir=$withval ;
7944 fi;
7945
7946
7947 # Check whether --with-webdata-url or --without-webdata-url was given.
7948 if test "${with_webdata_url+set}" = set; then
7949   withval="$with_webdata_url"
7950    webdataurl=$withval ;
7951 fi;
7952
7953
7954 # Check whether --with-html-dir or --without-html-dir was given.
7955 if test "${with_html_dir+set}" = set; then
7956   withval="$with_html_dir"
7957    htmldir=$withval ;
7958 fi;
7959
7960 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
7961   cgiprograms="ctsim.cgi ctsim.conf"
7962
7963 fi
7964
7965 if test -n "$htmldir" ; then
7966   htmldata=simulate.html
7967
7968 fi
7969
7970
7971 if test -n "$htmldir"; then
7972   USE_HTML_TRUE=
7973   USE_HTML_FALSE='#'
7974 else
7975   USE_HTML_TRUE='#'
7976   USE_HTML_FALSE=
7977 fi
7978
7979 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
7980   webenabled=true
7981
7982   echo "$as_me:$LINENO: result: yes" >&5
7983 echo "${ECHO_T}yes" >&6
7984   if test -z "$cgibindir" ; then
7985     { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
7986 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
7987    { (exit 1); exit 1; }; }
7988   elif test -z "$cgibinurl" ; then
7989     { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
7990 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
7991    { (exit 1); exit 1; }; }
7992   elif test -z "$webdatadir" ; then
7993     { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
7994 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
7995    { (exit 1); exit 1; }; }
7996   elif test -z "$webdataurl" ; then
7997     { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
7998 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
7999    { (exit 1); exit 1; }; }
8000   elif test -z "$htmldir" ; then
8001     { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
8002 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
8003    { (exit 1); exit 1; }; }
8004   fi
8005 else
8006   echo "$as_me:$LINENO: result: no" >&5
8007 echo "${ECHO_T}no" >&6
8008 fi
8009
8010
8011
8012 if test -n "$lamdir"; then
8013   USE_LAM_TRUE=
8014   USE_LAM_FALSE='#'
8015 else
8016   USE_LAM_TRUE='#'
8017   USE_LAM_FALSE=
8018 fi
8019
8020
8021 echo "$as_me:$LINENO: checking for X" >&5
8022 echo $ECHO_N "checking for X... $ECHO_C" >&6
8023
8024
8025 # Check whether --with-x or --without-x was given.
8026 if test "${with_x+set}" = set; then
8027   withval="$with_x"
8028
8029 fi;
8030 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8031 if test "x$with_x" = xno; then
8032   # The user explicitly disabled X.
8033   have_x=disabled
8034 else
8035   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8036     # Both variables are already set.
8037     have_x=yes
8038   else
8039     if test "${ac_cv_have_x+set}" = set; then
8040   echo $ECHO_N "(cached) $ECHO_C" >&6
8041 else
8042   # One or both of the vars are not set, and there is no cached value.
8043 ac_x_includes=no ac_x_libraries=no
8044 rm -fr conftest.dir
8045 if mkdir conftest.dir; then
8046   cd conftest.dir
8047   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8048   cat >Imakefile <<'_ACEOF'
8049 acfindx:
8050         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8051 _ACEOF
8052   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8053     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8054     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8055     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8056     for ac_extension in a so sl; do
8057       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8058          test -f $ac_im_libdir/libX11.$ac_extension; then
8059         ac_im_usrlibdir=$ac_im_libdir; break
8060       fi
8061     done
8062     # Screen out bogus values from the imake configuration.  They are
8063     # bogus both because they are the default anyway, and because
8064     # using them would break gcc on systems where it needs fixed includes.
8065     case $ac_im_incroot in
8066         /usr/include) ;;
8067         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8068     esac
8069     case $ac_im_usrlibdir in
8070         /usr/lib | /lib) ;;
8071         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8072     esac
8073   fi
8074   cd ..
8075   rm -fr conftest.dir
8076 fi
8077
8078 # Standard set of common directories for X headers.
8079 # Check X11 before X11Rn because it is often a symlink to the current release.
8080 ac_x_header_dirs='
8081 /usr/X11/include
8082 /usr/X11R6/include
8083 /usr/X11R5/include
8084 /usr/X11R4/include
8085
8086 /usr/include/X11
8087 /usr/include/X11R6
8088 /usr/include/X11R5
8089 /usr/include/X11R4
8090
8091 /usr/local/X11/include
8092 /usr/local/X11R6/include
8093 /usr/local/X11R5/include
8094 /usr/local/X11R4/include
8095
8096 /usr/local/include/X11
8097 /usr/local/include/X11R6
8098 /usr/local/include/X11R5
8099 /usr/local/include/X11R4
8100
8101 /usr/X386/include
8102 /usr/x386/include
8103 /usr/XFree86/include/X11
8104
8105 /usr/include
8106 /usr/local/include
8107 /usr/unsupported/include
8108 /usr/athena/include
8109 /usr/local/x11r5/include
8110 /usr/lpp/Xamples/include
8111
8112 /usr/openwin/include
8113 /usr/openwin/share/include'
8114
8115 if test "$ac_x_includes" = no; then
8116   # Guess where to find include files, by looking for Intrinsic.h.
8117   # First, try using that file with no special directory specified.
8118   cat >conftest.$ac_ext <<_ACEOF
8119 #line $LINENO "configure"
8120 /* confdefs.h.  */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h.  */
8125 #include <X11/Intrinsic.h>
8126 _ACEOF
8127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8128   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8129   ac_status=$?
8130   grep -v '^ *+' conftest.er1 >conftest.err
8131   rm -f conftest.er1
8132   cat conftest.err >&5
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); } >/dev/null; then
8135   if test -s conftest.err; then
8136     ac_cpp_err=$ac_c_preproc_warn_flag
8137   else
8138     ac_cpp_err=
8139   fi
8140 else
8141   ac_cpp_err=yes
8142 fi
8143 if test -z "$ac_cpp_err"; then
8144   # We can compile using X headers with no special include directory.
8145 ac_x_includes=
8146 else
8147   echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8149
8150   for ac_dir in $ac_x_header_dirs; do
8151   if test -r "$ac_dir/X11/Intrinsic.h"; then
8152     ac_x_includes=$ac_dir
8153     break
8154   fi
8155 done
8156 fi
8157 rm -f conftest.err conftest.$ac_ext
8158 fi # $ac_x_includes = no
8159
8160 if test "$ac_x_libraries" = no; then
8161   # Check for the libraries.
8162   # See if we find them without any special options.
8163   # Don't add to $LIBS permanently.
8164   ac_save_LIBS=$LIBS
8165   LIBS="-lXt $LIBS"
8166   cat >conftest.$ac_ext <<_ACEOF
8167 #line $LINENO "configure"
8168 /* confdefs.h.  */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h.  */
8173 #include <X11/Intrinsic.h>
8174 int
8175 main ()
8176 {
8177 XtMalloc (0)
8178   ;
8179   return 0;
8180 }
8181 _ACEOF
8182 rm -f conftest.$ac_objext conftest$ac_exeext
8183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8184   (eval $ac_link) 2>&5
8185   ac_status=$?
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); } &&
8188          { ac_try='test -s conftest$ac_exeext'
8189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190   (eval $ac_try) 2>&5
8191   ac_status=$?
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); }; }; then
8194   LIBS=$ac_save_LIBS
8195 # We can link X programs with no special library path.
8196 ac_x_libraries=
8197 else
8198   echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8200
8201 LIBS=$ac_save_LIBS
8202 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8203 do
8204   # Don't even attempt the hair of trying to link an X program!
8205   for ac_extension in a so sl; do
8206     if test -r $ac_dir/libXt.$ac_extension; then
8207       ac_x_libraries=$ac_dir
8208       break 2
8209     fi
8210   done
8211 done
8212 fi
8213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8214 fi # $ac_x_libraries = no
8215
8216 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8217   # Didn't find X anywhere.  Cache the known absence of X.
8218   ac_cv_have_x="have_x=no"
8219 else
8220   # Record where we found X for the cache.
8221   ac_cv_have_x="have_x=yes \
8222                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8223 fi
8224 fi
8225
8226   fi
8227   eval "$ac_cv_have_x"
8228 fi # $with_x != no
8229
8230 if test "$have_x" != yes; then
8231   echo "$as_me:$LINENO: result: $have_x" >&5
8232 echo "${ECHO_T}$have_x" >&6
8233   no_x=yes
8234 else
8235   # If each of the values was on the command line, it overrides each guess.
8236   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8237   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8238   # Update the cache value to reflect the command line values.
8239   ac_cv_have_x="have_x=yes \
8240                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8241   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8242 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8243 fi
8244
8245 if test "$no_x" = yes; then
8246   # Not all programs may use this symbol, but it does not hurt to define it.
8247
8248 cat >>confdefs.h <<\_ACEOF
8249 #define X_DISPLAY_MISSING 1
8250 _ACEOF
8251
8252   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8253 else
8254   if test -n "$x_includes"; then
8255     X_CFLAGS="$X_CFLAGS -I$x_includes"
8256   fi
8257
8258   # It would also be nice to do this for all -L options, not just this one.
8259   if test -n "$x_libraries"; then
8260     X_LIBS="$X_LIBS -L$x_libraries"
8261     # For Solaris; some versions of Sun CC require a space after -R and
8262     # others require no space.  Words are not sufficient . . . .
8263     case `(uname -sr) 2>/dev/null` in
8264     "SunOS 5"*)
8265       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8266 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8267       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8268       cat >conftest.$ac_ext <<_ACEOF
8269 #line $LINENO "configure"
8270 /* confdefs.h.  */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h.  */
8275
8276 int
8277 main ()
8278 {
8279
8280   ;
8281   return 0;
8282 }
8283 _ACEOF
8284 rm -f conftest.$ac_objext conftest$ac_exeext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8286   (eval $ac_link) 2>&5
8287   ac_status=$?
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); } &&
8290          { ac_try='test -s conftest$ac_exeext'
8291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292   (eval $ac_try) 2>&5
8293   ac_status=$?
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); }; }; then
8296   ac_R_nospace=yes
8297 else
8298   echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8300
8301 ac_R_nospace=no
8302 fi
8303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8304       if test $ac_R_nospace = yes; then
8305         echo "$as_me:$LINENO: result: no" >&5
8306 echo "${ECHO_T}no" >&6
8307         X_LIBS="$X_LIBS -R$x_libraries"
8308       else
8309         LIBS="$ac_xsave_LIBS -R $x_libraries"
8310         cat >conftest.$ac_ext <<_ACEOF
8311 #line $LINENO "configure"
8312 /* confdefs.h.  */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h.  */
8317
8318 int
8319 main ()
8320 {
8321
8322   ;
8323   return 0;
8324 }
8325 _ACEOF
8326 rm -f conftest.$ac_objext conftest$ac_exeext
8327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8328   (eval $ac_link) 2>&5
8329   ac_status=$?
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); } &&
8332          { ac_try='test -s conftest$ac_exeext'
8333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334   (eval $ac_try) 2>&5
8335   ac_status=$?
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); }; }; then
8338   ac_R_space=yes
8339 else
8340   echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8342
8343 ac_R_space=no
8344 fi
8345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8346         if test $ac_R_space = yes; then
8347           echo "$as_me:$LINENO: result: yes" >&5
8348 echo "${ECHO_T}yes" >&6
8349           X_LIBS="$X_LIBS -R $x_libraries"
8350         else
8351           echo "$as_me:$LINENO: result: neither works" >&5
8352 echo "${ECHO_T}neither works" >&6
8353         fi
8354       fi
8355       LIBS=$ac_xsave_LIBS
8356     esac
8357   fi
8358
8359   # Check for system-dependent libraries X programs must link with.
8360   # Do this before checking for the system-independent R6 libraries
8361   # (-lICE), since we may need -lsocket or whatever for X linking.
8362
8363   if test "$ISC" = yes; then
8364     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8365   else
8366     # Martyn Johnson says this is needed for Ultrix, if the X
8367     # libraries were built with DECnet support.  And Karl Berry says
8368     # the Alpha needs dnet_stub (dnet does not exist).
8369     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8370     cat >conftest.$ac_ext <<_ACEOF
8371 #line $LINENO "configure"
8372 /* confdefs.h.  */
8373 _ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h.  */
8377
8378 /* Override any gcc2 internal prototype to avoid an error.  */
8379 #ifdef __cplusplus
8380 extern "C"
8381 #endif
8382 /* We use char because int might match the return type of a gcc2
8383    builtin and then its argument prototype would still apply.  */
8384 char XOpenDisplay ();
8385 int
8386 main ()
8387 {
8388 XOpenDisplay ();
8389   ;
8390   return 0;
8391 }
8392 _ACEOF
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8395   (eval $ac_link) 2>&5
8396   ac_status=$?
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); } &&
8399          { ac_try='test -s conftest$ac_exeext'
8400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401   (eval $ac_try) 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); }; }; then
8405   :
8406 else
8407   echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8409
8410 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8411 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8412 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8413   echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415   ac_check_lib_save_LIBS=$LIBS
8416 LIBS="-ldnet  $LIBS"
8417 cat >conftest.$ac_ext <<_ACEOF
8418 #line $LINENO "configure"
8419 /* confdefs.h.  */
8420 _ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h.  */
8424
8425 /* Override any gcc2 internal prototype to avoid an error.  */
8426 #ifdef __cplusplus
8427 extern "C"
8428 #endif
8429 /* We use char because int might match the return type of a gcc2
8430    builtin and then its argument prototype would still apply.  */
8431 char dnet_ntoa ();
8432 int
8433 main ()
8434 {
8435 dnet_ntoa ();
8436   ;
8437   return 0;
8438 }
8439 _ACEOF
8440 rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8442   (eval $ac_link) 2>&5
8443   ac_status=$?
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); } &&
8446          { ac_try='test -s conftest$ac_exeext'
8447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448   (eval $ac_try) 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); }; }; then
8452   ac_cv_lib_dnet_dnet_ntoa=yes
8453 else
8454   echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8456
8457 ac_cv_lib_dnet_dnet_ntoa=no
8458 fi
8459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8460 LIBS=$ac_check_lib_save_LIBS
8461 fi
8462 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8463 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8464 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8465   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8466 fi
8467
8468     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8469       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8470 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8471 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8472   echo $ECHO_N "(cached) $ECHO_C" >&6
8473 else
8474   ac_check_lib_save_LIBS=$LIBS
8475 LIBS="-ldnet_stub  $LIBS"
8476 cat >conftest.$ac_ext <<_ACEOF
8477 #line $LINENO "configure"
8478 /* confdefs.h.  */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h.  */
8483
8484 /* Override any gcc2 internal prototype to avoid an error.  */
8485 #ifdef __cplusplus
8486 extern "C"
8487 #endif
8488 /* We use char because int might match the return type of a gcc2
8489    builtin and then its argument prototype would still apply.  */
8490 char dnet_ntoa ();
8491 int
8492 main ()
8493 {
8494 dnet_ntoa ();
8495   ;
8496   return 0;
8497 }
8498 _ACEOF
8499 rm -f conftest.$ac_objext conftest$ac_exeext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501   (eval $ac_link) 2>&5
8502   ac_status=$?
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); } &&
8505          { ac_try='test -s conftest$ac_exeext'
8506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507   (eval $ac_try) 2>&5
8508   ac_status=$?
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); }; }; then
8511   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8512 else
8513   echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 ac_cv_lib_dnet_stub_dnet_ntoa=no
8517 fi
8518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8519 LIBS=$ac_check_lib_save_LIBS
8520 fi
8521 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8522 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8523 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8524   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8525 fi
8526
8527     fi
8528 fi
8529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8530     LIBS="$ac_xsave_LIBS"
8531
8532     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8533     # to get the SysV transport functions.
8534     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8535     # needs -lnsl.
8536     # The nsl library prevents programs from opening the X display
8537     # on Irix 5.2, according to T.E. Dickey.
8538     # The functions gethostbyname, getservbyname, and inet_addr are
8539     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8540     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8541 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8542 if test "${ac_cv_func_gethostbyname+set}" = set; then
8543   echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545   cat >conftest.$ac_ext <<_ACEOF
8546 #line $LINENO "configure"
8547 /* confdefs.h.  */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h.  */
8552 /* System header to define __stub macros and hopefully few prototypes,
8553     which can conflict with char gethostbyname (); below.
8554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8555     <limits.h> exists even on freestanding compilers.  */
8556 #ifdef __STDC__
8557 # include <limits.h>
8558 #else
8559 # include <assert.h>
8560 #endif
8561 /* Override any gcc2 internal prototype to avoid an error.  */
8562 #ifdef __cplusplus
8563 extern "C"
8564 {
8565 #endif
8566 /* We use char because int might match the return type of a gcc2
8567    builtin and then its argument prototype would still apply.  */
8568 char gethostbyname ();
8569 /* The GNU C library defines this for functions which it implements
8570     to always fail with ENOSYS.  Some functions are actually named
8571     something starting with __ and the normal name is an alias.  */
8572 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8573 choke me
8574 #else
8575 char (*f) () = gethostbyname;
8576 #endif
8577 #ifdef __cplusplus
8578 }
8579 #endif
8580
8581 int
8582 main ()
8583 {
8584 return f != gethostbyname;
8585   ;
8586   return 0;
8587 }
8588 _ACEOF
8589 rm -f conftest.$ac_objext conftest$ac_exeext
8590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8591   (eval $ac_link) 2>&5
8592   ac_status=$?
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); } &&
8595          { ac_try='test -s conftest$ac_exeext'
8596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597   (eval $ac_try) 2>&5
8598   ac_status=$?
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); }; }; then
8601   ac_cv_func_gethostbyname=yes
8602 else
8603   echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8605
8606 ac_cv_func_gethostbyname=no
8607 fi
8608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8609 fi
8610 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8611 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8612
8613     if test $ac_cv_func_gethostbyname = no; then
8614       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8615 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8616 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8617   echo $ECHO_N "(cached) $ECHO_C" >&6
8618 else
8619   ac_check_lib_save_LIBS=$LIBS
8620 LIBS="-lnsl  $LIBS"
8621 cat >conftest.$ac_ext <<_ACEOF
8622 #line $LINENO "configure"
8623 /* confdefs.h.  */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h.  */
8628
8629 /* Override any gcc2 internal prototype to avoid an error.  */
8630 #ifdef __cplusplus
8631 extern "C"
8632 #endif
8633 /* We use char because int might match the return type of a gcc2
8634    builtin and then its argument prototype would still apply.  */
8635 char gethostbyname ();
8636 int
8637 main ()
8638 {
8639 gethostbyname ();
8640   ;
8641   return 0;
8642 }
8643 _ACEOF
8644 rm -f conftest.$ac_objext conftest$ac_exeext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646   (eval $ac_link) 2>&5
8647   ac_status=$?
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); } &&
8650          { ac_try='test -s conftest$ac_exeext'
8651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652   (eval $ac_try) 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); }; }; then
8656   ac_cv_lib_nsl_gethostbyname=yes
8657 else
8658   echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8660
8661 ac_cv_lib_nsl_gethostbyname=no
8662 fi
8663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8664 LIBS=$ac_check_lib_save_LIBS
8665 fi
8666 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8667 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8668 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8669   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8670 fi
8671
8672       if test $ac_cv_lib_nsl_gethostbyname = no; then
8673         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8674 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8675 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8676   echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678   ac_check_lib_save_LIBS=$LIBS
8679 LIBS="-lbsd  $LIBS"
8680 cat >conftest.$ac_ext <<_ACEOF
8681 #line $LINENO "configure"
8682 /* confdefs.h.  */
8683 _ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h.  */
8687
8688 /* Override any gcc2 internal prototype to avoid an error.  */
8689 #ifdef __cplusplus
8690 extern "C"
8691 #endif
8692 /* We use char because int might match the return type of a gcc2
8693    builtin and then its argument prototype would still apply.  */
8694 char gethostbyname ();
8695 int
8696 main ()
8697 {
8698 gethostbyname ();
8699   ;
8700   return 0;
8701 }
8702 _ACEOF
8703 rm -f conftest.$ac_objext conftest$ac_exeext
8704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8705   (eval $ac_link) 2>&5
8706   ac_status=$?
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); } &&
8709          { ac_try='test -s conftest$ac_exeext'
8710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711   (eval $ac_try) 2>&5
8712   ac_status=$?
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); }; }; then
8715   ac_cv_lib_bsd_gethostbyname=yes
8716 else
8717   echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8719
8720 ac_cv_lib_bsd_gethostbyname=no
8721 fi
8722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8723 LIBS=$ac_check_lib_save_LIBS
8724 fi
8725 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8726 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8727 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8728   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8729 fi
8730
8731       fi
8732     fi
8733
8734     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8735     # socket/setsockopt and other routines are undefined under SCO ODT
8736     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8737     # on later versions), says Simon Leinen: it contains gethostby*
8738     # variants that don't use the name server (or something).  -lsocket
8739     # must be given before -lnsl if both are needed.  We assume that
8740     # if connect needs -lnsl, so does gethostbyname.
8741     echo "$as_me:$LINENO: checking for connect" >&5
8742 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8743 if test "${ac_cv_func_connect+set}" = set; then
8744   echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8746   cat >conftest.$ac_ext <<_ACEOF
8747 #line $LINENO "configure"
8748 /* confdefs.h.  */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h.  */
8753 /* System header to define __stub macros and hopefully few prototypes,
8754     which can conflict with char connect (); below.
8755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8756     <limits.h> exists even on freestanding compilers.  */
8757 #ifdef __STDC__
8758 # include <limits.h>
8759 #else
8760 # include <assert.h>
8761 #endif
8762 /* Override any gcc2 internal prototype to avoid an error.  */
8763 #ifdef __cplusplus
8764 extern "C"
8765 {
8766 #endif
8767 /* We use char because int might match the return type of a gcc2
8768    builtin and then its argument prototype would still apply.  */
8769 char connect ();
8770 /* The GNU C library defines this for functions which it implements
8771     to always fail with ENOSYS.  Some functions are actually named
8772     something starting with __ and the normal name is an alias.  */
8773 #if defined (__stub_connect) || defined (__stub___connect)
8774 choke me
8775 #else
8776 char (*f) () = connect;
8777 #endif
8778 #ifdef __cplusplus
8779 }
8780 #endif
8781
8782 int
8783 main ()
8784 {
8785 return f != connect;
8786   ;
8787   return 0;
8788 }
8789 _ACEOF
8790 rm -f conftest.$ac_objext conftest$ac_exeext
8791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8792   (eval $ac_link) 2>&5
8793   ac_status=$?
8794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795   (exit $ac_status); } &&
8796          { ac_try='test -s conftest$ac_exeext'
8797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798   (eval $ac_try) 2>&5
8799   ac_status=$?
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); }; }; then
8802   ac_cv_func_connect=yes
8803 else
8804   echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8806
8807 ac_cv_func_connect=no
8808 fi
8809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8810 fi
8811 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8812 echo "${ECHO_T}$ac_cv_func_connect" >&6
8813
8814     if test $ac_cv_func_connect = no; then
8815       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8816 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8817 if test "${ac_cv_lib_socket_connect+set}" = set; then
8818   echo $ECHO_N "(cached) $ECHO_C" >&6
8819 else
8820   ac_check_lib_save_LIBS=$LIBS
8821 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8822 cat >conftest.$ac_ext <<_ACEOF
8823 #line $LINENO "configure"
8824 /* confdefs.h.  */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h.  */
8829
8830 /* Override any gcc2 internal prototype to avoid an error.  */
8831 #ifdef __cplusplus
8832 extern "C"
8833 #endif
8834 /* We use char because int might match the return type of a gcc2
8835    builtin and then its argument prototype would still apply.  */
8836 char connect ();
8837 int
8838 main ()
8839 {
8840 connect ();
8841   ;
8842   return 0;
8843 }
8844 _ACEOF
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847   (eval $ac_link) 2>&5
8848   ac_status=$?
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); } &&
8851          { ac_try='test -s conftest$ac_exeext'
8852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853   (eval $ac_try) 2>&5
8854   ac_status=$?
8855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856   (exit $ac_status); }; }; then
8857   ac_cv_lib_socket_connect=yes
8858 else
8859   echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8861
8862 ac_cv_lib_socket_connect=no
8863 fi
8864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8865 LIBS=$ac_check_lib_save_LIBS
8866 fi
8867 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8868 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8869 if test $ac_cv_lib_socket_connect = yes; then
8870   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8871 fi
8872
8873     fi
8874
8875     # Guillermo Gomez says -lposix is necessary on A/UX.
8876     echo "$as_me:$LINENO: checking for remove" >&5
8877 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8878 if test "${ac_cv_func_remove+set}" = set; then
8879   echo $ECHO_N "(cached) $ECHO_C" >&6
8880 else
8881   cat >conftest.$ac_ext <<_ACEOF
8882 #line $LINENO "configure"
8883 /* confdefs.h.  */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h.  */
8888 /* System header to define __stub macros and hopefully few prototypes,
8889     which can conflict with char remove (); below.
8890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8891     <limits.h> exists even on freestanding compilers.  */
8892 #ifdef __STDC__
8893 # include <limits.h>
8894 #else
8895 # include <assert.h>
8896 #endif
8897 /* Override any gcc2 internal prototype to avoid an error.  */
8898 #ifdef __cplusplus
8899 extern "C"
8900 {
8901 #endif
8902 /* We use char because int might match the return type of a gcc2
8903    builtin and then its argument prototype would still apply.  */
8904 char remove ();
8905 /* The GNU C library defines this for functions which it implements
8906     to always fail with ENOSYS.  Some functions are actually named
8907     something starting with __ and the normal name is an alias.  */
8908 #if defined (__stub_remove) || defined (__stub___remove)
8909 choke me
8910 #else
8911 char (*f) () = remove;
8912 #endif
8913 #ifdef __cplusplus
8914 }
8915 #endif
8916
8917 int
8918 main ()
8919 {
8920 return f != remove;
8921   ;
8922   return 0;
8923 }
8924 _ACEOF
8925 rm -f conftest.$ac_objext conftest$ac_exeext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8927   (eval $ac_link) 2>&5
8928   ac_status=$?
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); } &&
8931          { ac_try='test -s conftest$ac_exeext'
8932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933   (eval $ac_try) 2>&5
8934   ac_status=$?
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); }; }; then
8937   ac_cv_func_remove=yes
8938 else
8939   echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8941
8942 ac_cv_func_remove=no
8943 fi
8944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8945 fi
8946 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8947 echo "${ECHO_T}$ac_cv_func_remove" >&6
8948
8949     if test $ac_cv_func_remove = no; then
8950       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8951 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8952 if test "${ac_cv_lib_posix_remove+set}" = set; then
8953   echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955   ac_check_lib_save_LIBS=$LIBS
8956 LIBS="-lposix  $LIBS"
8957 cat >conftest.$ac_ext <<_ACEOF
8958 #line $LINENO "configure"
8959 /* confdefs.h.  */
8960 _ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h.  */
8964
8965 /* Override any gcc2 internal prototype to avoid an error.  */
8966 #ifdef __cplusplus
8967 extern "C"
8968 #endif
8969 /* We use char because int might match the return type of a gcc2
8970    builtin and then its argument prototype would still apply.  */
8971 char remove ();
8972 int
8973 main ()
8974 {
8975 remove ();
8976   ;
8977   return 0;
8978 }
8979 _ACEOF
8980 rm -f conftest.$ac_objext conftest$ac_exeext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8982   (eval $ac_link) 2>&5
8983   ac_status=$?
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); } &&
8986          { ac_try='test -s conftest$ac_exeext'
8987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988   (eval $ac_try) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); }; }; then
8992   ac_cv_lib_posix_remove=yes
8993 else
8994   echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8996
8997 ac_cv_lib_posix_remove=no
8998 fi
8999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9000 LIBS=$ac_check_lib_save_LIBS
9001 fi
9002 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9003 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9004 if test $ac_cv_lib_posix_remove = yes; then
9005   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9006 fi
9007
9008     fi
9009
9010     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9011     echo "$as_me:$LINENO: checking for shmat" >&5
9012 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9013 if test "${ac_cv_func_shmat+set}" = set; then
9014   echo $ECHO_N "(cached) $ECHO_C" >&6
9015 else
9016   cat >conftest.$ac_ext <<_ACEOF
9017 #line $LINENO "configure"
9018 /* confdefs.h.  */
9019 _ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h.  */
9023 /* System header to define __stub macros and hopefully few prototypes,
9024     which can conflict with char shmat (); below.
9025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9026     <limits.h> exists even on freestanding compilers.  */
9027 #ifdef __STDC__
9028 # include <limits.h>
9029 #else
9030 # include <assert.h>
9031 #endif
9032 /* Override any gcc2 internal prototype to avoid an error.  */
9033 #ifdef __cplusplus
9034 extern "C"
9035 {
9036 #endif
9037 /* We use char because int might match the return type of a gcc2
9038    builtin and then its argument prototype would still apply.  */
9039 char shmat ();
9040 /* The GNU C library defines this for functions which it implements
9041     to always fail with ENOSYS.  Some functions are actually named
9042     something starting with __ and the normal name is an alias.  */
9043 #if defined (__stub_shmat) || defined (__stub___shmat)
9044 choke me
9045 #else
9046 char (*f) () = shmat;
9047 #endif
9048 #ifdef __cplusplus
9049 }
9050 #endif
9051
9052 int
9053 main ()
9054 {
9055 return f != shmat;
9056   ;
9057   return 0;
9058 }
9059 _ACEOF
9060 rm -f conftest.$ac_objext conftest$ac_exeext
9061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9062   (eval $ac_link) 2>&5
9063   ac_status=$?
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); } &&
9066          { ac_try='test -s conftest$ac_exeext'
9067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068   (eval $ac_try) 2>&5
9069   ac_status=$?
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); }; }; then
9072   ac_cv_func_shmat=yes
9073 else
9074   echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9076
9077 ac_cv_func_shmat=no
9078 fi
9079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9080 fi
9081 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9082 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9083
9084     if test $ac_cv_func_shmat = no; then
9085       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9086 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9087 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9088   echo $ECHO_N "(cached) $ECHO_C" >&6
9089 else
9090   ac_check_lib_save_LIBS=$LIBS
9091 LIBS="-lipc  $LIBS"
9092 cat >conftest.$ac_ext <<_ACEOF
9093 #line $LINENO "configure"
9094 /* confdefs.h.  */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h.  */
9099
9100 /* Override any gcc2 internal prototype to avoid an error.  */
9101 #ifdef __cplusplus
9102 extern "C"
9103 #endif
9104 /* We use char because int might match the return type of a gcc2
9105    builtin and then its argument prototype would still apply.  */
9106 char shmat ();
9107 int
9108 main ()
9109 {
9110 shmat ();
9111   ;
9112   return 0;
9113 }
9114 _ACEOF
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117   (eval $ac_link) 2>&5
9118   ac_status=$?
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); } &&
9121          { ac_try='test -s conftest$ac_exeext'
9122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123   (eval $ac_try) 2>&5
9124   ac_status=$?
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); }; }; then
9127   ac_cv_lib_ipc_shmat=yes
9128 else
9129   echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9131
9132 ac_cv_lib_ipc_shmat=no
9133 fi
9134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9135 LIBS=$ac_check_lib_save_LIBS
9136 fi
9137 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9138 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9139 if test $ac_cv_lib_ipc_shmat = yes; then
9140   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9141 fi
9142
9143     fi
9144   fi
9145
9146   # Check for libraries that X11R6 Xt/Xaw programs need.
9147   ac_save_LDFLAGS=$LDFLAGS
9148   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9149   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9150   # check for ICE first), but we must link in the order -lSM -lICE or
9151   # we get undefined symbols.  So assume we have SM if we have ICE.
9152   # These have to be linked with before -lX11, unlike the other
9153   # libraries we check for below, so use a different variable.
9154   # John Interrante, Karl Berry
9155   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9156 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9157 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9158   echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160   ac_check_lib_save_LIBS=$LIBS
9161 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9162 cat >conftest.$ac_ext <<_ACEOF
9163 #line $LINENO "configure"
9164 /* confdefs.h.  */
9165 _ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h.  */
9169
9170 /* Override any gcc2 internal prototype to avoid an error.  */
9171 #ifdef __cplusplus
9172 extern "C"
9173 #endif
9174 /* We use char because int might match the return type of a gcc2
9175    builtin and then its argument prototype would still apply.  */
9176 char IceConnectionNumber ();
9177 int
9178 main ()
9179 {
9180 IceConnectionNumber ();
9181   ;
9182   return 0;
9183 }
9184 _ACEOF
9185 rm -f conftest.$ac_objext conftest$ac_exeext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9187   (eval $ac_link) 2>&5
9188   ac_status=$?
9189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190   (exit $ac_status); } &&
9191          { ac_try='test -s conftest$ac_exeext'
9192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193   (eval $ac_try) 2>&5
9194   ac_status=$?
9195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196   (exit $ac_status); }; }; then
9197   ac_cv_lib_ICE_IceConnectionNumber=yes
9198 else
9199   echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9201
9202 ac_cv_lib_ICE_IceConnectionNumber=no
9203 fi
9204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9205 LIBS=$ac_check_lib_save_LIBS
9206 fi
9207 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9208 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9209 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9210   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9211 fi
9212
9213   LDFLAGS=$ac_save_LDFLAGS
9214
9215 fi
9216
9217
9218
9219
9220
9221
9222
9223
9224 X_TOOLKIT_LIBS="-lXt"
9225 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9226
9227 our_saved_LDFLAGS="$LDFLAGS"
9228 LDFLAGS="$X_LIBS $LDFLAGS"
9229 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9230 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9231 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9232   echo $ECHO_N "(cached) $ECHO_C" >&6
9233 else
9234   ac_check_lib_save_LIBS=$LIBS
9235 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9236 cat >conftest.$ac_ext <<_ACEOF
9237 #line $LINENO "configure"
9238 /* confdefs.h.  */
9239 _ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h.  */
9243
9244 /* Override any gcc2 internal prototype to avoid an error.  */
9245 #ifdef __cplusplus
9246 extern "C"
9247 #endif
9248 /* We use char because int might match the return type of a gcc2
9249    builtin and then its argument prototype would still apply.  */
9250 char XtToolkitThreadInitialize ();
9251 int
9252 main ()
9253 {
9254 XtToolkitThreadInitialize ();
9255   ;
9256   return 0;
9257 }
9258 _ACEOF
9259 rm -f conftest.$ac_objext conftest$ac_exeext
9260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9261   (eval $ac_link) 2>&5
9262   ac_status=$?
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   (exit $ac_status); } &&
9265          { ac_try='test -s conftest$ac_exeext'
9266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267   (eval $ac_try) 2>&5
9268   ac_status=$?
9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   (exit $ac_status); }; }; then
9271   ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9272 else
9273   echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9275
9276 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9277 fi
9278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9279 LIBS=$ac_check_lib_save_LIBS
9280 fi
9281 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9282 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9283 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9284
9285 cat >>confdefs.h <<\_ACEOF
9286 #define X_THREAD_SUPPORT 1
9287 _ACEOF
9288
9289 fi
9290
9291 LDFLAGS="$our_saved_LDFLAGS"
9292
9293
9294
9295 if test "x$no_x" = "xyes"; then
9296   NO_X_TRUE=
9297   NO_X_FALSE='#'
9298 else
9299   NO_X_TRUE='#'
9300   NO_X_FALSE=
9301 fi
9302
9303 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9304
9305
9306 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9307
9308 echo "$as_me:$LINENO: checking for X" >&5
9309 echo $ECHO_N "checking for X... $ECHO_C" >&6
9310 if test "$no_x" != "yes" ; then
9311
9312 cat >>confdefs.h <<\_ACEOF
9313 #define HAVE_X11 1
9314 _ACEOF
9315
9316   LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
9317   my_includes="$my_includes -I/usr/X11R6/include"
9318   ctlib_graphics="$ctlibs_base -lctgraphics"
9319   echo "$as_me:$LINENO: result: yes" >&5
9320 echo "${ECHO_T}yes" >&6
9321   ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9322   if test "$libgl" = "true" ; then
9323     # Removed "-lglut" for Mac OS X compilation
9324     ctlib_graphics="$ctlib_graphics -lGL -lGLU"
9325     if test "$wxwin" = "true" ; then
9326       if  "$wx_gtk" ; then
9327         ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.4"
9328       elif  "$wx_mac" ; then
9329         ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
9330       fi
9331     fi
9332   fi
9333   if test "$wxwin" = "true" ; then
9334
9335 cat >>confdefs.h <<\_ACEOF
9336 #define HAVE_SGP 1
9337 _ACEOF
9338
9339
9340
9341 if test 1==1; then
9342   HAVE_SGP_TRUE=
9343   HAVE_SGP_FALSE='#'
9344 else
9345   HAVE_SGP_TRUE='#'
9346   HAVE_SGP_FALSE=
9347 fi
9348   fi
9349 else
9350   echo "$as_me:$LINENO: result: no" >&5
9351 echo "${ECHO_T}no" >&6
9352 fi
9353
9354 if test "$png" = "true" ; then
9355   ctlibs_tools="$ctlibs_tools -lpng"
9356 fi
9357 if test "$zlib" = "true" ; then
9358   ctlibs_tools="$ctlibs_tools -lz"
9359 fi
9360 if test "$fftw" = "true" ; then
9361   ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
9362 fi
9363 if test "$ctn" = "true"; then
9364   ctlibs_tools="$ctlibs_tools -lctn"
9365 fi
9366
9367 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9368 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9369 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9370   echo $ECHO_N "(cached) $ECHO_C" >&6
9371 else
9372   ac_check_lib_save_LIBS=$LIBS
9373 LIBS="-ldmallocxx  $LIBS"
9374 cat >conftest.$ac_ext <<_ACEOF
9375 #line $LINENO "configure"
9376 /* confdefs.h.  */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h.  */
9381
9382
9383 int
9384 main ()
9385 {
9386 main ();
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393   (eval $ac_link) 2>&5
9394   ac_status=$?
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); } &&
9397          { ac_try='test -s conftest$ac_exeext'
9398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399   (eval $ac_try) 2>&5
9400   ac_status=$?
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); }; }; then
9403   ac_cv_lib_dmallocxx_main=yes
9404 else
9405   echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9407
9408 ac_cv_lib_dmallocxx_main=no
9409 fi
9410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9411 LIBS=$ac_check_lib_save_LIBS
9412 fi
9413 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9414 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9415 if test $ac_cv_lib_dmallocxx_main = yes; then
9416   dmallocxx=true
9417 else
9418   dmallocxx=false
9419 fi
9420
9421 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9422 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9423 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9424 if test "${enable_dmalloc+set}" = set; then
9425   enableval="$enable_dmalloc"
9426   case "${enableval}" in
9427   yes) usedmalloc=true
9428        echo "$as_me:$LINENO: result: yes" >&5
9429 echo "${ECHO_T}yes" >&6
9430        ;;
9431   no)  usedmalloc=false
9432        echo "$as_me:$LINENO: result: no" >&5
9433 echo "${ECHO_T}no" >&6
9434        ;;
9435   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9436 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9437        ;;
9438 esac
9439 else
9440   usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9441 echo "${ECHO_T}no" >&6
9442 fi;
9443
9444 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9445   ctlibs_tools="$ctlibs_tools -ldmallocxx"
9446
9447 cat >>confdefs.h <<\_ACEOF
9448 #define HAVE_DMALLOC 1
9449 _ACEOF
9450
9451   echo "$as_me:$LINENO: result: Using dmalloc" >&5
9452 echo "${ECHO_T}Using dmalloc" >&6
9453 fi
9454
9455 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9456 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9457 if test "${ac_cv_lib_efence_main+set}" = set; then
9458   echo $ECHO_N "(cached) $ECHO_C" >&6
9459 else
9460   ac_check_lib_save_LIBS=$LIBS
9461 LIBS="-lefence  $LIBS"
9462 cat >conftest.$ac_ext <<_ACEOF
9463 #line $LINENO "configure"
9464 /* confdefs.h.  */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h.  */
9469
9470
9471 int
9472 main ()
9473 {
9474 main ();
9475   ;
9476   return 0;
9477 }
9478 _ACEOF
9479 rm -f conftest.$ac_objext conftest$ac_exeext
9480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9481   (eval $ac_link) 2>&5
9482   ac_status=$?
9483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484   (exit $ac_status); } &&
9485          { ac_try='test -s conftest$ac_exeext'
9486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487   (eval $ac_try) 2>&5
9488   ac_status=$?
9489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490   (exit $ac_status); }; }; then
9491   ac_cv_lib_efence_main=yes
9492 else
9493   echo "$as_me: failed program was:" >&5
9494 sed 's/^/| /' conftest.$ac_ext >&5
9495
9496 ac_cv_lib_efence_main=no
9497 fi
9498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9499 LIBS=$ac_check_lib_save_LIBS
9500 fi
9501 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9502 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9503 if test $ac_cv_lib_efence_main = yes; then
9504   efence=true
9505 else
9506   efence=false
9507 fi
9508
9509 echo "$as_me:$LINENO: checking for enable-efence" >&5
9510 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9511 # Check whether --enable-efence or --disable-efence was given.
9512 if test "${enable_efence+set}" = set; then
9513   enableval="$enable_efence"
9514   case "${enableval}" in
9515   yes) useefence=true
9516        echo "$as_me:$LINENO: result: yes" >&5
9517 echo "${ECHO_T}yes" >&6
9518        ;;
9519   no)  useefence=false
9520        echo "$as_me:$LINENO: result: no" >&5
9521 echo "${ECHO_T}no" >&6
9522        ;;
9523   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9524 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9525        ;;
9526 esac
9527 else
9528   useefence=false; echo "$as_me:$LINENO: result: no" >&5
9529 echo "${ECHO_T}no" >&6
9530 fi;
9531
9532 if test "$efence" = "true" -a "$useefence" = "true" ; then
9533   ctlibs_tools="$ctlibs_tools -lefence"
9534
9535 cat >>confdefs.h <<\_ACEOF
9536 #define HAVE_EFENCE 1
9537 _ACEOF
9538
9539   echo "$as_me:$LINENO: result: Using efence" >&5
9540 echo "${ECHO_T}Using efence" >&6
9541 fi
9542
9543 if test "$wxwin" = "true" ; then
9544   if  "$wx_gtk" = "true"  ||  "$wx_mac" == "true"  ; then
9545     wxcflags=`$wxconfig --cflags`
9546     wxlibs=`$wxconfig --libs`
9547   else
9548         wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9549         wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9550   fi
9551   CFLAGS="$CFLAGS -I../include $wxcflags"
9552   ctlib_graphics="$ctlib_graphics $wxlibs"
9553
9554
9555 if test 1==1 ; then
9556   HAVE_WXWINDOWS_TRUE=
9557   HAVE_WXWINDOWS_FALSE='#'
9558 else
9559   HAVE_WXWINDOWS_TRUE='#'
9560   HAVE_WXWINDOWS_FALSE=
9561 fi
9562 fi
9563
9564
9565
9566 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9567 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9568
9569
9570 if test -n "$lamdir" ; then
9571   lamprograms="ctsimtext-lam"
9572
9573   lamdefs="$CFLAGS"
9574
9575 fi
9576
9577 CXXFLAGS="$CFLAGS"
9578
9579                                                                                                                                                                           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"
9580
9581
9582 cat >confcache <<\_ACEOF
9583 # This file is a shell script that caches the results of configure
9584 # tests run on this system so they can be shared between configure
9585 # scripts and configure runs, see configure's option --config-cache.
9586 # It is not useful on other systems.  If it contains results you don't
9587 # want to keep, you may remove or edit it.
9588 #
9589 # config.status only pays attention to the cache file if you give it
9590 # the --recheck option to rerun configure.
9591 #
9592 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9593 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9594 # following values.
9595
9596 _ACEOF
9597
9598 # The following way of writing the cache mishandles newlines in values,
9599 # but we know of no workaround that is simple, portable, and efficient.
9600 # So, don't put newlines in cache variables' values.
9601 # Ultrix sh set writes to stderr and can't be redirected directly,
9602 # and sets the high bit in the cache file unless we assign to the vars.
9603 {
9604   (set) 2>&1 |
9605     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9606     *ac_space=\ *)
9607       # `set' does not quote correctly, so add quotes (double-quote
9608       # substitution turns \\\\ into \\, and sed turns \\ into \).
9609       sed -n \
9610         "s/'/'\\\\''/g;
9611           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9612       ;;
9613     *)
9614       # `set' quotes correctly as required by POSIX, so do not add quotes.
9615       sed -n \
9616         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9617       ;;
9618     esac;
9619 } |
9620   sed '
9621      t clear
9622      : clear
9623      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9624      t end
9625      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9626      : end' >>confcache
9627 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9628   if test -w $cache_file; then
9629     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9630     cat confcache >$cache_file
9631   else
9632     echo "not updating unwritable cache $cache_file"
9633   fi
9634 fi
9635 rm -f confcache
9636
9637 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9638 # Let make expand exec_prefix.
9639 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9640
9641 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9642 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9643 # trailing colons and then remove the whole line if VPATH becomes empty
9644 # (actually we leave an empty line to preserve line numbers).
9645 if test "x$srcdir" = x.; then
9646   ac_vpsub='/^[         ]*VPATH[        ]*=/{
9647 s/:*\$(srcdir):*/:/;
9648 s/:*\${srcdir}:*/:/;
9649 s/:*@srcdir@:*/:/;
9650 s/^\([^=]*=[    ]*\):*/\1/;
9651 s/:*$//;
9652 s/^[^=]*=[      ]*$//;
9653 }'
9654 fi
9655
9656 DEFS=-DHAVE_CONFIG_H
9657
9658 ac_libobjs=
9659 ac_ltlibobjs=
9660 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9661   # 1. Remove the extension, and $U if already installed.
9662   ac_i=`echo "$ac_i" |
9663          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9664   # 2. Add them.
9665   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9666   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9667 done
9668 LIBOBJS=$ac_libobjs
9669
9670 LTLIBOBJS=$ac_ltlibobjs
9671
9672
9673
9674 : ${CONFIG_STATUS=./config.status}
9675 ac_clean_files_save=$ac_clean_files
9676 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9677 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9678 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9679 cat >$CONFIG_STATUS <<_ACEOF
9680 #! $SHELL
9681 # Generated by $as_me.
9682 # Run this file to recreate the current configuration.
9683 # Compiler output produced by configure, useful for debugging
9684 # configure, is in config.log if it exists.
9685
9686 debug=false
9687 ac_cs_recheck=false
9688 ac_cs_silent=false
9689 SHELL=\${CONFIG_SHELL-$SHELL}
9690 _ACEOF
9691
9692 cat >>$CONFIG_STATUS <<\_ACEOF
9693 ## --------------------- ##
9694 ## M4sh Initialization.  ##
9695 ## --------------------- ##
9696
9697 # Be Bourne compatible
9698 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9699   emulate sh
9700   NULLCMD=:
9701   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9702   # is contrary to our usage.  Disable this feature.
9703   alias -g '${1+"$@"}'='"$@"'
9704 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9705   set -o posix
9706 fi
9707
9708 # Support unset when possible.
9709 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9710   as_unset=unset
9711 else
9712   as_unset=false
9713 fi
9714
9715
9716 # Work around bugs in pre-3.0 UWIN ksh.
9717 $as_unset ENV MAIL MAILPATH
9718 PS1='$ '
9719 PS2='> '
9720 PS4='+ '
9721
9722 # NLS nuisances.
9723 for as_var in \
9724   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9725   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9726   LC_TELEPHONE LC_TIME
9727 do
9728   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9729     eval $as_var=C; export $as_var
9730   else
9731     $as_unset $as_var
9732   fi
9733 done
9734
9735 # Required to use basename.
9736 if expr a : '\(a\)' >/dev/null 2>&1; then
9737   as_expr=expr
9738 else
9739   as_expr=false
9740 fi
9741
9742 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9743   as_basename=basename
9744 else
9745   as_basename=false
9746 fi
9747
9748
9749 # Name of the executable.
9750 as_me=`$as_basename "$0" ||
9751 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9752          X"$0" : 'X\(//\)$' \| \
9753          X"$0" : 'X\(/\)$' \| \
9754          .     : '\(.\)' 2>/dev/null ||
9755 echo X/"$0" |
9756     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9757           /^X\/\(\/\/\)$/{ s//\1/; q; }
9758           /^X\/\(\/\).*/{ s//\1/; q; }
9759           s/.*/./; q'`
9760
9761
9762 # PATH needs CR, and LINENO needs CR and PATH.
9763 # Avoid depending upon Character Ranges.
9764 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9765 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9766 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9767 as_cr_digits='0123456789'
9768 as_cr_alnum=$as_cr_Letters$as_cr_digits
9769
9770 # The user is always right.
9771 if test "${PATH_SEPARATOR+set}" != set; then
9772   echo "#! /bin/sh" >conf$$.sh
9773   echo  "exit 0"   >>conf$$.sh
9774   chmod +x conf$$.sh
9775   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9776     PATH_SEPARATOR=';'
9777   else
9778     PATH_SEPARATOR=:
9779   fi
9780   rm -f conf$$.sh
9781 fi
9782
9783
9784   as_lineno_1=$LINENO
9785   as_lineno_2=$LINENO
9786   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9787   test "x$as_lineno_1" != "x$as_lineno_2" &&
9788   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9789   # Find who we are.  Look in the path if we contain no path at all
9790   # relative or not.
9791   case $0 in
9792     *[\\/]* ) as_myself=$0 ;;
9793     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9794 for as_dir in $PATH
9795 do
9796   IFS=$as_save_IFS
9797   test -z "$as_dir" && as_dir=.
9798   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9799 done
9800
9801        ;;
9802   esac
9803   # We did not find ourselves, most probably we were run as `sh COMMAND'
9804   # in which case we are not to be found in the path.
9805   if test "x$as_myself" = x; then
9806     as_myself=$0
9807   fi
9808   if test ! -f "$as_myself"; then
9809     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9810 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9811    { (exit 1); exit 1; }; }
9812   fi
9813   case $CONFIG_SHELL in
9814   '')
9815     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9817 do
9818   IFS=$as_save_IFS
9819   test -z "$as_dir" && as_dir=.
9820   for as_base in sh bash ksh sh5; do
9821          case $as_dir in
9822          /*)
9823            if ("$as_dir/$as_base" -c '
9824   as_lineno_1=$LINENO
9825   as_lineno_2=$LINENO
9826   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9827   test "x$as_lineno_1" != "x$as_lineno_2" &&
9828   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9829              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9830              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9831              CONFIG_SHELL=$as_dir/$as_base
9832              export CONFIG_SHELL
9833              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9834            fi;;
9835          esac
9836        done
9837 done
9838 ;;
9839   esac
9840
9841   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9842   # uniformly replaced by the line number.  The first 'sed' inserts a
9843   # line-number line before each line; the second 'sed' does the real
9844   # work.  The second script uses 'N' to pair each line-number line
9845   # with the numbered line, and appends trailing '-' during
9846   # substitution so that $LINENO is not a special case at line end.
9847   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9848   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9849   sed '=' <$as_myself |
9850     sed '
9851       N
9852       s,$,-,
9853       : loop
9854       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9855       t loop
9856       s,-$,,
9857       s,^['$as_cr_digits']*\n,,
9858     ' >$as_me.lineno &&
9859   chmod +x $as_me.lineno ||
9860     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9861 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9862    { (exit 1); exit 1; }; }
9863
9864   # Don't try to exec as it changes $[0], causing all sort of problems
9865   # (the dirname of $[0] is not the place where we might find the
9866   # original and so on.  Autoconf is especially sensible to this).
9867   . ./$as_me.lineno
9868   # Exit status is that of the last command.
9869   exit
9870 }
9871
9872
9873 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9874   *c*,-n*) ECHO_N= ECHO_C='
9875 ' ECHO_T='      ' ;;
9876   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9877   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9878 esac
9879
9880 if expr a : '\(a\)' >/dev/null 2>&1; then
9881   as_expr=expr
9882 else
9883   as_expr=false
9884 fi
9885
9886 rm -f conf$$ conf$$.exe conf$$.file
9887 echo >conf$$.file
9888 if ln -s conf$$.file conf$$ 2>/dev/null; then
9889   # We could just check for DJGPP; but this test a) works b) is more generic
9890   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9891   if test -f conf$$.exe; then
9892     # Don't use ln at all; we don't have any links
9893     as_ln_s='cp -p'
9894   else
9895     as_ln_s='ln -s'
9896   fi
9897 elif ln conf$$.file conf$$ 2>/dev/null; then
9898   as_ln_s=ln
9899 else
9900   as_ln_s='cp -p'
9901 fi
9902 rm -f conf$$ conf$$.exe conf$$.file
9903
9904 if mkdir -p . 2>/dev/null; then
9905   as_mkdir_p=:
9906 else
9907   as_mkdir_p=false
9908 fi
9909
9910 as_executable_p="test -f"
9911
9912 # Sed expression to map a string onto a valid CPP name.
9913 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9914
9915 # Sed expression to map a string onto a valid variable name.
9916 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9917
9918
9919 # IFS
9920 # We need space, tab and new line, in precisely that order.
9921 as_nl='
9922 '
9923 IFS="   $as_nl"
9924
9925 # CDPATH.
9926 $as_unset CDPATH
9927
9928 exec 6>&1
9929
9930 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9931 # report actual input values of CONFIG_FILES etc. instead of their
9932 # values after options handling.  Logging --version etc. is OK.
9933 exec 5>>config.log
9934 {
9935   echo
9936   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9937 ## Running $as_me. ##
9938 _ASBOX
9939 } >&5
9940 cat >&5 <<_CSEOF
9941
9942 This file was extended by $as_me, which was
9943 generated by GNU Autoconf 2.57.  Invocation command line was
9944
9945   CONFIG_FILES    = $CONFIG_FILES
9946   CONFIG_HEADERS  = $CONFIG_HEADERS
9947   CONFIG_LINKS    = $CONFIG_LINKS
9948   CONFIG_COMMANDS = $CONFIG_COMMANDS
9949   $ $0 $@
9950
9951 _CSEOF
9952 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9953 echo >&5
9954 _ACEOF
9955
9956 # Files that config.status was made for.
9957 if test -n "$ac_config_files"; then
9958   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9959 fi
9960
9961 if test -n "$ac_config_headers"; then
9962   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9963 fi
9964
9965 if test -n "$ac_config_links"; then
9966   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9967 fi
9968
9969 if test -n "$ac_config_commands"; then
9970   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9971 fi
9972
9973 cat >>$CONFIG_STATUS <<\_ACEOF
9974
9975 ac_cs_usage="\
9976 \`$as_me' instantiates files from templates according to the
9977 current configuration.
9978
9979 Usage: $0 [OPTIONS] [FILE]...
9980
9981   -h, --help       print this help, then exit
9982   -V, --version    print version number, then exit
9983   -q, --quiet      do not print progress messages
9984   -d, --debug      don't remove temporary files
9985       --recheck    update $as_me by reconfiguring in the same conditions
9986   --file=FILE[:TEMPLATE]
9987                    instantiate the configuration file FILE
9988   --header=FILE[:TEMPLATE]
9989                    instantiate the configuration header FILE
9990
9991 Configuration files:
9992 $config_files
9993
9994 Configuration headers:
9995 $config_headers
9996
9997 Configuration commands:
9998 $config_commands
9999
10000 Report bugs to <bug-autoconf@gnu.org>."
10001 _ACEOF
10002
10003 cat >>$CONFIG_STATUS <<_ACEOF
10004 ac_cs_version="\\
10005 config.status
10006 configured by $0, generated by GNU Autoconf 2.57,
10007   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10008
10009 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10010 Free Software Foundation, Inc.
10011 This config.status script is free software; the Free Software Foundation
10012 gives unlimited permission to copy, distribute and modify it."
10013 srcdir=$srcdir
10014 INSTALL="$INSTALL"
10015 _ACEOF
10016
10017 cat >>$CONFIG_STATUS <<\_ACEOF
10018 # If no file are specified by the user, then we need to provide default
10019 # value.  By we need to know if files were specified by the user.
10020 ac_need_defaults=:
10021 while test $# != 0
10022 do
10023   case $1 in
10024   --*=*)
10025     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10026     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10027     ac_shift=:
10028     ;;
10029   -*)
10030     ac_option=$1
10031     ac_optarg=$2
10032     ac_shift=shift
10033     ;;
10034   *) # This is not an option, so the user has probably given explicit
10035      # arguments.
10036      ac_option=$1
10037      ac_need_defaults=false;;
10038   esac
10039
10040   case $ac_option in
10041   # Handling of the options.
10042 _ACEOF
10043 cat >>$CONFIG_STATUS <<\_ACEOF
10044   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10045     ac_cs_recheck=: ;;
10046   --version | --vers* | -V )
10047     echo "$ac_cs_version"; exit 0 ;;
10048   --he | --h)
10049     # Conflict between --help and --header
10050     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10051 Try \`$0 --help' for more information." >&5
10052 echo "$as_me: error: ambiguous option: $1
10053 Try \`$0 --help' for more information." >&2;}
10054    { (exit 1); exit 1; }; };;
10055   --help | --hel | -h )
10056     echo "$ac_cs_usage"; exit 0 ;;
10057   --debug | --d* | -d )
10058     debug=: ;;
10059   --file | --fil | --fi | --f )
10060     $ac_shift
10061     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10062     ac_need_defaults=false;;
10063   --header | --heade | --head | --hea )
10064     $ac_shift
10065     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10066     ac_need_defaults=false;;
10067   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10068   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10069     ac_cs_silent=: ;;
10070
10071   # This is an error.
10072   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10073 Try \`$0 --help' for more information." >&5
10074 echo "$as_me: error: unrecognized option: $1
10075 Try \`$0 --help' for more information." >&2;}
10076    { (exit 1); exit 1; }; } ;;
10077
10078   *) ac_config_targets="$ac_config_targets $1" ;;
10079
10080   esac
10081   shift
10082 done
10083
10084 ac_configure_extra_args=
10085
10086 if $ac_cs_silent; then
10087   exec 6>/dev/null
10088   ac_configure_extra_args="$ac_configure_extra_args --silent"
10089 fi
10090
10091 _ACEOF
10092 cat >>$CONFIG_STATUS <<_ACEOF
10093 if \$ac_cs_recheck; then
10094   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10095   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10096 fi
10097
10098 _ACEOF
10099
10100 cat >>$CONFIG_STATUS <<_ACEOF
10101 #
10102 # INIT-COMMANDS section.
10103 #
10104
10105
10106
10107 _ACEOF
10108
10109
10110
10111 cat >>$CONFIG_STATUS <<\_ACEOF
10112 for ac_config_target in $ac_config_targets
10113 do
10114   case "$ac_config_target" in
10115   # Handling of arguments.
10116   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10117   "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
10118   "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
10119   "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
10120   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10121   "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
10122   "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
10123   "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
10124   "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
10125   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10126   "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
10127   "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
10128   "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
10129   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10130   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10131   "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
10132   "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
10133   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10134   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10135   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10136 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10137    { (exit 1); exit 1; }; };;
10138   esac
10139 done
10140
10141 # If the user did not use the arguments to specify the items to instantiate,
10142 # then the envvar interface is used.  Set only those that are not.
10143 # We use the long form for the default assignment because of an extremely
10144 # bizarre bug on SunOS 4.1.3.
10145 if $ac_need_defaults; then
10146   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10147   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10148   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10149 fi
10150
10151 # Have a temporary directory for convenience.  Make it in the build tree
10152 # simply because there is no reason to put it here, and in addition,
10153 # creating and moving files from /tmp can sometimes cause problems.
10154 # Create a temporary directory, and hook for its removal unless debugging.
10155 $debug ||
10156 {
10157   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10158   trap '{ (exit 1); exit 1; }' 1 2 13 15
10159 }
10160
10161 # Create a (secure) tmp directory for tmp files.
10162
10163 {
10164   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10165   test -n "$tmp" && test -d "$tmp"
10166 }  ||
10167 {
10168   tmp=./confstat$$-$RANDOM
10169   (umask 077 && mkdir $tmp)
10170 } ||
10171 {
10172    echo "$me: cannot create a temporary directory in ." >&2
10173    { (exit 1); exit 1; }
10174 }
10175
10176 _ACEOF
10177
10178 cat >>$CONFIG_STATUS <<_ACEOF
10179
10180 #
10181 # CONFIG_FILES section.
10182 #
10183
10184 # No need to generate the scripts if there are no CONFIG_FILES.
10185 # This happens for instance when ./config.status config.h
10186 if test -n "\$CONFIG_FILES"; then
10187   # Protect against being on the right side of a sed subst in config.status.
10188   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10189    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10190 s,@SHELL@,$SHELL,;t t
10191 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10192 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10193 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10194 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10195 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10196 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10197 s,@exec_prefix@,$exec_prefix,;t t
10198 s,@prefix@,$prefix,;t t
10199 s,@program_transform_name@,$program_transform_name,;t t
10200 s,@bindir@,$bindir,;t t
10201 s,@sbindir@,$sbindir,;t t
10202 s,@libexecdir@,$libexecdir,;t t
10203 s,@datadir@,$datadir,;t t
10204 s,@sysconfdir@,$sysconfdir,;t t
10205 s,@sharedstatedir@,$sharedstatedir,;t t
10206 s,@localstatedir@,$localstatedir,;t t
10207 s,@libdir@,$libdir,;t t
10208 s,@includedir@,$includedir,;t t
10209 s,@oldincludedir@,$oldincludedir,;t t
10210 s,@infodir@,$infodir,;t t
10211 s,@mandir@,$mandir,;t t
10212 s,@build_alias@,$build_alias,;t t
10213 s,@host_alias@,$host_alias,;t t
10214 s,@target_alias@,$target_alias,;t t
10215 s,@DEFS@,$DEFS,;t t
10216 s,@ECHO_C@,$ECHO_C,;t t
10217 s,@ECHO_N@,$ECHO_N,;t t
10218 s,@ECHO_T@,$ECHO_T,;t t
10219 s,@LIBS@,$LIBS,;t t
10220 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10221 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10222 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10223 s,@PACKAGE@,$PACKAGE,;t t
10224 s,@VERSION@,$VERSION,;t t
10225 s,@ACLOCAL@,$ACLOCAL,;t t
10226 s,@AUTOCONF@,$AUTOCONF,;t t
10227 s,@AUTOMAKE@,$AUTOMAKE,;t t
10228 s,@AUTOHEADER@,$AUTOHEADER,;t t
10229 s,@MAKEINFO@,$MAKEINFO,;t t
10230 s,@SET_MAKE@,$SET_MAKE,;t t
10231 s,@AWK@,$AWK,;t t
10232 s,@RANLIB@,$RANLIB,;t t
10233 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10234 s,@CC@,$CC,;t t
10235 s,@CFLAGS@,$CFLAGS,;t t
10236 s,@LDFLAGS@,$LDFLAGS,;t t
10237 s,@CPPFLAGS@,$CPPFLAGS,;t t
10238 s,@ac_ct_CC@,$ac_ct_CC,;t t
10239 s,@EXEEXT@,$EXEEXT,;t t
10240 s,@OBJEXT@,$OBJEXT,;t t
10241 s,@CXX@,$CXX,;t t
10242 s,@CXXFLAGS@,$CXXFLAGS,;t t
10243 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10244 s,@wxconfig@,$wxconfig,;t t
10245 s,@build@,$build,;t t
10246 s,@build_cpu@,$build_cpu,;t t
10247 s,@build_vendor@,$build_vendor,;t t
10248 s,@build_os@,$build_os,;t t
10249 s,@host@,$host,;t t
10250 s,@host_cpu@,$host_cpu,;t t
10251 s,@host_vendor@,$host_vendor,;t t
10252 s,@host_os@,$host_os,;t t
10253 s,@CPP@,$CPP,;t t
10254 s,@EGREP@,$EGREP,;t t
10255 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10256 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10257 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10258 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10259 s,@lamdir@,$lamdir,;t t
10260 s,@mpienable@,$mpienable,;t t
10261 s,@cgibindir@,$cgibindir,;t t
10262 s,@cgibinurl@,$cgibinurl,;t t
10263 s,@webdatadir@,$webdatadir,;t t
10264 s,@webdataurl@,$webdataurl,;t t
10265 s,@htmldir@,$htmldir,;t t
10266 s,@cgiprograms@,$cgiprograms,;t t
10267 s,@htmldata@,$htmldata,;t t
10268 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10269 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10270 s,@webenabled@,$webenabled,;t t
10271 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10272 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10273 s,@X_CFLAGS@,$X_CFLAGS,;t t
10274 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10275 s,@X_LIBS@,$X_LIBS,;t t
10276 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10277 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10278 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10279 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10280 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10281 s,@my_includes@,$my_includes,;t t
10282 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10283 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10284 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10285 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10286 s,@wxcflags@,$wxcflags,;t t
10287 s,@wxlibs@,$wxlibs,;t t
10288 s,@ctlibs@,$ctlibs,;t t
10289 s,@lamprograms@,$lamprograms,;t t
10290 s,@lamdefs@,$lamdefs,;t t
10291 s,@LIBOBJS@,$LIBOBJS,;t t
10292 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10293 CEOF
10294
10295 _ACEOF
10296
10297   cat >>$CONFIG_STATUS <<\_ACEOF
10298   # Split the substitutions into bite-sized pieces for seds with
10299   # small command number limits, like on Digital OSF/1 and HP-UX.
10300   ac_max_sed_lines=48
10301   ac_sed_frag=1 # Number of current file.
10302   ac_beg=1 # First line for current file.
10303   ac_end=$ac_max_sed_lines # Line after last line for current file.
10304   ac_more_lines=:
10305   ac_sed_cmds=
10306   while $ac_more_lines; do
10307     if test $ac_beg -gt 1; then
10308       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10309     else
10310       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10311     fi
10312     if test ! -s $tmp/subs.frag; then
10313       ac_more_lines=false
10314     else
10315       # The purpose of the label and of the branching condition is to
10316       # speed up the sed processing (if there are no `@' at all, there
10317       # is no need to browse any of the substitutions).
10318       # These are the two extra sed commands mentioned above.
10319       (echo ':t
10320   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10321       if test -z "$ac_sed_cmds"; then
10322         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10323       else
10324         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10325       fi
10326       ac_sed_frag=`expr $ac_sed_frag + 1`
10327       ac_beg=$ac_end
10328       ac_end=`expr $ac_end + $ac_max_sed_lines`
10329     fi
10330   done
10331   if test -z "$ac_sed_cmds"; then
10332     ac_sed_cmds=cat
10333   fi
10334 fi # test -n "$CONFIG_FILES"
10335
10336 _ACEOF
10337 cat >>$CONFIG_STATUS <<\_ACEOF
10338 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10339   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10340   case $ac_file in
10341   - | *:- | *:-:* ) # input from stdin
10342         cat >$tmp/stdin
10343         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10344         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10345   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10346         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10347   * )   ac_file_in=$ac_file.in ;;
10348   esac
10349
10350   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10351   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10352 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10353          X"$ac_file" : 'X\(//\)[^/]' \| \
10354          X"$ac_file" : 'X\(//\)$' \| \
10355          X"$ac_file" : 'X\(/\)' \| \
10356          .     : '\(.\)' 2>/dev/null ||
10357 echo X"$ac_file" |
10358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10359           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10360           /^X\(\/\/\)$/{ s//\1/; q; }
10361           /^X\(\/\).*/{ s//\1/; q; }
10362           s/.*/./; q'`
10363   { if $as_mkdir_p; then
10364     mkdir -p "$ac_dir"
10365   else
10366     as_dir="$ac_dir"
10367     as_dirs=
10368     while test ! -d "$as_dir"; do
10369       as_dirs="$as_dir $as_dirs"
10370       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10371 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10372          X"$as_dir" : 'X\(//\)[^/]' \| \
10373          X"$as_dir" : 'X\(//\)$' \| \
10374          X"$as_dir" : 'X\(/\)' \| \
10375          .     : '\(.\)' 2>/dev/null ||
10376 echo X"$as_dir" |
10377     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10378           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10379           /^X\(\/\/\)$/{ s//\1/; q; }
10380           /^X\(\/\).*/{ s//\1/; q; }
10381           s/.*/./; q'`
10382     done
10383     test ! -n "$as_dirs" || mkdir $as_dirs
10384   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10385 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10386    { (exit 1); exit 1; }; }; }
10387
10388   ac_builddir=.
10389
10390 if test "$ac_dir" != .; then
10391   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10392   # A "../" for each directory in $ac_dir_suffix.
10393   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10394 else
10395   ac_dir_suffix= ac_top_builddir=
10396 fi
10397
10398 case $srcdir in
10399   .)  # No --srcdir option.  We are building in place.
10400     ac_srcdir=.
10401     if test -z "$ac_top_builddir"; then
10402        ac_top_srcdir=.
10403     else
10404        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10405     fi ;;
10406   [\\/]* | ?:[\\/]* )  # Absolute path.
10407     ac_srcdir=$srcdir$ac_dir_suffix;
10408     ac_top_srcdir=$srcdir ;;
10409   *) # Relative path.
10410     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10411     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10412 esac
10413 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10414 # absolute.
10415 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10416 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10417 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10418 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10419
10420
10421   case $INSTALL in
10422   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10423   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10424   esac
10425
10426   if test x"$ac_file" != x-; then
10427     { echo "$as_me:$LINENO: creating $ac_file" >&5
10428 echo "$as_me: creating $ac_file" >&6;}
10429     rm -f "$ac_file"
10430   fi
10431   # Let's still pretend it is `configure' which instantiates (i.e., don't
10432   # use $as_me), people would be surprised to read:
10433   #    /* config.h.  Generated by config.status.  */
10434   if test x"$ac_file" = x-; then
10435     configure_input=
10436   else
10437     configure_input="$ac_file.  "
10438   fi
10439   configure_input=$configure_input"Generated from `echo $ac_file_in |
10440                                      sed 's,.*/,,'` by configure."
10441
10442   # First look for the input files in the build tree, otherwise in the
10443   # src tree.
10444   ac_file_inputs=`IFS=:
10445     for f in $ac_file_in; do
10446       case $f in
10447       -) echo $tmp/stdin ;;
10448       [\\/$]*)
10449          # Absolute (can't be DOS-style, as IFS=:)
10450          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10451 echo "$as_me: error: cannot find input file: $f" >&2;}
10452    { (exit 1); exit 1; }; }
10453          echo $f;;
10454       *) # Relative
10455          if test -f "$f"; then
10456            # Build tree
10457            echo $f
10458          elif test -f "$srcdir/$f"; then
10459            # Source tree
10460            echo $srcdir/$f
10461          else
10462            # /dev/null tree
10463            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10464 echo "$as_me: error: cannot find input file: $f" >&2;}
10465    { (exit 1); exit 1; }; }
10466          fi;;
10467       esac
10468     done` || { (exit 1); exit 1; }
10469 _ACEOF
10470 cat >>$CONFIG_STATUS <<_ACEOF
10471   sed "$ac_vpsub
10472 $extrasub
10473 _ACEOF
10474 cat >>$CONFIG_STATUS <<\_ACEOF
10475 :t
10476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10477 s,@configure_input@,$configure_input,;t t
10478 s,@srcdir@,$ac_srcdir,;t t
10479 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10480 s,@top_srcdir@,$ac_top_srcdir,;t t
10481 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10482 s,@builddir@,$ac_builddir,;t t
10483 s,@abs_builddir@,$ac_abs_builddir,;t t
10484 s,@top_builddir@,$ac_top_builddir,;t t
10485 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10486 s,@INSTALL@,$ac_INSTALL,;t t
10487 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10488   rm -f $tmp/stdin
10489   if test x"$ac_file" != x-; then
10490     mv $tmp/out $ac_file
10491   else
10492     cat $tmp/out
10493     rm -f $tmp/out
10494   fi
10495
10496 done
10497 _ACEOF
10498 cat >>$CONFIG_STATUS <<\_ACEOF
10499
10500 #
10501 # CONFIG_HEADER section.
10502 #
10503
10504 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10505 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10506 #
10507 # ac_d sets the value in "#define NAME VALUE" lines.
10508 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
10509 ac_dB='[        ].*$,\1#\2'
10510 ac_dC=' '
10511 ac_dD=',;t'
10512 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10513 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10514 ac_uB='$,\1#\2define\3'
10515 ac_uC=' '
10516 ac_uD=',;t'
10517
10518 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10519   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10520   case $ac_file in
10521   - | *:- | *:-:* ) # input from stdin
10522         cat >$tmp/stdin
10523         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10524         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10525   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10526         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10527   * )   ac_file_in=$ac_file.in ;;
10528   esac
10529
10530   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10531 echo "$as_me: creating $ac_file" >&6;}
10532
10533   # First look for the input files in the build tree, otherwise in the
10534   # src tree.
10535   ac_file_inputs=`IFS=:
10536     for f in $ac_file_in; do
10537       case $f in
10538       -) echo $tmp/stdin ;;
10539       [\\/$]*)
10540          # Absolute (can't be DOS-style, as IFS=:)
10541          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10542 echo "$as_me: error: cannot find input file: $f" >&2;}
10543    { (exit 1); exit 1; }; }
10544          echo $f;;
10545       *) # Relative
10546          if test -f "$f"; then
10547            # Build tree
10548            echo $f
10549          elif test -f "$srcdir/$f"; then
10550            # Source tree
10551            echo $srcdir/$f
10552          else
10553            # /dev/null tree
10554            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10555 echo "$as_me: error: cannot find input file: $f" >&2;}
10556    { (exit 1); exit 1; }; }
10557          fi;;
10558       esac
10559     done` || { (exit 1); exit 1; }
10560   # Remove the trailing spaces.
10561   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
10562
10563 _ACEOF
10564
10565 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10566 # `conftest.undefs', that substitutes the proper values into
10567 # config.h.in to produce config.h.  The first handles `#define'
10568 # templates, and the second `#undef' templates.
10569 # And first: Protect against being on the right side of a sed subst in
10570 # config.status.  Protect against being in an unquoted here document
10571 # in config.status.
10572 rm -f conftest.defines conftest.undefs
10573 # Using a here document instead of a string reduces the quoting nightmare.
10574 # Putting comments in sed scripts is not portable.
10575 #
10576 # `end' is used to avoid that the second main sed command (meant for
10577 # 0-ary CPP macros) applies to n-ary macro definitions.
10578 # See the Autoconf documentation for `clear'.
10579 cat >confdef2sed.sed <<\_ACEOF
10580 s/[\\&,]/\\&/g
10581 s,[\\$`],\\&,g
10582 t clear
10583 : clear
10584 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10585 t end
10586 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10587 : end
10588 _ACEOF
10589 # If some macros were called several times there might be several times
10590 # the same #defines, which is useless.  Nevertheless, we may not want to
10591 # sort them, since we want the *last* AC-DEFINE to be honored.
10592 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10593 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10594 rm -f confdef2sed.sed
10595
10596 # This sed command replaces #undef with comments.  This is necessary, for
10597 # example, in the case of _POSIX_SOURCE, which is predefined and required
10598 # on some systems where configure will not decide to define it.
10599 cat >>conftest.undefs <<\_ACEOF
10600 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10601 _ACEOF
10602
10603 # Break up conftest.defines because some shells have a limit on the size
10604 # of here documents, and old seds have small limits too (100 cmds).
10605 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10606 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10607 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10608 echo '  :' >>$CONFIG_STATUS
10609 rm -f conftest.tail
10610 while grep . conftest.defines >/dev/null
10611 do
10612   # Write a limited-size here document to $tmp/defines.sed.
10613   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10614   # Speed up: don't consider the non `#define' lines.
10615   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
10616   # Work around the forget-to-reset-the-flag bug.
10617   echo 't clr' >>$CONFIG_STATUS
10618   echo ': clr' >>$CONFIG_STATUS
10619   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10620   echo 'CEOF
10621   sed -f $tmp/defines.sed $tmp/in >$tmp/out
10622   rm -f $tmp/in
10623   mv $tmp/out $tmp/in
10624 ' >>$CONFIG_STATUS
10625   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10626   rm -f conftest.defines
10627   mv conftest.tail conftest.defines
10628 done
10629 rm -f conftest.defines
10630 echo '  fi # grep' >>$CONFIG_STATUS
10631 echo >>$CONFIG_STATUS
10632
10633 # Break up conftest.undefs because some shells have a limit on the size
10634 # of here documents, and old seds have small limits too (100 cmds).
10635 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10636 rm -f conftest.tail
10637 while grep . conftest.undefs >/dev/null
10638 do
10639   # Write a limited-size here document to $tmp/undefs.sed.
10640   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10641   # Speed up: don't consider the non `#undef'
10642   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10643   # Work around the forget-to-reset-the-flag bug.
10644   echo 't clr' >>$CONFIG_STATUS
10645   echo ': clr' >>$CONFIG_STATUS
10646   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10647   echo 'CEOF
10648   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10649   rm -f $tmp/in
10650   mv $tmp/out $tmp/in
10651 ' >>$CONFIG_STATUS
10652   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10653   rm -f conftest.undefs
10654   mv conftest.tail conftest.undefs
10655 done
10656 rm -f conftest.undefs
10657
10658 cat >>$CONFIG_STATUS <<\_ACEOF
10659   # Let's still pretend it is `configure' which instantiates (i.e., don't
10660   # use $as_me), people would be surprised to read:
10661   #    /* config.h.  Generated by config.status.  */
10662   if test x"$ac_file" = x-; then
10663     echo "/* Generated by configure.  */" >$tmp/config.h
10664   else
10665     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10666   fi
10667   cat $tmp/in >>$tmp/config.h
10668   rm -f $tmp/in
10669   if test x"$ac_file" != x-; then
10670     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10671       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10672 echo "$as_me: $ac_file is unchanged" >&6;}
10673     else
10674       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10675 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10676          X"$ac_file" : 'X\(//\)[^/]' \| \
10677          X"$ac_file" : 'X\(//\)$' \| \
10678          X"$ac_file" : 'X\(/\)' \| \
10679          .     : '\(.\)' 2>/dev/null ||
10680 echo X"$ac_file" |
10681     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10682           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10683           /^X\(\/\/\)$/{ s//\1/; q; }
10684           /^X\(\/\).*/{ s//\1/; q; }
10685           s/.*/./; q'`
10686       { if $as_mkdir_p; then
10687     mkdir -p "$ac_dir"
10688   else
10689     as_dir="$ac_dir"
10690     as_dirs=
10691     while test ! -d "$as_dir"; do
10692       as_dirs="$as_dir $as_dirs"
10693       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10694 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10695          X"$as_dir" : 'X\(//\)[^/]' \| \
10696          X"$as_dir" : 'X\(//\)$' \| \
10697          X"$as_dir" : 'X\(/\)' \| \
10698          .     : '\(.\)' 2>/dev/null ||
10699 echo X"$as_dir" |
10700     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10701           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10702           /^X\(\/\/\)$/{ s//\1/; q; }
10703           /^X\(\/\).*/{ s//\1/; q; }
10704           s/.*/./; q'`
10705     done
10706     test ! -n "$as_dirs" || mkdir $as_dirs
10707   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10708 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10709    { (exit 1); exit 1; }; }; }
10710
10711       rm -f $ac_file
10712       mv $tmp/config.h $ac_file
10713     fi
10714   else
10715     cat $tmp/config.h
10716     rm -f $tmp/config.h
10717   fi
10718 done
10719 _ACEOF
10720 cat >>$CONFIG_STATUS <<\_ACEOF
10721
10722 #
10723 # CONFIG_COMMANDS section.
10724 #
10725 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10726   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10727   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10728   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10729 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10730          X"$ac_dest" : 'X\(//\)[^/]' \| \
10731          X"$ac_dest" : 'X\(//\)$' \| \
10732          X"$ac_dest" : 'X\(/\)' \| \
10733          .     : '\(.\)' 2>/dev/null ||
10734 echo X"$ac_dest" |
10735     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10736           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10737           /^X\(\/\/\)$/{ s//\1/; q; }
10738           /^X\(\/\).*/{ s//\1/; q; }
10739           s/.*/./; q'`
10740   ac_builddir=.
10741
10742 if test "$ac_dir" != .; then
10743   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10744   # A "../" for each directory in $ac_dir_suffix.
10745   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10746 else
10747   ac_dir_suffix= ac_top_builddir=
10748 fi
10749
10750 case $srcdir in
10751   .)  # No --srcdir option.  We are building in place.
10752     ac_srcdir=.
10753     if test -z "$ac_top_builddir"; then
10754        ac_top_srcdir=.
10755     else
10756        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10757     fi ;;
10758   [\\/]* | ?:[\\/]* )  # Absolute path.
10759     ac_srcdir=$srcdir$ac_dir_suffix;
10760     ac_top_srcdir=$srcdir ;;
10761   *) # Relative path.
10762     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10763     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10764 esac
10765 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10766 # absolute.
10767 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10768 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10769 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10770 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10771
10772
10773   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10774 echo "$as_me: executing $ac_dest commands" >&6;}
10775   case $ac_dest in
10776     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10777   esac
10778 done
10779 _ACEOF
10780
10781 cat >>$CONFIG_STATUS <<\_ACEOF
10782
10783 { (exit 0); exit 0; }
10784 _ACEOF
10785 chmod +x $CONFIG_STATUS
10786 ac_clean_files=$ac_clean_files_save
10787
10788
10789 # configure is writing to config.log, and then calls config.status.
10790 # config.status does its own redirection, appending to config.log.
10791 # Unfortunately, on DOS this fails, as config.log is still kept open
10792 # by configure, so config.status won't be able to write to it; its
10793 # output is simply discarded.  So we exec the FD to /dev/null,
10794 # effectively closing config.log, so it can be properly (re)opened and
10795 # appended to by config.status.  When coming back to configure, we
10796 # need to make the FD available again.
10797 if test "$no_create" != yes; then
10798   ac_cs_success=:
10799   ac_config_status_args=
10800   test "$silent" = yes &&
10801     ac_config_status_args="$ac_config_status_args --quiet"
10802   exec 5>/dev/null
10803   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10804   exec 5>>config.log
10805   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10806   # would make configure fail if this is the last instruction.
10807   $ac_cs_success || { (exit 1); exit 1; }
10808 fi
10809