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