5b29fef37b19fe409f8f64d0e73a95228b6b2af6
[ctsim.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/ctsim.cpp"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE 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 wxcflags wxlibs HAVE_WXWINDOWS_TRUE HAVE_WXWINDOWS_FALSE ctlibs lamprograms lamdefs LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 Program names:
842   --program-prefix=PREFIX            prepend PREFIX to installed program names
843   --program-suffix=SUFFIX            append SUFFIX to installed program names
844   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
845
846 X features:
847   --x-includes=DIR    X include files are in DIR
848   --x-libraries=DIR   X library files are in DIR
849
850 System types:
851   --build=BUILD     configure for building on BUILD [guessed]
852   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
853 _ACEOF
854 fi
855
856 if test -n "$ac_init_help"; then
857
858   cat <<\_ACEOF
859
860 Optional Features:
861   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
862   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
863   --enable-maintainer-mode enable make rules and dependencies not useful
864                           (and sometimes confusing) to the casual installer
865   --disable-dependency-tracking Speeds up one-time builds
866   --enable-dependency-tracking  Do not reject slow dependency extractors
867   --enable-debug          Turn on debugging
868   --enable-verbose-warnings
869                           Enable verbose compiler warnings.
870   --enable-static
871                             Enable static executables.
872   --enable-dmalloc        Use dmalloc memory allocation
873   --enable-efence        Use ElectricFence memory allocation
874
875 Optional Packages:
876   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
877   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
878   --with-lam=PATH         Set path of LAM MPI
879   --with-ctn=PATH         Set path of CTN DICOM library
880   --with-mcpu=CPU         Set name of CPU for gcc -mcpu
881   --with-cgibin-dir=PATH  Set path of CGI binaries directory
882   --with-cgibin-url=PATH  Set URL path of CGI binaries
883   --with-webdata-dir=PATH Set path of webdata
884   --with-webdata-url=PATH Set URL path of webdata
885   --with-html-dir=PATH    Set directory of html files
886   --with-x                use the X Window System
887
888 Some influential environment variables:
889   CC          C compiler command
890   CFLAGS      C compiler flags
891   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
892               nonstandard directory <lib dir>
893   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
894               headers in a nonstandard directory <include dir>
895   CXX         C++ compiler command
896   CXXFLAGS    C++ compiler flags
897   CPP         C preprocessor
898
899 Use these variables to override the choices made by `configure' or to help
900 it to find libraries and programs with nonstandard names/locations.
901
902 _ACEOF
903 fi
904
905 if test "$ac_init_help" = "recursive"; then
906   # If there are subdirs, report their specific --help.
907   ac_popdir=`pwd`
908   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
909     test -d $ac_dir || continue
910     ac_builddir=.
911
912 if test "$ac_dir" != .; then
913   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
914   # A "../" for each directory in $ac_dir_suffix.
915   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
916 else
917   ac_dir_suffix= ac_top_builddir=
918 fi
919
920 case $srcdir in
921   .)  # No --srcdir option.  We are building in place.
922     ac_srcdir=.
923     if test -z "$ac_top_builddir"; then
924        ac_top_srcdir=.
925     else
926        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
927     fi ;;
928   [\\/]* | ?:[\\/]* )  # Absolute path.
929     ac_srcdir=$srcdir$ac_dir_suffix;
930     ac_top_srcdir=$srcdir ;;
931   *) # Relative path.
932     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
933     ac_top_srcdir=$ac_top_builddir$srcdir ;;
934 esac
935 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
936 # absolute.
937 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
938 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
939 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
940 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
941
942     cd $ac_dir
943     # Check for guested configure; otherwise get Cygnus style configure.
944     if test -f $ac_srcdir/configure.gnu; then
945       echo
946       $SHELL $ac_srcdir/configure.gnu  --help=recursive
947     elif test -f $ac_srcdir/configure; then
948       echo
949       $SHELL $ac_srcdir/configure  --help=recursive
950     elif test -f $ac_srcdir/configure.ac ||
951            test -f $ac_srcdir/configure.in; then
952       echo
953       $ac_configure --help
954     else
955       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
956     fi
957     cd $ac_popdir
958   done
959 fi
960
961 test -n "$ac_init_help" && exit 0
962 if $ac_init_version; then
963   cat <<\_ACEOF
964
965 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
966 Free Software Foundation, Inc.
967 This configure script is free software; the Free Software Foundation
968 gives unlimited permission to copy, distribute and modify it.
969 _ACEOF
970   exit 0
971 fi
972 exec 5>config.log
973 cat >&5 <<_ACEOF
974 This file contains any messages produced by compilers while
975 running configure, to aid debugging if configure makes a mistake.
976
977 It was created by $as_me, which was
978 generated by GNU Autoconf 2.57.  Invocation command line was
979
980   $ $0 $@
981
982 _ACEOF
983 {
984 cat <<_ASUNAME
985 ## --------- ##
986 ## Platform. ##
987 ## --------- ##
988
989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
994
995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
996 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
997
998 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
999 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1001 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1002 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1003 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1004 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1005
1006 _ASUNAME
1007
1008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1009 for as_dir in $PATH
1010 do
1011   IFS=$as_save_IFS
1012   test -z "$as_dir" && as_dir=.
1013   echo "PATH: $as_dir"
1014 done
1015
1016 } >&5
1017
1018 cat >&5 <<_ACEOF
1019
1020
1021 ## ----------- ##
1022 ## Core tests. ##
1023 ## ----------- ##
1024
1025 _ACEOF
1026
1027
1028 # Keep a trace of the command line.
1029 # Strip out --no-create and --no-recursion so they do not pile up.
1030 # Strip out --silent because we don't want to record it for future runs.
1031 # Also quote any args containing shell meta-characters.
1032 # Make two passes to allow for proper duplicate-argument suppression.
1033 ac_configure_args=
1034 ac_configure_args0=
1035 ac_configure_args1=
1036 ac_sep=
1037 ac_must_keep_next=false
1038 for ac_pass in 1 2
1039 do
1040   for ac_arg
1041   do
1042     case $ac_arg in
1043     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045     | -silent | --silent | --silen | --sile | --sil)
1046       continue ;;
1047     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049     esac
1050     case $ac_pass in
1051     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1052     2)
1053       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054       if test $ac_must_keep_next = true; then
1055         ac_must_keep_next=false # Got value, back to normal.
1056       else
1057         case $ac_arg in
1058           *=* | --config-cache | -C | -disable-* | --disable-* \
1059           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061           | -with-* | --with-* | -without-* | --without-* | --x)
1062             case "$ac_configure_args0 " in
1063               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1064             esac
1065             ;;
1066           -* ) ac_must_keep_next=true ;;
1067         esac
1068       fi
1069       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070       # Get rid of the leading space.
1071       ac_sep=" "
1072       ;;
1073     esac
1074   done
1075 done
1076 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1078
1079 # When interrupted or exit'd, cleanup temporary files, and complete
1080 # config.log.  We remove comments because anyway the quotes in there
1081 # would cause problems or look ugly.
1082 # WARNING: Be sure not to use single quotes in there, as some shells,
1083 # such as our DU 5.0 friend, will then `close' the trap.
1084 trap 'exit_status=$?
1085   # Save into config.log some information that might help in debugging.
1086   {
1087     echo
1088
1089     cat <<\_ASBOX
1090 ## ---------------- ##
1091 ## Cache variables. ##
1092 ## ---------------- ##
1093 _ASBOX
1094     echo
1095     # The following way of writing the cache mishandles newlines in values,
1096 {
1097   (set) 2>&1 |
1098     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099     *ac_space=\ *)
1100       sed -n \
1101         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1103       ;;
1104     *)
1105       sed -n \
1106         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1107       ;;
1108     esac;
1109 }
1110     echo
1111
1112     cat <<\_ASBOX
1113 ## ----------------- ##
1114 ## Output variables. ##
1115 ## ----------------- ##
1116 _ASBOX
1117     echo
1118     for ac_var in $ac_subst_vars
1119     do
1120       eval ac_val=$`echo $ac_var`
1121       echo "$ac_var='"'"'$ac_val'"'"'"
1122     done | sort
1123     echo
1124
1125     if test -n "$ac_subst_files"; then
1126       cat <<\_ASBOX
1127 ## ------------- ##
1128 ## Output files. ##
1129 ## ------------- ##
1130 _ASBOX
1131       echo
1132       for ac_var in $ac_subst_files
1133       do
1134         eval ac_val=$`echo $ac_var`
1135         echo "$ac_var='"'"'$ac_val'"'"'"
1136       done | sort
1137       echo
1138     fi
1139
1140     if test -s confdefs.h; then
1141       cat <<\_ASBOX
1142 ## ----------- ##
1143 ## confdefs.h. ##
1144 ## ----------- ##
1145 _ASBOX
1146       echo
1147       sed "/^$/d" confdefs.h | sort
1148       echo
1149     fi
1150     test "$ac_signal" != 0 &&
1151       echo "$as_me: caught signal $ac_signal"
1152     echo "$as_me: exit $exit_status"
1153   } >&5
1154   rm -f core core.* *.core &&
1155   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1156     exit $exit_status
1157      ' 0
1158 for ac_signal in 1 2 13 15; do
1159   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1160 done
1161 ac_signal=0
1162
1163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1164 rm -rf conftest* confdefs.h
1165 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1166 echo >confdefs.h
1167
1168 # Predefined preprocessor variables.
1169
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_NAME "$PACKAGE_NAME"
1172 _ACEOF
1173
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_STRING "$PACKAGE_STRING"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1192 _ACEOF
1193
1194
1195 # Let the site file select an alternate cache file if it wants to.
1196 # Prefer explicitly selected file to automatically selected ones.
1197 if test -z "$CONFIG_SITE"; then
1198   if test "x$prefix" != xNONE; then
1199     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1200   else
1201     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1202   fi
1203 fi
1204 for ac_site_file in $CONFIG_SITE; do
1205   if test -r "$ac_site_file"; then
1206     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207 echo "$as_me: loading site script $ac_site_file" >&6;}
1208     sed 's/^/| /' "$ac_site_file" >&5
1209     . "$ac_site_file"
1210   fi
1211 done
1212
1213 if test -r "$cache_file"; then
1214   # Some versions of bash will fail to source /dev/null (special
1215   # files actually), so we avoid doing that.
1216   if test -f "$cache_file"; then
1217     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218 echo "$as_me: loading cache $cache_file" >&6;}
1219     case $cache_file in
1220       [\\/]* | ?:[\\/]* ) . $cache_file;;
1221       *)                      . ./$cache_file;;
1222     esac
1223   fi
1224 else
1225   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226 echo "$as_me: creating cache $cache_file" >&6;}
1227   >$cache_file
1228 fi
1229
1230 # Check that the precious variables saved in the cache have kept the same
1231 # value.
1232 ac_cache_corrupted=false
1233 for ac_var in `(set) 2>&1 |
1234                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1235   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236   eval ac_new_set=\$ac_env_${ac_var}_set
1237   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238   eval ac_new_val="\$ac_env_${ac_var}_value"
1239   case $ac_old_set,$ac_new_set in
1240     set,)
1241       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243       ac_cache_corrupted=: ;;
1244     ,set)
1245       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247       ac_cache_corrupted=: ;;
1248     ,);;
1249     *)
1250       if test "x$ac_old_val" != "x$ac_new_val"; then
1251         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1252 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1253         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1254 echo "$as_me:   former value:  $ac_old_val" >&2;}
1255         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1256 echo "$as_me:   current value: $ac_new_val" >&2;}
1257         ac_cache_corrupted=:
1258       fi;;
1259   esac
1260   # Pass precious variables to config.status.
1261   if test "$ac_new_set" = set; then
1262     case $ac_new_val in
1263     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1265     *) ac_arg=$ac_var=$ac_new_val ;;
1266     esac
1267     case " $ac_configure_args " in
1268       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1269       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1270     esac
1271   fi
1272 done
1273 if $ac_cache_corrupted; then
1274   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1275 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1276   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1277 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1278    { (exit 1); exit 1; }; }
1279 fi
1280
1281 ac_ext=c
1282 ac_cpp='$CPP $CPPFLAGS'
1283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1307 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1308     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1309 if test "${enable_maintainer_mode+set}" = set; then
1310   enableval="$enable_maintainer_mode"
1311   USE_MAINTAINER_MODE=$enableval
1312 else
1313   USE_MAINTAINER_MODE=no
1314 fi;
1315   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1316 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1317
1318
1319 if test $USE_MAINTAINER_MODE = yes; then
1320   MAINTAINER_MODE_TRUE=
1321   MAINTAINER_MODE_FALSE='#'
1322 else
1323   MAINTAINER_MODE_TRUE='#'
1324   MAINTAINER_MODE_FALSE=
1325 fi
1326
1327   MAINT=$MAINTAINER_MODE_TRUE
1328
1329
1330 am__api_version="1.7"
1331 ac_aux_dir=
1332 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1333   if test -f $ac_dir/install-sh; then
1334     ac_aux_dir=$ac_dir
1335     ac_install_sh="$ac_aux_dir/install-sh -c"
1336     break
1337   elif test -f $ac_dir/install.sh; then
1338     ac_aux_dir=$ac_dir
1339     ac_install_sh="$ac_aux_dir/install.sh -c"
1340     break
1341   elif test -f $ac_dir/shtool; then
1342     ac_aux_dir=$ac_dir
1343     ac_install_sh="$ac_aux_dir/shtool install -c"
1344     break
1345   fi
1346 done
1347 if test -z "$ac_aux_dir"; then
1348   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1349 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1350    { (exit 1); exit 1; }; }
1351 fi
1352 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1353 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1354 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1355
1356 # Find a good install program.  We prefer a C program (faster),
1357 # so one script is as good as another.  But avoid the broken or
1358 # incompatible versions:
1359 # SysV /etc/install, /usr/sbin/install
1360 # SunOS /usr/etc/install
1361 # IRIX /sbin/install
1362 # AIX /bin/install
1363 # AmigaOS /C/install, which installs bootblocks on floppy discs
1364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1367 # ./install, which can be erroneously created by make from ./install.sh.
1368 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1369 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1370 if test -z "$INSTALL"; then
1371 if test "${ac_cv_path_install+set}" = set; then
1372   echo $ECHO_N "(cached) $ECHO_C" >&6
1373 else
1374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375 for as_dir in $PATH
1376 do
1377   IFS=$as_save_IFS
1378   test -z "$as_dir" && as_dir=.
1379   # Account for people who put trailing slashes in PATH elements.
1380 case $as_dir/ in
1381   ./ | .// | /cC/* | \
1382   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1383   /usr/ucb/* ) ;;
1384   *)
1385     # OSF1 and SCO ODT 3.0 have their own names for install.
1386     # Don't use installbsd from OSF since it installs stuff as root
1387     # by default.
1388     for ac_prog in ginstall scoinst install; do
1389       for ac_exec_ext in '' $ac_executable_extensions; do
1390         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1391           if test $ac_prog = install &&
1392             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1393             # AIX install.  It has an incompatible calling convention.
1394             :
1395           elif test $ac_prog = install &&
1396             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1397             # program-specific install script used by HP pwplus--don't use.
1398             :
1399           else
1400             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1401             break 3
1402           fi
1403         fi
1404       done
1405     done
1406     ;;
1407 esac
1408 done
1409
1410
1411 fi
1412   if test "${ac_cv_path_install+set}" = set; then
1413     INSTALL=$ac_cv_path_install
1414   else
1415     # As a last resort, use the slow shell script.  We don't cache a
1416     # path for INSTALL within a source directory, because that will
1417     # break other packages using the cache if that directory is
1418     # removed, or if the path is relative.
1419     INSTALL=$ac_install_sh
1420   fi
1421 fi
1422 echo "$as_me:$LINENO: result: $INSTALL" >&5
1423 echo "${ECHO_T}$INSTALL" >&6
1424
1425 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1426 # It thinks the first close brace ends the variable substitution.
1427 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1428
1429 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1430
1431 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1432
1433 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1434 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1435 # Just in case
1436 sleep 1
1437 echo timestamp > conftest.file
1438 # Do `set' in a subshell so we don't clobber the current shell's
1439 # arguments.  Must try -L first in case configure is actually a
1440 # symlink; some systems play weird games with the mod time of symlinks
1441 # (eg FreeBSD returns the mod time of the symlink's containing
1442 # directory).
1443 if (
1444    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1445    if test "$*" = "X"; then
1446       # -L didn't work.
1447       set X `ls -t $srcdir/configure conftest.file`
1448    fi
1449    rm -f conftest.file
1450    if test "$*" != "X $srcdir/configure conftest.file" \
1451       && test "$*" != "X conftest.file $srcdir/configure"; then
1452
1453       # If neither matched, then we have a broken ls.  This can happen
1454       # if, for instance, CONFIG_SHELL is bash and it inherits a
1455       # broken ls alias from the environment.  This has actually
1456       # happened.  Such a system could not be considered "sane".
1457       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1458 alias in your environment" >&5
1459 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1460 alias in your environment" >&2;}
1461    { (exit 1); exit 1; }; }
1462    fi
1463
1464    test "$2" = conftest.file
1465    )
1466 then
1467    # Ok.
1468    :
1469 else
1470    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1471 Check your system clock" >&5
1472 echo "$as_me: error: newly created file is older than distributed files!
1473 Check your system clock" >&2;}
1474    { (exit 1); exit 1; }; }
1475 fi
1476 echo "$as_me:$LINENO: result: yes" >&5
1477 echo "${ECHO_T}yes" >&6
1478 test "$program_prefix" != NONE &&
1479   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1480 # Use a double $ so make ignores it.
1481 test "$program_suffix" != NONE &&
1482   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1483 # Double any \ or $.  echo might interpret backslashes.
1484 # By default was `s,x,x', remove it if useless.
1485 cat <<\_ACEOF >conftest.sed
1486 s/[\\$]/&&/g;s/;s,x,x,$//
1487 _ACEOF
1488 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1489 rm conftest.sed
1490
1491
1492 # expand $ac_aux_dir to an absolute path
1493 am_aux_dir=`cd $ac_aux_dir && pwd`
1494
1495 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1496 # Use eval to expand $SHELL
1497 if eval "$MISSING --run true"; then
1498   am_missing_run="$MISSING --run "
1499 else
1500   am_missing_run=
1501   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1502 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1503 fi
1504
1505 for ac_prog in gawk mawk nawk awk
1506 do
1507   # Extract the first word of "$ac_prog", so it can be a program name with args.
1508 set dummy $ac_prog; ac_word=$2
1509 echo "$as_me:$LINENO: checking for $ac_word" >&5
1510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511 if test "${ac_cv_prog_AWK+set}" = set; then
1512   echo $ECHO_N "(cached) $ECHO_C" >&6
1513 else
1514   if test -n "$AWK"; then
1515   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1516 else
1517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518 for as_dir in $PATH
1519 do
1520   IFS=$as_save_IFS
1521   test -z "$as_dir" && as_dir=.
1522   for ac_exec_ext in '' $ac_executable_extensions; do
1523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524     ac_cv_prog_AWK="$ac_prog"
1525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526     break 2
1527   fi
1528 done
1529 done
1530
1531 fi
1532 fi
1533 AWK=$ac_cv_prog_AWK
1534 if test -n "$AWK"; then
1535   echo "$as_me:$LINENO: result: $AWK" >&5
1536 echo "${ECHO_T}$AWK" >&6
1537 else
1538   echo "$as_me:$LINENO: result: no" >&5
1539 echo "${ECHO_T}no" >&6
1540 fi
1541
1542   test -n "$AWK" && break
1543 done
1544
1545 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1546 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1547 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1548 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1549   echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551   cat >conftest.make <<\_ACEOF
1552 all:
1553         @echo 'ac_maketemp="$(MAKE)"'
1554 _ACEOF
1555 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1556 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1557 if test -n "$ac_maketemp"; then
1558   eval ac_cv_prog_make_${ac_make}_set=yes
1559 else
1560   eval ac_cv_prog_make_${ac_make}_set=no
1561 fi
1562 rm -f conftest.make
1563 fi
1564 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1565   echo "$as_me:$LINENO: result: yes" >&5
1566 echo "${ECHO_T}yes" >&6
1567   SET_MAKE=
1568 else
1569   echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1571   SET_MAKE="MAKE=${MAKE-make}"
1572 fi
1573
1574 rm -rf .tst 2>/dev/null
1575 mkdir .tst 2>/dev/null
1576 if test -d .tst; then
1577   am__leading_dot=.
1578 else
1579   am__leading_dot=_
1580 fi
1581 rmdir .tst 2>/dev/null
1582
1583  # test to see if srcdir already configured
1584 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1585    test -f $srcdir/config.status; then
1586   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1587 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1588    { (exit 1); exit 1; }; }
1589 fi
1590
1591 # test whether we have cygpath
1592 if test -z "$CYGPATH_W"; then
1593   if (cygpath --version) >/dev/null 2>/dev/null; then
1594     CYGPATH_W='cygpath -w'
1595   else
1596     CYGPATH_W=echo
1597   fi
1598 fi
1599
1600
1601 # Define the identity of the package.
1602  PACKAGE=ctsim
1603  VERSION=4.3.1
1604
1605
1606 cat >>confdefs.h <<_ACEOF
1607 #define PACKAGE "$PACKAGE"
1608 _ACEOF
1609
1610
1611 cat >>confdefs.h <<_ACEOF
1612 #define VERSION "$VERSION"
1613 _ACEOF
1614
1615 # Some tools Automake needs.
1616
1617 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1618
1619
1620 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1621
1622
1623 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1624
1625
1626 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1627
1628
1629 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1630
1631
1632 AMTAR=${AMTAR-"${am_missing_run}tar"}
1633
1634 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1635
1636 # Installed binaries are usually stripped using `strip' when the user
1637 # run `make install-strip'.  However `strip' might not be the right
1638 # tool to use in cross-compilation environments, therefore Automake
1639 # will honor the `STRIP' environment variable to overrule this program.
1640 if test "$cross_compiling" != no; then
1641   if test -n "$ac_tool_prefix"; then
1642   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1643 set dummy ${ac_tool_prefix}strip; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_STRIP+set}" = set; then
1647   echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649   if test -n "$STRIP"; then
1650   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1651 else
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 for as_dir in $PATH
1654 do
1655   IFS=$as_save_IFS
1656   test -z "$as_dir" && as_dir=.
1657   for ac_exec_ext in '' $ac_executable_extensions; do
1658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661     break 2
1662   fi
1663 done
1664 done
1665
1666 fi
1667 fi
1668 STRIP=$ac_cv_prog_STRIP
1669 if test -n "$STRIP"; then
1670   echo "$as_me:$LINENO: result: $STRIP" >&5
1671 echo "${ECHO_T}$STRIP" >&6
1672 else
1673   echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1675 fi
1676
1677 fi
1678 if test -z "$ac_cv_prog_STRIP"; then
1679   ac_ct_STRIP=$STRIP
1680   # Extract the first word of "strip", so it can be a program name with args.
1681 set dummy strip; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1685   echo $ECHO_N "(cached) $ECHO_C" >&6
1686 else
1687   if test -n "$ac_ct_STRIP"; then
1688   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1689 else
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 for as_dir in $PATH
1692 do
1693   IFS=$as_save_IFS
1694   test -z "$as_dir" && as_dir=.
1695   for ac_exec_ext in '' $ac_executable_extensions; do
1696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697     ac_cv_prog_ac_ct_STRIP="strip"
1698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699     break 2
1700   fi
1701 done
1702 done
1703
1704   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1705 fi
1706 fi
1707 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1708 if test -n "$ac_ct_STRIP"; then
1709   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1710 echo "${ECHO_T}$ac_ct_STRIP" >&6
1711 else
1712   echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1714 fi
1715
1716   STRIP=$ac_ct_STRIP
1717 else
1718   STRIP="$ac_cv_prog_STRIP"
1719 fi
1720
1721 fi
1722 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1723
1724 # We need awk for the "check" target.  The system "awk" is bad on
1725 # some platforms.
1726
1727
1728
1729           ac_config_headers="$ac_config_headers config.h"
1730
1731
1732 for ac_prog in gawk mawk nawk awk
1733 do
1734   # Extract the first word of "$ac_prog", so it can be a program name with args.
1735 set dummy $ac_prog; ac_word=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_AWK+set}" = set; then
1739   echo $ECHO_N "(cached) $ECHO_C" >&6
1740 else
1741   if test -n "$AWK"; then
1742   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1743 else
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745 for as_dir in $PATH
1746 do
1747   IFS=$as_save_IFS
1748   test -z "$as_dir" && as_dir=.
1749   for ac_exec_ext in '' $ac_executable_extensions; do
1750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751     ac_cv_prog_AWK="$ac_prog"
1752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753     break 2
1754   fi
1755 done
1756 done
1757
1758 fi
1759 fi
1760 AWK=$ac_cv_prog_AWK
1761 if test -n "$AWK"; then
1762   echo "$as_me:$LINENO: result: $AWK" >&5
1763 echo "${ECHO_T}$AWK" >&6
1764 else
1765   echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1767 fi
1768
1769   test -n "$AWK" && break
1770 done
1771
1772 # Find a good install program.  We prefer a C program (faster),
1773 # so one script is as good as another.  But avoid the broken or
1774 # incompatible versions:
1775 # SysV /etc/install, /usr/sbin/install
1776 # SunOS /usr/etc/install
1777 # IRIX /sbin/install
1778 # AIX /bin/install
1779 # AmigaOS /C/install, which installs bootblocks on floppy discs
1780 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1781 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1782 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1783 # ./install, which can be erroneously created by make from ./install.sh.
1784 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1785 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1786 if test -z "$INSTALL"; then
1787 if test "${ac_cv_path_install+set}" = set; then
1788   echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791 for as_dir in $PATH
1792 do
1793   IFS=$as_save_IFS
1794   test -z "$as_dir" && as_dir=.
1795   # Account for people who put trailing slashes in PATH elements.
1796 case $as_dir/ in
1797   ./ | .// | /cC/* | \
1798   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1799   /usr/ucb/* ) ;;
1800   *)
1801     # OSF1 and SCO ODT 3.0 have their own names for install.
1802     # Don't use installbsd from OSF since it installs stuff as root
1803     # by default.
1804     for ac_prog in ginstall scoinst install; do
1805       for ac_exec_ext in '' $ac_executable_extensions; do
1806         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1807           if test $ac_prog = install &&
1808             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1809             # AIX install.  It has an incompatible calling convention.
1810             :
1811           elif test $ac_prog = install &&
1812             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1813             # program-specific install script used by HP pwplus--don't use.
1814             :
1815           else
1816             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1817             break 3
1818           fi
1819         fi
1820       done
1821     done
1822     ;;
1823 esac
1824 done
1825
1826
1827 fi
1828   if test "${ac_cv_path_install+set}" = set; then
1829     INSTALL=$ac_cv_path_install
1830   else
1831     # As a last resort, use the slow shell script.  We don't cache a
1832     # path for INSTALL within a source directory, because that will
1833     # break other packages using the cache if that directory is
1834     # removed, or if the path is relative.
1835     INSTALL=$ac_install_sh
1836   fi
1837 fi
1838 echo "$as_me:$LINENO: result: $INSTALL" >&5
1839 echo "${ECHO_T}$INSTALL" >&6
1840
1841 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1842 # It thinks the first close brace ends the variable substitution.
1843 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1844
1845 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1846
1847 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1848
1849 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1850 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1851 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1852 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1853   echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855   cat >conftest.make <<\_ACEOF
1856 all:
1857         @echo 'ac_maketemp="$(MAKE)"'
1858 _ACEOF
1859 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1860 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1861 if test -n "$ac_maketemp"; then
1862   eval ac_cv_prog_make_${ac_make}_set=yes
1863 else
1864   eval ac_cv_prog_make_${ac_make}_set=no
1865 fi
1866 rm -f conftest.make
1867 fi
1868 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1869   echo "$as_me:$LINENO: result: yes" >&5
1870 echo "${ECHO_T}yes" >&6
1871   SET_MAKE=
1872 else
1873   echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1875   SET_MAKE="MAKE=${MAKE-make}"
1876 fi
1877
1878 if test -n "$ac_tool_prefix"; then
1879   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1880 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_RANLIB+set}" = set; then
1884   echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886   if test -n "$RANLIB"; then
1887   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1888 else
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1891 do
1892   IFS=$as_save_IFS
1893   test -z "$as_dir" && as_dir=.
1894   for ac_exec_ext in '' $ac_executable_extensions; do
1895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898     break 2
1899   fi
1900 done
1901 done
1902
1903 fi
1904 fi
1905 RANLIB=$ac_cv_prog_RANLIB
1906 if test -n "$RANLIB"; then
1907   echo "$as_me:$LINENO: result: $RANLIB" >&5
1908 echo "${ECHO_T}$RANLIB" >&6
1909 else
1910   echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1912 fi
1913
1914 fi
1915 if test -z "$ac_cv_prog_RANLIB"; then
1916   ac_ct_RANLIB=$RANLIB
1917   # Extract the first word of "ranlib", so it can be a program name with args.
1918 set dummy ranlib; ac_word=$2
1919 echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1922   echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924   if test -n "$ac_ct_RANLIB"; then
1925   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1926 else
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH
1929 do
1930   IFS=$as_save_IFS
1931   test -z "$as_dir" && as_dir=.
1932   for ac_exec_ext in '' $ac_executable_extensions; do
1933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934     ac_cv_prog_ac_ct_RANLIB="ranlib"
1935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936     break 2
1937   fi
1938 done
1939 done
1940
1941   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1942 fi
1943 fi
1944 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1945 if test -n "$ac_ct_RANLIB"; then
1946   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1947 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1948 else
1949   echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1951 fi
1952
1953   RANLIB=$ac_ct_RANLIB
1954 else
1955   RANLIB="$ac_cv_prog_RANLIB"
1956 fi
1957
1958
1959 ac_ext=c
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964 if test -n "$ac_tool_prefix"; then
1965   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1966 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_CC+set}" = set; then
1970   echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972   if test -n "$CC"; then
1973   ac_cv_prog_CC="$CC" # Let the user override the test.
1974 else
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1977 do
1978   IFS=$as_save_IFS
1979   test -z "$as_dir" && as_dir=.
1980   for ac_exec_ext in '' $ac_executable_extensions; do
1981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984     break 2
1985   fi
1986 done
1987 done
1988
1989 fi
1990 fi
1991 CC=$ac_cv_prog_CC
1992 if test -n "$CC"; then
1993   echo "$as_me:$LINENO: result: $CC" >&5
1994 echo "${ECHO_T}$CC" >&6
1995 else
1996   echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
1998 fi
1999
2000 fi
2001 if test -z "$ac_cv_prog_CC"; then
2002   ac_ct_CC=$CC
2003   # Extract the first word of "gcc", so it can be a program name with args.
2004 set dummy gcc; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   if test -n "$ac_ct_CC"; then
2011   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   for ac_exec_ext in '' $ac_executable_extensions; do
2019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020     ac_cv_prog_ac_ct_CC="gcc"
2021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022     break 2
2023   fi
2024 done
2025 done
2026
2027 fi
2028 fi
2029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2030 if test -n "$ac_ct_CC"; then
2031   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2032 echo "${ECHO_T}$ac_ct_CC" >&6
2033 else
2034   echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2036 fi
2037
2038   CC=$ac_ct_CC
2039 else
2040   CC="$ac_cv_prog_CC"
2041 fi
2042
2043 if test -z "$CC"; then
2044   if test -n "$ac_tool_prefix"; then
2045   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2046 set dummy ${ac_tool_prefix}cc; ac_word=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_CC+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   if test -n "$CC"; then
2053   ac_cv_prog_CC="$CC" # Let the user override the test.
2054 else
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060   for ac_exec_ext in '' $ac_executable_extensions; do
2061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062     ac_cv_prog_CC="${ac_tool_prefix}cc"
2063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064     break 2
2065   fi
2066 done
2067 done
2068
2069 fi
2070 fi
2071 CC=$ac_cv_prog_CC
2072 if test -n "$CC"; then
2073   echo "$as_me:$LINENO: result: $CC" >&5
2074 echo "${ECHO_T}$CC" >&6
2075 else
2076   echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2078 fi
2079
2080 fi
2081 if test -z "$ac_cv_prog_CC"; then
2082   ac_ct_CC=$CC
2083   # Extract the first word of "cc", so it can be a program name with args.
2084 set dummy cc; ac_word=$2
2085 echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2088   echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090   if test -n "$ac_ct_CC"; then
2091   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2092 else
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2095 do
2096   IFS=$as_save_IFS
2097   test -z "$as_dir" && as_dir=.
2098   for ac_exec_ext in '' $ac_executable_extensions; do
2099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100     ac_cv_prog_ac_ct_CC="cc"
2101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102     break 2
2103   fi
2104 done
2105 done
2106
2107 fi
2108 fi
2109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2110 if test -n "$ac_ct_CC"; then
2111   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2112 echo "${ECHO_T}$ac_ct_CC" >&6
2113 else
2114   echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6
2116 fi
2117
2118   CC=$ac_ct_CC
2119 else
2120   CC="$ac_cv_prog_CC"
2121 fi
2122
2123 fi
2124 if test -z "$CC"; then
2125   # Extract the first word of "cc", so it can be a program name with args.
2126 set dummy cc; ac_word=$2
2127 echo "$as_me:$LINENO: checking for $ac_word" >&5
2128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2129 if test "${ac_cv_prog_CC+set}" = set; then
2130   echo $ECHO_N "(cached) $ECHO_C" >&6
2131 else
2132   if test -n "$CC"; then
2133   ac_cv_prog_CC="$CC" # Let the user override the test.
2134 else
2135   ac_prog_rejected=no
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139   IFS=$as_save_IFS
2140   test -z "$as_dir" && as_dir=.
2141   for ac_exec_ext in '' $ac_executable_extensions; do
2142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2144        ac_prog_rejected=yes
2145        continue
2146      fi
2147     ac_cv_prog_CC="cc"
2148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149     break 2
2150   fi
2151 done
2152 done
2153
2154 if test $ac_prog_rejected = yes; then
2155   # We found a bogon in the path, so make sure we never use it.
2156   set dummy $ac_cv_prog_CC
2157   shift
2158   if test $# != 0; then
2159     # We chose a different compiler from the bogus one.
2160     # However, it has the same basename, so the bogon will be chosen
2161     # first if we set CC to just the basename; use the full file name.
2162     shift
2163     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2164   fi
2165 fi
2166 fi
2167 fi
2168 CC=$ac_cv_prog_CC
2169 if test -n "$CC"; then
2170   echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6
2172 else
2173   echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6
2175 fi
2176
2177 fi
2178 if test -z "$CC"; then
2179   if test -n "$ac_tool_prefix"; then
2180   for ac_prog in cl
2181   do
2182     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2184 echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186 if test "${ac_cv_prog_CC+set}" = set; then
2187   echo $ECHO_N "(cached) $ECHO_C" >&6
2188 else
2189   if test -n "$CC"; then
2190   ac_cv_prog_CC="$CC" # Let the user override the test.
2191 else
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2194 do
2195   IFS=$as_save_IFS
2196   test -z "$as_dir" && as_dir=.
2197   for ac_exec_ext in '' $ac_executable_extensions; do
2198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201     break 2
2202   fi
2203 done
2204 done
2205
2206 fi
2207 fi
2208 CC=$ac_cv_prog_CC
2209 if test -n "$CC"; then
2210   echo "$as_me:$LINENO: result: $CC" >&5
2211 echo "${ECHO_T}$CC" >&6
2212 else
2213   echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2215 fi
2216
2217     test -n "$CC" && break
2218   done
2219 fi
2220 if test -z "$CC"; then
2221   ac_ct_CC=$CC
2222   for ac_prog in cl
2223 do
2224   # Extract the first word of "$ac_prog", so it can be a program name with args.
2225 set dummy $ac_prog; ac_word=$2
2226 echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   if test -n "$ac_ct_CC"; then
2232   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2236 do
2237   IFS=$as_save_IFS
2238   test -z "$as_dir" && as_dir=.
2239   for ac_exec_ext in '' $ac_executable_extensions; do
2240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241     ac_cv_prog_ac_ct_CC="$ac_prog"
2242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243     break 2
2244   fi
2245 done
2246 done
2247
2248 fi
2249 fi
2250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2251 if test -n "$ac_ct_CC"; then
2252   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2253 echo "${ECHO_T}$ac_ct_CC" >&6
2254 else
2255   echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6
2257 fi
2258
2259   test -n "$ac_ct_CC" && break
2260 done
2261
2262   CC=$ac_ct_CC
2263 fi
2264
2265 fi
2266
2267
2268 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: no acceptable C compiler found in \$PATH
2271 See \`config.log' for more details." >&2;}
2272    { (exit 1); exit 1; }; }
2273
2274 # Provide some information about the compiler.
2275 echo "$as_me:$LINENO:" \
2276      "checking for C compiler version" >&5
2277 ac_compiler=`set X $ac_compile; echo $2`
2278 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2279   (eval $ac_compiler --version </dev/null >&5) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }
2283 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2284   (eval $ac_compiler -v </dev/null >&5) 2>&5
2285   ac_status=$?
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); }
2288 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2289   (eval $ac_compiler -V </dev/null >&5) 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); }
2293
2294 cat >conftest.$ac_ext <<_ACEOF
2295 #line $LINENO "configure"
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301
2302 int
2303 main ()
2304 {
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 ac_clean_files_save=$ac_clean_files
2311 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312 # Try to create an executable without -o first, disregard a.out.
2313 # It will help us diagnose broken compilers, and finding out an intuition
2314 # of exeext.
2315 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2316 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2317 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2319   (eval $ac_link_default) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; then
2323   # Find the output, starting from the most likely.  This scheme is
2324 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2325 # resort.
2326
2327 # Be careful to initialize this variable, since it used to be cached.
2328 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2329 ac_cv_exeext=
2330 # b.out is created by i960 compilers.
2331 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2332 do
2333   test -f "$ac_file" || continue
2334   case $ac_file in
2335     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2336         ;;
2337     conftest.$ac_ext )
2338         # This is the source file.
2339         ;;
2340     [ab].out )
2341         # We found the default executable, but exeext='' is most
2342         # certainly right.
2343         break;;
2344     *.* )
2345         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2346         # FIXME: I believe we export ac_cv_exeext for Libtool,
2347         # but it would be cool to find out if it's true.  Does anybody
2348         # maintain Libtool? --akim.
2349         export ac_cv_exeext
2350         break;;
2351     * )
2352         break;;
2353   esac
2354 done
2355 else
2356   echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2358
2359 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: C compiler cannot create executables
2362 See \`config.log' for more details." >&2;}
2363    { (exit 77); exit 77; }; }
2364 fi
2365
2366 ac_exeext=$ac_cv_exeext
2367 echo "$as_me:$LINENO: result: $ac_file" >&5
2368 echo "${ECHO_T}$ac_file" >&6
2369
2370 # Check the compiler produces executables we can run.  If not, either
2371 # the compiler is broken, or we cross compile.
2372 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2373 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2374 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2375 # If not cross compiling, check that we can run a simple program.
2376 if test "$cross_compiling" != yes; then
2377   if { ac_try='./$ac_file'
2378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379   (eval $ac_try) 2>&5
2380   ac_status=$?
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); }; }; then
2383     cross_compiling=no
2384   else
2385     if test "$cross_compiling" = maybe; then
2386         cross_compiling=yes
2387     else
2388         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2389 If you meant to cross compile, use \`--host'.
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot run C compiled programs.
2392 If you meant to cross compile, use \`--host'.
2393 See \`config.log' for more details." >&2;}
2394    { (exit 1); exit 1; }; }
2395     fi
2396   fi
2397 fi
2398 echo "$as_me:$LINENO: result: yes" >&5
2399 echo "${ECHO_T}yes" >&6
2400
2401 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2402 ac_clean_files=$ac_clean_files_save
2403 # Check the compiler produces executables we can run.  If not, either
2404 # the compiler is broken, or we cross compile.
2405 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2406 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2407 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2408 echo "${ECHO_T}$cross_compiling" >&6
2409
2410 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2411 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2413   (eval $ac_link) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }; then
2417   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2418 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2419 # work properly (i.e., refer to `conftest.exe'), while it won't with
2420 # `rm'.
2421 for ac_file in conftest.exe conftest conftest.*; do
2422   test -f "$ac_file" || continue
2423   case $ac_file in
2424     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2425     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2426           export ac_cv_exeext
2427           break;;
2428     * ) break;;
2429   esac
2430 done
2431 else
2432   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2435 See \`config.log' for more details." >&2;}
2436    { (exit 1); exit 1; }; }
2437 fi
2438
2439 rm -f conftest$ac_cv_exeext
2440 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2441 echo "${ECHO_T}$ac_cv_exeext" >&6
2442
2443 rm -f conftest.$ac_ext
2444 EXEEXT=$ac_cv_exeext
2445 ac_exeext=$EXEEXT
2446 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2447 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2448 if test "${ac_cv_objext+set}" = set; then
2449   echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451   cat >conftest.$ac_ext <<_ACEOF
2452 #line $LINENO "configure"
2453 /* confdefs.h.  */
2454 _ACEOF
2455 cat confdefs.h >>conftest.$ac_ext
2456 cat >>conftest.$ac_ext <<_ACEOF
2457 /* end confdefs.h.  */
2458
2459 int
2460 main ()
2461 {
2462
2463   ;
2464   return 0;
2465 }
2466 _ACEOF
2467 rm -f conftest.o conftest.obj
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469   (eval $ac_compile) 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); }; then
2473   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2474   case $ac_file in
2475     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2476     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2477        break;;
2478   esac
2479 done
2480 else
2481   echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2483
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2487 See \`config.log' for more details." >&2;}
2488    { (exit 1); exit 1; }; }
2489 fi
2490
2491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2492 fi
2493 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2494 echo "${ECHO_T}$ac_cv_objext" >&6
2495 OBJEXT=$ac_cv_objext
2496 ac_objext=$OBJEXT
2497 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2498 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   cat >conftest.$ac_ext <<_ACEOF
2503 #line $LINENO "configure"
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509
2510 int
2511 main ()
2512 {
2513 #ifndef __GNUC__
2514        choke me
2515 #endif
2516
2517   ;
2518   return 0;
2519 }
2520 _ACEOF
2521 rm -f conftest.$ac_objext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523   (eval $ac_compile) 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); } &&
2527          { ac_try='test -s conftest.$ac_objext'
2528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529   (eval $ac_try) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); }; }; then
2533   ac_compiler_gnu=yes
2534 else
2535   echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2537
2538 ac_compiler_gnu=no
2539 fi
2540 rm -f conftest.$ac_objext conftest.$ac_ext
2541 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2542
2543 fi
2544 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2545 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2546 GCC=`test $ac_compiler_gnu = yes && echo yes`
2547 ac_test_CFLAGS=${CFLAGS+set}
2548 ac_save_CFLAGS=$CFLAGS
2549 CFLAGS="-g"
2550 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2551 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2552 if test "${ac_cv_prog_cc_g+set}" = set; then
2553   echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555   cat >conftest.$ac_ext <<_ACEOF
2556 #line $LINENO "configure"
2557 /* confdefs.h.  */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h.  */
2562
2563 int
2564 main ()
2565 {
2566
2567   ;
2568   return 0;
2569 }
2570 _ACEOF
2571 rm -f conftest.$ac_objext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573   (eval $ac_compile) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); } &&
2577          { ac_try='test -s conftest.$ac_objext'
2578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579   (eval $ac_try) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; }; then
2583   ac_cv_prog_cc_g=yes
2584 else
2585   echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2587
2588 ac_cv_prog_cc_g=no
2589 fi
2590 rm -f conftest.$ac_objext conftest.$ac_ext
2591 fi
2592 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2594 if test "$ac_test_CFLAGS" = set; then
2595   CFLAGS=$ac_save_CFLAGS
2596 elif test $ac_cv_prog_cc_g = yes; then
2597   if test "$GCC" = yes; then
2598     CFLAGS="-g -O2"
2599   else
2600     CFLAGS="-g"
2601   fi
2602 else
2603   if test "$GCC" = yes; then
2604     CFLAGS="-O2"
2605   else
2606     CFLAGS=
2607   fi
2608 fi
2609 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2610 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2611 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2612   echo $ECHO_N "(cached) $ECHO_C" >&6
2613 else
2614   ac_cv_prog_cc_stdc=no
2615 ac_save_CC=$CC
2616 cat >conftest.$ac_ext <<_ACEOF
2617 #line $LINENO "configure"
2618 /* confdefs.h.  */
2619 _ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h.  */
2623 #include <stdarg.h>
2624 #include <stdio.h>
2625 #include <sys/types.h>
2626 #include <sys/stat.h>
2627 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2628 struct buf { int x; };
2629 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2630 static char *e (p, i)
2631      char **p;
2632      int i;
2633 {
2634   return p[i];
2635 }
2636 static char *f (char * (*g) (char **, int), char **p, ...)
2637 {
2638   char *s;
2639   va_list v;
2640   va_start (v,p);
2641   s = g (p, va_arg (v,int));
2642   va_end (v);
2643   return s;
2644 }
2645 int test (int i, double x);
2646 struct s1 {int (*f) (int a);};
2647 struct s2 {int (*f) (double a);};
2648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2649 int argc;
2650 char **argv;
2651 int
2652 main ()
2653 {
2654 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2655   ;
2656   return 0;
2657 }
2658 _ACEOF
2659 # Don't try gcc -ansi; that turns off useful extensions and
2660 # breaks some systems' header files.
2661 # AIX                   -qlanglvl=ansi
2662 # Ultrix and OSF/1      -std1
2663 # HP-UX 10.20 and later -Ae
2664 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2665 # SVR4                  -Xc -D__EXTENSIONS__
2666 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2667 do
2668   CC="$ac_save_CC $ac_arg"
2669   rm -f conftest.$ac_objext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671   (eval $ac_compile) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); } &&
2675          { ac_try='test -s conftest.$ac_objext'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; }; then
2681   ac_cv_prog_cc_stdc=$ac_arg
2682 break
2683 else
2684   echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2686
2687 fi
2688 rm -f conftest.$ac_objext
2689 done
2690 rm -f conftest.$ac_ext conftest.$ac_objext
2691 CC=$ac_save_CC
2692
2693 fi
2694
2695 case "x$ac_cv_prog_cc_stdc" in
2696   x|xno)
2697     echo "$as_me:$LINENO: result: none needed" >&5
2698 echo "${ECHO_T}none needed" >&6 ;;
2699   *)
2700     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2701 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2702     CC="$CC $ac_cv_prog_cc_stdc" ;;
2703 esac
2704
2705 # Some people use a C++ compiler to compile C.  Since we use `exit',
2706 # in C++ we need to declare it.  In case someone uses the same compiler
2707 # for both compiling C and C++ we need to have the C++ compiler decide
2708 # the declaration of exit, since it's the most demanding environment.
2709 cat >conftest.$ac_ext <<_ACEOF
2710 #ifndef __cplusplus
2711   choke me
2712 #endif
2713 _ACEOF
2714 rm -f conftest.$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716   (eval $ac_compile) 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); } &&
2720          { ac_try='test -s conftest.$ac_objext'
2721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722   (eval $ac_try) 2>&5
2723   ac_status=$?
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); }; }; then
2726   for ac_declaration in \
2727    ''\
2728    '#include <stdlib.h>' \
2729    'extern "C" void std::exit (int) throw (); using std::exit;' \
2730    'extern "C" void std::exit (int); using std::exit;' \
2731    'extern "C" void exit (int) throw ();' \
2732    'extern "C" void exit (int);' \
2733    'void exit (int);'
2734 do
2735   cat >conftest.$ac_ext <<_ACEOF
2736 #line $LINENO "configure"
2737 /* confdefs.h.  */
2738 _ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h.  */
2742 #include <stdlib.h>
2743 $ac_declaration
2744 int
2745 main ()
2746 {
2747 exit (42);
2748   ;
2749   return 0;
2750 }
2751 _ACEOF
2752 rm -f conftest.$ac_objext
2753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2754   (eval $ac_compile) 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); } &&
2758          { ac_try='test -s conftest.$ac_objext'
2759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760   (eval $ac_try) 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); }; }; then
2764   :
2765 else
2766   echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2768
2769 continue
2770 fi
2771 rm -f conftest.$ac_objext conftest.$ac_ext
2772   cat >conftest.$ac_ext <<_ACEOF
2773 #line $LINENO "configure"
2774 /* confdefs.h.  */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h.  */
2779 $ac_declaration
2780 int
2781 main ()
2782 {
2783 exit (42);
2784   ;
2785   return 0;
2786 }
2787 _ACEOF
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790   (eval $ac_compile) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); } &&
2794          { ac_try='test -s conftest.$ac_objext'
2795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796   (eval $ac_try) 2>&5
2797   ac_status=$?
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); }; }; then
2800   break
2801 else
2802   echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2804
2805 fi
2806 rm -f conftest.$ac_objext conftest.$ac_ext
2807 done
2808 rm -f conftest*
2809 if test -n "$ac_declaration"; then
2810   echo '#ifdef __cplusplus' >>confdefs.h
2811   echo $ac_declaration      >>confdefs.h
2812   echo '#endif'             >>confdefs.h
2813 fi
2814
2815 else
2816   echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2818
2819 fi
2820 rm -f conftest.$ac_objext conftest.$ac_ext
2821 ac_ext=c
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826 DEPDIR="${am__leading_dot}deps"
2827
2828           ac_config_commands="$ac_config_commands depfiles"
2829
2830
2831 am_make=${MAKE-make}
2832 cat > confinc << 'END'
2833 am__doit:
2834         @echo done
2835 .PHONY: am__doit
2836 END
2837 # If we don't find an include directive, just comment out the code.
2838 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2839 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2840 am__include="#"
2841 am__quote=
2842 _am_result=none
2843 # First try GNU make style include.
2844 echo "include confinc" > confmf
2845 # We grep out `Entering directory' and `Leaving directory'
2846 # messages which can occur if `w' ends up in MAKEFLAGS.
2847 # In particular we don't look at `^make:' because GNU make might
2848 # be invoked under some other name (usually "gmake"), in which
2849 # case it prints its new name instead of `make'.
2850 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2851    am__include=include
2852    am__quote=
2853    _am_result=GNU
2854 fi
2855 # Now try BSD make style include.
2856 if test "$am__include" = "#"; then
2857    echo '.include "confinc"' > confmf
2858    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2859       am__include=.include
2860       am__quote="\""
2861       _am_result=BSD
2862    fi
2863 fi
2864
2865
2866 echo "$as_me:$LINENO: result: $_am_result" >&5
2867 echo "${ECHO_T}$_am_result" >&6
2868 rm -f confinc confmf
2869
2870 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2871 if test "${enable_dependency_tracking+set}" = set; then
2872   enableval="$enable_dependency_tracking"
2873
2874 fi;
2875 if test "x$enable_dependency_tracking" != xno; then
2876   am_depcomp="$ac_aux_dir/depcomp"
2877   AMDEPBACKSLASH='\'
2878 fi
2879
2880
2881 if test "x$enable_dependency_tracking" != xno; then
2882   AMDEP_TRUE=
2883   AMDEP_FALSE='#'
2884 else
2885   AMDEP_TRUE='#'
2886   AMDEP_FALSE=
2887 fi
2888
2889
2890
2891
2892 depcc="$CC"   am_compiler_list=
2893
2894 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2895 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2896 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2897   echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2900   # We make a subdir and do the tests there.  Otherwise we can end up
2901   # making bogus files that we don't know about and never remove.  For
2902   # instance it was reported that on HP-UX the gcc test will end up
2903   # making a dummy file named `D' -- because `-MD' means `put the output
2904   # in D'.
2905   mkdir conftest.dir
2906   # Copy depcomp to subdir because otherwise we won't find it if we're
2907   # using a relative directory.
2908   cp "$am_depcomp" conftest.dir
2909   cd conftest.dir
2910   # We will build objects and dependencies in a subdirectory because
2911   # it helps to detect inapplicable dependency modes.  For instance
2912   # both Tru64's cc and ICC support -MD to output dependencies as a
2913   # side effect of compilation, but ICC will put the dependencies in
2914   # the current directory while Tru64 will put them in the object
2915   # directory.
2916   mkdir sub
2917
2918   am_cv_CC_dependencies_compiler_type=none
2919   if test "$am_compiler_list" = ""; then
2920      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2921   fi
2922   for depmode in $am_compiler_list; do
2923     # Setup a source with many dependencies, because some compilers
2924     # like to wrap large dependency lists on column 80 (with \), and
2925     # we should not choose a depcomp mode which is confused by this.
2926     #
2927     # We need to recreate these files for each test, as the compiler may
2928     # overwrite some of them when testing with obscure command lines.
2929     # This happens at least with the AIX C compiler.
2930     : > sub/conftest.c
2931     for i in 1 2 3 4 5 6; do
2932       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2933       : > sub/conftst$i.h
2934     done
2935     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2936
2937     case $depmode in
2938     nosideeffect)
2939       # after this tag, mechanisms are not by side-effect, so they'll
2940       # only be used when explicitly requested
2941       if test "x$enable_dependency_tracking" = xyes; then
2942         continue
2943       else
2944         break
2945       fi
2946       ;;
2947     none) break ;;
2948     esac
2949     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2950     # mode.  It turns out that the SunPro C++ compiler does not properly
2951     # handle `-M -o', and we need to detect this.
2952     if depmode=$depmode \
2953        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2954        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2955        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2956          >/dev/null 2>conftest.err &&
2957        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2958        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2959        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2960       # icc doesn't choke on unknown options, it will just issue warnings
2961       # (even with -Werror).  So we grep stderr for any message
2962       # that says an option was ignored.
2963       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2964         am_cv_CC_dependencies_compiler_type=$depmode
2965         break
2966       fi
2967     fi
2968   done
2969
2970   cd ..
2971   rm -rf conftest.dir
2972 else
2973   am_cv_CC_dependencies_compiler_type=none
2974 fi
2975
2976 fi
2977 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2978 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2979 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2980
2981
2982
2983 if
2984   test "x$enable_dependency_tracking" != xno \
2985   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2986   am__fastdepCC_TRUE=
2987   am__fastdepCC_FALSE='#'
2988 else
2989   am__fastdepCC_TRUE='#'
2990   am__fastdepCC_FALSE=
2991 fi
2992
2993
2994 ac_ext=cc
2995 ac_cpp='$CXXCPP $CPPFLAGS'
2996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2999 if test -n "$ac_tool_prefix"; then
3000   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3001   do
3002     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3004 echo "$as_me:$LINENO: checking for $ac_word" >&5
3005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3006 if test "${ac_cv_prog_CXX+set}" = set; then
3007   echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009   if test -n "$CXX"; then
3010   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015   IFS=$as_save_IFS
3016   test -z "$as_dir" && as_dir=.
3017   for ac_exec_ext in '' $ac_executable_extensions; do
3018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3021     break 2
3022   fi
3023 done
3024 done
3025
3026 fi
3027 fi
3028 CXX=$ac_cv_prog_CXX
3029 if test -n "$CXX"; then
3030   echo "$as_me:$LINENO: result: $CXX" >&5
3031 echo "${ECHO_T}$CXX" >&6
3032 else
3033   echo "$as_me:$LINENO: result: no" >&5
3034 echo "${ECHO_T}no" >&6
3035 fi
3036
3037     test -n "$CXX" && break
3038   done
3039 fi
3040 if test -z "$CXX"; then
3041   ac_ct_CXX=$CXX
3042   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3043 do
3044   # Extract the first word of "$ac_prog", so it can be a program name with args.
3045 set dummy $ac_prog; ac_word=$2
3046 echo "$as_me:$LINENO: checking for $ac_word" >&5
3047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3048 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3049   echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051   if test -n "$ac_ct_CXX"; then
3052   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057   IFS=$as_save_IFS
3058   test -z "$as_dir" && as_dir=.
3059   for ac_exec_ext in '' $ac_executable_extensions; do
3060   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061     ac_cv_prog_ac_ct_CXX="$ac_prog"
3062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3063     break 2
3064   fi
3065 done
3066 done
3067
3068 fi
3069 fi
3070 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3071 if test -n "$ac_ct_CXX"; then
3072   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3073 echo "${ECHO_T}$ac_ct_CXX" >&6
3074 else
3075   echo "$as_me:$LINENO: result: no" >&5
3076 echo "${ECHO_T}no" >&6
3077 fi
3078
3079   test -n "$ac_ct_CXX" && break
3080 done
3081 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3082
3083   CXX=$ac_ct_CXX
3084 fi
3085
3086
3087 # Provide some information about the compiler.
3088 echo "$as_me:$LINENO:" \
3089      "checking for C++ compiler version" >&5
3090 ac_compiler=`set X $ac_compile; echo $2`
3091 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3092   (eval $ac_compiler --version </dev/null >&5) 2>&5
3093   ac_status=$?
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); }
3096 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3097   (eval $ac_compiler -v </dev/null >&5) 2>&5
3098   ac_status=$?
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); }
3101 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3102   (eval $ac_compiler -V </dev/null >&5) 2>&5
3103   ac_status=$?
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); }
3106
3107 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3108 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3109 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3110   echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112   cat >conftest.$ac_ext <<_ACEOF
3113 #line $LINENO "configure"
3114 /* confdefs.h.  */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h.  */
3119
3120 int
3121 main ()
3122 {
3123 #ifndef __GNUC__
3124        choke me
3125 #endif
3126
3127   ;
3128   return 0;
3129 }
3130 _ACEOF
3131 rm -f conftest.$ac_objext
3132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133   (eval $ac_compile) 2>&5
3134   ac_status=$?
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); } &&
3137          { ac_try='test -s conftest.$ac_objext'
3138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139   (eval $ac_try) 2>&5
3140   ac_status=$?
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); }; }; then
3143   ac_compiler_gnu=yes
3144 else
3145   echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3147
3148 ac_compiler_gnu=no
3149 fi
3150 rm -f conftest.$ac_objext conftest.$ac_ext
3151 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3152
3153 fi
3154 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3155 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3156 GXX=`test $ac_compiler_gnu = yes && echo yes`
3157 ac_test_CXXFLAGS=${CXXFLAGS+set}
3158 ac_save_CXXFLAGS=$CXXFLAGS
3159 CXXFLAGS="-g"
3160 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3161 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3162 if test "${ac_cv_prog_cxx_g+set}" = set; then
3163   echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165   cat >conftest.$ac_ext <<_ACEOF
3166 #line $LINENO "configure"
3167 /* confdefs.h.  */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h.  */
3172
3173 int
3174 main ()
3175 {
3176
3177   ;
3178   return 0;
3179 }
3180 _ACEOF
3181 rm -f conftest.$ac_objext
3182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3183   (eval $ac_compile) 2>&5
3184   ac_status=$?
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); } &&
3187          { ac_try='test -s conftest.$ac_objext'
3188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189   (eval $ac_try) 2>&5
3190   ac_status=$?
3191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192   (exit $ac_status); }; }; then
3193   ac_cv_prog_cxx_g=yes
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198 ac_cv_prog_cxx_g=no
3199 fi
3200 rm -f conftest.$ac_objext conftest.$ac_ext
3201 fi
3202 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3203 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3204 if test "$ac_test_CXXFLAGS" = set; then
3205   CXXFLAGS=$ac_save_CXXFLAGS
3206 elif test $ac_cv_prog_cxx_g = yes; then
3207   if test "$GXX" = yes; then
3208     CXXFLAGS="-g -O2"
3209   else
3210     CXXFLAGS="-g"
3211   fi
3212 else
3213   if test "$GXX" = yes; then
3214     CXXFLAGS="-O2"
3215   else
3216     CXXFLAGS=
3217   fi
3218 fi
3219 for ac_declaration in \
3220    ''\
3221    '#include <stdlib.h>' \
3222    'extern "C" void std::exit (int) throw (); using std::exit;' \
3223    'extern "C" void std::exit (int); using std::exit;' \
3224    'extern "C" void exit (int) throw ();' \
3225    'extern "C" void exit (int);' \
3226    'void exit (int);'
3227 do
3228   cat >conftest.$ac_ext <<_ACEOF
3229 #line $LINENO "configure"
3230 /* confdefs.h.  */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h.  */
3235 #include <stdlib.h>
3236 $ac_declaration
3237 int
3238 main ()
3239 {
3240 exit (42);
3241   ;
3242   return 0;
3243 }
3244 _ACEOF
3245 rm -f conftest.$ac_objext
3246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3247   (eval $ac_compile) 2>&5
3248   ac_status=$?
3249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); } &&
3251          { ac_try='test -s conftest.$ac_objext'
3252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253   (eval $ac_try) 2>&5
3254   ac_status=$?
3255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256   (exit $ac_status); }; }; then
3257   :
3258 else
3259   echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3261
3262 continue
3263 fi
3264 rm -f conftest.$ac_objext conftest.$ac_ext
3265   cat >conftest.$ac_ext <<_ACEOF
3266 #line $LINENO "configure"
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 $ac_declaration
3273 int
3274 main ()
3275 {
3276 exit (42);
3277   ;
3278   return 0;
3279 }
3280 _ACEOF
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283   (eval $ac_compile) 2>&5
3284   ac_status=$?
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } &&
3287          { ac_try='test -s conftest.$ac_objext'
3288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289   (eval $ac_try) 2>&5
3290   ac_status=$?
3291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292   (exit $ac_status); }; }; then
3293   break
3294 else
3295   echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 fi
3299 rm -f conftest.$ac_objext conftest.$ac_ext
3300 done
3301 rm -f conftest*
3302 if test -n "$ac_declaration"; then
3303   echo '#ifdef __cplusplus' >>confdefs.h
3304   echo $ac_declaration      >>confdefs.h
3305   echo '#endif'             >>confdefs.h
3306 fi
3307
3308 ac_ext=c
3309 ac_cpp='$CPP $CPPFLAGS'
3310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3313
3314 depcc="$CXX"  am_compiler_list=
3315
3316 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3317 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3318 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3322   # We make a subdir and do the tests there.  Otherwise we can end up
3323   # making bogus files that we don't know about and never remove.  For
3324   # instance it was reported that on HP-UX the gcc test will end up
3325   # making a dummy file named `D' -- because `-MD' means `put the output
3326   # in D'.
3327   mkdir conftest.dir
3328   # Copy depcomp to subdir because otherwise we won't find it if we're
3329   # using a relative directory.
3330   cp "$am_depcomp" conftest.dir
3331   cd conftest.dir
3332   # We will build objects and dependencies in a subdirectory because
3333   # it helps to detect inapplicable dependency modes.  For instance
3334   # both Tru64's cc and ICC support -MD to output dependencies as a
3335   # side effect of compilation, but ICC will put the dependencies in
3336   # the current directory while Tru64 will put them in the object
3337   # directory.
3338   mkdir sub
3339
3340   am_cv_CXX_dependencies_compiler_type=none
3341   if test "$am_compiler_list" = ""; then
3342      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3343   fi
3344   for depmode in $am_compiler_list; do
3345     # Setup a source with many dependencies, because some compilers
3346     # like to wrap large dependency lists on column 80 (with \), and
3347     # we should not choose a depcomp mode which is confused by this.
3348     #
3349     # We need to recreate these files for each test, as the compiler may
3350     # overwrite some of them when testing with obscure command lines.
3351     # This happens at least with the AIX C compiler.
3352     : > sub/conftest.c
3353     for i in 1 2 3 4 5 6; do
3354       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3355       : > sub/conftst$i.h
3356     done
3357     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3358
3359     case $depmode in
3360     nosideeffect)
3361       # after this tag, mechanisms are not by side-effect, so they'll
3362       # only be used when explicitly requested
3363       if test "x$enable_dependency_tracking" = xyes; then
3364         continue
3365       else
3366         break
3367       fi
3368       ;;
3369     none) break ;;
3370     esac
3371     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3372     # mode.  It turns out that the SunPro C++ compiler does not properly
3373     # handle `-M -o', and we need to detect this.
3374     if depmode=$depmode \
3375        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3376        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3377        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3378          >/dev/null 2>conftest.err &&
3379        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3380        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3381        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3382       # icc doesn't choke on unknown options, it will just issue warnings
3383       # (even with -Werror).  So we grep stderr for any message
3384       # that says an option was ignored.
3385       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3386         am_cv_CXX_dependencies_compiler_type=$depmode
3387         break
3388       fi
3389     fi
3390   done
3391
3392   cd ..
3393   rm -rf conftest.dir
3394 else
3395   am_cv_CXX_dependencies_compiler_type=none
3396 fi
3397
3398 fi
3399 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3400 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3401 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3402
3403
3404
3405 if
3406   test "x$enable_dependency_tracking" != xno \
3407   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3408   am__fastdepCXX_TRUE=
3409   am__fastdepCXX_FALSE='#'
3410 else
3411   am__fastdepCXX_TRUE='#'
3412   am__fastdepCXX_FALSE=
3413 fi
3414
3415
3416
3417 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3418 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3419 if test "${ac_cv_c_bigendian+set}" = set; then
3420   echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422   # See if sys/param.h defines the BYTE_ORDER macro.
3423 cat >conftest.$ac_ext <<_ACEOF
3424 #line $LINENO "configure"
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3430 #include <sys/types.h>
3431 #include <sys/param.h>
3432
3433 int
3434 main ()
3435 {
3436 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3437  bogus endian macros
3438 #endif
3439
3440   ;
3441   return 0;
3442 }
3443 _ACEOF
3444 rm -f conftest.$ac_objext
3445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3446   (eval $ac_compile) 2>&5
3447   ac_status=$?
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); } &&
3450          { ac_try='test -s conftest.$ac_objext'
3451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452   (eval $ac_try) 2>&5
3453   ac_status=$?
3454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455   (exit $ac_status); }; }; then
3456   # It does; now see whether it defined to BIG_ENDIAN or not.
3457 cat >conftest.$ac_ext <<_ACEOF
3458 #line $LINENO "configure"
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464 #include <sys/types.h>
3465 #include <sys/param.h>
3466
3467 int
3468 main ()
3469 {
3470 #if BYTE_ORDER != BIG_ENDIAN
3471  not big endian
3472 #endif
3473
3474   ;
3475   return 0;
3476 }
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480   (eval $ac_compile) 2>&5
3481   ac_status=$?
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); } &&
3484          { ac_try='test -s conftest.$ac_objext'
3485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486   (eval $ac_try) 2>&5
3487   ac_status=$?
3488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489   (exit $ac_status); }; }; then
3490   ac_cv_c_bigendian=yes
3491 else
3492   echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495 ac_cv_c_bigendian=no
3496 fi
3497 rm -f conftest.$ac_objext conftest.$ac_ext
3498 else
3499   echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502 # It does not; compile a test program.
3503 if test "$cross_compiling" = yes; then
3504   # try to guess the endianness by grepping values into an object file
3505   ac_cv_c_bigendian=unknown
3506   cat >conftest.$ac_ext <<_ACEOF
3507 #line $LINENO "configure"
3508 /* confdefs.h.  */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h.  */
3513 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3514 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3515 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3516 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3517 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3518 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3519 int
3520 main ()
3521 {
3522  _ascii (); _ebcdic ();
3523   ;
3524   return 0;
3525 }
3526 _ACEOF
3527 rm -f conftest.$ac_objext
3528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3529   (eval $ac_compile) 2>&5
3530   ac_status=$?
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); } &&
3533          { ac_try='test -s conftest.$ac_objext'
3534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535   (eval $ac_try) 2>&5
3536   ac_status=$?
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); }; }; then
3539   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3540   ac_cv_c_bigendian=yes
3541 fi
3542 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3543   if test "$ac_cv_c_bigendian" = unknown; then
3544     ac_cv_c_bigendian=no
3545   else
3546     # finding both strings is unlikely to happen, but who knows?
3547     ac_cv_c_bigendian=unknown
3548   fi
3549 fi
3550 else
3551   echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554 fi
3555 rm -f conftest.$ac_objext conftest.$ac_ext
3556 else
3557   cat >conftest.$ac_ext <<_ACEOF
3558 #line $LINENO "configure"
3559 /* confdefs.h.  */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h.  */
3564 int
3565 main ()
3566 {
3567   /* Are we little or big endian?  From Harbison&Steele.  */
3568   union
3569   {
3570     long l;
3571     char c[sizeof (long)];
3572   } u;
3573   u.l = 1;
3574   exit (u.c[sizeof (long) - 1] == 1);
3575 }
3576 _ACEOF
3577 rm -f conftest$ac_exeext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3579   (eval $ac_link) 2>&5
3580   ac_status=$?
3581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584   (eval $ac_try) 2>&5
3585   ac_status=$?
3586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); }; }; then
3588   ac_cv_c_bigendian=no
3589 else
3590   echo "$as_me: program exited with status $ac_status" >&5
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3593
3594 ( exit $ac_status )
3595 ac_cv_c_bigendian=yes
3596 fi
3597 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3598 fi
3599 fi
3600 rm -f conftest.$ac_objext conftest.$ac_ext
3601 fi
3602 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3603 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3604 case $ac_cv_c_bigendian in
3605   yes)
3606
3607 cat >>confdefs.h <<\_ACEOF
3608 #define WORDS_BIGENDIAN 1
3609 _ACEOF
3610  ;;
3611   no)
3612      ;;
3613   *)
3614     { { echo "$as_me:$LINENO: error: unknown endianness
3615 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3616 echo "$as_me: error: unknown endianness
3617 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3618    { (exit 1); exit 1; }; } ;;
3619 esac
3620
3621
3622 # Extract the first word of "wx-config", so it can be a program name with args.
3623 set dummy wx-config; ac_word=$2
3624 echo "$as_me:$LINENO: checking for $ac_word" >&5
3625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3626 if test "${ac_cv_path_wxconfig+set}" = set; then
3627   echo $ECHO_N "(cached) $ECHO_C" >&6
3628 else
3629   case $wxconfig in
3630   [\\/]* | ?:[\\/]*)
3631   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3632   ;;
3633   *)
3634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH
3636 do
3637   IFS=$as_save_IFS
3638   test -z "$as_dir" && as_dir=.
3639   for ac_exec_ext in '' $ac_executable_extensions; do
3640   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3641     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3643     break 2
3644   fi
3645 done
3646 done
3647
3648   ;;
3649 esac
3650 fi
3651 wxconfig=$ac_cv_path_wxconfig
3652
3653 if test -n "$wxconfig"; then
3654   echo "$as_me:$LINENO: result: $wxconfig" >&5
3655 echo "${ECHO_T}$wxconfig" >&6
3656 else
3657   echo "$as_me:$LINENO: result: no" >&5
3658 echo "${ECHO_T}no" >&6
3659 fi
3660
3661
3662 # Make sure we can run config.sub.
3663 $ac_config_sub sun4 >/dev/null 2>&1 ||
3664   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3665 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3666    { (exit 1); exit 1; }; }
3667
3668 echo "$as_me:$LINENO: checking build system type" >&5
3669 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3670 if test "${ac_cv_build+set}" = set; then
3671   echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673   ac_cv_build_alias=$build_alias
3674 test -z "$ac_cv_build_alias" &&
3675   ac_cv_build_alias=`$ac_config_guess`
3676 test -z "$ac_cv_build_alias" &&
3677   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3678 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3679    { (exit 1); exit 1; }; }
3680 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3681   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3682 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3683    { (exit 1); exit 1; }; }
3684
3685 fi
3686 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3687 echo "${ECHO_T}$ac_cv_build" >&6
3688 build=$ac_cv_build
3689 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3690 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3691 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3692
3693
3694 echo "$as_me:$LINENO: checking host system type" >&5
3695 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3696 if test "${ac_cv_host+set}" = set; then
3697   echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699   ac_cv_host_alias=$host_alias
3700 test -z "$ac_cv_host_alias" &&
3701   ac_cv_host_alias=$ac_cv_build_alias
3702 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3703   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3704 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3705    { (exit 1); exit 1; }; }
3706
3707 fi
3708 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3709 echo "${ECHO_T}$ac_cv_host" >&6
3710 host=$ac_cv_host
3711 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3712 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3713 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3714
3715
3716 echo "$as_me:$LINENO: checking for inline" >&5
3717 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3718 if test "${ac_cv_c_inline+set}" = set; then
3719   echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721   ac_cv_c_inline=no
3722 for ac_kw in inline __inline__ __inline; do
3723   cat >conftest.$ac_ext <<_ACEOF
3724 #line $LINENO "configure"
3725 /* confdefs.h.  */
3726 _ACEOF
3727 cat confdefs.h >>conftest.$ac_ext
3728 cat >>conftest.$ac_ext <<_ACEOF
3729 /* end confdefs.h.  */
3730 #ifndef __cplusplus
3731 typedef int foo_t;
3732 static $ac_kw foo_t static_foo () {return 0; }
3733 $ac_kw foo_t foo () {return 0; }
3734 #endif
3735
3736 _ACEOF
3737 rm -f conftest.$ac_objext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3739   (eval $ac_compile) 2>&5
3740   ac_status=$?
3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); } &&
3743          { ac_try='test -s conftest.$ac_objext'
3744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745   (eval $ac_try) 2>&5
3746   ac_status=$?
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); }; }; then
3749   ac_cv_c_inline=$ac_kw; break
3750 else
3751   echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3753
3754 fi
3755 rm -f conftest.$ac_objext conftest.$ac_ext
3756 done
3757
3758 fi
3759 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3760 echo "${ECHO_T}$ac_cv_c_inline" >&6
3761 case $ac_cv_c_inline in
3762   inline | yes) ;;
3763   no)
3764 cat >>confdefs.h <<\_ACEOF
3765 #define inline
3766 _ACEOF
3767  ;;
3768   *)  cat >>confdefs.h <<_ACEOF
3769 #define inline $ac_cv_c_inline
3770 _ACEOF
3771  ;;
3772 esac
3773
3774 ac_ext=c
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3780 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3781 # On Suns, sometimes $CPP names a directory.
3782 if test -n "$CPP" && test -d "$CPP"; then
3783   CPP=
3784 fi
3785 if test -z "$CPP"; then
3786   if test "${ac_cv_prog_CPP+set}" = set; then
3787   echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789       # Double quotes because CPP needs to be expanded
3790     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3791     do
3792       ac_preproc_ok=false
3793 for ac_c_preproc_warn_flag in '' yes
3794 do
3795   # Use a header file that comes with gcc, so configuring glibc
3796   # with a fresh cross-compiler works.
3797   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798   # <limits.h> exists even on freestanding compilers.
3799   # On the NeXT, cc -E runs the code through the compiler's parser,
3800   # not just through cpp. "Syntax error" is here to catch this case.
3801   cat >conftest.$ac_ext <<_ACEOF
3802 #line $LINENO "configure"
3803 /* confdefs.h.  */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h.  */
3808 #ifdef __STDC__
3809 # include <limits.h>
3810 #else
3811 # include <assert.h>
3812 #endif
3813                      Syntax error
3814 _ACEOF
3815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3816   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3817   ac_status=$?
3818   grep -v '^ *+' conftest.er1 >conftest.err
3819   rm -f conftest.er1
3820   cat conftest.err >&5
3821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822   (exit $ac_status); } >/dev/null; then
3823   if test -s conftest.err; then
3824     ac_cpp_err=$ac_c_preproc_warn_flag
3825   else
3826     ac_cpp_err=
3827   fi
3828 else
3829   ac_cpp_err=yes
3830 fi
3831 if test -z "$ac_cpp_err"; then
3832   :
3833 else
3834   echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3836
3837   # Broken: fails on valid input.
3838 continue
3839 fi
3840 rm -f conftest.err conftest.$ac_ext
3841
3842   # OK, works on sane cases.  Now check whether non-existent headers
3843   # can be detected and how.
3844   cat >conftest.$ac_ext <<_ACEOF
3845 #line $LINENO "configure"
3846 /* confdefs.h.  */
3847 _ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h.  */
3851 #include <ac_nonexistent.h>
3852 _ACEOF
3853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3854   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3855   ac_status=$?
3856   grep -v '^ *+' conftest.er1 >conftest.err
3857   rm -f conftest.er1
3858   cat conftest.err >&5
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); } >/dev/null; then
3861   if test -s conftest.err; then
3862     ac_cpp_err=$ac_c_preproc_warn_flag
3863   else
3864     ac_cpp_err=
3865   fi
3866 else
3867   ac_cpp_err=yes
3868 fi
3869 if test -z "$ac_cpp_err"; then
3870   # Broken: success on invalid input.
3871 continue
3872 else
3873   echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3875
3876   # Passes both tests.
3877 ac_preproc_ok=:
3878 break
3879 fi
3880 rm -f conftest.err conftest.$ac_ext
3881
3882 done
3883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3884 rm -f conftest.err conftest.$ac_ext
3885 if $ac_preproc_ok; then
3886   break
3887 fi
3888
3889     done
3890     ac_cv_prog_CPP=$CPP
3891
3892 fi
3893   CPP=$ac_cv_prog_CPP
3894 else
3895   ac_cv_prog_CPP=$CPP
3896 fi
3897 echo "$as_me:$LINENO: result: $CPP" >&5
3898 echo "${ECHO_T}$CPP" >&6
3899 ac_preproc_ok=false
3900 for ac_c_preproc_warn_flag in '' yes
3901 do
3902   # Use a header file that comes with gcc, so configuring glibc
3903   # with a fresh cross-compiler works.
3904   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3905   # <limits.h> exists even on freestanding compilers.
3906   # On the NeXT, cc -E runs the code through the compiler's parser,
3907   # not just through cpp. "Syntax error" is here to catch this case.
3908   cat >conftest.$ac_ext <<_ACEOF
3909 #line $LINENO "configure"
3910 /* confdefs.h.  */
3911 _ACEOF
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h.  */
3915 #ifdef __STDC__
3916 # include <limits.h>
3917 #else
3918 # include <assert.h>
3919 #endif
3920                      Syntax error
3921 _ACEOF
3922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3923   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3924   ac_status=$?
3925   grep -v '^ *+' conftest.er1 >conftest.err
3926   rm -f conftest.er1
3927   cat conftest.err >&5
3928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929   (exit $ac_status); } >/dev/null; then
3930   if test -s conftest.err; then
3931     ac_cpp_err=$ac_c_preproc_warn_flag
3932   else
3933     ac_cpp_err=
3934   fi
3935 else
3936   ac_cpp_err=yes
3937 fi
3938 if test -z "$ac_cpp_err"; then
3939   :
3940 else
3941   echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3943
3944   # Broken: fails on valid input.
3945 continue
3946 fi
3947 rm -f conftest.err conftest.$ac_ext
3948
3949   # OK, works on sane cases.  Now check whether non-existent headers
3950   # can be detected and how.
3951   cat >conftest.$ac_ext <<_ACEOF
3952 #line $LINENO "configure"
3953 /* confdefs.h.  */
3954 _ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h.  */
3958 #include <ac_nonexistent.h>
3959 _ACEOF
3960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3962   ac_status=$?
3963   grep -v '^ *+' conftest.er1 >conftest.err
3964   rm -f conftest.er1
3965   cat conftest.err >&5
3966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967   (exit $ac_status); } >/dev/null; then
3968   if test -s conftest.err; then
3969     ac_cpp_err=$ac_c_preproc_warn_flag
3970   else
3971     ac_cpp_err=
3972   fi
3973 else
3974   ac_cpp_err=yes
3975 fi
3976 if test -z "$ac_cpp_err"; then
3977   # Broken: success on invalid input.
3978 continue
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983   # Passes both tests.
3984 ac_preproc_ok=:
3985 break
3986 fi
3987 rm -f conftest.err conftest.$ac_ext
3988
3989 done
3990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3991 rm -f conftest.err conftest.$ac_ext
3992 if $ac_preproc_ok; then
3993   :
3994 else
3995   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3996 See \`config.log' for more details." >&5
3997 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3998 See \`config.log' for more details." >&2;}
3999    { (exit 1); exit 1; }; }
4000 fi
4001
4002 ac_ext=c
4003 ac_cpp='$CPP $CPPFLAGS'
4004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007
4008
4009 echo "$as_me:$LINENO: checking for egrep" >&5
4010 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4011 if test "${ac_cv_prog_egrep+set}" = set; then
4012   echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4015     then ac_cv_prog_egrep='grep -E'
4016     else ac_cv_prog_egrep='egrep'
4017     fi
4018 fi
4019 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4020 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4021  EGREP=$ac_cv_prog_egrep
4022
4023
4024 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4025 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4026 if test "${ac_cv_header_stdc+set}" = set; then
4027   echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029   cat >conftest.$ac_ext <<_ACEOF
4030 #line $LINENO "configure"
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036 #include <stdlib.h>
4037 #include <stdarg.h>
4038 #include <string.h>
4039 #include <float.h>
4040
4041 int
4042 main ()
4043 {
4044
4045   ;
4046   return 0;
4047 }
4048 _ACEOF
4049 rm -f conftest.$ac_objext
4050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4051   (eval $ac_compile) 2>&5
4052   ac_status=$?
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); } &&
4055          { ac_try='test -s conftest.$ac_objext'
4056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057   (eval $ac_try) 2>&5
4058   ac_status=$?
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); }; }; then
4061   ac_cv_header_stdc=yes
4062 else
4063   echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4065
4066 ac_cv_header_stdc=no
4067 fi
4068 rm -f conftest.$ac_objext conftest.$ac_ext
4069
4070 if test $ac_cv_header_stdc = yes; then
4071   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4072   cat >conftest.$ac_ext <<_ACEOF
4073 #line $LINENO "configure"
4074 /* confdefs.h.  */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h.  */
4079 #include <string.h>
4080
4081 _ACEOF
4082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4083   $EGREP "memchr" >/dev/null 2>&1; then
4084   :
4085 else
4086   ac_cv_header_stdc=no
4087 fi
4088 rm -f conftest*
4089
4090 fi
4091
4092 if test $ac_cv_header_stdc = yes; then
4093   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4094   cat >conftest.$ac_ext <<_ACEOF
4095 #line $LINENO "configure"
4096 /* confdefs.h.  */
4097 _ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h.  */
4101 #include <stdlib.h>
4102
4103 _ACEOF
4104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4105   $EGREP "free" >/dev/null 2>&1; then
4106   :
4107 else
4108   ac_cv_header_stdc=no
4109 fi
4110 rm -f conftest*
4111
4112 fi
4113
4114 if test $ac_cv_header_stdc = yes; then
4115   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4116   if test "$cross_compiling" = yes; then
4117   :
4118 else
4119   cat >conftest.$ac_ext <<_ACEOF
4120 #line $LINENO "configure"
4121 /* confdefs.h.  */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h.  */
4126 #include <ctype.h>
4127 #if ((' ' & 0x0FF) == 0x020)
4128 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4129 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4130 #else
4131 # define ISLOWER(c) \
4132                    (('a' <= (c) && (c) <= 'i') \
4133                      || ('j' <= (c) && (c) <= 'r') \
4134                      || ('s' <= (c) && (c) <= 'z'))
4135 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4136 #endif
4137
4138 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4139 int
4140 main ()
4141 {
4142   int i;
4143   for (i = 0; i < 256; i++)
4144     if (XOR (islower (i), ISLOWER (i))
4145         || toupper (i) != TOUPPER (i))
4146       exit(2);
4147   exit (0);
4148 }
4149 _ACEOF
4150 rm -f conftest$ac_exeext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4152   (eval $ac_link) 2>&5
4153   ac_status=$?
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157   (eval $ac_try) 2>&5
4158   ac_status=$?
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); }; }; then
4161   :
4162 else
4163   echo "$as_me: program exited with status $ac_status" >&5
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4166
4167 ( exit $ac_status )
4168 ac_cv_header_stdc=no
4169 fi
4170 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4171 fi
4172 fi
4173 fi
4174 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4175 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4176 if test $ac_cv_header_stdc = yes; then
4177
4178 cat >>confdefs.h <<\_ACEOF
4179 #define STDC_HEADERS 1
4180 _ACEOF
4181
4182 fi
4183
4184 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4195                   inttypes.h stdint.h unistd.h
4196 do
4197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4198 echo "$as_me:$LINENO: checking for $ac_header" >&5
4199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4201   echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203   cat >conftest.$ac_ext <<_ACEOF
4204 #line $LINENO "configure"
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 $ac_includes_default
4211
4212 #include <$ac_header>
4213 _ACEOF
4214 rm -f conftest.$ac_objext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4216   (eval $ac_compile) 2>&5
4217   ac_status=$?
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); } &&
4220          { ac_try='test -s conftest.$ac_objext'
4221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222   (eval $ac_try) 2>&5
4223   ac_status=$?
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); }; }; then
4226   eval "$as_ac_Header=yes"
4227 else
4228   echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4230
4231 eval "$as_ac_Header=no"
4232 fi
4233 rm -f conftest.$ac_objext conftest.$ac_ext
4234 fi
4235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4238   cat >>confdefs.h <<_ACEOF
4239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4240 _ACEOF
4241
4242 fi
4243
4244 done
4245
4246
4247 echo "$as_me:$LINENO: checking for short" >&5
4248 echo $ECHO_N "checking for short... $ECHO_C" >&6
4249 if test "${ac_cv_type_short+set}" = set; then
4250   echo $ECHO_N "(cached) $ECHO_C" >&6
4251 else
4252   cat >conftest.$ac_ext <<_ACEOF
4253 #line $LINENO "configure"
4254 /* confdefs.h.  */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h.  */
4259 $ac_includes_default
4260 int
4261 main ()
4262 {
4263 if ((short *) 0)
4264   return 0;
4265 if (sizeof (short))
4266   return 0;
4267   ;
4268   return 0;
4269 }
4270 _ACEOF
4271 rm -f conftest.$ac_objext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4273   (eval $ac_compile) 2>&5
4274   ac_status=$?
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); } &&
4277          { ac_try='test -s conftest.$ac_objext'
4278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279   (eval $ac_try) 2>&5
4280   ac_status=$?
4281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282   (exit $ac_status); }; }; then
4283   ac_cv_type_short=yes
4284 else
4285   echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4287
4288 ac_cv_type_short=no
4289 fi
4290 rm -f conftest.$ac_objext conftest.$ac_ext
4291 fi
4292 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4293 echo "${ECHO_T}$ac_cv_type_short" >&6
4294
4295 echo "$as_me:$LINENO: checking size of short" >&5
4296 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4297 if test "${ac_cv_sizeof_short+set}" = set; then
4298   echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300   if test "$ac_cv_type_short" = yes; then
4301   # The cast to unsigned long works around a bug in the HP C Compiler
4302   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4303   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4304   # This bug is HP SR number 8606223364.
4305   if test "$cross_compiling" = yes; then
4306   # Depending upon the size, compute the lo and hi bounds.
4307 cat >conftest.$ac_ext <<_ACEOF
4308 #line $LINENO "configure"
4309 /* confdefs.h.  */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h.  */
4314 $ac_includes_default
4315 int
4316 main ()
4317 {
4318 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4319 test_array [0] = 0
4320
4321   ;
4322   return 0;
4323 }
4324 _ACEOF
4325 rm -f conftest.$ac_objext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327   (eval $ac_compile) 2>&5
4328   ac_status=$?
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); } &&
4331          { ac_try='test -s conftest.$ac_objext'
4332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333   (eval $ac_try) 2>&5
4334   ac_status=$?
4335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336   (exit $ac_status); }; }; then
4337   ac_lo=0 ac_mid=0
4338   while :; do
4339     cat >conftest.$ac_ext <<_ACEOF
4340 #line $LINENO "configure"
4341 /* confdefs.h.  */
4342 _ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h.  */
4346 $ac_includes_default
4347 int
4348 main ()
4349 {
4350 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4351 test_array [0] = 0
4352
4353   ;
4354   return 0;
4355 }
4356 _ACEOF
4357 rm -f conftest.$ac_objext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4359   (eval $ac_compile) 2>&5
4360   ac_status=$?
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); } &&
4363          { ac_try='test -s conftest.$ac_objext'
4364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365   (eval $ac_try) 2>&5
4366   ac_status=$?
4367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368   (exit $ac_status); }; }; then
4369   ac_hi=$ac_mid; break
4370 else
4371   echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4373
4374 ac_lo=`expr $ac_mid + 1`
4375                     if test $ac_lo -le $ac_mid; then
4376                       ac_lo= ac_hi=
4377                       break
4378                     fi
4379                     ac_mid=`expr 2 '*' $ac_mid + 1`
4380 fi
4381 rm -f conftest.$ac_objext conftest.$ac_ext
4382   done
4383 else
4384   echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4386
4387 cat >conftest.$ac_ext <<_ACEOF
4388 #line $LINENO "configure"
4389 /* confdefs.h.  */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h.  */
4394 $ac_includes_default
4395 int
4396 main ()
4397 {
4398 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4399 test_array [0] = 0
4400
4401   ;
4402   return 0;
4403 }
4404 _ACEOF
4405 rm -f conftest.$ac_objext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407   (eval $ac_compile) 2>&5
4408   ac_status=$?
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); } &&
4411          { ac_try='test -s conftest.$ac_objext'
4412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413   (eval $ac_try) 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }; }; then
4417   ac_hi=-1 ac_mid=-1
4418   while :; do
4419     cat >conftest.$ac_ext <<_ACEOF
4420 #line $LINENO "configure"
4421 /* confdefs.h.  */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h.  */
4426 $ac_includes_default
4427 int
4428 main ()
4429 {
4430 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4431 test_array [0] = 0
4432
4433   ;
4434   return 0;
4435 }
4436 _ACEOF
4437 rm -f conftest.$ac_objext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439   (eval $ac_compile) 2>&5
4440   ac_status=$?
4441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442   (exit $ac_status); } &&
4443          { ac_try='test -s conftest.$ac_objext'
4444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445   (eval $ac_try) 2>&5
4446   ac_status=$?
4447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448   (exit $ac_status); }; }; then
4449   ac_lo=$ac_mid; break
4450 else
4451   echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4453
4454 ac_hi=`expr '(' $ac_mid ')' - 1`
4455                        if test $ac_mid -le $ac_hi; then
4456                          ac_lo= ac_hi=
4457                          break
4458                        fi
4459                        ac_mid=`expr 2 '*' $ac_mid`
4460 fi
4461 rm -f conftest.$ac_objext conftest.$ac_ext
4462   done
4463 else
4464   echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 ac_lo= ac_hi=
4468 fi
4469 rm -f conftest.$ac_objext conftest.$ac_ext
4470 fi
4471 rm -f conftest.$ac_objext conftest.$ac_ext
4472 # Binary search between lo and hi bounds.
4473 while test "x$ac_lo" != "x$ac_hi"; do
4474   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4475   cat >conftest.$ac_ext <<_ACEOF
4476 #line $LINENO "configure"
4477 /* confdefs.h.  */
4478 _ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h.  */
4482 $ac_includes_default
4483 int
4484 main ()
4485 {
4486 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4487 test_array [0] = 0
4488
4489   ;
4490   return 0;
4491 }
4492 _ACEOF
4493 rm -f conftest.$ac_objext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4495   (eval $ac_compile) 2>&5
4496   ac_status=$?
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); } &&
4499          { ac_try='test -s conftest.$ac_objext'
4500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501   (eval $ac_try) 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }; }; then
4505   ac_hi=$ac_mid
4506 else
4507   echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4509
4510 ac_lo=`expr '(' $ac_mid ')' + 1`
4511 fi
4512 rm -f conftest.$ac_objext conftest.$ac_ext
4513 done
4514 case $ac_lo in
4515 ?*) ac_cv_sizeof_short=$ac_lo;;
4516 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4517 See \`config.log' for more details." >&5
4518 echo "$as_me: error: cannot compute sizeof (short), 77
4519 See \`config.log' for more details." >&2;}
4520    { (exit 1); exit 1; }; } ;;
4521 esac
4522 else
4523   if test "$cross_compiling" = yes; then
4524   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4525 See \`config.log' for more details." >&5
4526 echo "$as_me: error: cannot run test program while cross compiling
4527 See \`config.log' for more details." >&2;}
4528    { (exit 1); exit 1; }; }
4529 else
4530   cat >conftest.$ac_ext <<_ACEOF
4531 #line $LINENO "configure"
4532 /* confdefs.h.  */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h.  */
4537 $ac_includes_default
4538 long longval () { return (long) (sizeof (short)); }
4539 unsigned long ulongval () { return (long) (sizeof (short)); }
4540 #include <stdio.h>
4541 #include <stdlib.h>
4542 int
4543 main ()
4544 {
4545
4546   FILE *f = fopen ("conftest.val", "w");
4547   if (! f)
4548     exit (1);
4549   if (((long) (sizeof (short))) < 0)
4550     {
4551       long i = longval ();
4552       if (i != ((long) (sizeof (short))))
4553         exit (1);
4554       fprintf (f, "%ld\n", i);
4555     }
4556   else
4557     {
4558       unsigned long i = ulongval ();
4559       if (i != ((long) (sizeof (short))))
4560         exit (1);
4561       fprintf (f, "%lu\n", i);
4562     }
4563   exit (ferror (f) || fclose (f) != 0);
4564
4565   ;
4566   return 0;
4567 }
4568 _ACEOF
4569 rm -f conftest$ac_exeext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4571   (eval $ac_link) 2>&5
4572   ac_status=$?
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576   (eval $ac_try) 2>&5
4577   ac_status=$?
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); }; }; then
4580   ac_cv_sizeof_short=`cat conftest.val`
4581 else
4582   echo "$as_me: program exited with status $ac_status" >&5
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4585
4586 ( exit $ac_status )
4587 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4588 See \`config.log' for more details." >&5
4589 echo "$as_me: error: cannot compute sizeof (short), 77
4590 See \`config.log' for more details." >&2;}
4591    { (exit 1); exit 1; }; }
4592 fi
4593 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4594 fi
4595 fi
4596 rm -f conftest.val
4597 else
4598   ac_cv_sizeof_short=0
4599 fi
4600 fi
4601 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4602 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4603 cat >>confdefs.h <<_ACEOF
4604 #define SIZEOF_SHORT $ac_cv_sizeof_short
4605 _ACEOF
4606
4607
4608 echo "$as_me:$LINENO: checking for int" >&5
4609 echo $ECHO_N "checking for int... $ECHO_C" >&6
4610 if test "${ac_cv_type_int+set}" = set; then
4611   echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613   cat >conftest.$ac_ext <<_ACEOF
4614 #line $LINENO "configure"
4615 /* confdefs.h.  */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h.  */
4620 $ac_includes_default
4621 int
4622 main ()
4623 {
4624 if ((int *) 0)
4625   return 0;
4626 if (sizeof (int))
4627   return 0;
4628   ;
4629   return 0;
4630 }
4631 _ACEOF
4632 rm -f conftest.$ac_objext
4633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4634   (eval $ac_compile) 2>&5
4635   ac_status=$?
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); } &&
4638          { ac_try='test -s conftest.$ac_objext'
4639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640   (eval $ac_try) 2>&5
4641   ac_status=$?
4642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643   (exit $ac_status); }; }; then
4644   ac_cv_type_int=yes
4645 else
4646   echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4648
4649 ac_cv_type_int=no
4650 fi
4651 rm -f conftest.$ac_objext conftest.$ac_ext
4652 fi
4653 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4654 echo "${ECHO_T}$ac_cv_type_int" >&6
4655
4656 echo "$as_me:$LINENO: checking size of int" >&5
4657 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4658 if test "${ac_cv_sizeof_int+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   if test "$ac_cv_type_int" = yes; then
4662   # The cast to unsigned long works around a bug in the HP C Compiler
4663   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4664   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4665   # This bug is HP SR number 8606223364.
4666   if test "$cross_compiling" = yes; then
4667   # Depending upon the size, compute the lo and hi bounds.
4668 cat >conftest.$ac_ext <<_ACEOF
4669 #line $LINENO "configure"
4670 /* confdefs.h.  */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h.  */
4675 $ac_includes_default
4676 int
4677 main ()
4678 {
4679 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4680 test_array [0] = 0
4681
4682   ;
4683   return 0;
4684 }
4685 _ACEOF
4686 rm -f conftest.$ac_objext
4687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4688   (eval $ac_compile) 2>&5
4689   ac_status=$?
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); } &&
4692          { ac_try='test -s conftest.$ac_objext'
4693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694   (eval $ac_try) 2>&5
4695   ac_status=$?
4696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697   (exit $ac_status); }; }; then
4698   ac_lo=0 ac_mid=0
4699   while :; do
4700     cat >conftest.$ac_ext <<_ACEOF
4701 #line $LINENO "configure"
4702 /* confdefs.h.  */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h.  */
4707 $ac_includes_default
4708 int
4709 main ()
4710 {
4711 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4712 test_array [0] = 0
4713
4714   ;
4715   return 0;
4716 }
4717 _ACEOF
4718 rm -f conftest.$ac_objext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4720   (eval $ac_compile) 2>&5
4721   ac_status=$?
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } &&
4724          { ac_try='test -s conftest.$ac_objext'
4725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726   (eval $ac_try) 2>&5
4727   ac_status=$?
4728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729   (exit $ac_status); }; }; then
4730   ac_hi=$ac_mid; break
4731 else
4732   echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4734
4735 ac_lo=`expr $ac_mid + 1`
4736                     if test $ac_lo -le $ac_mid; then
4737                       ac_lo= ac_hi=
4738                       break
4739                     fi
4740                     ac_mid=`expr 2 '*' $ac_mid + 1`
4741 fi
4742 rm -f conftest.$ac_objext conftest.$ac_ext
4743   done
4744 else
4745   echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4747
4748 cat >conftest.$ac_ext <<_ACEOF
4749 #line $LINENO "configure"
4750 /* confdefs.h.  */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h.  */
4755 $ac_includes_default
4756 int
4757 main ()
4758 {
4759 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4760 test_array [0] = 0
4761
4762   ;
4763   return 0;
4764 }
4765 _ACEOF
4766 rm -f conftest.$ac_objext
4767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4768   (eval $ac_compile) 2>&5
4769   ac_status=$?
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); } &&
4772          { ac_try='test -s conftest.$ac_objext'
4773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774   (eval $ac_try) 2>&5
4775   ac_status=$?
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); }; }; then
4778   ac_hi=-1 ac_mid=-1
4779   while :; do
4780     cat >conftest.$ac_ext <<_ACEOF
4781 #line $LINENO "configure"
4782 /* confdefs.h.  */
4783 _ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h.  */
4787 $ac_includes_default
4788 int
4789 main ()
4790 {
4791 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4792 test_array [0] = 0
4793
4794   ;
4795   return 0;
4796 }
4797 _ACEOF
4798 rm -f conftest.$ac_objext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800   (eval $ac_compile) 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); } &&
4804          { ac_try='test -s conftest.$ac_objext'
4805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806   (eval $ac_try) 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); }; }; then
4810   ac_lo=$ac_mid; break
4811 else
4812   echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 ac_hi=`expr '(' $ac_mid ')' - 1`
4816                        if test $ac_mid -le $ac_hi; then
4817                          ac_lo= ac_hi=
4818                          break
4819                        fi
4820                        ac_mid=`expr 2 '*' $ac_mid`
4821 fi
4822 rm -f conftest.$ac_objext conftest.$ac_ext
4823   done
4824 else
4825   echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828 ac_lo= ac_hi=
4829 fi
4830 rm -f conftest.$ac_objext conftest.$ac_ext
4831 fi
4832 rm -f conftest.$ac_objext conftest.$ac_ext
4833 # Binary search between lo and hi bounds.
4834 while test "x$ac_lo" != "x$ac_hi"; do
4835   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4836   cat >conftest.$ac_ext <<_ACEOF
4837 #line $LINENO "configure"
4838 /* confdefs.h.  */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h.  */
4843 $ac_includes_default
4844 int
4845 main ()
4846 {
4847 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4848 test_array [0] = 0
4849
4850   ;
4851   return 0;
4852 }
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856   (eval $ac_compile) 2>&5
4857   ac_status=$?
4858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859   (exit $ac_status); } &&
4860          { ac_try='test -s conftest.$ac_objext'
4861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862   (eval $ac_try) 2>&5
4863   ac_status=$?
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); }; }; then
4866   ac_hi=$ac_mid
4867 else
4868   echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4870
4871 ac_lo=`expr '(' $ac_mid ')' + 1`
4872 fi
4873 rm -f conftest.$ac_objext conftest.$ac_ext
4874 done
4875 case $ac_lo in
4876 ?*) ac_cv_sizeof_int=$ac_lo;;
4877 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4878 See \`config.log' for more details." >&5
4879 echo "$as_me: error: cannot compute sizeof (int), 77
4880 See \`config.log' for more details." >&2;}
4881    { (exit 1); exit 1; }; } ;;
4882 esac
4883 else
4884   if test "$cross_compiling" = yes; then
4885   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4886 See \`config.log' for more details." >&5
4887 echo "$as_me: error: cannot run test program while cross compiling
4888 See \`config.log' for more details." >&2;}
4889    { (exit 1); exit 1; }; }
4890 else
4891   cat >conftest.$ac_ext <<_ACEOF
4892 #line $LINENO "configure"
4893 /* confdefs.h.  */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h.  */
4898 $ac_includes_default
4899 long longval () { return (long) (sizeof (int)); }
4900 unsigned long ulongval () { return (long) (sizeof (int)); }
4901 #include <stdio.h>
4902 #include <stdlib.h>
4903 int
4904 main ()
4905 {
4906
4907   FILE *f = fopen ("conftest.val", "w");
4908   if (! f)
4909     exit (1);
4910   if (((long) (sizeof (int))) < 0)
4911     {
4912       long i = longval ();
4913       if (i != ((long) (sizeof (int))))
4914         exit (1);
4915       fprintf (f, "%ld\n", i);
4916     }
4917   else
4918     {
4919       unsigned long i = ulongval ();
4920       if (i != ((long) (sizeof (int))))
4921         exit (1);
4922       fprintf (f, "%lu\n", i);
4923     }
4924   exit (ferror (f) || fclose (f) != 0);
4925
4926   ;
4927   return 0;
4928 }
4929 _ACEOF
4930 rm -f conftest$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932   (eval $ac_link) 2>&5
4933   ac_status=$?
4934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937   (eval $ac_try) 2>&5
4938   ac_status=$?
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); }; }; then
4941   ac_cv_sizeof_int=`cat conftest.val`
4942 else
4943   echo "$as_me: program exited with status $ac_status" >&5
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4946
4947 ( exit $ac_status )
4948 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4949 See \`config.log' for more details." >&5
4950 echo "$as_me: error: cannot compute sizeof (int), 77
4951 See \`config.log' for more details." >&2;}
4952    { (exit 1); exit 1; }; }
4953 fi
4954 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4955 fi
4956 fi
4957 rm -f conftest.val
4958 else
4959   ac_cv_sizeof_int=0
4960 fi
4961 fi
4962 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4963 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4964 cat >>confdefs.h <<_ACEOF
4965 #define SIZEOF_INT $ac_cv_sizeof_int
4966 _ACEOF
4967
4968
4969 echo "$as_me:$LINENO: checking for long" >&5
4970 echo $ECHO_N "checking for long... $ECHO_C" >&6
4971 if test "${ac_cv_type_long+set}" = set; then
4972   echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974   cat >conftest.$ac_ext <<_ACEOF
4975 #line $LINENO "configure"
4976 /* confdefs.h.  */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h.  */
4981 $ac_includes_default
4982 int
4983 main ()
4984 {
4985 if ((long *) 0)
4986   return 0;
4987 if (sizeof (long))
4988   return 0;
4989   ;
4990   return 0;
4991 }
4992 _ACEOF
4993 rm -f conftest.$ac_objext
4994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995   (eval $ac_compile) 2>&5
4996   ac_status=$?
4997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998   (exit $ac_status); } &&
4999          { ac_try='test -s conftest.$ac_objext'
5000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001   (eval $ac_try) 2>&5
5002   ac_status=$?
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); }; }; then
5005   ac_cv_type_long=yes
5006 else
5007   echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5009
5010 ac_cv_type_long=no
5011 fi
5012 rm -f conftest.$ac_objext conftest.$ac_ext
5013 fi
5014 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5015 echo "${ECHO_T}$ac_cv_type_long" >&6
5016
5017 echo "$as_me:$LINENO: checking size of long" >&5
5018 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5019 if test "${ac_cv_sizeof_long+set}" = set; then
5020   echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022   if test "$ac_cv_type_long" = yes; then
5023   # The cast to unsigned long works around a bug in the HP C Compiler
5024   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5025   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5026   # This bug is HP SR number 8606223364.
5027   if test "$cross_compiling" = yes; then
5028   # Depending upon the size, compute the lo and hi bounds.
5029 cat >conftest.$ac_ext <<_ACEOF
5030 #line $LINENO "configure"
5031 /* confdefs.h.  */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h.  */
5036 $ac_includes_default
5037 int
5038 main ()
5039 {
5040 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5041 test_array [0] = 0
5042
5043   ;
5044   return 0;
5045 }
5046 _ACEOF
5047 rm -f conftest.$ac_objext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5049   (eval $ac_compile) 2>&5
5050   ac_status=$?
5051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052   (exit $ac_status); } &&
5053          { ac_try='test -s conftest.$ac_objext'
5054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055   (eval $ac_try) 2>&5
5056   ac_status=$?
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); }; }; then
5059   ac_lo=0 ac_mid=0
5060   while :; do
5061     cat >conftest.$ac_ext <<_ACEOF
5062 #line $LINENO "configure"
5063 /* confdefs.h.  */
5064 _ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h.  */
5068 $ac_includes_default
5069 int
5070 main ()
5071 {
5072 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5073 test_array [0] = 0
5074
5075   ;
5076   return 0;
5077 }
5078 _ACEOF
5079 rm -f conftest.$ac_objext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5081   (eval $ac_compile) 2>&5
5082   ac_status=$?
5083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084   (exit $ac_status); } &&
5085          { ac_try='test -s conftest.$ac_objext'
5086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087   (eval $ac_try) 2>&5
5088   ac_status=$?
5089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090   (exit $ac_status); }; }; then
5091   ac_hi=$ac_mid; break
5092 else
5093   echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5095
5096 ac_lo=`expr $ac_mid + 1`
5097                     if test $ac_lo -le $ac_mid; then
5098                       ac_lo= ac_hi=
5099                       break
5100                     fi
5101                     ac_mid=`expr 2 '*' $ac_mid + 1`
5102 fi
5103 rm -f conftest.$ac_objext conftest.$ac_ext
5104   done
5105 else
5106   echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5108
5109 cat >conftest.$ac_ext <<_ACEOF
5110 #line $LINENO "configure"
5111 /* confdefs.h.  */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h.  */
5116 $ac_includes_default
5117 int
5118 main ()
5119 {
5120 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5121 test_array [0] = 0
5122
5123   ;
5124   return 0;
5125 }
5126 _ACEOF
5127 rm -f conftest.$ac_objext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129   (eval $ac_compile) 2>&5
5130   ac_status=$?
5131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132   (exit $ac_status); } &&
5133          { ac_try='test -s conftest.$ac_objext'
5134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135   (eval $ac_try) 2>&5
5136   ac_status=$?
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); }; }; then
5139   ac_hi=-1 ac_mid=-1
5140   while :; do
5141     cat >conftest.$ac_ext <<_ACEOF
5142 #line $LINENO "configure"
5143 /* confdefs.h.  */
5144 _ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h.  */
5148 $ac_includes_default
5149 int
5150 main ()
5151 {
5152 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5153 test_array [0] = 0
5154
5155   ;
5156   return 0;
5157 }
5158 _ACEOF
5159 rm -f conftest.$ac_objext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5161   (eval $ac_compile) 2>&5
5162   ac_status=$?
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); } &&
5165          { ac_try='test -s conftest.$ac_objext'
5166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167   (eval $ac_try) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); }; }; then
5171   ac_lo=$ac_mid; break
5172 else
5173   echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5175
5176 ac_hi=`expr '(' $ac_mid ')' - 1`
5177                        if test $ac_mid -le $ac_hi; then
5178                          ac_lo= ac_hi=
5179                          break
5180                        fi
5181                        ac_mid=`expr 2 '*' $ac_mid`
5182 fi
5183 rm -f conftest.$ac_objext conftest.$ac_ext
5184   done
5185 else
5186   echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5188
5189 ac_lo= ac_hi=
5190 fi
5191 rm -f conftest.$ac_objext conftest.$ac_ext
5192 fi
5193 rm -f conftest.$ac_objext conftest.$ac_ext
5194 # Binary search between lo and hi bounds.
5195 while test "x$ac_lo" != "x$ac_hi"; do
5196   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5197   cat >conftest.$ac_ext <<_ACEOF
5198 #line $LINENO "configure"
5199 /* confdefs.h.  */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h.  */
5204 $ac_includes_default
5205 int
5206 main ()
5207 {
5208 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5209 test_array [0] = 0
5210
5211   ;
5212   return 0;
5213 }
5214 _ACEOF
5215 rm -f conftest.$ac_objext
5216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5217   (eval $ac_compile) 2>&5
5218   ac_status=$?
5219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220   (exit $ac_status); } &&
5221          { ac_try='test -s conftest.$ac_objext'
5222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223   (eval $ac_try) 2>&5
5224   ac_status=$?
5225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226   (exit $ac_status); }; }; then
5227   ac_hi=$ac_mid
5228 else
5229   echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5231
5232 ac_lo=`expr '(' $ac_mid ')' + 1`
5233 fi
5234 rm -f conftest.$ac_objext conftest.$ac_ext
5235 done
5236 case $ac_lo in
5237 ?*) ac_cv_sizeof_long=$ac_lo;;
5238 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5239 See \`config.log' for more details." >&5
5240 echo "$as_me: error: cannot compute sizeof (long), 77
5241 See \`config.log' for more details." >&2;}
5242    { (exit 1); exit 1; }; } ;;
5243 esac
5244 else
5245   if test "$cross_compiling" = yes; then
5246   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5247 See \`config.log' for more details." >&5
5248 echo "$as_me: error: cannot run test program while cross compiling
5249 See \`config.log' for more details." >&2;}
5250    { (exit 1); exit 1; }; }
5251 else
5252   cat >conftest.$ac_ext <<_ACEOF
5253 #line $LINENO "configure"
5254 /* confdefs.h.  */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h.  */
5259 $ac_includes_default
5260 long longval () { return (long) (sizeof (long)); }
5261 unsigned long ulongval () { return (long) (sizeof (long)); }
5262 #include <stdio.h>
5263 #include <stdlib.h>
5264 int
5265 main ()
5266 {
5267
5268   FILE *f = fopen ("conftest.val", "w");
5269   if (! f)
5270     exit (1);
5271   if (((long) (sizeof (long))) < 0)
5272     {
5273       long i = longval ();
5274       if (i != ((long) (sizeof (long))))
5275         exit (1);
5276       fprintf (f, "%ld\n", i);
5277     }
5278   else
5279     {
5280       unsigned long i = ulongval ();
5281       if (i != ((long) (sizeof (long))))
5282         exit (1);
5283       fprintf (f, "%lu\n", i);
5284     }
5285   exit (ferror (f) || fclose (f) != 0);
5286
5287   ;
5288   return 0;
5289 }
5290 _ACEOF
5291 rm -f conftest$ac_exeext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5293   (eval $ac_link) 2>&5
5294   ac_status=$?
5295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298   (eval $ac_try) 2>&5
5299   ac_status=$?
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); }; }; then
5302   ac_cv_sizeof_long=`cat conftest.val`
5303 else
5304   echo "$as_me: program exited with status $ac_status" >&5
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5307
5308 ( exit $ac_status )
5309 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5310 See \`config.log' for more details." >&5
5311 echo "$as_me: error: cannot compute sizeof (long), 77
5312 See \`config.log' for more details." >&2;}
5313    { (exit 1); exit 1; }; }
5314 fi
5315 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5316 fi
5317 fi
5318 rm -f conftest.val
5319 else
5320   ac_cv_sizeof_long=0
5321 fi
5322 fi
5323 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5324 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5325 cat >>confdefs.h <<_ACEOF
5326 #define SIZEOF_LONG $ac_cv_sizeof_long
5327 _ACEOF
5328
5329
5330 echo "$as_me:$LINENO: checking for float" >&5
5331 echo $ECHO_N "checking for float... $ECHO_C" >&6
5332 if test "${ac_cv_type_float+set}" = set; then
5333   echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335   cat >conftest.$ac_ext <<_ACEOF
5336 #line $LINENO "configure"
5337 /* confdefs.h.  */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h.  */
5342 $ac_includes_default
5343 int
5344 main ()
5345 {
5346 if ((float *) 0)
5347   return 0;
5348 if (sizeof (float))
5349   return 0;
5350   ;
5351   return 0;
5352 }
5353 _ACEOF
5354 rm -f conftest.$ac_objext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356   (eval $ac_compile) 2>&5
5357   ac_status=$?
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); } &&
5360          { ac_try='test -s conftest.$ac_objext'
5361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362   (eval $ac_try) 2>&5
5363   ac_status=$?
5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365   (exit $ac_status); }; }; then
5366   ac_cv_type_float=yes
5367 else
5368   echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.$ac_ext >&5
5370
5371 ac_cv_type_float=no
5372 fi
5373 rm -f conftest.$ac_objext conftest.$ac_ext
5374 fi
5375 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
5376 echo "${ECHO_T}$ac_cv_type_float" >&6
5377
5378 echo "$as_me:$LINENO: checking size of float" >&5
5379 echo $ECHO_N "checking size of float... $ECHO_C" >&6
5380 if test "${ac_cv_sizeof_float+set}" = set; then
5381   echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383   if test "$ac_cv_type_float" = yes; then
5384   # The cast to unsigned long works around a bug in the HP C Compiler
5385   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5386   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5387   # This bug is HP SR number 8606223364.
5388   if test "$cross_compiling" = yes; then
5389   # Depending upon the size, compute the lo and hi bounds.
5390 cat >conftest.$ac_ext <<_ACEOF
5391 #line $LINENO "configure"
5392 /* confdefs.h.  */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h.  */
5397 $ac_includes_default
5398 int
5399 main ()
5400 {
5401 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5402 test_array [0] = 0
5403
5404   ;
5405   return 0;
5406 }
5407 _ACEOF
5408 rm -f conftest.$ac_objext
5409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5410   (eval $ac_compile) 2>&5
5411   ac_status=$?
5412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413   (exit $ac_status); } &&
5414          { ac_try='test -s conftest.$ac_objext'
5415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416   (eval $ac_try) 2>&5
5417   ac_status=$?
5418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419   (exit $ac_status); }; }; then
5420   ac_lo=0 ac_mid=0
5421   while :; do
5422     cat >conftest.$ac_ext <<_ACEOF
5423 #line $LINENO "configure"
5424 /* confdefs.h.  */
5425 _ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h.  */
5429 $ac_includes_default
5430 int
5431 main ()
5432 {
5433 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5434 test_array [0] = 0
5435
5436   ;
5437   return 0;
5438 }
5439 _ACEOF
5440 rm -f conftest.$ac_objext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5442   (eval $ac_compile) 2>&5
5443   ac_status=$?
5444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); } &&
5446          { ac_try='test -s conftest.$ac_objext'
5447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448   (eval $ac_try) 2>&5
5449   ac_status=$?
5450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451   (exit $ac_status); }; }; then
5452   ac_hi=$ac_mid; break
5453 else
5454   echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5456
5457 ac_lo=`expr $ac_mid + 1`
5458                     if test $ac_lo -le $ac_mid; then
5459                       ac_lo= ac_hi=
5460                       break
5461                     fi
5462                     ac_mid=`expr 2 '*' $ac_mid + 1`
5463 fi
5464 rm -f conftest.$ac_objext conftest.$ac_ext
5465   done
5466 else
5467   echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5469
5470 cat >conftest.$ac_ext <<_ACEOF
5471 #line $LINENO "configure"
5472 /* confdefs.h.  */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h.  */
5477 $ac_includes_default
5478 int
5479 main ()
5480 {
5481 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5482 test_array [0] = 0
5483
5484   ;
5485   return 0;
5486 }
5487 _ACEOF
5488 rm -f conftest.$ac_objext
5489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5490   (eval $ac_compile) 2>&5
5491   ac_status=$?
5492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493   (exit $ac_status); } &&
5494          { ac_try='test -s conftest.$ac_objext'
5495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496   (eval $ac_try) 2>&5
5497   ac_status=$?
5498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499   (exit $ac_status); }; }; then
5500   ac_hi=-1 ac_mid=-1
5501   while :; do
5502     cat >conftest.$ac_ext <<_ACEOF
5503 #line $LINENO "configure"
5504 /* confdefs.h.  */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h.  */
5509 $ac_includes_default
5510 int
5511 main ()
5512 {
5513 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5514 test_array [0] = 0
5515
5516   ;
5517   return 0;
5518 }
5519 _ACEOF
5520 rm -f conftest.$ac_objext
5521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5522   (eval $ac_compile) 2>&5
5523   ac_status=$?
5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525   (exit $ac_status); } &&
5526          { ac_try='test -s conftest.$ac_objext'
5527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528   (eval $ac_try) 2>&5
5529   ac_status=$?
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); }; }; then
5532   ac_lo=$ac_mid; break
5533 else
5534   echo "$as_me: failed program was:" >&5
5535 sed 's/^/| /' conftest.$ac_ext >&5
5536
5537 ac_hi=`expr '(' $ac_mid ')' - 1`
5538                        if test $ac_mid -le $ac_hi; then
5539                          ac_lo= ac_hi=
5540                          break
5541                        fi
5542                        ac_mid=`expr 2 '*' $ac_mid`
5543 fi
5544 rm -f conftest.$ac_objext conftest.$ac_ext
5545   done
5546 else
5547   echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5549
5550 ac_lo= ac_hi=
5551 fi
5552 rm -f conftest.$ac_objext conftest.$ac_ext
5553 fi
5554 rm -f conftest.$ac_objext conftest.$ac_ext
5555 # Binary search between lo and hi bounds.
5556 while test "x$ac_lo" != "x$ac_hi"; do
5557   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5558   cat >conftest.$ac_ext <<_ACEOF
5559 #line $LINENO "configure"
5560 /* confdefs.h.  */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h.  */
5565 $ac_includes_default
5566 int
5567 main ()
5568 {
5569 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5570 test_array [0] = 0
5571
5572   ;
5573   return 0;
5574 }
5575 _ACEOF
5576 rm -f conftest.$ac_objext
5577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5578   (eval $ac_compile) 2>&5
5579   ac_status=$?
5580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); } &&
5582          { ac_try='test -s conftest.$ac_objext'
5583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584   (eval $ac_try) 2>&5
5585   ac_status=$?
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); }; }; then
5588   ac_hi=$ac_mid
5589 else
5590   echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5592
5593 ac_lo=`expr '(' $ac_mid ')' + 1`
5594 fi
5595 rm -f conftest.$ac_objext conftest.$ac_ext
5596 done
5597 case $ac_lo in
5598 ?*) ac_cv_sizeof_float=$ac_lo;;
5599 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5600 See \`config.log' for more details." >&5
5601 echo "$as_me: error: cannot compute sizeof (float), 77
5602 See \`config.log' for more details." >&2;}
5603    { (exit 1); exit 1; }; } ;;
5604 esac
5605 else
5606   if test "$cross_compiling" = yes; then
5607   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5608 See \`config.log' for more details." >&5
5609 echo "$as_me: error: cannot run test program while cross compiling
5610 See \`config.log' for more details." >&2;}
5611    { (exit 1); exit 1; }; }
5612 else
5613   cat >conftest.$ac_ext <<_ACEOF
5614 #line $LINENO "configure"
5615 /* confdefs.h.  */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h.  */
5620 $ac_includes_default
5621 long longval () { return (long) (sizeof (float)); }
5622 unsigned long ulongval () { return (long) (sizeof (float)); }
5623 #include <stdio.h>
5624 #include <stdlib.h>
5625 int
5626 main ()
5627 {
5628
5629   FILE *f = fopen ("conftest.val", "w");
5630   if (! f)
5631     exit (1);
5632   if (((long) (sizeof (float))) < 0)
5633     {
5634       long i = longval ();
5635       if (i != ((long) (sizeof (float))))
5636         exit (1);
5637       fprintf (f, "%ld\n", i);
5638     }
5639   else
5640     {
5641       unsigned long i = ulongval ();
5642       if (i != ((long) (sizeof (float))))
5643         exit (1);
5644       fprintf (f, "%lu\n", i);
5645     }
5646   exit (ferror (f) || fclose (f) != 0);
5647
5648   ;
5649   return 0;
5650 }
5651 _ACEOF
5652 rm -f conftest$ac_exeext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5654   (eval $ac_link) 2>&5
5655   ac_status=$?
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659   (eval $ac_try) 2>&5
5660   ac_status=$?
5661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662   (exit $ac_status); }; }; then
5663   ac_cv_sizeof_float=`cat conftest.val`
5664 else
5665   echo "$as_me: program exited with status $ac_status" >&5
5666 echo "$as_me: failed program was:" >&5
5667 sed 's/^/| /' conftest.$ac_ext >&5
5668
5669 ( exit $ac_status )
5670 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5671 See \`config.log' for more details." >&5
5672 echo "$as_me: error: cannot compute sizeof (float), 77
5673 See \`config.log' for more details." >&2;}
5674    { (exit 1); exit 1; }; }
5675 fi
5676 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5677 fi
5678 fi
5679 rm -f conftest.val
5680 else
5681   ac_cv_sizeof_float=0
5682 fi
5683 fi
5684 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5685 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5686 cat >>confdefs.h <<_ACEOF
5687 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5688 _ACEOF
5689
5690
5691 echo "$as_me:$LINENO: checking for double" >&5
5692 echo $ECHO_N "checking for double... $ECHO_C" >&6
5693 if test "${ac_cv_type_double+set}" = set; then
5694   echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696   cat >conftest.$ac_ext <<_ACEOF
5697 #line $LINENO "configure"
5698 /* confdefs.h.  */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h.  */
5703 $ac_includes_default
5704 int
5705 main ()
5706 {
5707 if ((double *) 0)
5708   return 0;
5709 if (sizeof (double))
5710   return 0;
5711   ;
5712   return 0;
5713 }
5714 _ACEOF
5715 rm -f conftest.$ac_objext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5717   (eval $ac_compile) 2>&5
5718   ac_status=$?
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); } &&
5721          { ac_try='test -s conftest.$ac_objext'
5722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723   (eval $ac_try) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); }; }; then
5727   ac_cv_type_double=yes
5728 else
5729   echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5731
5732 ac_cv_type_double=no
5733 fi
5734 rm -f conftest.$ac_objext conftest.$ac_ext
5735 fi
5736 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5737 echo "${ECHO_T}$ac_cv_type_double" >&6
5738
5739 echo "$as_me:$LINENO: checking size of double" >&5
5740 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5741 if test "${ac_cv_sizeof_double+set}" = set; then
5742   echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744   if test "$ac_cv_type_double" = yes; then
5745   # The cast to unsigned long works around a bug in the HP C Compiler
5746   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5747   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5748   # This bug is HP SR number 8606223364.
5749   if test "$cross_compiling" = yes; then
5750   # Depending upon the size, compute the lo and hi bounds.
5751 cat >conftest.$ac_ext <<_ACEOF
5752 #line $LINENO "configure"
5753 /* confdefs.h.  */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h.  */
5758 $ac_includes_default
5759 int
5760 main ()
5761 {
5762 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5763 test_array [0] = 0
5764
5765   ;
5766   return 0;
5767 }
5768 _ACEOF
5769 rm -f conftest.$ac_objext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771   (eval $ac_compile) 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); } &&
5775          { ac_try='test -s conftest.$ac_objext'
5776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777   (eval $ac_try) 2>&5
5778   ac_status=$?
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); }; }; then
5781   ac_lo=0 ac_mid=0
5782   while :; do
5783     cat >conftest.$ac_ext <<_ACEOF
5784 #line $LINENO "configure"
5785 /* confdefs.h.  */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h.  */
5790 $ac_includes_default
5791 int
5792 main ()
5793 {
5794 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5795 test_array [0] = 0
5796
5797   ;
5798   return 0;
5799 }
5800 _ACEOF
5801 rm -f conftest.$ac_objext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803   (eval $ac_compile) 2>&5
5804   ac_status=$?
5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806   (exit $ac_status); } &&
5807          { ac_try='test -s conftest.$ac_objext'
5808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809   (eval $ac_try) 2>&5
5810   ac_status=$?
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); }; }; then
5813   ac_hi=$ac_mid; break
5814 else
5815   echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5817
5818 ac_lo=`expr $ac_mid + 1`
5819                     if test $ac_lo -le $ac_mid; then
5820                       ac_lo= ac_hi=
5821                       break
5822                     fi
5823                     ac_mid=`expr 2 '*' $ac_mid + 1`
5824 fi
5825 rm -f conftest.$ac_objext conftest.$ac_ext
5826   done
5827 else
5828   echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831 cat >conftest.$ac_ext <<_ACEOF
5832 #line $LINENO "configure"
5833 /* confdefs.h.  */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h.  */
5838 $ac_includes_default
5839 int
5840 main ()
5841 {
5842 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5843 test_array [0] = 0
5844
5845   ;
5846   return 0;
5847 }
5848 _ACEOF
5849 rm -f conftest.$ac_objext
5850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5851   (eval $ac_compile) 2>&5
5852   ac_status=$?
5853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854   (exit $ac_status); } &&
5855          { ac_try='test -s conftest.$ac_objext'
5856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857   (eval $ac_try) 2>&5
5858   ac_status=$?
5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860   (exit $ac_status); }; }; then
5861   ac_hi=-1 ac_mid=-1
5862   while :; do
5863     cat >conftest.$ac_ext <<_ACEOF
5864 #line $LINENO "configure"
5865 /* confdefs.h.  */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h.  */
5870 $ac_includes_default
5871 int
5872 main ()
5873 {
5874 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5875 test_array [0] = 0
5876
5877   ;
5878   return 0;
5879 }
5880 _ACEOF
5881 rm -f conftest.$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883   (eval $ac_compile) 2>&5
5884   ac_status=$?
5885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886   (exit $ac_status); } &&
5887          { ac_try='test -s conftest.$ac_objext'
5888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889   (eval $ac_try) 2>&5
5890   ac_status=$?
5891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); }; }; then
5893   ac_lo=$ac_mid; break
5894 else
5895   echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5897
5898 ac_hi=`expr '(' $ac_mid ')' - 1`
5899                        if test $ac_mid -le $ac_hi; then
5900                          ac_lo= ac_hi=
5901                          break
5902                        fi
5903                        ac_mid=`expr 2 '*' $ac_mid`
5904 fi
5905 rm -f conftest.$ac_objext conftest.$ac_ext
5906   done
5907 else
5908   echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5910
5911 ac_lo= ac_hi=
5912 fi
5913 rm -f conftest.$ac_objext conftest.$ac_ext
5914 fi
5915 rm -f conftest.$ac_objext conftest.$ac_ext
5916 # Binary search between lo and hi bounds.
5917 while test "x$ac_lo" != "x$ac_hi"; do
5918   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5919   cat >conftest.$ac_ext <<_ACEOF
5920 #line $LINENO "configure"
5921 /* confdefs.h.  */
5922 _ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h.  */
5926 $ac_includes_default
5927 int
5928 main ()
5929 {
5930 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5931 test_array [0] = 0
5932
5933   ;
5934   return 0;
5935 }
5936 _ACEOF
5937 rm -f conftest.$ac_objext
5938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5939   (eval $ac_compile) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); } &&
5943          { ac_try='test -s conftest.$ac_objext'
5944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945   (eval $ac_try) 2>&5
5946   ac_status=$?
5947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948   (exit $ac_status); }; }; then
5949   ac_hi=$ac_mid
5950 else
5951   echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5953
5954 ac_lo=`expr '(' $ac_mid ')' + 1`
5955 fi
5956 rm -f conftest.$ac_objext conftest.$ac_ext
5957 done
5958 case $ac_lo in
5959 ?*) ac_cv_sizeof_double=$ac_lo;;
5960 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5961 See \`config.log' for more details." >&5
5962 echo "$as_me: error: cannot compute sizeof (double), 77
5963 See \`config.log' for more details." >&2;}
5964    { (exit 1); exit 1; }; } ;;
5965 esac
5966 else
5967   if test "$cross_compiling" = yes; then
5968   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5969 See \`config.log' for more details." >&5
5970 echo "$as_me: error: cannot run test program while cross compiling
5971 See \`config.log' for more details." >&2;}
5972    { (exit 1); exit 1; }; }
5973 else
5974   cat >conftest.$ac_ext <<_ACEOF
5975 #line $LINENO "configure"
5976 /* confdefs.h.  */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h.  */
5981 $ac_includes_default
5982 long longval () { return (long) (sizeof (double)); }
5983 unsigned long ulongval () { return (long) (sizeof (double)); }
5984 #include <stdio.h>
5985 #include <stdlib.h>
5986 int
5987 main ()
5988 {
5989
5990   FILE *f = fopen ("conftest.val", "w");
5991   if (! f)
5992     exit (1);
5993   if (((long) (sizeof (double))) < 0)
5994     {
5995       long i = longval ();
5996       if (i != ((long) (sizeof (double))))
5997         exit (1);
5998       fprintf (f, "%ld\n", i);
5999     }
6000   else
6001     {
6002       unsigned long i = ulongval ();
6003       if (i != ((long) (sizeof (double))))
6004         exit (1);
6005       fprintf (f, "%lu\n", i);
6006     }
6007   exit (ferror (f) || fclose (f) != 0);
6008
6009   ;
6010   return 0;
6011 }
6012 _ACEOF
6013 rm -f conftest$ac_exeext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6015   (eval $ac_link) 2>&5
6016   ac_status=$?
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020   (eval $ac_try) 2>&5
6021   ac_status=$?
6022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); }; }; then
6024   ac_cv_sizeof_double=`cat conftest.val`
6025 else
6026   echo "$as_me: program exited with status $ac_status" >&5
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030 ( exit $ac_status )
6031 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6032 See \`config.log' for more details." >&5
6033 echo "$as_me: error: cannot compute sizeof (double), 77
6034 See \`config.log' for more details." >&2;}
6035    { (exit 1); exit 1; }; }
6036 fi
6037 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6038 fi
6039 fi
6040 rm -f conftest.val
6041 else
6042   ac_cv_sizeof_double=0
6043 fi
6044 fi
6045 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6046 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6047 cat >>confdefs.h <<_ACEOF
6048 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6049 _ACEOF
6050
6051
6052
6053
6054 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
6055 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
6056 if test "${ac_cv_lib_z_deflate+set}" = set; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059   ac_check_lib_save_LIBS=$LIBS
6060 LIBS="-lz  $LIBS"
6061 cat >conftest.$ac_ext <<_ACEOF
6062 #line $LINENO "configure"
6063 /* confdefs.h.  */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h.  */
6068
6069 /* Override any gcc2 internal prototype to avoid an error.  */
6070 #ifdef __cplusplus
6071 extern "C"
6072 #endif
6073 /* We use char because int might match the return type of a gcc2
6074    builtin and then its argument prototype would still apply.  */
6075 char deflate ();
6076 int
6077 main ()
6078 {
6079 deflate ();
6080   ;
6081   return 0;
6082 }
6083 _ACEOF
6084 rm -f conftest.$ac_objext conftest$ac_exeext
6085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6086   (eval $ac_link) 2>&5
6087   ac_status=$?
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); } &&
6090          { ac_try='test -s conftest$ac_exeext'
6091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092   (eval $ac_try) 2>&5
6093   ac_status=$?
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); }; }; then
6096   ac_cv_lib_z_deflate=yes
6097 else
6098   echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 ac_cv_lib_z_deflate=no
6102 fi
6103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6104 LIBS=$ac_check_lib_save_LIBS
6105 fi
6106 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
6107 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
6108 if test $ac_cv_lib_z_deflate = yes; then
6109    zlib="true"
6110 else
6111    zlib="false" ;  { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
6112 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
6113 fi
6114
6115
6116 echo "$as_me:$LINENO: checking for sin in -lm" >&5
6117 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6118 if test "${ac_cv_lib_m_sin+set}" = set; then
6119   echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121   ac_check_lib_save_LIBS=$LIBS
6122 LIBS="-lm  $LIBS"
6123 cat >conftest.$ac_ext <<_ACEOF
6124 #line $LINENO "configure"
6125 /* confdefs.h.  */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h.  */
6130
6131 /* Override any gcc2 internal prototype to avoid an error.  */
6132 #ifdef __cplusplus
6133 extern "C"
6134 #endif
6135 /* We use char because int might match the return type of a gcc2
6136    builtin and then its argument prototype would still apply.  */
6137 char sin ();
6138 int
6139 main ()
6140 {
6141 sin ();
6142   ;
6143   return 0;
6144 }
6145 _ACEOF
6146 rm -f conftest.$ac_objext conftest$ac_exeext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6148   (eval $ac_link) 2>&5
6149   ac_status=$?
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); } &&
6152          { ac_try='test -s conftest$ac_exeext'
6153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154   (eval $ac_try) 2>&5
6155   ac_status=$?
6156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157   (exit $ac_status); }; }; then
6158   ac_cv_lib_m_sin=yes
6159 else
6160   echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6162
6163 ac_cv_lib_m_sin=no
6164 fi
6165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6166 LIBS=$ac_check_lib_save_LIBS
6167 fi
6168 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6169 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6170 if test $ac_cv_lib_m_sin = yes; then
6171   cat >>confdefs.h <<_ACEOF
6172 #define HAVE_LIBM 1
6173 _ACEOF
6174
6175   LIBS="-lm $LIBS"
6176
6177 fi
6178
6179 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
6180 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
6181 if test "${ac_cv_lib_curses_main+set}" = set; then
6182   echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184   ac_check_lib_save_LIBS=$LIBS
6185 LIBS="-lcurses  $LIBS"
6186 cat >conftest.$ac_ext <<_ACEOF
6187 #line $LINENO "configure"
6188 /* confdefs.h.  */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h.  */
6193
6194
6195 int
6196 main ()
6197 {
6198 main ();
6199   ;
6200   return 0;
6201 }
6202 _ACEOF
6203 rm -f conftest.$ac_objext conftest$ac_exeext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6205   (eval $ac_link) 2>&5
6206   ac_status=$?
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); } &&
6209          { ac_try='test -s conftest$ac_exeext'
6210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211   (eval $ac_try) 2>&5
6212   ac_status=$?
6213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214   (exit $ac_status); }; }; then
6215   ac_cv_lib_curses_main=yes
6216 else
6217   echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6219
6220 ac_cv_lib_curses_main=no
6221 fi
6222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6223 LIBS=$ac_check_lib_save_LIBS
6224 fi
6225 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
6226 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
6227 if test $ac_cv_lib_curses_main = yes; then
6228   curses=true
6229 else
6230   curses=false
6231 fi
6232
6233 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6234 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
6235 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6236   echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238   ac_check_lib_save_LIBS=$LIBS
6239 LIBS="-lncurses  $LIBS"
6240 cat >conftest.$ac_ext <<_ACEOF
6241 #line $LINENO "configure"
6242 /* confdefs.h.  */
6243 _ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h.  */
6247
6248
6249 int
6250 main ()
6251 {
6252 main ();
6253   ;
6254   return 0;
6255 }
6256 _ACEOF
6257 rm -f conftest.$ac_objext conftest$ac_exeext
6258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6259   (eval $ac_link) 2>&5
6260   ac_status=$?
6261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262   (exit $ac_status); } &&
6263          { ac_try='test -s conftest$ac_exeext'
6264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265   (eval $ac_try) 2>&5
6266   ac_status=$?
6267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268   (exit $ac_status); }; }; then
6269   ac_cv_lib_ncurses_main=yes
6270 else
6271   echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6273
6274 ac_cv_lib_ncurses_main=no
6275 fi
6276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6277 LIBS=$ac_check_lib_save_LIBS
6278 fi
6279 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6280 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
6281 if test $ac_cv_lib_ncurses_main = yes; then
6282   ncurses=true
6283 else
6284   ncurses=false
6285 fi
6286
6287 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
6288 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
6289 if test "${ac_cv_lib_readline_main+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   ac_check_lib_save_LIBS=$LIBS
6293 LIBS="-lreadline -lcurses $LIBS"
6294 cat >conftest.$ac_ext <<_ACEOF
6295 #line $LINENO "configure"
6296 /* confdefs.h.  */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h.  */
6301
6302
6303 int
6304 main ()
6305 {
6306 main ();
6307   ;
6308   return 0;
6309 }
6310 _ACEOF
6311 rm -f conftest.$ac_objext conftest$ac_exeext
6312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6313   (eval $ac_link) 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); } &&
6317          { ac_try='test -s conftest$ac_exeext'
6318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319   (eval $ac_try) 2>&5
6320   ac_status=$?
6321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322   (exit $ac_status); }; }; then
6323   ac_cv_lib_readline_main=yes
6324 else
6325   echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6327
6328 ac_cv_lib_readline_main=no
6329 fi
6330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6331 LIBS=$ac_check_lib_save_LIBS
6332 fi
6333 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
6334 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
6335 if test $ac_cv_lib_readline_main = yes; then
6336   readline=true;
6337
6338 cat >>confdefs.h <<\_ACEOF
6339 #define HAVE_READLINE 1
6340 _ACEOF
6341
6342 else
6343   readline=false
6344 fi
6345
6346 wxwin=false
6347 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
6348 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
6349 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
6350   echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352   ac_check_lib_save_LIBS=$LIBS
6353 LIBS="-lwx_gtk-2.4 -L/usr/lib64 -L/usr/lib `gtk-config --libs` `glib-config --libs glib gmodule gthread`  $LIBS"
6354 cat >conftest.$ac_ext <<_ACEOF
6355 #line $LINENO "configure"
6356 /* confdefs.h.  */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h.  */
6361
6362
6363 int
6364 main ()
6365 {
6366 main ();
6367   ;
6368   return 0;
6369 }
6370 _ACEOF
6371 rm -f conftest.$ac_objext conftest$ac_exeext
6372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6373   (eval $ac_link) 2>&5
6374   ac_status=$?
6375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376   (exit $ac_status); } &&
6377          { ac_try='test -s conftest$ac_exeext'
6378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379   (eval $ac_try) 2>&5
6380   ac_status=$?
6381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382   (exit $ac_status); }; }; then
6383   ac_cv_lib_wx_gtk_2_4_main=yes
6384 else
6385   echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6387
6388 ac_cv_lib_wx_gtk_2_4_main=no
6389 fi
6390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6391 LIBS=$ac_check_lib_save_LIBS
6392 fi
6393 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
6394 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
6395 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
6396   wxwin=true; wx_gtk=true;
6397 cat >>confdefs.h <<\_ACEOF
6398 #define HAVE_WXWINDOWS 1
6399 _ACEOF
6400
6401 fi
6402
6403 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
6404 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
6405 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
6406   echo $ECHO_N "(cached) $ECHO_C" >&6
6407 else
6408   ac_check_lib_save_LIBS=$LIBS
6409 LIBS="-lwx_mac-2.4  $LIBS"
6410 cat >conftest.$ac_ext <<_ACEOF
6411 #line $LINENO "configure"
6412 /* confdefs.h.  */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h.  */
6417
6418
6419 int
6420 main ()
6421 {
6422 main ();
6423   ;
6424   return 0;
6425 }
6426 _ACEOF
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429   (eval $ac_link) 2>&5
6430   ac_status=$?
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); } &&
6433          { ac_try='test -s conftest$ac_exeext'
6434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435   (eval $ac_try) 2>&5
6436   ac_status=$?
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); }; }; then
6439   ac_cv_lib_wx_mac_2_4_main=yes
6440 else
6441   echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6443
6444 ac_cv_lib_wx_mac_2_4_main=no
6445 fi
6446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6447 LIBS=$ac_check_lib_save_LIBS
6448 fi
6449 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
6450 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
6451 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
6452   wxwin=true; wx_mac=true;
6453 cat >>confdefs.h <<\_ACEOF
6454 #define HAVE_WXWINDOWS 1
6455 _ACEOF
6456
6457 fi
6458
6459 echo "$as_me:$LINENO: checking for fftw_malloc in -lfftw3" >&5
6460 echo $ECHO_N "checking for fftw_malloc in -lfftw3... $ECHO_C" >&6
6461 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464   ac_check_lib_save_LIBS=$LIBS
6465 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
6466 cat >conftest.$ac_ext <<_ACEOF
6467 #line $LINENO "configure"
6468 /* confdefs.h.  */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h.  */
6473
6474 /* Override any gcc2 internal prototype to avoid an error.  */
6475 #ifdef __cplusplus
6476 extern "C"
6477 #endif
6478 /* We use char because int might match the return type of a gcc2
6479    builtin and then its argument prototype would still apply.  */
6480 char fftw_malloc ();
6481 int
6482 main ()
6483 {
6484 fftw_malloc ();
6485   ;
6486   return 0;
6487 }
6488 _ACEOF
6489 rm -f conftest.$ac_objext conftest$ac_exeext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6491   (eval $ac_link) 2>&5
6492   ac_status=$?
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); } &&
6495          { ac_try='test -s conftest$ac_exeext'
6496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497   (eval $ac_try) 2>&5
6498   ac_status=$?
6499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500   (exit $ac_status); }; }; then
6501   ac_cv_lib_fftw3_fftw_malloc=yes
6502 else
6503   echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6505
6506 ac_cv_lib_fftw3_fftw_malloc=no
6507 fi
6508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6509 LIBS=$ac_check_lib_save_LIBS
6510 fi
6511 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
6512 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_malloc" >&6
6513 if test $ac_cv_lib_fftw3_fftw_malloc = yes; then
6514   fftw=true;
6515 cat >>confdefs.h <<\_ACEOF
6516 #define HAVE_FFTW 1
6517 _ACEOF
6518
6519 else
6520   fftw=false
6521 fi
6522
6523 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6524 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6525 if test "${ac_cv_lib_GL_main+set}" = set; then
6526   echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528   ac_check_lib_save_LIBS=$LIBS
6529 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 -lXt -lXext $LIBS"
6530 cat >conftest.$ac_ext <<_ACEOF
6531 #line $LINENO "configure"
6532 /* confdefs.h.  */
6533 _ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h.  */
6537
6538
6539 int
6540 main ()
6541 {
6542 main ();
6543   ;
6544   return 0;
6545 }
6546 _ACEOF
6547 rm -f conftest.$ac_objext conftest$ac_exeext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549   (eval $ac_link) 2>&5
6550   ac_status=$?
6551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552   (exit $ac_status); } &&
6553          { ac_try='test -s conftest$ac_exeext'
6554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555   (eval $ac_try) 2>&5
6556   ac_status=$?
6557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558   (exit $ac_status); }; }; then
6559   ac_cv_lib_GL_main=yes
6560 else
6561   echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6563
6564 ac_cv_lib_GL_main=no
6565 fi
6566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6567 LIBS=$ac_check_lib_save_LIBS
6568 fi
6569 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6570 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6571 if test $ac_cv_lib_GL_main = yes; then
6572   libgl=true
6573 else
6574   libgl=false
6575 fi
6576
6577 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6578 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6579 if test "${ac_cv_lib_pthread_main+set}" = set; then
6580   echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582   ac_check_lib_save_LIBS=$LIBS
6583 LIBS="-lpthread  $LIBS"
6584 cat >conftest.$ac_ext <<_ACEOF
6585 #line $LINENO "configure"
6586 /* confdefs.h.  */
6587 _ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h.  */
6591
6592
6593 int
6594 main ()
6595 {
6596 main ();
6597   ;
6598   return 0;
6599 }
6600 _ACEOF
6601 rm -f conftest.$ac_objext conftest$ac_exeext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6603   (eval $ac_link) 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); } &&
6607          { ac_try='test -s conftest$ac_exeext'
6608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609   (eval $ac_try) 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); }; }; then
6613   ac_cv_lib_pthread_main=yes
6614 else
6615   echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 ac_cv_lib_pthread_main=no
6619 fi
6620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6621 LIBS=$ac_check_lib_save_LIBS
6622 fi
6623 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6624 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6625 if test $ac_cv_lib_pthread_main = yes; then
6626   pthread=true
6627 else
6628   pthread=false
6629 fi
6630
6631
6632 if test "$zlib" = "true" ; then
6633   echo "$as_me:$LINENO: checking for main in -lpng" >&5
6634 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6635 if test "${ac_cv_lib_png_main+set}" = set; then
6636   echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638   ac_check_lib_save_LIBS=$LIBS
6639 LIBS="-lpng -lz -lm $LIBS"
6640 cat >conftest.$ac_ext <<_ACEOF
6641 #line $LINENO "configure"
6642 /* confdefs.h.  */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h.  */
6647
6648
6649 int
6650 main ()
6651 {
6652 main ();
6653   ;
6654   return 0;
6655 }
6656 _ACEOF
6657 rm -f conftest.$ac_objext conftest$ac_exeext
6658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6659   (eval $ac_link) 2>&5
6660   ac_status=$?
6661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662   (exit $ac_status); } &&
6663          { ac_try='test -s conftest$ac_exeext'
6664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665   (eval $ac_try) 2>&5
6666   ac_status=$?
6667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668   (exit $ac_status); }; }; then
6669   ac_cv_lib_png_main=yes
6670 else
6671   echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6673
6674 ac_cv_lib_png_main=no
6675 fi
6676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6677 LIBS=$ac_check_lib_save_LIBS
6678 fi
6679 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6680 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6681 if test $ac_cv_lib_png_main = yes; then
6682   png=true ;
6683 cat >>confdefs.h <<\_ACEOF
6684 #define HAVE_PNG 1
6685 _ACEOF
6686
6687 else
6688   png=false
6689 fi
6690
6691 fi
6692
6693 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6694 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6695 if test "${ac_cv_header_stdc+set}" = set; then
6696   echo $ECHO_N "(cached) $ECHO_C" >&6
6697 else
6698   cat >conftest.$ac_ext <<_ACEOF
6699 #line $LINENO "configure"
6700 /* confdefs.h.  */
6701 _ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h.  */
6705 #include <stdlib.h>
6706 #include <stdarg.h>
6707 #include <string.h>
6708 #include <float.h>
6709
6710 int
6711 main ()
6712 {
6713
6714   ;
6715   return 0;
6716 }
6717 _ACEOF
6718 rm -f conftest.$ac_objext
6719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6720   (eval $ac_compile) 2>&5
6721   ac_status=$?
6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723   (exit $ac_status); } &&
6724          { ac_try='test -s conftest.$ac_objext'
6725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726   (eval $ac_try) 2>&5
6727   ac_status=$?
6728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729   (exit $ac_status); }; }; then
6730   ac_cv_header_stdc=yes
6731 else
6732   echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6734
6735 ac_cv_header_stdc=no
6736 fi
6737 rm -f conftest.$ac_objext conftest.$ac_ext
6738
6739 if test $ac_cv_header_stdc = yes; then
6740   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6741   cat >conftest.$ac_ext <<_ACEOF
6742 #line $LINENO "configure"
6743 /* confdefs.h.  */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h.  */
6748 #include <string.h>
6749
6750 _ACEOF
6751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6752   $EGREP "memchr" >/dev/null 2>&1; then
6753   :
6754 else
6755   ac_cv_header_stdc=no
6756 fi
6757 rm -f conftest*
6758
6759 fi
6760
6761 if test $ac_cv_header_stdc = yes; then
6762   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6763   cat >conftest.$ac_ext <<_ACEOF
6764 #line $LINENO "configure"
6765 /* confdefs.h.  */
6766 _ACEOF
6767 cat confdefs.h >>conftest.$ac_ext
6768 cat >>conftest.$ac_ext <<_ACEOF
6769 /* end confdefs.h.  */
6770 #include <stdlib.h>
6771
6772 _ACEOF
6773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6774   $EGREP "free" >/dev/null 2>&1; then
6775   :
6776 else
6777   ac_cv_header_stdc=no
6778 fi
6779 rm -f conftest*
6780
6781 fi
6782
6783 if test $ac_cv_header_stdc = yes; then
6784   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6785   if test "$cross_compiling" = yes; then
6786   :
6787 else
6788   cat >conftest.$ac_ext <<_ACEOF
6789 #line $LINENO "configure"
6790 /* confdefs.h.  */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h.  */
6795 #include <ctype.h>
6796 #if ((' ' & 0x0FF) == 0x020)
6797 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6798 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6799 #else
6800 # define ISLOWER(c) \
6801                    (('a' <= (c) && (c) <= 'i') \
6802                      || ('j' <= (c) && (c) <= 'r') \
6803                      || ('s' <= (c) && (c) <= 'z'))
6804 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6805 #endif
6806
6807 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6808 int
6809 main ()
6810 {
6811   int i;
6812   for (i = 0; i < 256; i++)
6813     if (XOR (islower (i), ISLOWER (i))
6814         || toupper (i) != TOUPPER (i))
6815       exit(2);
6816   exit (0);
6817 }
6818 _ACEOF
6819 rm -f conftest$ac_exeext
6820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6821   (eval $ac_link) 2>&5
6822   ac_status=$?
6823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826   (eval $ac_try) 2>&5
6827   ac_status=$?
6828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829   (exit $ac_status); }; }; then
6830   :
6831 else
6832   echo "$as_me: program exited with status $ac_status" >&5
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6835
6836 ( exit $ac_status )
6837 ac_cv_header_stdc=no
6838 fi
6839 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6840 fi
6841 fi
6842 fi
6843 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6844 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6845 if test $ac_cv_header_stdc = yes; then
6846
6847 cat >>confdefs.h <<\_ACEOF
6848 #define STDC_HEADERS 1
6849 _ACEOF
6850
6851 fi
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877 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
6878 do
6879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6881   echo "$as_me:$LINENO: checking for $ac_header" >&5
6882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6884   echo $ECHO_N "(cached) $ECHO_C" >&6
6885 fi
6886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6888 else
6889   # Is the header compilable?
6890 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6892 cat >conftest.$ac_ext <<_ACEOF
6893 #line $LINENO "configure"
6894 /* confdefs.h.  */
6895 _ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h.  */
6899 $ac_includes_default
6900 #include <$ac_header>
6901 _ACEOF
6902 rm -f conftest.$ac_objext
6903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6904   (eval $ac_compile) 2>&5
6905   ac_status=$?
6906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907   (exit $ac_status); } &&
6908          { ac_try='test -s conftest.$ac_objext'
6909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910   (eval $ac_try) 2>&5
6911   ac_status=$?
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); }; }; then
6914   ac_header_compiler=yes
6915 else
6916   echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6918
6919 ac_header_compiler=no
6920 fi
6921 rm -f conftest.$ac_objext conftest.$ac_ext
6922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6923 echo "${ECHO_T}$ac_header_compiler" >&6
6924
6925 # Is the header present?
6926 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6928 cat >conftest.$ac_ext <<_ACEOF
6929 #line $LINENO "configure"
6930 /* confdefs.h.  */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h.  */
6935 #include <$ac_header>
6936 _ACEOF
6937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6939   ac_status=$?
6940   grep -v '^ *+' conftest.er1 >conftest.err
6941   rm -f conftest.er1
6942   cat conftest.err >&5
6943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944   (exit $ac_status); } >/dev/null; then
6945   if test -s conftest.err; then
6946     ac_cpp_err=$ac_c_preproc_warn_flag
6947   else
6948     ac_cpp_err=
6949   fi
6950 else
6951   ac_cpp_err=yes
6952 fi
6953 if test -z "$ac_cpp_err"; then
6954   ac_header_preproc=yes
6955 else
6956   echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6958
6959   ac_header_preproc=no
6960 fi
6961 rm -f conftest.err conftest.$ac_ext
6962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6963 echo "${ECHO_T}$ac_header_preproc" >&6
6964
6965 # So?  What about this header?
6966 case $ac_header_compiler:$ac_header_preproc in
6967   yes:no )
6968     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6972     (
6973       cat <<\_ASBOX
6974 ## ------------------------------------ ##
6975 ## Report this to bug-autoconf@gnu.org. ##
6976 ## ------------------------------------ ##
6977 _ASBOX
6978     ) |
6979       sed "s/^/$as_me: WARNING:     /" >&2
6980     ;;
6981   no:yes )
6982     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6984     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6988     (
6989       cat <<\_ASBOX
6990 ## ------------------------------------ ##
6991 ## Report this to bug-autoconf@gnu.org. ##
6992 ## ------------------------------------ ##
6993 _ASBOX
6994     ) |
6995       sed "s/^/$as_me: WARNING:     /" >&2
6996     ;;
6997 esac
6998 echo "$as_me:$LINENO: checking for $ac_header" >&5
6999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7001   echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003   eval "$as_ac_Header=$ac_header_preproc"
7004 fi
7005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7007
7008 fi
7009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7010   cat >>confdefs.h <<_ACEOF
7011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7012 _ACEOF
7013
7014 fi
7015
7016 done
7017
7018
7019 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7020 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7021 if test "${ac_cv_c_const+set}" = set; then
7022   echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024   cat >conftest.$ac_ext <<_ACEOF
7025 #line $LINENO "configure"
7026 /* confdefs.h.  */
7027 _ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h.  */
7031
7032 int
7033 main ()
7034 {
7035 /* FIXME: Include the comments suggested by Paul. */
7036 #ifndef __cplusplus
7037   /* Ultrix mips cc rejects this.  */
7038   typedef int charset[2];
7039   const charset x;
7040   /* SunOS 4.1.1 cc rejects this.  */
7041   char const *const *ccp;
7042   char **p;
7043   /* NEC SVR4.0.2 mips cc rejects this.  */
7044   struct point {int x, y;};
7045   static struct point const zero = {0,0};
7046   /* AIX XL C 1.02.0.0 rejects this.
7047      It does not let you subtract one const X* pointer from another in
7048      an arm of an if-expression whose if-part is not a constant
7049      expression */
7050   const char *g = "string";
7051   ccp = &g + (g ? g-g : 0);
7052   /* HPUX 7.0 cc rejects these. */
7053   ++ccp;
7054   p = (char**) ccp;
7055   ccp = (char const *const *) p;
7056   { /* SCO 3.2v4 cc rejects this.  */
7057     char *t;
7058     char const *s = 0 ? (char *) 0 : (char const *) 0;
7059
7060     *t++ = 0;
7061   }
7062   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7063     int x[] = {25, 17};
7064     const int *foo = &x[0];
7065     ++foo;
7066   }
7067   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7068     typedef const int *iptr;
7069     iptr p = 0;
7070     ++p;
7071   }
7072   { /* AIX XL C 1.02.0.0 rejects this saying
7073        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7074     struct s { int j; const int *ap[3]; };
7075     struct s *b; b->j = 5;
7076   }
7077   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7078     const int foo = 10;
7079   }
7080 #endif
7081
7082   ;
7083   return 0;
7084 }
7085 _ACEOF
7086 rm -f conftest.$ac_objext
7087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7088   (eval $ac_compile) 2>&5
7089   ac_status=$?
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); } &&
7092          { ac_try='test -s conftest.$ac_objext'
7093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094   (eval $ac_try) 2>&5
7095   ac_status=$?
7096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097   (exit $ac_status); }; }; then
7098   ac_cv_c_const=yes
7099 else
7100   echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7102
7103 ac_cv_c_const=no
7104 fi
7105 rm -f conftest.$ac_objext conftest.$ac_ext
7106 fi
7107 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7108 echo "${ECHO_T}$ac_cv_c_const" >&6
7109 if test $ac_cv_c_const = no; then
7110
7111 cat >>confdefs.h <<\_ACEOF
7112 #define const
7113 _ACEOF
7114
7115 fi
7116
7117 echo "$as_me:$LINENO: checking for off_t" >&5
7118 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7119 if test "${ac_cv_type_off_t+set}" = set; then
7120   echo $ECHO_N "(cached) $ECHO_C" >&6
7121 else
7122   cat >conftest.$ac_ext <<_ACEOF
7123 #line $LINENO "configure"
7124 /* confdefs.h.  */
7125 _ACEOF
7126 cat confdefs.h >>conftest.$ac_ext
7127 cat >>conftest.$ac_ext <<_ACEOF
7128 /* end confdefs.h.  */
7129 $ac_includes_default
7130 int
7131 main ()
7132 {
7133 if ((off_t *) 0)
7134   return 0;
7135 if (sizeof (off_t))
7136   return 0;
7137   ;
7138   return 0;
7139 }
7140 _ACEOF
7141 rm -f conftest.$ac_objext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143   (eval $ac_compile) 2>&5
7144   ac_status=$?
7145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146   (exit $ac_status); } &&
7147          { ac_try='test -s conftest.$ac_objext'
7148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149   (eval $ac_try) 2>&5
7150   ac_status=$?
7151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152   (exit $ac_status); }; }; then
7153   ac_cv_type_off_t=yes
7154 else
7155   echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7157
7158 ac_cv_type_off_t=no
7159 fi
7160 rm -f conftest.$ac_objext conftest.$ac_ext
7161 fi
7162 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7163 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7164 if test $ac_cv_type_off_t = yes; then
7165   :
7166 else
7167
7168 cat >>confdefs.h <<_ACEOF
7169 #define off_t long
7170 _ACEOF
7171
7172 fi
7173
7174 echo "$as_me:$LINENO: checking for size_t" >&5
7175 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7176 if test "${ac_cv_type_size_t+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179   cat >conftest.$ac_ext <<_ACEOF
7180 #line $LINENO "configure"
7181 /* confdefs.h.  */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h.  */
7186 $ac_includes_default
7187 int
7188 main ()
7189 {
7190 if ((size_t *) 0)
7191   return 0;
7192 if (sizeof (size_t))
7193   return 0;
7194   ;
7195   return 0;
7196 }
7197 _ACEOF
7198 rm -f conftest.$ac_objext
7199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7200   (eval $ac_compile) 2>&5
7201   ac_status=$?
7202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203   (exit $ac_status); } &&
7204          { ac_try='test -s conftest.$ac_objext'
7205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206   (eval $ac_try) 2>&5
7207   ac_status=$?
7208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209   (exit $ac_status); }; }; then
7210   ac_cv_type_size_t=yes
7211 else
7212   echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7214
7215 ac_cv_type_size_t=no
7216 fi
7217 rm -f conftest.$ac_objext conftest.$ac_ext
7218 fi
7219 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7220 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7221 if test $ac_cv_type_size_t = yes; then
7222   :
7223 else
7224
7225 cat >>confdefs.h <<_ACEOF
7226 #define size_t unsigned
7227 _ACEOF
7228
7229 fi
7230
7231 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7232 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7233 if test "${ac_cv_struct_tm+set}" = set; then
7234   echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236   cat >conftest.$ac_ext <<_ACEOF
7237 #line $LINENO "configure"
7238 /* confdefs.h.  */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h.  */
7243 #include <sys/types.h>
7244 #include <time.h>
7245
7246 int
7247 main ()
7248 {
7249 struct tm *tp; tp->tm_sec;
7250   ;
7251   return 0;
7252 }
7253 _ACEOF
7254 rm -f conftest.$ac_objext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7256   (eval $ac_compile) 2>&5
7257   ac_status=$?
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); } &&
7260          { ac_try='test -s conftest.$ac_objext'
7261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262   (eval $ac_try) 2>&5
7263   ac_status=$?
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); }; }; then
7266   ac_cv_struct_tm=time.h
7267 else
7268   echo "$as_me: failed program was:" >&5
7269 sed 's/^/| /' conftest.$ac_ext >&5
7270
7271 ac_cv_struct_tm=sys/time.h
7272 fi
7273 rm -f conftest.$ac_objext conftest.$ac_ext
7274 fi
7275 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7276 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7277 if test $ac_cv_struct_tm = sys/time.h; then
7278
7279 cat >>confdefs.h <<\_ACEOF
7280 #define TM_IN_SYS_TIME 1
7281 _ACEOF
7282
7283 fi
7284
7285
7286
7287 for ac_func in vprintf
7288 do
7289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7290 echo "$as_me:$LINENO: checking for $ac_func" >&5
7291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7292 if eval "test \"\${$as_ac_var+set}\" = set"; then
7293   echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295   cat >conftest.$ac_ext <<_ACEOF
7296 #line $LINENO "configure"
7297 /* confdefs.h.  */
7298 _ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h.  */
7302 /* System header to define __stub macros and hopefully few prototypes,
7303     which can conflict with char $ac_func (); below.
7304     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7305     <limits.h> exists even on freestanding compilers.  */
7306 #ifdef __STDC__
7307 # include <limits.h>
7308 #else
7309 # include <assert.h>
7310 #endif
7311 /* Override any gcc2 internal prototype to avoid an error.  */
7312 #ifdef __cplusplus
7313 extern "C"
7314 {
7315 #endif
7316 /* We use char because int might match the return type of a gcc2
7317    builtin and then its argument prototype would still apply.  */
7318 char $ac_func ();
7319 /* The GNU C library defines this for functions which it implements
7320     to always fail with ENOSYS.  Some functions are actually named
7321     something starting with __ and the normal name is an alias.  */
7322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7323 choke me
7324 #else
7325 char (*f) () = $ac_func;
7326 #endif
7327 #ifdef __cplusplus
7328 }
7329 #endif
7330
7331 int
7332 main ()
7333 {
7334 return f != $ac_func;
7335   ;
7336   return 0;
7337 }
7338 _ACEOF
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7341   (eval $ac_link) 2>&5
7342   ac_status=$?
7343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344   (exit $ac_status); } &&
7345          { ac_try='test -s conftest$ac_exeext'
7346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347   (eval $ac_try) 2>&5
7348   ac_status=$?
7349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350   (exit $ac_status); }; }; then
7351   eval "$as_ac_var=yes"
7352 else
7353   echo "$as_me: failed program was:" >&5
7354 sed 's/^/| /' conftest.$ac_ext >&5
7355
7356 eval "$as_ac_var=no"
7357 fi
7358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7359 fi
7360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7362 if test `eval echo '${'$as_ac_var'}'` = yes; then
7363   cat >>confdefs.h <<_ACEOF
7364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7365 _ACEOF
7366
7367 echo "$as_me:$LINENO: checking for _doprnt" >&5
7368 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7369 if test "${ac_cv_func__doprnt+set}" = set; then
7370   echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372   cat >conftest.$ac_ext <<_ACEOF
7373 #line $LINENO "configure"
7374 /* confdefs.h.  */
7375 _ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h.  */
7379 /* System header to define __stub macros and hopefully few prototypes,
7380     which can conflict with char _doprnt (); below.
7381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7382     <limits.h> exists even on freestanding compilers.  */
7383 #ifdef __STDC__
7384 # include <limits.h>
7385 #else
7386 # include <assert.h>
7387 #endif
7388 /* Override any gcc2 internal prototype to avoid an error.  */
7389 #ifdef __cplusplus
7390 extern "C"
7391 {
7392 #endif
7393 /* We use char because int might match the return type of a gcc2
7394    builtin and then its argument prototype would still apply.  */
7395 char _doprnt ();
7396 /* The GNU C library defines this for functions which it implements
7397     to always fail with ENOSYS.  Some functions are actually named
7398     something starting with __ and the normal name is an alias.  */
7399 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7400 choke me
7401 #else
7402 char (*f) () = _doprnt;
7403 #endif
7404 #ifdef __cplusplus
7405 }
7406 #endif
7407
7408 int
7409 main ()
7410 {
7411 return f != _doprnt;
7412   ;
7413   return 0;
7414 }
7415 _ACEOF
7416 rm -f conftest.$ac_objext conftest$ac_exeext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7418   (eval $ac_link) 2>&5
7419   ac_status=$?
7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421   (exit $ac_status); } &&
7422          { ac_try='test -s conftest$ac_exeext'
7423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424   (eval $ac_try) 2>&5
7425   ac_status=$?
7426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427   (exit $ac_status); }; }; then
7428   ac_cv_func__doprnt=yes
7429 else
7430   echo "$as_me: failed program was:" >&5
7431 sed 's/^/| /' conftest.$ac_ext >&5
7432
7433 ac_cv_func__doprnt=no
7434 fi
7435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7436 fi
7437 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7438 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7439 if test $ac_cv_func__doprnt = yes; then
7440
7441 cat >>confdefs.h <<\_ACEOF
7442 #define HAVE_DOPRNT 1
7443 _ACEOF
7444
7445 fi
7446
7447 fi
7448 done
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
7465 do
7466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7467 echo "$as_me:$LINENO: checking for $ac_func" >&5
7468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7469 if eval "test \"\${$as_ac_var+set}\" = set"; then
7470   echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472   cat >conftest.$ac_ext <<_ACEOF
7473 #line $LINENO "configure"
7474 /* confdefs.h.  */
7475 _ACEOF
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h.  */
7479 /* System header to define __stub macros and hopefully few prototypes,
7480     which can conflict with char $ac_func (); below.
7481     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7482     <limits.h> exists even on freestanding compilers.  */
7483 #ifdef __STDC__
7484 # include <limits.h>
7485 #else
7486 # include <assert.h>
7487 #endif
7488 /* Override any gcc2 internal prototype to avoid an error.  */
7489 #ifdef __cplusplus
7490 extern "C"
7491 {
7492 #endif
7493 /* We use char because int might match the return type of a gcc2
7494    builtin and then its argument prototype would still apply.  */
7495 char $ac_func ();
7496 /* The GNU C library defines this for functions which it implements
7497     to always fail with ENOSYS.  Some functions are actually named
7498     something starting with __ and the normal name is an alias.  */
7499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7500 choke me
7501 #else
7502 char (*f) () = $ac_func;
7503 #endif
7504 #ifdef __cplusplus
7505 }
7506 #endif
7507
7508 int
7509 main ()
7510 {
7511 return f != $ac_func;
7512   ;
7513   return 0;
7514 }
7515 _ACEOF
7516 rm -f conftest.$ac_objext conftest$ac_exeext
7517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7518   (eval $ac_link) 2>&5
7519   ac_status=$?
7520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521   (exit $ac_status); } &&
7522          { ac_try='test -s conftest$ac_exeext'
7523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524   (eval $ac_try) 2>&5
7525   ac_status=$?
7526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527   (exit $ac_status); }; }; then
7528   eval "$as_ac_var=yes"
7529 else
7530   echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7532
7533 eval "$as_ac_var=no"
7534 fi
7535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7536 fi
7537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7539 if test `eval echo '${'$as_ac_var'}'` = yes; then
7540   cat >>confdefs.h <<_ACEOF
7541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7542 _ACEOF
7543
7544 fi
7545 done
7546
7547 echo "$as_me:$LINENO: checking for basename" >&5
7548 echo $ECHO_N "checking for basename... $ECHO_C" >&6
7549 if test "${ac_cv_func_basename+set}" = set; then
7550   echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552   cat >conftest.$ac_ext <<_ACEOF
7553 #line $LINENO "configure"
7554 /* confdefs.h.  */
7555 _ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h.  */
7559 /* System header to define __stub macros and hopefully few prototypes,
7560     which can conflict with char basename (); below.
7561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7562     <limits.h> exists even on freestanding compilers.  */
7563 #ifdef __STDC__
7564 # include <limits.h>
7565 #else
7566 # include <assert.h>
7567 #endif
7568 /* Override any gcc2 internal prototype to avoid an error.  */
7569 #ifdef __cplusplus
7570 extern "C"
7571 {
7572 #endif
7573 /* We use char because int might match the return type of a gcc2
7574    builtin and then its argument prototype would still apply.  */
7575 char basename ();
7576 /* The GNU C library defines this for functions which it implements
7577     to always fail with ENOSYS.  Some functions are actually named
7578     something starting with __ and the normal name is an alias.  */
7579 #if defined (__stub_basename) || defined (__stub___basename)
7580 choke me
7581 #else
7582 char (*f) () = basename;
7583 #endif
7584 #ifdef __cplusplus
7585 }
7586 #endif
7587
7588 int
7589 main ()
7590 {
7591 return f != basename;
7592   ;
7593   return 0;
7594 }
7595 _ACEOF
7596 rm -f conftest.$ac_objext conftest$ac_exeext
7597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7598   (eval $ac_link) 2>&5
7599   ac_status=$?
7600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601   (exit $ac_status); } &&
7602          { ac_try='test -s conftest$ac_exeext'
7603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604   (eval $ac_try) 2>&5
7605   ac_status=$?
7606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607   (exit $ac_status); }; }; then
7608   ac_cv_func_basename=yes
7609 else
7610   echo "$as_me: failed program was:" >&5
7611 sed 's/^/| /' conftest.$ac_ext >&5
7612
7613 ac_cv_func_basename=no
7614 fi
7615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7616 fi
7617 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
7618 echo "${ECHO_T}$ac_cv_func_basename" >&6
7619
7620 echo "$as_me:$LINENO: checking for setjmp" >&5
7621 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
7622 if test "${ac_cv_func_setjmp+set}" = set; then
7623   echo $ECHO_N "(cached) $ECHO_C" >&6
7624 else
7625   cat >conftest.$ac_ext <<_ACEOF
7626 #line $LINENO "configure"
7627 /* confdefs.h.  */
7628 _ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h.  */
7632 /* System header to define __stub macros and hopefully few prototypes,
7633     which can conflict with char setjmp (); below.
7634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7635     <limits.h> exists even on freestanding compilers.  */
7636 #ifdef __STDC__
7637 # include <limits.h>
7638 #else
7639 # include <assert.h>
7640 #endif
7641 /* Override any gcc2 internal prototype to avoid an error.  */
7642 #ifdef __cplusplus
7643 extern "C"
7644 {
7645 #endif
7646 /* We use char because int might match the return type of a gcc2
7647    builtin and then its argument prototype would still apply.  */
7648 char setjmp ();
7649 /* The GNU C library defines this for functions which it implements
7650     to always fail with ENOSYS.  Some functions are actually named
7651     something starting with __ and the normal name is an alias.  */
7652 #if defined (__stub_setjmp) || defined (__stub___setjmp)
7653 choke me
7654 #else
7655 char (*f) () = setjmp;
7656 #endif
7657 #ifdef __cplusplus
7658 }
7659 #endif
7660
7661 int
7662 main ()
7663 {
7664 return f != setjmp;
7665   ;
7666   return 0;
7667 }
7668 _ACEOF
7669 rm -f conftest.$ac_objext conftest$ac_exeext
7670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7671   (eval $ac_link) 2>&5
7672   ac_status=$?
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); } &&
7675          { ac_try='test -s conftest$ac_exeext'
7676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677   (eval $ac_try) 2>&5
7678   ac_status=$?
7679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680   (exit $ac_status); }; }; then
7681   ac_cv_func_setjmp=yes
7682 else
7683   echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7685
7686 ac_cv_func_setjmp=no
7687 fi
7688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7689 fi
7690 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
7691 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
7692
7693 echo "$as_me:$LINENO: checking for setpriority" >&5
7694 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
7695 if test "${ac_cv_func_setpriority+set}" = set; then
7696   echo $ECHO_N "(cached) $ECHO_C" >&6
7697 else
7698   cat >conftest.$ac_ext <<_ACEOF
7699 #line $LINENO "configure"
7700 /* confdefs.h.  */
7701 _ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h.  */
7705 /* System header to define __stub macros and hopefully few prototypes,
7706     which can conflict with char setpriority (); below.
7707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7708     <limits.h> exists even on freestanding compilers.  */
7709 #ifdef __STDC__
7710 # include <limits.h>
7711 #else
7712 # include <assert.h>
7713 #endif
7714 /* Override any gcc2 internal prototype to avoid an error.  */
7715 #ifdef __cplusplus
7716 extern "C"
7717 {
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 setpriority ();
7722 /* The GNU C library defines this for functions which it implements
7723     to always fail with ENOSYS.  Some functions are actually named
7724     something starting with __ and the normal name is an alias.  */
7725 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7726 choke me
7727 #else
7728 char (*f) () = setpriority;
7729 #endif
7730 #ifdef __cplusplus
7731 }
7732 #endif
7733
7734 int
7735 main ()
7736 {
7737 return f != setpriority;
7738   ;
7739   return 0;
7740 }
7741 _ACEOF
7742 rm -f conftest.$ac_objext conftest$ac_exeext
7743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7744   (eval $ac_link) 2>&5
7745   ac_status=$?
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); } &&
7748          { ac_try='test -s conftest$ac_exeext'
7749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750   (eval $ac_try) 2>&5
7751   ac_status=$?
7752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753   (exit $ac_status); }; }; then
7754   ac_cv_func_setpriority=yes
7755 else
7756   echo "$as_me: failed program was:" >&5
7757 sed 's/^/| /' conftest.$ac_ext >&5
7758
7759 ac_cv_func_setpriority=no
7760 fi
7761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7762 fi
7763 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7764 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7765
7766 echo "$as_me:$LINENO: checking for time" >&5
7767 echo $ECHO_N "checking for time... $ECHO_C" >&6
7768 if test "${ac_cv_func_time+set}" = set; then
7769   echo $ECHO_N "(cached) $ECHO_C" >&6
7770 else
7771   cat >conftest.$ac_ext <<_ACEOF
7772 #line $LINENO "configure"
7773 /* confdefs.h.  */
7774 _ACEOF
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h.  */
7778 /* System header to define __stub macros and hopefully few prototypes,
7779     which can conflict with char time (); below.
7780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7781     <limits.h> exists even on freestanding compilers.  */
7782 #ifdef __STDC__
7783 # include <limits.h>
7784 #else
7785 # include <assert.h>
7786 #endif
7787 /* Override any gcc2 internal prototype to avoid an error.  */
7788 #ifdef __cplusplus
7789 extern "C"
7790 {
7791 #endif
7792 /* We use char because int might match the return type of a gcc2
7793    builtin and then its argument prototype would still apply.  */
7794 char time ();
7795 /* The GNU C library defines this for functions which it implements
7796     to always fail with ENOSYS.  Some functions are actually named
7797     something starting with __ and the normal name is an alias.  */
7798 #if defined (__stub_time) || defined (__stub___time)
7799 choke me
7800 #else
7801 char (*f) () = time;
7802 #endif
7803 #ifdef __cplusplus
7804 }
7805 #endif
7806
7807 int
7808 main ()
7809 {
7810 return f != time;
7811   ;
7812   return 0;
7813 }
7814 _ACEOF
7815 rm -f conftest.$ac_objext conftest$ac_exeext
7816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7817   (eval $ac_link) 2>&5
7818   ac_status=$?
7819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820   (exit $ac_status); } &&
7821          { ac_try='test -s conftest$ac_exeext'
7822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823   (eval $ac_try) 2>&5
7824   ac_status=$?
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); }; }; then
7827   ac_cv_func_time=yes
7828 else
7829   echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7831
7832 ac_cv_func_time=no
7833 fi
7834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7835 fi
7836 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7837 echo "${ECHO_T}$ac_cv_func_time" >&6
7838
7839 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7840 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7841 if test "${ac_cv_func_gettimeofday+set}" = set; then
7842   echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844   cat >conftest.$ac_ext <<_ACEOF
7845 #line $LINENO "configure"
7846 /* confdefs.h.  */
7847 _ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h.  */
7851 /* System header to define __stub macros and hopefully few prototypes,
7852     which can conflict with char gettimeofday (); below.
7853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7854     <limits.h> exists even on freestanding compilers.  */
7855 #ifdef __STDC__
7856 # include <limits.h>
7857 #else
7858 # include <assert.h>
7859 #endif
7860 /* Override any gcc2 internal prototype to avoid an error.  */
7861 #ifdef __cplusplus
7862 extern "C"
7863 {
7864 #endif
7865 /* We use char because int might match the return type of a gcc2
7866    builtin and then its argument prototype would still apply.  */
7867 char gettimeofday ();
7868 /* The GNU C library defines this for functions which it implements
7869     to always fail with ENOSYS.  Some functions are actually named
7870     something starting with __ and the normal name is an alias.  */
7871 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7872 choke me
7873 #else
7874 char (*f) () = gettimeofday;
7875 #endif
7876 #ifdef __cplusplus
7877 }
7878 #endif
7879
7880 int
7881 main ()
7882 {
7883 return f != gettimeofday;
7884   ;
7885   return 0;
7886 }
7887 _ACEOF
7888 rm -f conftest.$ac_objext conftest$ac_exeext
7889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7890   (eval $ac_link) 2>&5
7891   ac_status=$?
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   (exit $ac_status); } &&
7894          { ac_try='test -s conftest$ac_exeext'
7895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896   (eval $ac_try) 2>&5
7897   ac_status=$?
7898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899   (exit $ac_status); }; }; then
7900   ac_cv_func_gettimeofday=yes
7901 else
7902   echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7904
7905 ac_cv_func_gettimeofday=no
7906 fi
7907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7908 fi
7909 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7910 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7911
7912 echo "$as_me:$LINENO: checking for getopt" >&5
7913 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
7914 if test "${ac_cv_func_getopt+set}" = set; then
7915   echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917   cat >conftest.$ac_ext <<_ACEOF
7918 #line $LINENO "configure"
7919 /* confdefs.h.  */
7920 _ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h.  */
7924 /* System header to define __stub macros and hopefully few prototypes,
7925     which can conflict with char getopt (); below.
7926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7927     <limits.h> exists even on freestanding compilers.  */
7928 #ifdef __STDC__
7929 # include <limits.h>
7930 #else
7931 # include <assert.h>
7932 #endif
7933 /* Override any gcc2 internal prototype to avoid an error.  */
7934 #ifdef __cplusplus
7935 extern "C"
7936 {
7937 #endif
7938 /* We use char because int might match the return type of a gcc2
7939    builtin and then its argument prototype would still apply.  */
7940 char getopt ();
7941 /* The GNU C library defines this for functions which it implements
7942     to always fail with ENOSYS.  Some functions are actually named
7943     something starting with __ and the normal name is an alias.  */
7944 #if defined (__stub_getopt) || defined (__stub___getopt)
7945 choke me
7946 #else
7947 char (*f) () = getopt;
7948 #endif
7949 #ifdef __cplusplus
7950 }
7951 #endif
7952
7953 int
7954 main ()
7955 {
7956 return f != getopt;
7957   ;
7958   return 0;
7959 }
7960 _ACEOF
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7963   (eval $ac_link) 2>&5
7964   ac_status=$?
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); } &&
7967          { ac_try='test -s conftest$ac_exeext'
7968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969   (eval $ac_try) 2>&5
7970   ac_status=$?
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); }; }; then
7973   ac_cv_func_getopt=yes
7974 else
7975   echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7977
7978 ac_cv_func_getopt=no
7979 fi
7980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7981 fi
7982 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
7983 echo "${ECHO_T}$ac_cv_func_getopt" >&6
7984 if test $ac_cv_func_getopt = yes; then
7985    getopt=true
7986 else
7987    getopt=false
7988 fi
7989
7990
7991 if test "${OSTYPE}" = "cygwin" ; then
7992   getopt_long=false
7993 else
7994   echo "$as_me:$LINENO: checking for getopt_long" >&5
7995 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7996 if test "${ac_cv_func_getopt_long+set}" = set; then
7997   echo $ECHO_N "(cached) $ECHO_C" >&6
7998 else
7999   cat >conftest.$ac_ext <<_ACEOF
8000 #line $LINENO "configure"
8001 /* confdefs.h.  */
8002 _ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h.  */
8006 /* System header to define __stub macros and hopefully few prototypes,
8007     which can conflict with char getopt_long (); below.
8008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8009     <limits.h> exists even on freestanding compilers.  */
8010 #ifdef __STDC__
8011 # include <limits.h>
8012 #else
8013 # include <assert.h>
8014 #endif
8015 /* Override any gcc2 internal prototype to avoid an error.  */
8016 #ifdef __cplusplus
8017 extern "C"
8018 {
8019 #endif
8020 /* We use char because int might match the return type of a gcc2
8021    builtin and then its argument prototype would still apply.  */
8022 char getopt_long ();
8023 /* The GNU C library defines this for functions which it implements
8024     to always fail with ENOSYS.  Some functions are actually named
8025     something starting with __ and the normal name is an alias.  */
8026 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
8027 choke me
8028 #else
8029 char (*f) () = getopt_long;
8030 #endif
8031 #ifdef __cplusplus
8032 }
8033 #endif
8034
8035 int
8036 main ()
8037 {
8038 return f != getopt_long;
8039   ;
8040   return 0;
8041 }
8042 _ACEOF
8043 rm -f conftest.$ac_objext conftest$ac_exeext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8045   (eval $ac_link) 2>&5
8046   ac_status=$?
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); } &&
8049          { ac_try='test -s conftest$ac_exeext'
8050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051   (eval $ac_try) 2>&5
8052   ac_status=$?
8053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054   (exit $ac_status); }; }; then
8055   ac_cv_func_getopt_long=yes
8056 else
8057   echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 ac_cv_func_getopt_long=no
8061 fi
8062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8063 fi
8064 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
8065 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
8066 if test $ac_cv_func_getopt_long = yes; then
8067    getopt_long=true
8068 else
8069    getopt_long=false
8070 fi
8071
8072 fi
8073
8074 if test "${getopt_long}" = "false" ; then
8075   my_includes="$my_includes -I../getopt"
8076
8077 cat >>confdefs.h <<\_ACEOF
8078 #define HAVE_GETOPT_LONG 1
8079 _ACEOF
8080
8081   ctlibs_base="$ctlibs_base -lgetopt"
8082   LDFLAGS="$LDFLAGS -L../getopt"
8083   GETOPTLONG=1
8084 fi
8085
8086
8087 if test "$GETOPTLONG"="1"; then
8088   INCLUDED_GETOPT_LONG_TRUE=
8089   INCLUDED_GETOPT_LONG_FALSE='#'
8090 else
8091   INCLUDED_GETOPT_LONG_TRUE='#'
8092   INCLUDED_GETOPT_LONG_FALSE=
8093 fi
8094
8095
8096 if test "${readline}" = "true" ; then
8097   ctlibs_base="$ctlibs_base -lreadline"
8098   if test "${ncurses}" = "true"; then
8099     ctlibs_base="$ctlibs_base -lncurses"
8100   elif test "${curses}" = "true"; then
8101     ctlibs_base="$ctlibs_base -lcurses"
8102   fi
8103 fi
8104
8105 echo "$as_me:$LINENO: checking debug" >&5
8106 echo $ECHO_N "checking debug... $ECHO_C" >&6
8107 # Check whether --enable-debug or --disable-debug was given.
8108 if test "${enable_debug+set}" = set; then
8109   enableval="$enable_debug"
8110   case "${enableval}" in
8111   yes) debug=true
8112        echo "$as_me:$LINENO: result: yes" >&5
8113 echo "${ECHO_T}yes" >&6
8114        ;;
8115   no)  debug=false
8116        echo "$as_me:$LINENO: result: no" >&5
8117 echo "${ECHO_T}no" >&6
8118        ;;
8119   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
8120 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
8121        ;;
8122 esac
8123 else
8124   debug=false; echo "$as_me:$LINENO: result: no" >&5
8125 echo "${ECHO_T}no" >&6
8126 fi;
8127
8128
8129 if test "$debug" = "true"; then
8130   DEBUG_TRUE=
8131   DEBUG_FALSE='#'
8132 else
8133   DEBUG_TRUE='#'
8134   DEBUG_FALSE=
8135 fi
8136
8137
8138 if test "$datadir" != "" ; then
8139   CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
8140 fi
8141
8142 if test "$debug" = "true" ; then
8143   CFLAGS="$CFLAGS -g -DDEBUG"
8144
8145 cat >>confdefs.h <<\_ACEOF
8146 #define DEBUG 1
8147 _ACEOF
8148
8149 else
8150   CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
8151
8152 cat >>confdefs.h <<\_ACEOF
8153 #define NDEBUG 1
8154 _ACEOF
8155
8156 fi
8157
8158 if test "${pthread}" = "true" ; then
8159
8160 cat >>confdefs.h <<\_ACEOF
8161 #define HAVE_WXTHREADS 1
8162 _ACEOF
8163
8164 fi
8165
8166 echo "$as_me:$LINENO: checking sstream" >&5
8167 echo $ECHO_N "checking sstream... $ECHO_C" >&6
8168  if  test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
8169      test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
8170      test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
8171
8172 cat >>confdefs.h <<\_ACEOF
8173 #define HAVE_SSTREAM 1
8174 _ACEOF
8175
8176    echo "$as_me:$LINENO: result: yes" >&5
8177 echo "${ECHO_T}yes" >&6
8178   else
8179    echo "$as_me:$LINENO: result: no" >&5
8180 echo "${ECHO_T}no" >&6
8181  fi
8182
8183
8184 CFLAGS="$CFLAGS -Wall"
8185 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
8186 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
8187 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
8188 if test "${enable_verbose_warnings+set}" = set; then
8189   enableval="$enable_verbose_warnings"
8190    case "$enableval" in
8191   yes)
8192     echo "$as_me:$LINENO: result: yes" >&5
8193 echo "${ECHO_T}yes" >&6
8194     CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
8195     ;;
8196   *)
8197     echo "$as_me:$LINENO: result: no" >&5
8198 echo "${ECHO_T}no" >&6
8199     ;;
8200   esac
8201 else
8202   echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6
8204
8205 fi;
8206
8207 echo "$as_me:$LINENO: checking static executables" >&5
8208 echo $ECHO_N "checking static executables... $ECHO_C" >&6
8209 # Check whether --enable-static or --disable-static was given.
8210 if test "${enable_static+set}" = set; then
8211   enableval="$enable_static"
8212    case "$enableval" in
8213   yes)
8214     echo "$as_me:$LINENO: result: yes" >&5
8215 echo "${ECHO_T}yes" >&6
8216     CFLAGS="$CFLAGS --static"
8217     ;;
8218   *)
8219     echo "$as_me:$LINENO: result: no" >&5
8220 echo "${ECHO_T}no" >&6
8221     ;;
8222   esac
8223 else
8224   echo "$as_me:$LINENO: result: no" >&5
8225 echo "${ECHO_T}no" >&6
8226
8227 fi;
8228
8229
8230 # Check whether --with-lam or --without-lam was given.
8231 if test "${with_lam+set}" = set; then
8232   withval="$with_lam"
8233       if test "$withval" != "no" ; then
8234          trylamdir=$withval
8235      fi
8236
8237 fi;
8238
8239 if test "$withval" != "no" ; then
8240   if test "$prefix" != "NONE" ; then
8241      trylamdir="$trylamdir $prefix"
8242   fi
8243
8244   echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
8245 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
8246   for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
8247     if test -x "$testlamdir/bin/hcp" ; then
8248       if test "$testlamdir" != "/usr"; then
8249         LDFLAGS="$LDFLAGS -L$testlamdir/lib"
8250         CFLAGS="$CFLAGS -I$testlamdir/include"
8251       fi
8252       CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
8253       lamdir="$testlamdir"
8254
8255       mpienable="true"
8256
8257       break
8258     fi
8259   done
8260   echo "$as_me:$LINENO: result: $lamdir" >&5
8261 echo "${ECHO_T}$lamdir" >&6
8262 else
8263   echo "$as_me:$LINENO: result: no" >&5
8264 echo "${ECHO_T}no" >&6
8265 fi
8266
8267
8268
8269 # Check whether --with-ctn or --without-ctn was given.
8270 if test "${with_ctn+set}" = set; then
8271   withval="$with_ctn"
8272       if test "$withval" != "no" ; then
8273          tryctndir=$withval
8274      fi
8275
8276 fi;
8277
8278 if test "$withval" == "no" -o "$withval" == "NONE" ; then
8279   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8280 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8281   echo "$as_me:$LINENO: result: disabled" >&5
8282 echo "${ECHO_T}disabled" >&6
8283 else
8284   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8285 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8286   for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
8287     if test -f "$testctndir/libctn.a" ; then
8288       LDFLAGS="$LDFLAGS -L$testctndir"
8289       ctnlib="true"
8290       break
8291     fi
8292   done
8293   for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
8294     if test -f "$testctndir/ctn_os.h" ; then
8295       CFLAGS="$CFLAGS -I$testctndir"
8296       ctninclude="true"
8297       break
8298     fi
8299   done
8300   if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
8301       ctn="true"
8302
8303 cat >>confdefs.h <<\_ACEOF
8304 #define HAVE_CTN_DICOM 1
8305 _ACEOF
8306
8307       echo "$as_me:$LINENO: result: yes" >&5
8308 echo "${ECHO_T}yes" >&6
8309   else
8310     echo "$as_me:$LINENO: result: no" >&5
8311 echo "${ECHO_T}no" >&6
8312   fi
8313 fi
8314
8315 echo "$as_me:$LINENO: checking for CPU specification" >&5
8316 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6
8317
8318 # Check whether --with-mcpu or --without-mcpu was given.
8319 if test "${with_mcpu+set}" = set; then
8320   withval="$with_mcpu"
8321
8322 fi;
8323
8324 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
8325   echo "$as_me:$LINENO: result: no" >&5
8326 echo "${ECHO_T}no" >&6
8327 else
8328   echo "$as_me:$LINENO: result: $withval" >&5
8329 echo "${ECHO_T}$withval" >&6
8330   CFLAGS="$CFLAGS -mcpu=$withval"
8331 fi
8332
8333 echo "$as_me:$LINENO: checking for web access" >&5
8334 echo $ECHO_N "checking for web access... $ECHO_C" >&6
8335
8336 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
8337 if test "${with_cgibin_dir+set}" = set; then
8338   withval="$with_cgibin_dir"
8339    cgibindir=$withval ;
8340 fi;
8341
8342
8343 # Check whether --with-cgibin-url or --without-cgibin-url was given.
8344 if test "${with_cgibin_url+set}" = set; then
8345   withval="$with_cgibin_url"
8346    cgibinurl=$withval ;
8347 fi;
8348
8349
8350 # Check whether --with-webdata-dir or --without-webdata-dir was given.
8351 if test "${with_webdata_dir+set}" = set; then
8352   withval="$with_webdata_dir"
8353    webdatadir=$withval ;
8354 fi;
8355
8356
8357 # Check whether --with-webdata-url or --without-webdata-url was given.
8358 if test "${with_webdata_url+set}" = set; then
8359   withval="$with_webdata_url"
8360    webdataurl=$withval ;
8361 fi;
8362
8363
8364 # Check whether --with-html-dir or --without-html-dir was given.
8365 if test "${with_html_dir+set}" = set; then
8366   withval="$with_html_dir"
8367    htmldir=$withval ;
8368 fi;
8369
8370 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
8371   cgiprograms="ctsim.cgi ctsim.conf"
8372
8373 fi
8374
8375 if test -n "$htmldir" ; then
8376   htmldata=simulate.html
8377
8378 fi
8379
8380
8381 if test -n "$htmldir"; then
8382   USE_HTML_TRUE=
8383   USE_HTML_FALSE='#'
8384 else
8385   USE_HTML_TRUE='#'
8386   USE_HTML_FALSE=
8387 fi
8388
8389
8390 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
8391   webenabled=true
8392
8393   echo "$as_me:$LINENO: result: yes" >&5
8394 echo "${ECHO_T}yes" >&6
8395   if test -z "$cgibindir" ; then
8396     { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
8397 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
8398    { (exit 1); exit 1; }; }
8399   elif test -z "$cgibinurl" ; then
8400     { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
8401 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
8402    { (exit 1); exit 1; }; }
8403   elif test -z "$webdatadir" ; then
8404     { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
8405 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
8406    { (exit 1); exit 1; }; }
8407   elif test -z "$webdataurl" ; then
8408     { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
8409 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
8410    { (exit 1); exit 1; }; }
8411   elif test -z "$htmldir" ; then
8412     { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
8413 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
8414    { (exit 1); exit 1; }; }
8415   fi
8416 else
8417   echo "$as_me:$LINENO: result: no" >&5
8418 echo "${ECHO_T}no" >&6
8419 fi
8420
8421
8422
8423 if test -n "$lamdir"; then
8424   USE_LAM_TRUE=
8425   USE_LAM_FALSE='#'
8426 else
8427   USE_LAM_TRUE='#'
8428   USE_LAM_FALSE=
8429 fi
8430
8431
8432
8433 echo "$as_me:$LINENO: checking for X" >&5
8434 echo $ECHO_N "checking for X... $ECHO_C" >&6
8435
8436
8437 # Check whether --with-x or --without-x was given.
8438 if test "${with_x+set}" = set; then
8439   withval="$with_x"
8440
8441 fi;
8442 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8443 if test "x$with_x" = xno; then
8444   # The user explicitly disabled X.
8445   have_x=disabled
8446 else
8447   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8448     # Both variables are already set.
8449     have_x=yes
8450   else
8451     if test "${ac_cv_have_x+set}" = set; then
8452   echo $ECHO_N "(cached) $ECHO_C" >&6
8453 else
8454   # One or both of the vars are not set, and there is no cached value.
8455 ac_x_includes=no ac_x_libraries=no
8456 rm -fr conftest.dir
8457 if mkdir conftest.dir; then
8458   cd conftest.dir
8459   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8460   cat >Imakefile <<'_ACEOF'
8461 acfindx:
8462         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8463 _ACEOF
8464   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8465     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8466     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8467     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8468     for ac_extension in a so sl; do
8469       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8470          test -f $ac_im_libdir/libX11.$ac_extension; then
8471         ac_im_usrlibdir=$ac_im_libdir; break
8472       fi
8473     done
8474     # Screen out bogus values from the imake configuration.  They are
8475     # bogus both because they are the default anyway, and because
8476     # using them would break gcc on systems where it needs fixed includes.
8477     case $ac_im_incroot in
8478         /usr/include) ;;
8479         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8480     esac
8481     case $ac_im_usrlibdir in
8482         /usr/lib | /lib) ;;
8483         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8484     esac
8485   fi
8486   cd ..
8487   rm -fr conftest.dir
8488 fi
8489
8490 # Standard set of common directories for X headers.
8491 # Check X11 before X11Rn because it is often a symlink to the current release.
8492 ac_x_header_dirs='
8493 /usr/X11/include
8494 /usr/X11R6/include
8495 /usr/X11R5/include
8496 /usr/X11R4/include
8497
8498 /usr/include/X11
8499 /usr/include/X11R6
8500 /usr/include/X11R5
8501 /usr/include/X11R4
8502
8503 /usr/local/X11/include
8504 /usr/local/X11R6/include
8505 /usr/local/X11R5/include
8506 /usr/local/X11R4/include
8507
8508 /usr/local/include/X11
8509 /usr/local/include/X11R6
8510 /usr/local/include/X11R5
8511 /usr/local/include/X11R4
8512
8513 /usr/X386/include
8514 /usr/x386/include
8515 /usr/XFree86/include/X11
8516
8517 /usr/include
8518 /usr/local/include
8519 /usr/unsupported/include
8520 /usr/athena/include
8521 /usr/local/x11r5/include
8522 /usr/lpp/Xamples/include
8523
8524 /usr/openwin/include
8525 /usr/openwin/share/include'
8526
8527 if test "$ac_x_includes" = no; then
8528   # Guess where to find include files, by looking for Intrinsic.h.
8529   # First, try using that file with no special directory specified.
8530   cat >conftest.$ac_ext <<_ACEOF
8531 #line $LINENO "configure"
8532 /* confdefs.h.  */
8533 _ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h.  */
8537 #include <X11/Intrinsic.h>
8538 _ACEOF
8539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8540   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8541   ac_status=$?
8542   grep -v '^ *+' conftest.er1 >conftest.err
8543   rm -f conftest.er1
8544   cat conftest.err >&5
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   (exit $ac_status); } >/dev/null; then
8547   if test -s conftest.err; then
8548     ac_cpp_err=$ac_c_preproc_warn_flag
8549   else
8550     ac_cpp_err=
8551   fi
8552 else
8553   ac_cpp_err=yes
8554 fi
8555 if test -z "$ac_cpp_err"; then
8556   # We can compile using X headers with no special include directory.
8557 ac_x_includes=
8558 else
8559   echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8561
8562   for ac_dir in $ac_x_header_dirs; do
8563   if test -r "$ac_dir/X11/Intrinsic.h"; then
8564     ac_x_includes=$ac_dir
8565     break
8566   fi
8567 done
8568 fi
8569 rm -f conftest.err conftest.$ac_ext
8570 fi # $ac_x_includes = no
8571
8572 if test "$ac_x_libraries" = no; then
8573   # Check for the libraries.
8574   # See if we find them without any special options.
8575   # Don't add to $LIBS permanently.
8576   ac_save_LIBS=$LIBS
8577   LIBS="-lXt $LIBS"
8578   cat >conftest.$ac_ext <<_ACEOF
8579 #line $LINENO "configure"
8580 /* confdefs.h.  */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h.  */
8585 #include <X11/Intrinsic.h>
8586 int
8587 main ()
8588 {
8589 XtMalloc (0)
8590   ;
8591   return 0;
8592 }
8593 _ACEOF
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8596   (eval $ac_link) 2>&5
8597   ac_status=$?
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); } &&
8600          { ac_try='test -s conftest$ac_exeext'
8601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602   (eval $ac_try) 2>&5
8603   ac_status=$?
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); }; }; then
8606   LIBS=$ac_save_LIBS
8607 # We can link X programs with no special library path.
8608 ac_x_libraries=
8609 else
8610   echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613 LIBS=$ac_save_LIBS
8614 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8615 do
8616   # Don't even attempt the hair of trying to link an X program!
8617   for ac_extension in a so sl; do
8618     if test -r $ac_dir/libXt.$ac_extension; then
8619       ac_x_libraries=$ac_dir
8620       break 2
8621     fi
8622   done
8623 done
8624 fi
8625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8626 fi # $ac_x_libraries = no
8627
8628 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8629   # Didn't find X anywhere.  Cache the known absence of X.
8630   ac_cv_have_x="have_x=no"
8631 else
8632   # Record where we found X for the cache.
8633   ac_cv_have_x="have_x=yes \
8634                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8635 fi
8636 fi
8637
8638   fi
8639   eval "$ac_cv_have_x"
8640 fi # $with_x != no
8641
8642 if test "$have_x" != yes; then
8643   echo "$as_me:$LINENO: result: $have_x" >&5
8644 echo "${ECHO_T}$have_x" >&6
8645   no_x=yes
8646 else
8647   # If each of the values was on the command line, it overrides each guess.
8648   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8649   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8650   # Update the cache value to reflect the command line values.
8651   ac_cv_have_x="have_x=yes \
8652                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8653   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8654 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8655 fi
8656
8657 if test "$no_x" = yes; then
8658   # Not all programs may use this symbol, but it does not hurt to define it.
8659
8660 cat >>confdefs.h <<\_ACEOF
8661 #define X_DISPLAY_MISSING 1
8662 _ACEOF
8663
8664   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8665 else
8666   if test -n "$x_includes"; then
8667     X_CFLAGS="$X_CFLAGS -I$x_includes"
8668   fi
8669
8670   # It would also be nice to do this for all -L options, not just this one.
8671   if test -n "$x_libraries"; then
8672     X_LIBS="$X_LIBS -L$x_libraries"
8673     # For Solaris; some versions of Sun CC require a space after -R and
8674     # others require no space.  Words are not sufficient . . . .
8675     case `(uname -sr) 2>/dev/null` in
8676     "SunOS 5"*)
8677       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8678 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8679       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8680       cat >conftest.$ac_ext <<_ACEOF
8681 #line $LINENO "configure"
8682 /* confdefs.h.  */
8683 _ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h.  */
8687
8688 int
8689 main ()
8690 {
8691
8692   ;
8693   return 0;
8694 }
8695 _ACEOF
8696 rm -f conftest.$ac_objext conftest$ac_exeext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8698   (eval $ac_link) 2>&5
8699   ac_status=$?
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); } &&
8702          { ac_try='test -s conftest$ac_exeext'
8703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704   (eval $ac_try) 2>&5
8705   ac_status=$?
8706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707   (exit $ac_status); }; }; then
8708   ac_R_nospace=yes
8709 else
8710   echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.$ac_ext >&5
8712
8713 ac_R_nospace=no
8714 fi
8715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8716       if test $ac_R_nospace = yes; then
8717         echo "$as_me:$LINENO: result: no" >&5
8718 echo "${ECHO_T}no" >&6
8719         X_LIBS="$X_LIBS -R$x_libraries"
8720       else
8721         LIBS="$ac_xsave_LIBS -R $x_libraries"
8722         cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8724 /* confdefs.h.  */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h.  */
8729
8730 int
8731 main ()
8732 {
8733
8734   ;
8735   return 0;
8736 }
8737 _ACEOF
8738 rm -f conftest.$ac_objext conftest$ac_exeext
8739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8740   (eval $ac_link) 2>&5
8741   ac_status=$?
8742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743   (exit $ac_status); } &&
8744          { ac_try='test -s conftest$ac_exeext'
8745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746   (eval $ac_try) 2>&5
8747   ac_status=$?
8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   (exit $ac_status); }; }; then
8750   ac_R_space=yes
8751 else
8752   echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8754
8755 ac_R_space=no
8756 fi
8757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8758         if test $ac_R_space = yes; then
8759           echo "$as_me:$LINENO: result: yes" >&5
8760 echo "${ECHO_T}yes" >&6
8761           X_LIBS="$X_LIBS -R $x_libraries"
8762         else
8763           echo "$as_me:$LINENO: result: neither works" >&5
8764 echo "${ECHO_T}neither works" >&6
8765         fi
8766       fi
8767       LIBS=$ac_xsave_LIBS
8768     esac
8769   fi
8770
8771   # Check for system-dependent libraries X programs must link with.
8772   # Do this before checking for the system-independent R6 libraries
8773   # (-lICE), since we may need -lsocket or whatever for X linking.
8774
8775   if test "$ISC" = yes; then
8776     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8777   else
8778     # Martyn Johnson says this is needed for Ultrix, if the X
8779     # libraries were built with DECnet support.  And Karl Berry says
8780     # the Alpha needs dnet_stub (dnet does not exist).
8781     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8782     cat >conftest.$ac_ext <<_ACEOF
8783 #line $LINENO "configure"
8784 /* confdefs.h.  */
8785 _ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h.  */
8789
8790 /* Override any gcc2 internal prototype to avoid an error.  */
8791 #ifdef __cplusplus
8792 extern "C"
8793 #endif
8794 /* We use char because int might match the return type of a gcc2
8795    builtin and then its argument prototype would still apply.  */
8796 char XOpenDisplay ();
8797 int
8798 main ()
8799 {
8800 XOpenDisplay ();
8801   ;
8802   return 0;
8803 }
8804 _ACEOF
8805 rm -f conftest.$ac_objext conftest$ac_exeext
8806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8807   (eval $ac_link) 2>&5
8808   ac_status=$?
8809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810   (exit $ac_status); } &&
8811          { ac_try='test -s conftest$ac_exeext'
8812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813   (eval $ac_try) 2>&5
8814   ac_status=$?
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); }; }; then
8817   :
8818 else
8819   echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8821
8822 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8823 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8824 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8825   echo $ECHO_N "(cached) $ECHO_C" >&6
8826 else
8827   ac_check_lib_save_LIBS=$LIBS
8828 LIBS="-ldnet  $LIBS"
8829 cat >conftest.$ac_ext <<_ACEOF
8830 #line $LINENO "configure"
8831 /* confdefs.h.  */
8832 _ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h.  */
8836
8837 /* Override any gcc2 internal prototype to avoid an error.  */
8838 #ifdef __cplusplus
8839 extern "C"
8840 #endif
8841 /* We use char because int might match the return type of a gcc2
8842    builtin and then its argument prototype would still apply.  */
8843 char dnet_ntoa ();
8844 int
8845 main ()
8846 {
8847 dnet_ntoa ();
8848   ;
8849   return 0;
8850 }
8851 _ACEOF
8852 rm -f conftest.$ac_objext conftest$ac_exeext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8854   (eval $ac_link) 2>&5
8855   ac_status=$?
8856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857   (exit $ac_status); } &&
8858          { ac_try='test -s conftest$ac_exeext'
8859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860   (eval $ac_try) 2>&5
8861   ac_status=$?
8862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863   (exit $ac_status); }; }; then
8864   ac_cv_lib_dnet_dnet_ntoa=yes
8865 else
8866   echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8868
8869 ac_cv_lib_dnet_dnet_ntoa=no
8870 fi
8871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8872 LIBS=$ac_check_lib_save_LIBS
8873 fi
8874 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8875 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8876 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8877   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8878 fi
8879
8880     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8881       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8882 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8883 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8884   echo $ECHO_N "(cached) $ECHO_C" >&6
8885 else
8886   ac_check_lib_save_LIBS=$LIBS
8887 LIBS="-ldnet_stub  $LIBS"
8888 cat >conftest.$ac_ext <<_ACEOF
8889 #line $LINENO "configure"
8890 /* confdefs.h.  */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h.  */
8895
8896 /* Override any gcc2 internal prototype to avoid an error.  */
8897 #ifdef __cplusplus
8898 extern "C"
8899 #endif
8900 /* We use char because int might match the return type of a gcc2
8901    builtin and then its argument prototype would still apply.  */
8902 char dnet_ntoa ();
8903 int
8904 main ()
8905 {
8906 dnet_ntoa ();
8907   ;
8908   return 0;
8909 }
8910 _ACEOF
8911 rm -f conftest.$ac_objext conftest$ac_exeext
8912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8913   (eval $ac_link) 2>&5
8914   ac_status=$?
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); } &&
8917          { ac_try='test -s conftest$ac_exeext'
8918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919   (eval $ac_try) 2>&5
8920   ac_status=$?
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); }; }; then
8923   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8924 else
8925   echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8927
8928 ac_cv_lib_dnet_stub_dnet_ntoa=no
8929 fi
8930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8931 LIBS=$ac_check_lib_save_LIBS
8932 fi
8933 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8934 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8935 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8936   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8937 fi
8938
8939     fi
8940 fi
8941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8942     LIBS="$ac_xsave_LIBS"
8943
8944     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8945     # to get the SysV transport functions.
8946     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8947     # needs -lnsl.
8948     # The nsl library prevents programs from opening the X display
8949     # on Irix 5.2, according to T.E. Dickey.
8950     # The functions gethostbyname, getservbyname, and inet_addr are
8951     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8952     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8953 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8954 if test "${ac_cv_func_gethostbyname+set}" = set; then
8955   echo $ECHO_N "(cached) $ECHO_C" >&6
8956 else
8957   cat >conftest.$ac_ext <<_ACEOF
8958 #line $LINENO "configure"
8959 /* confdefs.h.  */
8960 _ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h.  */
8964 /* System header to define __stub macros and hopefully few prototypes,
8965     which can conflict with char gethostbyname (); below.
8966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8967     <limits.h> exists even on freestanding compilers.  */
8968 #ifdef __STDC__
8969 # include <limits.h>
8970 #else
8971 # include <assert.h>
8972 #endif
8973 /* Override any gcc2 internal prototype to avoid an error.  */
8974 #ifdef __cplusplus
8975 extern "C"
8976 {
8977 #endif
8978 /* We use char because int might match the return type of a gcc2
8979    builtin and then its argument prototype would still apply.  */
8980 char gethostbyname ();
8981 /* The GNU C library defines this for functions which it implements
8982     to always fail with ENOSYS.  Some functions are actually named
8983     something starting with __ and the normal name is an alias.  */
8984 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8985 choke me
8986 #else
8987 char (*f) () = gethostbyname;
8988 #endif
8989 #ifdef __cplusplus
8990 }
8991 #endif
8992
8993 int
8994 main ()
8995 {
8996 return f != gethostbyname;
8997   ;
8998   return 0;
8999 }
9000 _ACEOF
9001 rm -f conftest.$ac_objext conftest$ac_exeext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9003   (eval $ac_link) 2>&5
9004   ac_status=$?
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); } &&
9007          { ac_try='test -s conftest$ac_exeext'
9008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009   (eval $ac_try) 2>&5
9010   ac_status=$?
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); }; }; then
9013   ac_cv_func_gethostbyname=yes
9014 else
9015   echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9017
9018 ac_cv_func_gethostbyname=no
9019 fi
9020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9021 fi
9022 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9023 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9024
9025     if test $ac_cv_func_gethostbyname = no; then
9026       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9027 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9028 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9029   echo $ECHO_N "(cached) $ECHO_C" >&6
9030 else
9031   ac_check_lib_save_LIBS=$LIBS
9032 LIBS="-lnsl  $LIBS"
9033 cat >conftest.$ac_ext <<_ACEOF
9034 #line $LINENO "configure"
9035 /* confdefs.h.  */
9036 _ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h.  */
9040
9041 /* Override any gcc2 internal prototype to avoid an error.  */
9042 #ifdef __cplusplus
9043 extern "C"
9044 #endif
9045 /* We use char because int might match the return type of a gcc2
9046    builtin and then its argument prototype would still apply.  */
9047 char gethostbyname ();
9048 int
9049 main ()
9050 {
9051 gethostbyname ();
9052   ;
9053   return 0;
9054 }
9055 _ACEOF
9056 rm -f conftest.$ac_objext conftest$ac_exeext
9057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9058   (eval $ac_link) 2>&5
9059   ac_status=$?
9060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061   (exit $ac_status); } &&
9062          { ac_try='test -s conftest$ac_exeext'
9063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064   (eval $ac_try) 2>&5
9065   ac_status=$?
9066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067   (exit $ac_status); }; }; then
9068   ac_cv_lib_nsl_gethostbyname=yes
9069 else
9070   echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9072
9073 ac_cv_lib_nsl_gethostbyname=no
9074 fi
9075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9076 LIBS=$ac_check_lib_save_LIBS
9077 fi
9078 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9079 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9080 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9081   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9082 fi
9083
9084       if test $ac_cv_lib_nsl_gethostbyname = no; then
9085         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9086 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9087 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9088   echo $ECHO_N "(cached) $ECHO_C" >&6
9089 else
9090   ac_check_lib_save_LIBS=$LIBS
9091 LIBS="-lbsd  $LIBS"
9092 cat >conftest.$ac_ext <<_ACEOF
9093 #line $LINENO "configure"
9094 /* confdefs.h.  */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h.  */
9099
9100 /* Override any gcc2 internal prototype to avoid an error.  */
9101 #ifdef __cplusplus
9102 extern "C"
9103 #endif
9104 /* We use char because int might match the return type of a gcc2
9105    builtin and then its argument prototype would still apply.  */
9106 char gethostbyname ();
9107 int
9108 main ()
9109 {
9110 gethostbyname ();
9111   ;
9112   return 0;
9113 }
9114 _ACEOF
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117   (eval $ac_link) 2>&5
9118   ac_status=$?
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); } &&
9121          { ac_try='test -s conftest$ac_exeext'
9122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123   (eval $ac_try) 2>&5
9124   ac_status=$?
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); }; }; then
9127   ac_cv_lib_bsd_gethostbyname=yes
9128 else
9129   echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9131
9132 ac_cv_lib_bsd_gethostbyname=no
9133 fi
9134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9135 LIBS=$ac_check_lib_save_LIBS
9136 fi
9137 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9138 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9139 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9140   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9141 fi
9142
9143       fi
9144     fi
9145
9146     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9147     # socket/setsockopt and other routines are undefined under SCO ODT
9148     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9149     # on later versions), says Simon Leinen: it contains gethostby*
9150     # variants that don't use the name server (or something).  -lsocket
9151     # must be given before -lnsl if both are needed.  We assume that
9152     # if connect needs -lnsl, so does gethostbyname.
9153     echo "$as_me:$LINENO: checking for connect" >&5
9154 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9155 if test "${ac_cv_func_connect+set}" = set; then
9156   echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158   cat >conftest.$ac_ext <<_ACEOF
9159 #line $LINENO "configure"
9160 /* confdefs.h.  */
9161 _ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h.  */
9165 /* System header to define __stub macros and hopefully few prototypes,
9166     which can conflict with char connect (); below.
9167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9168     <limits.h> exists even on freestanding compilers.  */
9169 #ifdef __STDC__
9170 # include <limits.h>
9171 #else
9172 # include <assert.h>
9173 #endif
9174 /* Override any gcc2 internal prototype to avoid an error.  */
9175 #ifdef __cplusplus
9176 extern "C"
9177 {
9178 #endif
9179 /* We use char because int might match the return type of a gcc2
9180    builtin and then its argument prototype would still apply.  */
9181 char connect ();
9182 /* The GNU C library defines this for functions which it implements
9183     to always fail with ENOSYS.  Some functions are actually named
9184     something starting with __ and the normal name is an alias.  */
9185 #if defined (__stub_connect) || defined (__stub___connect)
9186 choke me
9187 #else
9188 char (*f) () = connect;
9189 #endif
9190 #ifdef __cplusplus
9191 }
9192 #endif
9193
9194 int
9195 main ()
9196 {
9197 return f != connect;
9198   ;
9199   return 0;
9200 }
9201 _ACEOF
9202 rm -f conftest.$ac_objext conftest$ac_exeext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9204   (eval $ac_link) 2>&5
9205   ac_status=$?
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } &&
9208          { ac_try='test -s conftest$ac_exeext'
9209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210   (eval $ac_try) 2>&5
9211   ac_status=$?
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); }; }; then
9214   ac_cv_func_connect=yes
9215 else
9216   echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9218
9219 ac_cv_func_connect=no
9220 fi
9221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9222 fi
9223 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9224 echo "${ECHO_T}$ac_cv_func_connect" >&6
9225
9226     if test $ac_cv_func_connect = no; then
9227       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9228 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9229 if test "${ac_cv_lib_socket_connect+set}" = set; then
9230   echo $ECHO_N "(cached) $ECHO_C" >&6
9231 else
9232   ac_check_lib_save_LIBS=$LIBS
9233 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9234 cat >conftest.$ac_ext <<_ACEOF
9235 #line $LINENO "configure"
9236 /* confdefs.h.  */
9237 _ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h.  */
9241
9242 /* Override any gcc2 internal prototype to avoid an error.  */
9243 #ifdef __cplusplus
9244 extern "C"
9245 #endif
9246 /* We use char because int might match the return type of a gcc2
9247    builtin and then its argument prototype would still apply.  */
9248 char connect ();
9249 int
9250 main ()
9251 {
9252 connect ();
9253   ;
9254   return 0;
9255 }
9256 _ACEOF
9257 rm -f conftest.$ac_objext conftest$ac_exeext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9259   (eval $ac_link) 2>&5
9260   ac_status=$?
9261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262   (exit $ac_status); } &&
9263          { ac_try='test -s conftest$ac_exeext'
9264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265   (eval $ac_try) 2>&5
9266   ac_status=$?
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); }; }; then
9269   ac_cv_lib_socket_connect=yes
9270 else
9271   echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9273
9274 ac_cv_lib_socket_connect=no
9275 fi
9276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9277 LIBS=$ac_check_lib_save_LIBS
9278 fi
9279 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9280 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9281 if test $ac_cv_lib_socket_connect = yes; then
9282   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9283 fi
9284
9285     fi
9286
9287     # Guillermo Gomez says -lposix is necessary on A/UX.
9288     echo "$as_me:$LINENO: checking for remove" >&5
9289 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9290 if test "${ac_cv_func_remove+set}" = set; then
9291   echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293   cat >conftest.$ac_ext <<_ACEOF
9294 #line $LINENO "configure"
9295 /* confdefs.h.  */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h.  */
9300 /* System header to define __stub macros and hopefully few prototypes,
9301     which can conflict with char remove (); below.
9302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9303     <limits.h> exists even on freestanding compilers.  */
9304 #ifdef __STDC__
9305 # include <limits.h>
9306 #else
9307 # include <assert.h>
9308 #endif
9309 /* Override any gcc2 internal prototype to avoid an error.  */
9310 #ifdef __cplusplus
9311 extern "C"
9312 {
9313 #endif
9314 /* We use char because int might match the return type of a gcc2
9315    builtin and then its argument prototype would still apply.  */
9316 char remove ();
9317 /* The GNU C library defines this for functions which it implements
9318     to always fail with ENOSYS.  Some functions are actually named
9319     something starting with __ and the normal name is an alias.  */
9320 #if defined (__stub_remove) || defined (__stub___remove)
9321 choke me
9322 #else
9323 char (*f) () = remove;
9324 #endif
9325 #ifdef __cplusplus
9326 }
9327 #endif
9328
9329 int
9330 main ()
9331 {
9332 return f != remove;
9333   ;
9334   return 0;
9335 }
9336 _ACEOF
9337 rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9339   (eval $ac_link) 2>&5
9340   ac_status=$?
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); } &&
9343          { ac_try='test -s conftest$ac_exeext'
9344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345   (eval $ac_try) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); }; }; then
9349   ac_cv_func_remove=yes
9350 else
9351   echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9353
9354 ac_cv_func_remove=no
9355 fi
9356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9357 fi
9358 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9359 echo "${ECHO_T}$ac_cv_func_remove" >&6
9360
9361     if test $ac_cv_func_remove = no; then
9362       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9363 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9364 if test "${ac_cv_lib_posix_remove+set}" = set; then
9365   echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367   ac_check_lib_save_LIBS=$LIBS
9368 LIBS="-lposix  $LIBS"
9369 cat >conftest.$ac_ext <<_ACEOF
9370 #line $LINENO "configure"
9371 /* confdefs.h.  */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h.  */
9376
9377 /* Override any gcc2 internal prototype to avoid an error.  */
9378 #ifdef __cplusplus
9379 extern "C"
9380 #endif
9381 /* We use char because int might match the return type of a gcc2
9382    builtin and then its argument prototype would still apply.  */
9383 char remove ();
9384 int
9385 main ()
9386 {
9387 remove ();
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394   (eval $ac_link) 2>&5
9395   ac_status=$?
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); } &&
9398          { ac_try='test -s conftest$ac_exeext'
9399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400   (eval $ac_try) 2>&5
9401   ac_status=$?
9402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403   (exit $ac_status); }; }; then
9404   ac_cv_lib_posix_remove=yes
9405 else
9406   echo "$as_me: failed program was:" >&5
9407 sed 's/^/| /' conftest.$ac_ext >&5
9408
9409 ac_cv_lib_posix_remove=no
9410 fi
9411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9412 LIBS=$ac_check_lib_save_LIBS
9413 fi
9414 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9415 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9416 if test $ac_cv_lib_posix_remove = yes; then
9417   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9418 fi
9419
9420     fi
9421
9422     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9423     echo "$as_me:$LINENO: checking for shmat" >&5
9424 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9425 if test "${ac_cv_func_shmat+set}" = set; then
9426   echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428   cat >conftest.$ac_ext <<_ACEOF
9429 #line $LINENO "configure"
9430 /* confdefs.h.  */
9431 _ACEOF
9432 cat confdefs.h >>conftest.$ac_ext
9433 cat >>conftest.$ac_ext <<_ACEOF
9434 /* end confdefs.h.  */
9435 /* System header to define __stub macros and hopefully few prototypes,
9436     which can conflict with char shmat (); below.
9437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9438     <limits.h> exists even on freestanding compilers.  */
9439 #ifdef __STDC__
9440 # include <limits.h>
9441 #else
9442 # include <assert.h>
9443 #endif
9444 /* Override any gcc2 internal prototype to avoid an error.  */
9445 #ifdef __cplusplus
9446 extern "C"
9447 {
9448 #endif
9449 /* We use char because int might match the return type of a gcc2
9450    builtin and then its argument prototype would still apply.  */
9451 char shmat ();
9452 /* The GNU C library defines this for functions which it implements
9453     to always fail with ENOSYS.  Some functions are actually named
9454     something starting with __ and the normal name is an alias.  */
9455 #if defined (__stub_shmat) || defined (__stub___shmat)
9456 choke me
9457 #else
9458 char (*f) () = shmat;
9459 #endif
9460 #ifdef __cplusplus
9461 }
9462 #endif
9463
9464 int
9465 main ()
9466 {
9467 return f != shmat;
9468   ;
9469   return 0;
9470 }
9471 _ACEOF
9472 rm -f conftest.$ac_objext conftest$ac_exeext
9473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9474   (eval $ac_link) 2>&5
9475   ac_status=$?
9476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477   (exit $ac_status); } &&
9478          { ac_try='test -s conftest$ac_exeext'
9479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480   (eval $ac_try) 2>&5
9481   ac_status=$?
9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); }; }; then
9484   ac_cv_func_shmat=yes
9485 else
9486   echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9488
9489 ac_cv_func_shmat=no
9490 fi
9491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9492 fi
9493 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9494 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9495
9496     if test $ac_cv_func_shmat = no; then
9497       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9498 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9499 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9500   echo $ECHO_N "(cached) $ECHO_C" >&6
9501 else
9502   ac_check_lib_save_LIBS=$LIBS
9503 LIBS="-lipc  $LIBS"
9504 cat >conftest.$ac_ext <<_ACEOF
9505 #line $LINENO "configure"
9506 /* confdefs.h.  */
9507 _ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h.  */
9511
9512 /* Override any gcc2 internal prototype to avoid an error.  */
9513 #ifdef __cplusplus
9514 extern "C"
9515 #endif
9516 /* We use char because int might match the return type of a gcc2
9517    builtin and then its argument prototype would still apply.  */
9518 char shmat ();
9519 int
9520 main ()
9521 {
9522 shmat ();
9523   ;
9524   return 0;
9525 }
9526 _ACEOF
9527 rm -f conftest.$ac_objext conftest$ac_exeext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529   (eval $ac_link) 2>&5
9530   ac_status=$?
9531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532   (exit $ac_status); } &&
9533          { ac_try='test -s conftest$ac_exeext'
9534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535   (eval $ac_try) 2>&5
9536   ac_status=$?
9537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); }; }; then
9539   ac_cv_lib_ipc_shmat=yes
9540 else
9541   echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.$ac_ext >&5
9543
9544 ac_cv_lib_ipc_shmat=no
9545 fi
9546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9547 LIBS=$ac_check_lib_save_LIBS
9548 fi
9549 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9550 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9551 if test $ac_cv_lib_ipc_shmat = yes; then
9552   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9553 fi
9554
9555     fi
9556   fi
9557
9558   # Check for libraries that X11R6 Xt/Xaw programs need.
9559   ac_save_LDFLAGS=$LDFLAGS
9560   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9561   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9562   # check for ICE first), but we must link in the order -lSM -lICE or
9563   # we get undefined symbols.  So assume we have SM if we have ICE.
9564   # These have to be linked with before -lX11, unlike the other
9565   # libraries we check for below, so use a different variable.
9566   # John Interrante, Karl Berry
9567   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9568 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9569 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9570   echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572   ac_check_lib_save_LIBS=$LIBS
9573 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9574 cat >conftest.$ac_ext <<_ACEOF
9575 #line $LINENO "configure"
9576 /* confdefs.h.  */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h.  */
9581
9582 /* Override any gcc2 internal prototype to avoid an error.  */
9583 #ifdef __cplusplus
9584 extern "C"
9585 #endif
9586 /* We use char because int might match the return type of a gcc2
9587    builtin and then its argument prototype would still apply.  */
9588 char IceConnectionNumber ();
9589 int
9590 main ()
9591 {
9592 IceConnectionNumber ();
9593   ;
9594   return 0;
9595 }
9596 _ACEOF
9597 rm -f conftest.$ac_objext conftest$ac_exeext
9598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9599   (eval $ac_link) 2>&5
9600   ac_status=$?
9601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602   (exit $ac_status); } &&
9603          { ac_try='test -s conftest$ac_exeext'
9604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605   (eval $ac_try) 2>&5
9606   ac_status=$?
9607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608   (exit $ac_status); }; }; then
9609   ac_cv_lib_ICE_IceConnectionNumber=yes
9610 else
9611   echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9613
9614 ac_cv_lib_ICE_IceConnectionNumber=no
9615 fi
9616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9617 LIBS=$ac_check_lib_save_LIBS
9618 fi
9619 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9620 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9621 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9622   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9623 fi
9624
9625   LDFLAGS=$ac_save_LDFLAGS
9626
9627 fi
9628
9629
9630
9631
9632
9633
9634
9635
9636 X_TOOLKIT_LIBS="-lXt"
9637 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9638
9639 our_saved_LDFLAGS="$LDFLAGS"
9640 LDFLAGS="$X_LIBS $LDFLAGS"
9641 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9642 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9643 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9644   echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646   ac_check_lib_save_LIBS=$LIBS
9647 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9648 cat >conftest.$ac_ext <<_ACEOF
9649 #line $LINENO "configure"
9650 /* confdefs.h.  */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h.  */
9655
9656 /* Override any gcc2 internal prototype to avoid an error.  */
9657 #ifdef __cplusplus
9658 extern "C"
9659 #endif
9660 /* We use char because int might match the return type of a gcc2
9661    builtin and then its argument prototype would still apply.  */
9662 char XtToolkitThreadInitialize ();
9663 int
9664 main ()
9665 {
9666 XtToolkitThreadInitialize ();
9667   ;
9668   return 0;
9669 }
9670 _ACEOF
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673   (eval $ac_link) 2>&5
9674   ac_status=$?
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); } &&
9677          { ac_try='test -s conftest$ac_exeext'
9678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679   (eval $ac_try) 2>&5
9680   ac_status=$?
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); }; }; then
9683   ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9684 else
9685   echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9687
9688 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9689 fi
9690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9691 LIBS=$ac_check_lib_save_LIBS
9692 fi
9693 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9694 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9695 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9696
9697 cat >>confdefs.h <<\_ACEOF
9698 #define X_THREAD_SUPPORT 1
9699 _ACEOF
9700
9701 fi
9702
9703 LDFLAGS="$our_saved_LDFLAGS"
9704
9705
9706
9707 if test "x$no_x" = "xyes"; then
9708   NO_X_TRUE=
9709   NO_X_FALSE='#'
9710 else
9711   NO_X_TRUE='#'
9712   NO_X_FALSE=
9713 fi
9714
9715
9716 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9717
9718
9719 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9720
9721 echo "$as_me:$LINENO: checking for X" >&5
9722 echo $ECHO_N "checking for X... $ECHO_C" >&6
9723 if test "$no_x" != "yes" ; then
9724
9725 cat >>confdefs.h <<\_ACEOF
9726 #define HAVE_X11 1
9727 _ACEOF
9728
9729   LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
9730   my_includes="$my_includes -I/usr/X11R6/include"
9731   ctlib_graphics="$ctlibs_base -lctgraphics"
9732   echo "$as_me:$LINENO: result: yes" >&5
9733 echo "${ECHO_T}yes" >&6
9734   ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9735   if test "$libgl" = "true" ; then
9736     # Removed "-lglut" for Mac OS X compilation
9737     ctlib_graphics="$ctlib_graphics -lGL -lGLU"
9738     if test "$wxwin" = "true" ; then
9739       if  "$wx_gtk" ; then
9740         ctlib_graphics="$ctlib_graphics `wx-config --libs` -lwx_gtk_gl-2.4 `gtk-config --libs` `glib-config --libs glib gmodule gthread`"
9741       elif  "$wx_mac" ; then
9742         ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
9743       fi
9744     fi
9745   fi
9746   if test "$wxwin" = "true" ; then
9747
9748 cat >>confdefs.h <<\_ACEOF
9749 #define HAVE_SGP 1
9750 _ACEOF
9751
9752   fi
9753 else
9754   echo "$as_me:$LINENO: result: no" >&5
9755 echo "${ECHO_T}no" >&6
9756 fi
9757
9758
9759
9760 if test "$wxwin" = "true"; then
9761   HAVE_SGP_TRUE=
9762   HAVE_SGP_FALSE='#'
9763 else
9764   HAVE_SGP_TRUE='#'
9765   HAVE_SGP_FALSE=
9766 fi
9767
9768
9769 if test "$png" = "true" ; then
9770   ctlibs_tools="$ctlibs_tools -lpng"
9771 fi
9772 if test "$zlib" = "true" ; then
9773   ctlibs_tools="$ctlibs_tools -lz"
9774 fi
9775 if test "$fftw" = "true" ; then
9776   ctlibs_tools="$ctlibs_tools -lfftw3"
9777 fi
9778 if test "$ctn" = "true"; then
9779   ctlibs_tools="$ctlibs_tools -lctn"
9780 fi
9781
9782 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9783 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9784 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9785   echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787   ac_check_lib_save_LIBS=$LIBS
9788 LIBS="-ldmallocxx  $LIBS"
9789 cat >conftest.$ac_ext <<_ACEOF
9790 #line $LINENO "configure"
9791 /* confdefs.h.  */
9792 _ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h.  */
9796
9797
9798 int
9799 main ()
9800 {
9801 main ();
9802   ;
9803   return 0;
9804 }
9805 _ACEOF
9806 rm -f conftest.$ac_objext conftest$ac_exeext
9807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9808   (eval $ac_link) 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); } &&
9812          { ac_try='test -s conftest$ac_exeext'
9813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814   (eval $ac_try) 2>&5
9815   ac_status=$?
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); }; }; then
9818   ac_cv_lib_dmallocxx_main=yes
9819 else
9820   echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9822
9823 ac_cv_lib_dmallocxx_main=no
9824 fi
9825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9826 LIBS=$ac_check_lib_save_LIBS
9827 fi
9828 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9829 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9830 if test $ac_cv_lib_dmallocxx_main = yes; then
9831   dmallocxx=true
9832 else
9833   dmallocxx=false
9834 fi
9835
9836 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9837 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9838 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9839 if test "${enable_dmalloc+set}" = set; then
9840   enableval="$enable_dmalloc"
9841   case "${enableval}" in
9842   yes) usedmalloc=true
9843        echo "$as_me:$LINENO: result: yes" >&5
9844 echo "${ECHO_T}yes" >&6
9845        ;;
9846   no)  usedmalloc=false
9847        echo "$as_me:$LINENO: result: no" >&5
9848 echo "${ECHO_T}no" >&6
9849        ;;
9850   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9851 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9852        ;;
9853 esac
9854 else
9855   usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9856 echo "${ECHO_T}no" >&6
9857 fi;
9858
9859 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9860   ctlibs_tools="$ctlibs_tools -ldmallocxx"
9861
9862 cat >>confdefs.h <<\_ACEOF
9863 #define HAVE_DMALLOC 1
9864 _ACEOF
9865
9866   echo "$as_me:$LINENO: result: Using dmalloc" >&5
9867 echo "${ECHO_T}Using dmalloc" >&6
9868 fi
9869
9870 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9871 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9872 if test "${ac_cv_lib_efence_main+set}" = set; then
9873   echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875   ac_check_lib_save_LIBS=$LIBS
9876 LIBS="-lefence  $LIBS"
9877 cat >conftest.$ac_ext <<_ACEOF
9878 #line $LINENO "configure"
9879 /* confdefs.h.  */
9880 _ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h.  */
9884
9885
9886 int
9887 main ()
9888 {
9889 main ();
9890   ;
9891   return 0;
9892 }
9893 _ACEOF
9894 rm -f conftest.$ac_objext conftest$ac_exeext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896   (eval $ac_link) 2>&5
9897   ac_status=$?
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); } &&
9900          { ac_try='test -s conftest$ac_exeext'
9901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902   (eval $ac_try) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; }; then
9906   ac_cv_lib_efence_main=yes
9907 else
9908   echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9910
9911 ac_cv_lib_efence_main=no
9912 fi
9913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9914 LIBS=$ac_check_lib_save_LIBS
9915 fi
9916 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9917 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9918 if test $ac_cv_lib_efence_main = yes; then
9919   efence=true
9920 else
9921   efence=false
9922 fi
9923
9924 echo "$as_me:$LINENO: checking for enable-efence" >&5
9925 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9926 # Check whether --enable-efence or --disable-efence was given.
9927 if test "${enable_efence+set}" = set; then
9928   enableval="$enable_efence"
9929   case "${enableval}" in
9930   yes) useefence=true
9931        echo "$as_me:$LINENO: result: yes" >&5
9932 echo "${ECHO_T}yes" >&6
9933        ;;
9934   no)  useefence=false
9935        echo "$as_me:$LINENO: result: no" >&5
9936 echo "${ECHO_T}no" >&6
9937        ;;
9938   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9939 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9940        ;;
9941 esac
9942 else
9943   useefence=false; echo "$as_me:$LINENO: result: no" >&5
9944 echo "${ECHO_T}no" >&6
9945 fi;
9946
9947 if test "$efence" = "true" -a "$useefence" = "true" ; then
9948   ctlibs_tools="$ctlibs_tools -lefence"
9949
9950 cat >>confdefs.h <<\_ACEOF
9951 #define HAVE_EFENCE 1
9952 _ACEOF
9953
9954   echo "$as_me:$LINENO: result: Using efence" >&5
9955 echo "${ECHO_T}Using efence" >&6
9956 fi
9957
9958 if test "$wxwin" = "true" ; then
9959   if  "$wx_gtk" = "true"  ||  "$wx_mac" == "true"  ; then
9960     wxcflags=`$wxconfig --cflags`
9961     wxlibs=`$wxconfig --libs`
9962   else
9963         wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9964         wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9965   fi
9966   CFLAGS="$CFLAGS -I../include $wxcflags"
9967   ctlib_graphics="$ctlib_graphics $wxlibs"
9968 fi
9969
9970
9971
9972
9973 if test "$wxwin"="true"; then
9974   HAVE_WXWINDOWS_TRUE=
9975   HAVE_WXWINDOWS_FALSE='#'
9976 else
9977   HAVE_WXWINDOWS_TRUE='#'
9978   HAVE_WXWINDOWS_FALSE=
9979 fi
9980
9981
9982 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9983 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9984
9985
9986 if test -n "$lamdir" ; then
9987   lamprograms="ctsimtext-lam"
9988
9989   lamdefs="$CFLAGS"
9990
9991 fi
9992
9993 CXXFLAGS="$CFLAGS"
9994
9995                                                                                                                                                                           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"
9996
9997
9998 cat >confcache <<\_ACEOF
9999 # This file is a shell script that caches the results of configure
10000 # tests run on this system so they can be shared between configure
10001 # scripts and configure runs, see configure's option --config-cache.
10002 # It is not useful on other systems.  If it contains results you don't
10003 # want to keep, you may remove or edit it.
10004 #
10005 # config.status only pays attention to the cache file if you give it
10006 # the --recheck option to rerun configure.
10007 #
10008 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10009 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10010 # following values.
10011
10012 _ACEOF
10013
10014 # The following way of writing the cache mishandles newlines in values,
10015 # but we know of no workaround that is simple, portable, and efficient.
10016 # So, don't put newlines in cache variables' values.
10017 # Ultrix sh set writes to stderr and can't be redirected directly,
10018 # and sets the high bit in the cache file unless we assign to the vars.
10019 {
10020   (set) 2>&1 |
10021     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10022     *ac_space=\ *)
10023       # `set' does not quote correctly, so add quotes (double-quote
10024       # substitution turns \\\\ into \\, and sed turns \\ into \).
10025       sed -n \
10026         "s/'/'\\\\''/g;
10027           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10028       ;;
10029     *)
10030       # `set' quotes correctly as required by POSIX, so do not add quotes.
10031       sed -n \
10032         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10033       ;;
10034     esac;
10035 } |
10036   sed '
10037      t clear
10038      : clear
10039      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10040      t end
10041      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10042      : end' >>confcache
10043 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10044   if test -w $cache_file; then
10045     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10046     cat confcache >$cache_file
10047   else
10048     echo "not updating unwritable cache $cache_file"
10049   fi
10050 fi
10051 rm -f confcache
10052
10053 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10054 # Let make expand exec_prefix.
10055 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10056
10057 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10058 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10059 # trailing colons and then remove the whole line if VPATH becomes empty
10060 # (actually we leave an empty line to preserve line numbers).
10061 if test "x$srcdir" = x.; then
10062   ac_vpsub='/^[         ]*VPATH[        ]*=/{
10063 s/:*\$(srcdir):*/:/;
10064 s/:*\${srcdir}:*/:/;
10065 s/:*@srcdir@:*/:/;
10066 s/^\([^=]*=[    ]*\):*/\1/;
10067 s/:*$//;
10068 s/^[^=]*=[      ]*$//;
10069 }'
10070 fi
10071
10072 DEFS=-DHAVE_CONFIG_H
10073
10074 ac_libobjs=
10075 ac_ltlibobjs=
10076 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10077   # 1. Remove the extension, and $U if already installed.
10078   ac_i=`echo "$ac_i" |
10079          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10080   # 2. Add them.
10081   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10082   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10083 done
10084 LIBOBJS=$ac_libobjs
10085
10086 LTLIBOBJS=$ac_ltlibobjs
10087
10088
10089 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10090   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10091 Usually this means the macro was only invoked conditionally." >&5
10092 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10093 Usually this means the macro was only invoked conditionally." >&2;}
10094    { (exit 1); exit 1; }; }
10095 fi
10096 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10097   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10098 Usually this means the macro was only invoked conditionally." >&5
10099 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10100 Usually this means the macro was only invoked conditionally." >&2;}
10101    { (exit 1); exit 1; }; }
10102 fi
10103 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10104   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10105 Usually this means the macro was only invoked conditionally." >&5
10106 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10107 Usually this means the macro was only invoked conditionally." >&2;}
10108    { (exit 1); exit 1; }; }
10109 fi
10110 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10111   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10112 Usually this means the macro was only invoked conditionally." >&5
10113 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10114 Usually this means the macro was only invoked conditionally." >&2;}
10115    { (exit 1); exit 1; }; }
10116 fi
10117 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
10118   { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10119 Usually this means the macro was only invoked conditionally." >&5
10120 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10121 Usually this means the macro was only invoked conditionally." >&2;}
10122    { (exit 1); exit 1; }; }
10123 fi
10124 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
10125   { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
10126 Usually this means the macro was only invoked conditionally." >&5
10127 echo "$as_me: error: conditional \"DEBUG\" was never defined.
10128 Usually this means the macro was only invoked conditionally." >&2;}
10129    { (exit 1); exit 1; }; }
10130 fi
10131 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
10132   { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
10133 Usually this means the macro was only invoked conditionally." >&5
10134 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
10135 Usually this means the macro was only invoked conditionally." >&2;}
10136    { (exit 1); exit 1; }; }
10137 fi
10138 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
10139   { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
10140 Usually this means the macro was only invoked conditionally." >&5
10141 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
10142 Usually this means the macro was only invoked conditionally." >&2;}
10143    { (exit 1); exit 1; }; }
10144 fi
10145 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
10146   { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
10147 Usually this means the macro was only invoked conditionally." >&5
10148 echo "$as_me: error: conditional \"NO_X\" was never defined.
10149 Usually this means the macro was only invoked conditionally." >&2;}
10150    { (exit 1); exit 1; }; }
10151 fi
10152 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
10153   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
10154 Usually this means the macro was only invoked conditionally." >&5
10155 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
10156 Usually this means the macro was only invoked conditionally." >&2;}
10157    { (exit 1); exit 1; }; }
10158 fi
10159 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
10160   { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
10161 Usually this means the macro was only invoked conditionally." >&5
10162 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
10163 Usually this means the macro was only invoked conditionally." >&2;}
10164    { (exit 1); exit 1; }; }
10165 fi
10166
10167 : ${CONFIG_STATUS=./config.status}
10168 ac_clean_files_save=$ac_clean_files
10169 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10170 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10171 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10172 cat >$CONFIG_STATUS <<_ACEOF
10173 #! $SHELL
10174 # Generated by $as_me.
10175 # Run this file to recreate the current configuration.
10176 # Compiler output produced by configure, useful for debugging
10177 # configure, is in config.log if it exists.
10178
10179 debug=false
10180 ac_cs_recheck=false
10181 ac_cs_silent=false
10182 SHELL=\${CONFIG_SHELL-$SHELL}
10183 _ACEOF
10184
10185 cat >>$CONFIG_STATUS <<\_ACEOF
10186 ## --------------------- ##
10187 ## M4sh Initialization.  ##
10188 ## --------------------- ##
10189
10190 # Be Bourne compatible
10191 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10192   emulate sh
10193   NULLCMD=:
10194   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10195   # is contrary to our usage.  Disable this feature.
10196   alias -g '${1+"$@"}'='"$@"'
10197 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10198   set -o posix
10199 fi
10200
10201 # Support unset when possible.
10202 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10203   as_unset=unset
10204 else
10205   as_unset=false
10206 fi
10207
10208
10209 # Work around bugs in pre-3.0 UWIN ksh.
10210 $as_unset ENV MAIL MAILPATH
10211 PS1='$ '
10212 PS2='> '
10213 PS4='+ '
10214
10215 # NLS nuisances.
10216 for as_var in \
10217   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10218   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10219   LC_TELEPHONE LC_TIME
10220 do
10221   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10222     eval $as_var=C; export $as_var
10223   else
10224     $as_unset $as_var
10225   fi
10226 done
10227
10228 # Required to use basename.
10229 if expr a : '\(a\)' >/dev/null 2>&1; then
10230   as_expr=expr
10231 else
10232   as_expr=false
10233 fi
10234
10235 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10236   as_basename=basename
10237 else
10238   as_basename=false
10239 fi
10240
10241
10242 # Name of the executable.
10243 as_me=`$as_basename "$0" ||
10244 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10245          X"$0" : 'X\(//\)$' \| \
10246          X"$0" : 'X\(/\)$' \| \
10247          .     : '\(.\)' 2>/dev/null ||
10248 echo X/"$0" |
10249     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10250           /^X\/\(\/\/\)$/{ s//\1/; q; }
10251           /^X\/\(\/\).*/{ s//\1/; q; }
10252           s/.*/./; q'`
10253
10254
10255 # PATH needs CR, and LINENO needs CR and PATH.
10256 # Avoid depending upon Character Ranges.
10257 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10258 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10259 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10260 as_cr_digits='0123456789'
10261 as_cr_alnum=$as_cr_Letters$as_cr_digits
10262
10263 # The user is always right.
10264 if test "${PATH_SEPARATOR+set}" != set; then
10265   echo "#! /bin/sh" >conf$$.sh
10266   echo  "exit 0"   >>conf$$.sh
10267   chmod +x conf$$.sh
10268   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10269     PATH_SEPARATOR=';'
10270   else
10271     PATH_SEPARATOR=:
10272   fi
10273   rm -f conf$$.sh
10274 fi
10275
10276
10277   as_lineno_1=$LINENO
10278   as_lineno_2=$LINENO
10279   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10280   test "x$as_lineno_1" != "x$as_lineno_2" &&
10281   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10282   # Find who we are.  Look in the path if we contain no path at all
10283   # relative or not.
10284   case $0 in
10285     *[\\/]* ) as_myself=$0 ;;
10286     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287 for as_dir in $PATH
10288 do
10289   IFS=$as_save_IFS
10290   test -z "$as_dir" && as_dir=.
10291   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10292 done
10293
10294        ;;
10295   esac
10296   # We did not find ourselves, most probably we were run as `sh COMMAND'
10297   # in which case we are not to be found in the path.
10298   if test "x$as_myself" = x; then
10299     as_myself=$0
10300   fi
10301   if test ! -f "$as_myself"; then
10302     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10303 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10304    { (exit 1); exit 1; }; }
10305   fi
10306   case $CONFIG_SHELL in
10307   '')
10308     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10310 do
10311   IFS=$as_save_IFS
10312   test -z "$as_dir" && as_dir=.
10313   for as_base in sh bash ksh sh5; do
10314          case $as_dir in
10315          /*)
10316            if ("$as_dir/$as_base" -c '
10317   as_lineno_1=$LINENO
10318   as_lineno_2=$LINENO
10319   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10320   test "x$as_lineno_1" != "x$as_lineno_2" &&
10321   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10322              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10323              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10324              CONFIG_SHELL=$as_dir/$as_base
10325              export CONFIG_SHELL
10326              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10327            fi;;
10328          esac
10329        done
10330 done
10331 ;;
10332   esac
10333
10334   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10335   # uniformly replaced by the line number.  The first 'sed' inserts a
10336   # line-number line before each line; the second 'sed' does the real
10337   # work.  The second script uses 'N' to pair each line-number line
10338   # with the numbered line, and appends trailing '-' during
10339   # substitution so that $LINENO is not a special case at line end.
10340   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10341   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10342   sed '=' <$as_myself |
10343     sed '
10344       N
10345       s,$,-,
10346       : loop
10347       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10348       t loop
10349       s,-$,,
10350       s,^['$as_cr_digits']*\n,,
10351     ' >$as_me.lineno &&
10352   chmod +x $as_me.lineno ||
10353     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10354 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10355    { (exit 1); exit 1; }; }
10356
10357   # Don't try to exec as it changes $[0], causing all sort of problems
10358   # (the dirname of $[0] is not the place where we might find the
10359   # original and so on.  Autoconf is especially sensible to this).
10360   . ./$as_me.lineno
10361   # Exit status is that of the last command.
10362   exit
10363 }
10364
10365
10366 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10367   *c*,-n*) ECHO_N= ECHO_C='
10368 ' ECHO_T='      ' ;;
10369   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10370   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10371 esac
10372
10373 if expr a : '\(a\)' >/dev/null 2>&1; then
10374   as_expr=expr
10375 else
10376   as_expr=false
10377 fi
10378
10379 rm -f conf$$ conf$$.exe conf$$.file
10380 echo >conf$$.file
10381 if ln -s conf$$.file conf$$ 2>/dev/null; then
10382   # We could just check for DJGPP; but this test a) works b) is more generic
10383   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10384   if test -f conf$$.exe; then
10385     # Don't use ln at all; we don't have any links
10386     as_ln_s='cp -p'
10387   else
10388     as_ln_s='ln -s'
10389   fi
10390 elif ln conf$$.file conf$$ 2>/dev/null; then
10391   as_ln_s=ln
10392 else
10393   as_ln_s='cp -p'
10394 fi
10395 rm -f conf$$ conf$$.exe conf$$.file
10396
10397 if mkdir -p . 2>/dev/null; then
10398   as_mkdir_p=:
10399 else
10400   as_mkdir_p=false
10401 fi
10402
10403 as_executable_p="test -f"
10404
10405 # Sed expression to map a string onto a valid CPP name.
10406 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10407
10408 # Sed expression to map a string onto a valid variable name.
10409 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10410
10411
10412 # IFS
10413 # We need space, tab and new line, in precisely that order.
10414 as_nl='
10415 '
10416 IFS="   $as_nl"
10417
10418 # CDPATH.
10419 $as_unset CDPATH
10420
10421 exec 6>&1
10422
10423 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10424 # report actual input values of CONFIG_FILES etc. instead of their
10425 # values after options handling.  Logging --version etc. is OK.
10426 exec 5>>config.log
10427 {
10428   echo
10429   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10430 ## Running $as_me. ##
10431 _ASBOX
10432 } >&5
10433 cat >&5 <<_CSEOF
10434
10435 This file was extended by $as_me, which was
10436 generated by GNU Autoconf 2.57.  Invocation command line was
10437
10438   CONFIG_FILES    = $CONFIG_FILES
10439   CONFIG_HEADERS  = $CONFIG_HEADERS
10440   CONFIG_LINKS    = $CONFIG_LINKS
10441   CONFIG_COMMANDS = $CONFIG_COMMANDS
10442   $ $0 $@
10443
10444 _CSEOF
10445 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10446 echo >&5
10447 _ACEOF
10448
10449 # Files that config.status was made for.
10450 if test -n "$ac_config_files"; then
10451   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10452 fi
10453
10454 if test -n "$ac_config_headers"; then
10455   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10456 fi
10457
10458 if test -n "$ac_config_links"; then
10459   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10460 fi
10461
10462 if test -n "$ac_config_commands"; then
10463   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10464 fi
10465
10466 cat >>$CONFIG_STATUS <<\_ACEOF
10467
10468 ac_cs_usage="\
10469 \`$as_me' instantiates files from templates according to the
10470 current configuration.
10471
10472 Usage: $0 [OPTIONS] [FILE]...
10473
10474   -h, --help       print this help, then exit
10475   -V, --version    print version number, then exit
10476   -q, --quiet      do not print progress messages
10477   -d, --debug      don't remove temporary files
10478       --recheck    update $as_me by reconfiguring in the same conditions
10479   --file=FILE[:TEMPLATE]
10480                    instantiate the configuration file FILE
10481   --header=FILE[:TEMPLATE]
10482                    instantiate the configuration header FILE
10483
10484 Configuration files:
10485 $config_files
10486
10487 Configuration headers:
10488 $config_headers
10489
10490 Configuration commands:
10491 $config_commands
10492
10493 Report bugs to <bug-autoconf@gnu.org>."
10494 _ACEOF
10495
10496 cat >>$CONFIG_STATUS <<_ACEOF
10497 ac_cs_version="\\
10498 config.status
10499 configured by $0, generated by GNU Autoconf 2.57,
10500   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10501
10502 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10503 Free Software Foundation, Inc.
10504 This config.status script is free software; the Free Software Foundation
10505 gives unlimited permission to copy, distribute and modify it."
10506 srcdir=$srcdir
10507 INSTALL="$INSTALL"
10508 _ACEOF
10509
10510 cat >>$CONFIG_STATUS <<\_ACEOF
10511 # If no file are specified by the user, then we need to provide default
10512 # value.  By we need to know if files were specified by the user.
10513 ac_need_defaults=:
10514 while test $# != 0
10515 do
10516   case $1 in
10517   --*=*)
10518     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10519     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10520     ac_shift=:
10521     ;;
10522   -*)
10523     ac_option=$1
10524     ac_optarg=$2
10525     ac_shift=shift
10526     ;;
10527   *) # This is not an option, so the user has probably given explicit
10528      # arguments.
10529      ac_option=$1
10530      ac_need_defaults=false;;
10531   esac
10532
10533   case $ac_option in
10534   # Handling of the options.
10535 _ACEOF
10536 cat >>$CONFIG_STATUS <<\_ACEOF
10537   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10538     ac_cs_recheck=: ;;
10539   --version | --vers* | -V )
10540     echo "$ac_cs_version"; exit 0 ;;
10541   --he | --h)
10542     # Conflict between --help and --header
10543     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10544 Try \`$0 --help' for more information." >&5
10545 echo "$as_me: error: ambiguous option: $1
10546 Try \`$0 --help' for more information." >&2;}
10547    { (exit 1); exit 1; }; };;
10548   --help | --hel | -h )
10549     echo "$ac_cs_usage"; exit 0 ;;
10550   --debug | --d* | -d )
10551     debug=: ;;
10552   --file | --fil | --fi | --f )
10553     $ac_shift
10554     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10555     ac_need_defaults=false;;
10556   --header | --heade | --head | --hea )
10557     $ac_shift
10558     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10559     ac_need_defaults=false;;
10560   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10561   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10562     ac_cs_silent=: ;;
10563
10564   # This is an error.
10565   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10566 Try \`$0 --help' for more information." >&5
10567 echo "$as_me: error: unrecognized option: $1
10568 Try \`$0 --help' for more information." >&2;}
10569    { (exit 1); exit 1; }; } ;;
10570
10571   *) ac_config_targets="$ac_config_targets $1" ;;
10572
10573   esac
10574   shift
10575 done
10576
10577 ac_configure_extra_args=
10578
10579 if $ac_cs_silent; then
10580   exec 6>/dev/null
10581   ac_configure_extra_args="$ac_configure_extra_args --silent"
10582 fi
10583
10584 _ACEOF
10585 cat >>$CONFIG_STATUS <<_ACEOF
10586 if \$ac_cs_recheck; then
10587   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10588   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10589 fi
10590
10591 _ACEOF
10592
10593 cat >>$CONFIG_STATUS <<_ACEOF
10594 #
10595 # INIT-COMMANDS section.
10596 #
10597
10598 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10599
10600 _ACEOF
10601
10602
10603
10604 cat >>$CONFIG_STATUS <<\_ACEOF
10605 for ac_config_target in $ac_config_targets
10606 do
10607   case "$ac_config_target" in
10608   # Handling of arguments.
10609   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10610   "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
10611   "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
10612   "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
10613   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10614   "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
10615   "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
10616   "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
10617   "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
10618   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10619   "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
10620   "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
10621   "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
10622   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10623   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10624   "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
10625   "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
10626   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10627   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10628   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10629 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10630    { (exit 1); exit 1; }; };;
10631   esac
10632 done
10633
10634 # If the user did not use the arguments to specify the items to instantiate,
10635 # then the envvar interface is used.  Set only those that are not.
10636 # We use the long form for the default assignment because of an extremely
10637 # bizarre bug on SunOS 4.1.3.
10638 if $ac_need_defaults; then
10639   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10640   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10641   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10642 fi
10643
10644 # Have a temporary directory for convenience.  Make it in the build tree
10645 # simply because there is no reason to put it here, and in addition,
10646 # creating and moving files from /tmp can sometimes cause problems.
10647 # Create a temporary directory, and hook for its removal unless debugging.
10648 $debug ||
10649 {
10650   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10651   trap '{ (exit 1); exit 1; }' 1 2 13 15
10652 }
10653
10654 # Create a (secure) tmp directory for tmp files.
10655
10656 {
10657   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10658   test -n "$tmp" && test -d "$tmp"
10659 }  ||
10660 {
10661   tmp=./confstat$$-$RANDOM
10662   (umask 077 && mkdir $tmp)
10663 } ||
10664 {
10665    echo "$me: cannot create a temporary directory in ." >&2
10666    { (exit 1); exit 1; }
10667 }
10668
10669 _ACEOF
10670
10671 cat >>$CONFIG_STATUS <<_ACEOF
10672
10673 #
10674 # CONFIG_FILES section.
10675 #
10676
10677 # No need to generate the scripts if there are no CONFIG_FILES.
10678 # This happens for instance when ./config.status config.h
10679 if test -n "\$CONFIG_FILES"; then
10680   # Protect against being on the right side of a sed subst in config.status.
10681   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10682    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10683 s,@SHELL@,$SHELL,;t t
10684 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10685 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10686 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10687 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10688 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10689 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10690 s,@exec_prefix@,$exec_prefix,;t t
10691 s,@prefix@,$prefix,;t t
10692 s,@program_transform_name@,$program_transform_name,;t t
10693 s,@bindir@,$bindir,;t t
10694 s,@sbindir@,$sbindir,;t t
10695 s,@libexecdir@,$libexecdir,;t t
10696 s,@datadir@,$datadir,;t t
10697 s,@sysconfdir@,$sysconfdir,;t t
10698 s,@sharedstatedir@,$sharedstatedir,;t t
10699 s,@localstatedir@,$localstatedir,;t t
10700 s,@libdir@,$libdir,;t t
10701 s,@includedir@,$includedir,;t t
10702 s,@oldincludedir@,$oldincludedir,;t t
10703 s,@infodir@,$infodir,;t t
10704 s,@mandir@,$mandir,;t t
10705 s,@build_alias@,$build_alias,;t t
10706 s,@host_alias@,$host_alias,;t t
10707 s,@target_alias@,$target_alias,;t t
10708 s,@DEFS@,$DEFS,;t t
10709 s,@ECHO_C@,$ECHO_C,;t t
10710 s,@ECHO_N@,$ECHO_N,;t t
10711 s,@ECHO_T@,$ECHO_T,;t t
10712 s,@LIBS@,$LIBS,;t t
10713 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10714 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10715 s,@MAINT@,$MAINT,;t t
10716 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10717 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10718 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10719 s,@CYGPATH_W@,$CYGPATH_W,;t t
10720 s,@PACKAGE@,$PACKAGE,;t t
10721 s,@VERSION@,$VERSION,;t t
10722 s,@ACLOCAL@,$ACLOCAL,;t t
10723 s,@AUTOCONF@,$AUTOCONF,;t t
10724 s,@AUTOMAKE@,$AUTOMAKE,;t t
10725 s,@AUTOHEADER@,$AUTOHEADER,;t t
10726 s,@MAKEINFO@,$MAKEINFO,;t t
10727 s,@AMTAR@,$AMTAR,;t t
10728 s,@install_sh@,$install_sh,;t t
10729 s,@STRIP@,$STRIP,;t t
10730 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10731 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10732 s,@AWK@,$AWK,;t t
10733 s,@SET_MAKE@,$SET_MAKE,;t t
10734 s,@am__leading_dot@,$am__leading_dot,;t t
10735 s,@RANLIB@,$RANLIB,;t t
10736 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10737 s,@CC@,$CC,;t t
10738 s,@CFLAGS@,$CFLAGS,;t t
10739 s,@LDFLAGS@,$LDFLAGS,;t t
10740 s,@CPPFLAGS@,$CPPFLAGS,;t t
10741 s,@ac_ct_CC@,$ac_ct_CC,;t t
10742 s,@EXEEXT@,$EXEEXT,;t t
10743 s,@OBJEXT@,$OBJEXT,;t t
10744 s,@DEPDIR@,$DEPDIR,;t t
10745 s,@am__include@,$am__include,;t t
10746 s,@am__quote@,$am__quote,;t t
10747 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10748 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10749 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10750 s,@CCDEPMODE@,$CCDEPMODE,;t t
10751 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10752 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10753 s,@CXX@,$CXX,;t t
10754 s,@CXXFLAGS@,$CXXFLAGS,;t t
10755 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10756 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10757 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10758 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10759 s,@wxconfig@,$wxconfig,;t t
10760 s,@build@,$build,;t t
10761 s,@build_cpu@,$build_cpu,;t t
10762 s,@build_vendor@,$build_vendor,;t t
10763 s,@build_os@,$build_os,;t t
10764 s,@host@,$host,;t t
10765 s,@host_cpu@,$host_cpu,;t t
10766 s,@host_vendor@,$host_vendor,;t t
10767 s,@host_os@,$host_os,;t t
10768 s,@CPP@,$CPP,;t t
10769 s,@EGREP@,$EGREP,;t t
10770 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10771 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10772 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10773 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10774 s,@lamdir@,$lamdir,;t t
10775 s,@mpienable@,$mpienable,;t t
10776 s,@cgibindir@,$cgibindir,;t t
10777 s,@cgibinurl@,$cgibinurl,;t t
10778 s,@webdatadir@,$webdatadir,;t t
10779 s,@webdataurl@,$webdataurl,;t t
10780 s,@htmldir@,$htmldir,;t t
10781 s,@cgiprograms@,$cgiprograms,;t t
10782 s,@htmldata@,$htmldata,;t t
10783 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10784 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10785 s,@webenabled@,$webenabled,;t t
10786 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10787 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10788 s,@X_CFLAGS@,$X_CFLAGS,;t t
10789 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10790 s,@X_LIBS@,$X_LIBS,;t t
10791 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10792 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10793 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10794 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10795 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10796 s,@my_includes@,$my_includes,;t t
10797 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10798 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10799 s,@wxcflags@,$wxcflags,;t t
10800 s,@wxlibs@,$wxlibs,;t t
10801 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10802 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10803 s,@ctlibs@,$ctlibs,;t t
10804 s,@lamprograms@,$lamprograms,;t t
10805 s,@lamdefs@,$lamdefs,;t t
10806 s,@LIBOBJS@,$LIBOBJS,;t t
10807 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10808 CEOF
10809
10810 _ACEOF
10811
10812   cat >>$CONFIG_STATUS <<\_ACEOF
10813   # Split the substitutions into bite-sized pieces for seds with
10814   # small command number limits, like on Digital OSF/1 and HP-UX.
10815   ac_max_sed_lines=48
10816   ac_sed_frag=1 # Number of current file.
10817   ac_beg=1 # First line for current file.
10818   ac_end=$ac_max_sed_lines # Line after last line for current file.
10819   ac_more_lines=:
10820   ac_sed_cmds=
10821   while $ac_more_lines; do
10822     if test $ac_beg -gt 1; then
10823       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10824     else
10825       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10826     fi
10827     if test ! -s $tmp/subs.frag; then
10828       ac_more_lines=false
10829     else
10830       # The purpose of the label and of the branching condition is to
10831       # speed up the sed processing (if there are no `@' at all, there
10832       # is no need to browse any of the substitutions).
10833       # These are the two extra sed commands mentioned above.
10834       (echo ':t
10835   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10836       if test -z "$ac_sed_cmds"; then
10837         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10838       else
10839         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10840       fi
10841       ac_sed_frag=`expr $ac_sed_frag + 1`
10842       ac_beg=$ac_end
10843       ac_end=`expr $ac_end + $ac_max_sed_lines`
10844     fi
10845   done
10846   if test -z "$ac_sed_cmds"; then
10847     ac_sed_cmds=cat
10848   fi
10849 fi # test -n "$CONFIG_FILES"
10850
10851 _ACEOF
10852 cat >>$CONFIG_STATUS <<\_ACEOF
10853 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10854   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10855   case $ac_file in
10856   - | *:- | *:-:* ) # input from stdin
10857         cat >$tmp/stdin
10858         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10859         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10860   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10861         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10862   * )   ac_file_in=$ac_file.in ;;
10863   esac
10864
10865   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10866   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10867 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10868          X"$ac_file" : 'X\(//\)[^/]' \| \
10869          X"$ac_file" : 'X\(//\)$' \| \
10870          X"$ac_file" : 'X\(/\)' \| \
10871          .     : '\(.\)' 2>/dev/null ||
10872 echo X"$ac_file" |
10873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10875           /^X\(\/\/\)$/{ s//\1/; q; }
10876           /^X\(\/\).*/{ s//\1/; q; }
10877           s/.*/./; q'`
10878   { if $as_mkdir_p; then
10879     mkdir -p "$ac_dir"
10880   else
10881     as_dir="$ac_dir"
10882     as_dirs=
10883     while test ! -d "$as_dir"; do
10884       as_dirs="$as_dir $as_dirs"
10885       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10886 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10887          X"$as_dir" : 'X\(//\)[^/]' \| \
10888          X"$as_dir" : 'X\(//\)$' \| \
10889          X"$as_dir" : 'X\(/\)' \| \
10890          .     : '\(.\)' 2>/dev/null ||
10891 echo X"$as_dir" |
10892     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10893           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10894           /^X\(\/\/\)$/{ s//\1/; q; }
10895           /^X\(\/\).*/{ s//\1/; q; }
10896           s/.*/./; q'`
10897     done
10898     test ! -n "$as_dirs" || mkdir $as_dirs
10899   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10900 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10901    { (exit 1); exit 1; }; }; }
10902
10903   ac_builddir=.
10904
10905 if test "$ac_dir" != .; then
10906   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10907   # A "../" for each directory in $ac_dir_suffix.
10908   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10909 else
10910   ac_dir_suffix= ac_top_builddir=
10911 fi
10912
10913 case $srcdir in
10914   .)  # No --srcdir option.  We are building in place.
10915     ac_srcdir=.
10916     if test -z "$ac_top_builddir"; then
10917        ac_top_srcdir=.
10918     else
10919        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10920     fi ;;
10921   [\\/]* | ?:[\\/]* )  # Absolute path.
10922     ac_srcdir=$srcdir$ac_dir_suffix;
10923     ac_top_srcdir=$srcdir ;;
10924   *) # Relative path.
10925     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10926     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10927 esac
10928 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10929 # absolute.
10930 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10931 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10932 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10933 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10934
10935
10936   case $INSTALL in
10937   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10938   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10939   esac
10940
10941   if test x"$ac_file" != x-; then
10942     { echo "$as_me:$LINENO: creating $ac_file" >&5
10943 echo "$as_me: creating $ac_file" >&6;}
10944     rm -f "$ac_file"
10945   fi
10946   # Let's still pretend it is `configure' which instantiates (i.e., don't
10947   # use $as_me), people would be surprised to read:
10948   #    /* config.h.  Generated by config.status.  */
10949   if test x"$ac_file" = x-; then
10950     configure_input=
10951   else
10952     configure_input="$ac_file.  "
10953   fi
10954   configure_input=$configure_input"Generated from `echo $ac_file_in |
10955                                      sed 's,.*/,,'` by configure."
10956
10957   # First look for the input files in the build tree, otherwise in the
10958   # src tree.
10959   ac_file_inputs=`IFS=:
10960     for f in $ac_file_in; do
10961       case $f in
10962       -) echo $tmp/stdin ;;
10963       [\\/$]*)
10964          # Absolute (can't be DOS-style, as IFS=:)
10965          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10966 echo "$as_me: error: cannot find input file: $f" >&2;}
10967    { (exit 1); exit 1; }; }
10968          echo $f;;
10969       *) # Relative
10970          if test -f "$f"; then
10971            # Build tree
10972            echo $f
10973          elif test -f "$srcdir/$f"; then
10974            # Source tree
10975            echo $srcdir/$f
10976          else
10977            # /dev/null tree
10978            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10979 echo "$as_me: error: cannot find input file: $f" >&2;}
10980    { (exit 1); exit 1; }; }
10981          fi;;
10982       esac
10983     done` || { (exit 1); exit 1; }
10984 _ACEOF
10985 cat >>$CONFIG_STATUS <<_ACEOF
10986   sed "$ac_vpsub
10987 $extrasub
10988 _ACEOF
10989 cat >>$CONFIG_STATUS <<\_ACEOF
10990 :t
10991 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10992 s,@configure_input@,$configure_input,;t t
10993 s,@srcdir@,$ac_srcdir,;t t
10994 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10995 s,@top_srcdir@,$ac_top_srcdir,;t t
10996 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10997 s,@builddir@,$ac_builddir,;t t
10998 s,@abs_builddir@,$ac_abs_builddir,;t t
10999 s,@top_builddir@,$ac_top_builddir,;t t
11000 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11001 s,@INSTALL@,$ac_INSTALL,;t t
11002 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11003   rm -f $tmp/stdin
11004   if test x"$ac_file" != x-; then
11005     mv $tmp/out $ac_file
11006   else
11007     cat $tmp/out
11008     rm -f $tmp/out
11009   fi
11010
11011 done
11012 _ACEOF
11013 cat >>$CONFIG_STATUS <<\_ACEOF
11014
11015 #
11016 # CONFIG_HEADER section.
11017 #
11018
11019 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11020 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11021 #
11022 # ac_d sets the value in "#define NAME VALUE" lines.
11023 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
11024 ac_dB='[        ].*$,\1#\2'
11025 ac_dC=' '
11026 ac_dD=',;t'
11027 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11028 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11029 ac_uB='$,\1#\2define\3'
11030 ac_uC=' '
11031 ac_uD=',;t'
11032
11033 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11034   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11035   case $ac_file in
11036   - | *:- | *:-:* ) # input from stdin
11037         cat >$tmp/stdin
11038         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11039         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11040   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11041         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11042   * )   ac_file_in=$ac_file.in ;;
11043   esac
11044
11045   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11046 echo "$as_me: creating $ac_file" >&6;}
11047
11048   # First look for the input files in the build tree, otherwise in the
11049   # src tree.
11050   ac_file_inputs=`IFS=:
11051     for f in $ac_file_in; do
11052       case $f in
11053       -) echo $tmp/stdin ;;
11054       [\\/$]*)
11055          # Absolute (can't be DOS-style, as IFS=:)
11056          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11057 echo "$as_me: error: cannot find input file: $f" >&2;}
11058    { (exit 1); exit 1; }; }
11059          echo $f;;
11060       *) # Relative
11061          if test -f "$f"; then
11062            # Build tree
11063            echo $f
11064          elif test -f "$srcdir/$f"; then
11065            # Source tree
11066            echo $srcdir/$f
11067          else
11068            # /dev/null tree
11069            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11070 echo "$as_me: error: cannot find input file: $f" >&2;}
11071    { (exit 1); exit 1; }; }
11072          fi;;
11073       esac
11074     done` || { (exit 1); exit 1; }
11075   # Remove the trailing spaces.
11076   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
11077
11078 _ACEOF
11079
11080 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11081 # `conftest.undefs', that substitutes the proper values into
11082 # config.h.in to produce config.h.  The first handles `#define'
11083 # templates, and the second `#undef' templates.
11084 # And first: Protect against being on the right side of a sed subst in
11085 # config.status.  Protect against being in an unquoted here document
11086 # in config.status.
11087 rm -f conftest.defines conftest.undefs
11088 # Using a here document instead of a string reduces the quoting nightmare.
11089 # Putting comments in sed scripts is not portable.
11090 #
11091 # `end' is used to avoid that the second main sed command (meant for
11092 # 0-ary CPP macros) applies to n-ary macro definitions.
11093 # See the Autoconf documentation for `clear'.
11094 cat >confdef2sed.sed <<\_ACEOF
11095 s/[\\&,]/\\&/g
11096 s,[\\$`],\\&,g
11097 t clear
11098 : clear
11099 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11100 t end
11101 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11102 : end
11103 _ACEOF
11104 # If some macros were called several times there might be several times
11105 # the same #defines, which is useless.  Nevertheless, we may not want to
11106 # sort them, since we want the *last* AC-DEFINE to be honored.
11107 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11108 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11109 rm -f confdef2sed.sed
11110
11111 # This sed command replaces #undef with comments.  This is necessary, for
11112 # example, in the case of _POSIX_SOURCE, which is predefined and required
11113 # on some systems where configure will not decide to define it.
11114 cat >>conftest.undefs <<\_ACEOF
11115 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11116 _ACEOF
11117
11118 # Break up conftest.defines because some shells have a limit on the size
11119 # of here documents, and old seds have small limits too (100 cmds).
11120 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11121 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11122 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11123 echo '  :' >>$CONFIG_STATUS
11124 rm -f conftest.tail
11125 while grep . conftest.defines >/dev/null
11126 do
11127   # Write a limited-size here document to $tmp/defines.sed.
11128   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11129   # Speed up: don't consider the non `#define' lines.
11130   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
11131   # Work around the forget-to-reset-the-flag bug.
11132   echo 't clr' >>$CONFIG_STATUS
11133   echo ': clr' >>$CONFIG_STATUS
11134   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11135   echo 'CEOF
11136   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11137   rm -f $tmp/in
11138   mv $tmp/out $tmp/in
11139 ' >>$CONFIG_STATUS
11140   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11141   rm -f conftest.defines
11142   mv conftest.tail conftest.defines
11143 done
11144 rm -f conftest.defines
11145 echo '  fi # grep' >>$CONFIG_STATUS
11146 echo >>$CONFIG_STATUS
11147
11148 # Break up conftest.undefs because some shells have a limit on the size
11149 # of here documents, and old seds have small limits too (100 cmds).
11150 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11151 rm -f conftest.tail
11152 while grep . conftest.undefs >/dev/null
11153 do
11154   # Write a limited-size here document to $tmp/undefs.sed.
11155   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11156   # Speed up: don't consider the non `#undef'
11157   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11158   # Work around the forget-to-reset-the-flag bug.
11159   echo 't clr' >>$CONFIG_STATUS
11160   echo ': clr' >>$CONFIG_STATUS
11161   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11162   echo 'CEOF
11163   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11164   rm -f $tmp/in
11165   mv $tmp/out $tmp/in
11166 ' >>$CONFIG_STATUS
11167   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11168   rm -f conftest.undefs
11169   mv conftest.tail conftest.undefs
11170 done
11171 rm -f conftest.undefs
11172
11173 cat >>$CONFIG_STATUS <<\_ACEOF
11174   # Let's still pretend it is `configure' which instantiates (i.e., don't
11175   # use $as_me), people would be surprised to read:
11176   #    /* config.h.  Generated by config.status.  */
11177   if test x"$ac_file" = x-; then
11178     echo "/* Generated by configure.  */" >$tmp/config.h
11179   else
11180     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11181   fi
11182   cat $tmp/in >>$tmp/config.h
11183   rm -f $tmp/in
11184   if test x"$ac_file" != x-; then
11185     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11186       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11187 echo "$as_me: $ac_file is unchanged" >&6;}
11188     else
11189       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11190 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11191          X"$ac_file" : 'X\(//\)[^/]' \| \
11192          X"$ac_file" : 'X\(//\)$' \| \
11193          X"$ac_file" : 'X\(/\)' \| \
11194          .     : '\(.\)' 2>/dev/null ||
11195 echo X"$ac_file" |
11196     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11197           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11198           /^X\(\/\/\)$/{ s//\1/; q; }
11199           /^X\(\/\).*/{ s//\1/; q; }
11200           s/.*/./; q'`
11201       { if $as_mkdir_p; then
11202     mkdir -p "$ac_dir"
11203   else
11204     as_dir="$ac_dir"
11205     as_dirs=
11206     while test ! -d "$as_dir"; do
11207       as_dirs="$as_dir $as_dirs"
11208       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11210          X"$as_dir" : 'X\(//\)[^/]' \| \
11211          X"$as_dir" : 'X\(//\)$' \| \
11212          X"$as_dir" : 'X\(/\)' \| \
11213          .     : '\(.\)' 2>/dev/null ||
11214 echo X"$as_dir" |
11215     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11216           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11217           /^X\(\/\/\)$/{ s//\1/; q; }
11218           /^X\(\/\).*/{ s//\1/; q; }
11219           s/.*/./; q'`
11220     done
11221     test ! -n "$as_dirs" || mkdir $as_dirs
11222   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11223 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11224    { (exit 1); exit 1; }; }; }
11225
11226       rm -f $ac_file
11227       mv $tmp/config.h $ac_file
11228     fi
11229   else
11230     cat $tmp/config.h
11231     rm -f $tmp/config.h
11232   fi
11233 # Compute $ac_file's index in $config_headers.
11234 _am_stamp_count=1
11235 for _am_header in $config_headers :; do
11236   case $_am_header in
11237     $ac_file | $ac_file:* )
11238       break ;;
11239     * )
11240       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11241   esac
11242 done
11243 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11244 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11245          X$ac_file : 'X\(//\)[^/]' \| \
11246          X$ac_file : 'X\(//\)$' \| \
11247          X$ac_file : 'X\(/\)' \| \
11248          .     : '\(.\)' 2>/dev/null ||
11249 echo X$ac_file |
11250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11251           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11252           /^X\(\/\/\)$/{ s//\1/; q; }
11253           /^X\(\/\).*/{ s//\1/; q; }
11254           s/.*/./; q'`/stamp-h$_am_stamp_count
11255 done
11256 _ACEOF
11257 cat >>$CONFIG_STATUS <<\_ACEOF
11258
11259 #
11260 # CONFIG_COMMANDS section.
11261 #
11262 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11263   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11264   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11265   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11266 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11267          X"$ac_dest" : 'X\(//\)[^/]' \| \
11268          X"$ac_dest" : 'X\(//\)$' \| \
11269          X"$ac_dest" : 'X\(/\)' \| \
11270          .     : '\(.\)' 2>/dev/null ||
11271 echo X"$ac_dest" |
11272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11273           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11274           /^X\(\/\/\)$/{ s//\1/; q; }
11275           /^X\(\/\).*/{ s//\1/; q; }
11276           s/.*/./; q'`
11277   ac_builddir=.
11278
11279 if test "$ac_dir" != .; then
11280   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11281   # A "../" for each directory in $ac_dir_suffix.
11282   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11283 else
11284   ac_dir_suffix= ac_top_builddir=
11285 fi
11286
11287 case $srcdir in
11288   .)  # No --srcdir option.  We are building in place.
11289     ac_srcdir=.
11290     if test -z "$ac_top_builddir"; then
11291        ac_top_srcdir=.
11292     else
11293        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11294     fi ;;
11295   [\\/]* | ?:[\\/]* )  # Absolute path.
11296     ac_srcdir=$srcdir$ac_dir_suffix;
11297     ac_top_srcdir=$srcdir ;;
11298   *) # Relative path.
11299     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11300     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11301 esac
11302 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11303 # absolute.
11304 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11305 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11306 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11307 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11308
11309
11310   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11311 echo "$as_me: executing $ac_dest commands" >&6;}
11312   case $ac_dest in
11313     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11314   # Strip MF so we end up with the name of the file.
11315   mf=`echo "$mf" | sed -e 's/:.*$//'`
11316   # Check whether this is an Automake generated Makefile or not.
11317   # We used to match only the files named `Makefile.in', but
11318   # some people rename them; so instead we look at the file content.
11319   # Grep'ing the first line is not enough: some people post-process
11320   # each Makefile.in and add a new line on top of each file to say so.
11321   # So let's grep whole file.
11322   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11323     dirpart=`(dirname "$mf") 2>/dev/null ||
11324 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11325          X"$mf" : 'X\(//\)[^/]' \| \
11326          X"$mf" : 'X\(//\)$' \| \
11327          X"$mf" : 'X\(/\)' \| \
11328          .     : '\(.\)' 2>/dev/null ||
11329 echo X"$mf" |
11330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11331           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11332           /^X\(\/\/\)$/{ s//\1/; q; }
11333           /^X\(\/\).*/{ s//\1/; q; }
11334           s/.*/./; q'`
11335   else
11336     continue
11337   fi
11338   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11339   # Extract the definition of DEP_FILES from the Makefile without
11340   # running `make'.
11341   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11342   test -z "$DEPDIR" && continue
11343   # When using ansi2knr, U may be empty or an underscore; expand it
11344   U=`sed -n -e '/^U = / s///p' < "$mf"`
11345   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11346   # We invoke sed twice because it is the simplest approach to
11347   # changing $(DEPDIR) to its actual value in the expansion.
11348   for file in `sed -n -e '
11349     /^DEP_FILES = .*\\\\$/ {
11350       s/^DEP_FILES = //
11351       :loop
11352         s/\\\\$//
11353         p
11354         n
11355         /\\\\$/ b loop
11356       p
11357     }
11358     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11359        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11360     # Make sure the directory exists.
11361     test -f "$dirpart/$file" && continue
11362     fdir=`(dirname "$file") 2>/dev/null ||
11363 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11364          X"$file" : 'X\(//\)[^/]' \| \
11365          X"$file" : 'X\(//\)$' \| \
11366          X"$file" : 'X\(/\)' \| \
11367          .     : '\(.\)' 2>/dev/null ||
11368 echo X"$file" |
11369     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11370           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11371           /^X\(\/\/\)$/{ s//\1/; q; }
11372           /^X\(\/\).*/{ s//\1/; q; }
11373           s/.*/./; q'`
11374     { if $as_mkdir_p; then
11375     mkdir -p $dirpart/$fdir
11376   else
11377     as_dir=$dirpart/$fdir
11378     as_dirs=
11379     while test ! -d "$as_dir"; do
11380       as_dirs="$as_dir $as_dirs"
11381       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11383          X"$as_dir" : 'X\(//\)[^/]' \| \
11384          X"$as_dir" : 'X\(//\)$' \| \
11385          X"$as_dir" : 'X\(/\)' \| \
11386          .     : '\(.\)' 2>/dev/null ||
11387 echo X"$as_dir" |
11388     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11389           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11390           /^X\(\/\/\)$/{ s//\1/; q; }
11391           /^X\(\/\).*/{ s//\1/; q; }
11392           s/.*/./; q'`
11393     done
11394     test ! -n "$as_dirs" || mkdir $as_dirs
11395   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11396 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11397    { (exit 1); exit 1; }; }; }
11398
11399     # echo "creating $dirpart/$file"
11400     echo '# dummy' > "$dirpart/$file"
11401   done
11402 done
11403  ;;
11404   esac
11405 done
11406 _ACEOF
11407
11408 cat >>$CONFIG_STATUS <<\_ACEOF
11409
11410 { (exit 0); exit 0; }
11411 _ACEOF
11412 chmod +x $CONFIG_STATUS
11413 ac_clean_files=$ac_clean_files_save
11414
11415
11416 # configure is writing to config.log, and then calls config.status.
11417 # config.status does its own redirection, appending to config.log.
11418 # Unfortunately, on DOS this fails, as config.log is still kept open
11419 # by configure, so config.status won't be able to write to it; its
11420 # output is simply discarded.  So we exec the FD to /dev/null,
11421 # effectively closing config.log, so it can be properly (re)opened and
11422 # appended to by config.status.  When coming back to configure, we
11423 # need to make the FD available again.
11424 if test "$no_create" != yes; then
11425   ac_cs_success=:
11426   ac_config_status_args=
11427   test "$silent" = yes &&
11428     ac_config_status_args="$ac_config_status_args --quiet"
11429   exec 5>/dev/null
11430   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11431   exec 5>>config.log
11432   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11433   # would make configure fail if this is the last instruction.
11434   $ac_cs_success || { (exit 1); exit 1; }
11435 fi
11436