r4389: Auto commit for Debian build
[ctsim.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/ctsim.cpp"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 HAVE_WXWINDOWS_TRUE HAVE_WXWINDOWS_FALSE wxcflags wxlibs ctlibs lamprograms lamdefs LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 Program names:
842   --program-prefix=PREFIX            prepend PREFIX to installed program names
843   --program-suffix=SUFFIX            append SUFFIX to installed program names
844   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
845
846 X features:
847   --x-includes=DIR    X include files are in DIR
848   --x-libraries=DIR   X library files are in DIR
849
850 System types:
851   --build=BUILD     configure for building on BUILD [guessed]
852   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
853 _ACEOF
854 fi
855
856 if test -n "$ac_init_help"; then
857
858   cat <<\_ACEOF
859
860 Optional Features:
861   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
862   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
863   --enable-maintainer-mode enable make rules and dependencies not useful
864                           (and sometimes confusing) to the casual installer
865   --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.2.3
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 doit:
2834         @echo done
2835 END
2836 # If we don't find an include directive, just comment out the code.
2837 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2838 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2839 am__include="#"
2840 am__quote=
2841 _am_result=none
2842 # First try GNU make style include.
2843 echo "include confinc" > confmf
2844 # We grep out `Entering directory' and `Leaving directory'
2845 # messages which can occur if `w' ends up in MAKEFLAGS.
2846 # In particular we don't look at `^make:' because GNU make might
2847 # be invoked under some other name (usually "gmake"), in which
2848 # case it prints its new name instead of `make'.
2849 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2850    am__include=include
2851    am__quote=
2852    _am_result=GNU
2853 fi
2854 # Now try BSD make style include.
2855 if test "$am__include" = "#"; then
2856    echo '.include "confinc"' > confmf
2857    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2858       am__include=.include
2859       am__quote="\""
2860       _am_result=BSD
2861    fi
2862 fi
2863
2864
2865 echo "$as_me:$LINENO: result: $_am_result" >&5
2866 echo "${ECHO_T}$_am_result" >&6
2867 rm -f confinc confmf
2868
2869 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2870 if test "${enable_dependency_tracking+set}" = set; then
2871   enableval="$enable_dependency_tracking"
2872
2873 fi;
2874 if test "x$enable_dependency_tracking" != xno; then
2875   am_depcomp="$ac_aux_dir/depcomp"
2876   AMDEPBACKSLASH='\'
2877 fi
2878
2879
2880 if test "x$enable_dependency_tracking" != xno; then
2881   AMDEP_TRUE=
2882   AMDEP_FALSE='#'
2883 else
2884   AMDEP_TRUE='#'
2885   AMDEP_FALSE=
2886 fi
2887
2888
2889
2890
2891 depcc="$CC"   am_compiler_list=
2892
2893 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2894 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2895 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2896   echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2899   # We make a subdir and do the tests there.  Otherwise we can end up
2900   # making bogus files that we don't know about and never remove.  For
2901   # instance it was reported that on HP-UX the gcc test will end up
2902   # making a dummy file named `D' -- because `-MD' means `put the output
2903   # in D'.
2904   mkdir conftest.dir
2905   # Copy depcomp to subdir because otherwise we won't find it if we're
2906   # using a relative directory.
2907   cp "$am_depcomp" conftest.dir
2908   cd conftest.dir
2909
2910   am_cv_CC_dependencies_compiler_type=none
2911   if test "$am_compiler_list" = ""; then
2912      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2913   fi
2914   for depmode in $am_compiler_list; do
2915     # We need to recreate these files for each test, as the compiler may
2916     # overwrite some of them when testing with obscure command lines.
2917     # This happens at least with the AIX C compiler.
2918     echo '#include "conftest.h"' > conftest.c
2919     echo 'int i;' > conftest.h
2920     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2921
2922     case $depmode in
2923     nosideeffect)
2924       # after this tag, mechanisms are not by side-effect, so they'll
2925       # only be used when explicitly requested
2926       if test "x$enable_dependency_tracking" = xyes; then
2927         continue
2928       else
2929         break
2930       fi
2931       ;;
2932     none) break ;;
2933     esac
2934     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2935     # mode.  It turns out that the SunPro C++ compiler does not properly
2936     # handle `-M -o', and we need to detect this.
2937     if depmode=$depmode \
2938        source=conftest.c object=conftest.o \
2939        depfile=conftest.Po tmpdepfile=conftest.TPo \
2940        $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
2941          >/dev/null 2>conftest.err &&
2942        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2943        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2944       # icc doesn't choke on unknown options, it will just issue warnings
2945       # (even with -Werror).  So we grep stderr for any message
2946       # that says an option was ignored.
2947       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2948         am_cv_CC_dependencies_compiler_type=$depmode
2949         break
2950       fi
2951     fi
2952   done
2953
2954   cd ..
2955   rm -rf conftest.dir
2956 else
2957   am_cv_CC_dependencies_compiler_type=none
2958 fi
2959
2960 fi
2961 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2962 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2963 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2964
2965
2966
2967 if
2968   test "x$enable_dependency_tracking" != xno \
2969   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2970   am__fastdepCC_TRUE=
2971   am__fastdepCC_FALSE='#'
2972 else
2973   am__fastdepCC_TRUE='#'
2974   am__fastdepCC_FALSE=
2975 fi
2976
2977
2978 ac_ext=cc
2979 ac_cpp='$CXXCPP $CPPFLAGS'
2980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2983 if test -n "$ac_tool_prefix"; then
2984   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2985   do
2986     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2988 echo "$as_me:$LINENO: checking for $ac_word" >&5
2989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2990 if test "${ac_cv_prog_CXX+set}" = set; then
2991   echo $ECHO_N "(cached) $ECHO_C" >&6
2992 else
2993   if test -n "$CXX"; then
2994   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999   IFS=$as_save_IFS
3000   test -z "$as_dir" && as_dir=.
3001   for ac_exec_ext in '' $ac_executable_extensions; do
3002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005     break 2
3006   fi
3007 done
3008 done
3009
3010 fi
3011 fi
3012 CXX=$ac_cv_prog_CXX
3013 if test -n "$CXX"; then
3014   echo "$as_me:$LINENO: result: $CXX" >&5
3015 echo "${ECHO_T}$CXX" >&6
3016 else
3017   echo "$as_me:$LINENO: result: no" >&5
3018 echo "${ECHO_T}no" >&6
3019 fi
3020
3021     test -n "$CXX" && break
3022   done
3023 fi
3024 if test -z "$CXX"; then
3025   ac_ct_CXX=$CXX
3026   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3027 do
3028   # Extract the first word of "$ac_prog", so it can be a program name with args.
3029 set dummy $ac_prog; ac_word=$2
3030 echo "$as_me:$LINENO: checking for $ac_word" >&5
3031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3032 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3033   echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035   if test -n "$ac_ct_CXX"; then
3036   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041   IFS=$as_save_IFS
3042   test -z "$as_dir" && as_dir=.
3043   for ac_exec_ext in '' $ac_executable_extensions; do
3044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045     ac_cv_prog_ac_ct_CXX="$ac_prog"
3046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047     break 2
3048   fi
3049 done
3050 done
3051
3052 fi
3053 fi
3054 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3055 if test -n "$ac_ct_CXX"; then
3056   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3057 echo "${ECHO_T}$ac_ct_CXX" >&6
3058 else
3059   echo "$as_me:$LINENO: result: no" >&5
3060 echo "${ECHO_T}no" >&6
3061 fi
3062
3063   test -n "$ac_ct_CXX" && break
3064 done
3065 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3066
3067   CXX=$ac_ct_CXX
3068 fi
3069
3070
3071 # Provide some information about the compiler.
3072 echo "$as_me:$LINENO:" \
3073      "checking for C++ compiler version" >&5
3074 ac_compiler=`set X $ac_compile; echo $2`
3075 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3076   (eval $ac_compiler --version </dev/null >&5) 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); }
3080 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3081   (eval $ac_compiler -v </dev/null >&5) 2>&5
3082   ac_status=$?
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); }
3085 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3086   (eval $ac_compiler -V </dev/null >&5) 2>&5
3087   ac_status=$?
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); }
3090
3091 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3092 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3093 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3094   echo $ECHO_N "(cached) $ECHO_C" >&6
3095 else
3096   cat >conftest.$ac_ext <<_ACEOF
3097 #line $LINENO "configure"
3098 /* confdefs.h.  */
3099 _ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h.  */
3103
3104 int
3105 main ()
3106 {
3107 #ifndef __GNUC__
3108        choke me
3109 #endif
3110
3111   ;
3112   return 0;
3113 }
3114 _ACEOF
3115 rm -f conftest.$ac_objext
3116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3117   (eval $ac_compile) 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); } &&
3121          { ac_try='test -s conftest.$ac_objext'
3122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123   (eval $ac_try) 2>&5
3124   ac_status=$?
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); }; }; then
3127   ac_compiler_gnu=yes
3128 else
3129   echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132 ac_compiler_gnu=no
3133 fi
3134 rm -f conftest.$ac_objext conftest.$ac_ext
3135 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3136
3137 fi
3138 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3139 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3140 GXX=`test $ac_compiler_gnu = yes && echo yes`
3141 ac_test_CXXFLAGS=${CXXFLAGS+set}
3142 ac_save_CXXFLAGS=$CXXFLAGS
3143 CXXFLAGS="-g"
3144 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3145 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3146 if test "${ac_cv_prog_cxx_g+set}" = set; then
3147   echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149   cat >conftest.$ac_ext <<_ACEOF
3150 #line $LINENO "configure"
3151 /* confdefs.h.  */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h.  */
3156
3157 int
3158 main ()
3159 {
3160
3161   ;
3162   return 0;
3163 }
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3167   (eval $ac_compile) 2>&5
3168   ac_status=$?
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } &&
3171          { ac_try='test -s conftest.$ac_objext'
3172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173   (eval $ac_try) 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); }; }; then
3177   ac_cv_prog_cxx_g=yes
3178 else
3179   echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3181
3182 ac_cv_prog_cxx_g=no
3183 fi
3184 rm -f conftest.$ac_objext conftest.$ac_ext
3185 fi
3186 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3187 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3188 if test "$ac_test_CXXFLAGS" = set; then
3189   CXXFLAGS=$ac_save_CXXFLAGS
3190 elif test $ac_cv_prog_cxx_g = yes; then
3191   if test "$GXX" = yes; then
3192     CXXFLAGS="-g -O2"
3193   else
3194     CXXFLAGS="-g"
3195   fi
3196 else
3197   if test "$GXX" = yes; then
3198     CXXFLAGS="-O2"
3199   else
3200     CXXFLAGS=
3201   fi
3202 fi
3203 for ac_declaration in \
3204    ''\
3205    '#include <stdlib.h>' \
3206    'extern "C" void std::exit (int) throw (); using std::exit;' \
3207    'extern "C" void std::exit (int); using std::exit;' \
3208    'extern "C" void exit (int) throw ();' \
3209    'extern "C" void exit (int);' \
3210    'void exit (int);'
3211 do
3212   cat >conftest.$ac_ext <<_ACEOF
3213 #line $LINENO "configure"
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3219 #include <stdlib.h>
3220 $ac_declaration
3221 int
3222 main ()
3223 {
3224 exit (42);
3225   ;
3226   return 0;
3227 }
3228 _ACEOF
3229 rm -f conftest.$ac_objext
3230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3231   (eval $ac_compile) 2>&5
3232   ac_status=$?
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); } &&
3235          { ac_try='test -s conftest.$ac_objext'
3236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237   (eval $ac_try) 2>&5
3238   ac_status=$?
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); }; }; then
3241   :
3242 else
3243   echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 continue
3247 fi
3248 rm -f conftest.$ac_objext conftest.$ac_ext
3249   cat >conftest.$ac_ext <<_ACEOF
3250 #line $LINENO "configure"
3251 /* confdefs.h.  */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h.  */
3256 $ac_declaration
3257 int
3258 main ()
3259 {
3260 exit (42);
3261   ;
3262   return 0;
3263 }
3264 _ACEOF
3265 rm -f conftest.$ac_objext
3266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267   (eval $ac_compile) 2>&5
3268   ac_status=$?
3269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270   (exit $ac_status); } &&
3271          { ac_try='test -s conftest.$ac_objext'
3272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273   (eval $ac_try) 2>&5
3274   ac_status=$?
3275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276   (exit $ac_status); }; }; then
3277   break
3278 else
3279   echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 fi
3283 rm -f conftest.$ac_objext conftest.$ac_ext
3284 done
3285 rm -f conftest*
3286 if test -n "$ac_declaration"; then
3287   echo '#ifdef __cplusplus' >>confdefs.h
3288   echo $ac_declaration      >>confdefs.h
3289   echo '#endif'             >>confdefs.h
3290 fi
3291
3292 ac_ext=c
3293 ac_cpp='$CPP $CPPFLAGS'
3294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297
3298 depcc="$CXX"  am_compiler_list=
3299
3300 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3301 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3302 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3306   # We make a subdir and do the tests there.  Otherwise we can end up
3307   # making bogus files that we don't know about and never remove.  For
3308   # instance it was reported that on HP-UX the gcc test will end up
3309   # making a dummy file named `D' -- because `-MD' means `put the output
3310   # in D'.
3311   mkdir conftest.dir
3312   # Copy depcomp to subdir because otherwise we won't find it if we're
3313   # using a relative directory.
3314   cp "$am_depcomp" conftest.dir
3315   cd conftest.dir
3316
3317   am_cv_CXX_dependencies_compiler_type=none
3318   if test "$am_compiler_list" = ""; then
3319      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3320   fi
3321   for depmode in $am_compiler_list; do
3322     # We need to recreate these files for each test, as the compiler may
3323     # overwrite some of them when testing with obscure command lines.
3324     # This happens at least with the AIX C compiler.
3325     echo '#include "conftest.h"' > conftest.c
3326     echo 'int i;' > conftest.h
3327     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3328
3329     case $depmode in
3330     nosideeffect)
3331       # after this tag, mechanisms are not by side-effect, so they'll
3332       # only be used when explicitly requested
3333       if test "x$enable_dependency_tracking" = xyes; then
3334         continue
3335       else
3336         break
3337       fi
3338       ;;
3339     none) break ;;
3340     esac
3341     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3342     # mode.  It turns out that the SunPro C++ compiler does not properly
3343     # handle `-M -o', and we need to detect this.
3344     if depmode=$depmode \
3345        source=conftest.c object=conftest.o \
3346        depfile=conftest.Po tmpdepfile=conftest.TPo \
3347        $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
3348          >/dev/null 2>conftest.err &&
3349        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3350        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3351       # icc doesn't choke on unknown options, it will just issue warnings
3352       # (even with -Werror).  So we grep stderr for any message
3353       # that says an option was ignored.
3354       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3355         am_cv_CXX_dependencies_compiler_type=$depmode
3356         break
3357       fi
3358     fi
3359   done
3360
3361   cd ..
3362   rm -rf conftest.dir
3363 else
3364   am_cv_CXX_dependencies_compiler_type=none
3365 fi
3366
3367 fi
3368 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3369 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3370 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3371
3372
3373
3374 if
3375   test "x$enable_dependency_tracking" != xno \
3376   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3377   am__fastdepCXX_TRUE=
3378   am__fastdepCXX_FALSE='#'
3379 else
3380   am__fastdepCXX_TRUE='#'
3381   am__fastdepCXX_FALSE=
3382 fi
3383
3384
3385
3386 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3387 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3388 if test "${ac_cv_c_bigendian+set}" = set; then
3389   echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391   # See if sys/param.h defines the BYTE_ORDER macro.
3392 cat >conftest.$ac_ext <<_ACEOF
3393 #line $LINENO "configure"
3394 /* confdefs.h.  */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h.  */
3399 #include <sys/types.h>
3400 #include <sys/param.h>
3401
3402 int
3403 main ()
3404 {
3405 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3406  bogus endian macros
3407 #endif
3408
3409   ;
3410   return 0;
3411 }
3412 _ACEOF
3413 rm -f conftest.$ac_objext
3414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3415   (eval $ac_compile) 2>&5
3416   ac_status=$?
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } &&
3419          { ac_try='test -s conftest.$ac_objext'
3420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421   (eval $ac_try) 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }; }; then
3425   # It does; now see whether it defined to BIG_ENDIAN or not.
3426 cat >conftest.$ac_ext <<_ACEOF
3427 #line $LINENO "configure"
3428 /* confdefs.h.  */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h.  */
3433 #include <sys/types.h>
3434 #include <sys/param.h>
3435
3436 int
3437 main ()
3438 {
3439 #if BYTE_ORDER != BIG_ENDIAN
3440  not big endian
3441 #endif
3442
3443   ;
3444   return 0;
3445 }
3446 _ACEOF
3447 rm -f conftest.$ac_objext
3448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3449   (eval $ac_compile) 2>&5
3450   ac_status=$?
3451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); } &&
3453          { ac_try='test -s conftest.$ac_objext'
3454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455   (eval $ac_try) 2>&5
3456   ac_status=$?
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); }; }; then
3459   ac_cv_c_bigendian=yes
3460 else
3461   echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 ac_cv_c_bigendian=no
3465 fi
3466 rm -f conftest.$ac_objext conftest.$ac_ext
3467 else
3468   echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471 # It does not; compile a test program.
3472 if test "$cross_compiling" = yes; then
3473   # try to guess the endianness by grepping values into an object file
3474   ac_cv_c_bigendian=unknown
3475   cat >conftest.$ac_ext <<_ACEOF
3476 #line $LINENO "configure"
3477 /* confdefs.h.  */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h.  */
3482 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3483 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3484 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3485 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3486 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3487 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3488 int
3489 main ()
3490 {
3491  _ascii (); _ebcdic ();
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 rm -f conftest.$ac_objext
3497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3498   (eval $ac_compile) 2>&5
3499   ac_status=$?
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); } &&
3502          { ac_try='test -s conftest.$ac_objext'
3503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504   (eval $ac_try) 2>&5
3505   ac_status=$?
3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); }; }; then
3508   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3509   ac_cv_c_bigendian=yes
3510 fi
3511 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3512   if test "$ac_cv_c_bigendian" = unknown; then
3513     ac_cv_c_bigendian=no
3514   else
3515     # finding both strings is unlikely to happen, but who knows?
3516     ac_cv_c_bigendian=unknown
3517   fi
3518 fi
3519 else
3520   echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523 fi
3524 rm -f conftest.$ac_objext conftest.$ac_ext
3525 else
3526   cat >conftest.$ac_ext <<_ACEOF
3527 #line $LINENO "configure"
3528 /* confdefs.h.  */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h.  */
3533 int
3534 main ()
3535 {
3536   /* Are we little or big endian?  From Harbison&Steele.  */
3537   union
3538   {
3539     long l;
3540     char c[sizeof (long)];
3541   } u;
3542   u.l = 1;
3543   exit (u.c[sizeof (long) - 1] == 1);
3544 }
3545 _ACEOF
3546 rm -f conftest$ac_exeext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3548   (eval $ac_link) 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553   (eval $ac_try) 2>&5
3554   ac_status=$?
3555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556   (exit $ac_status); }; }; then
3557   ac_cv_c_bigendian=no
3558 else
3559   echo "$as_me: program exited with status $ac_status" >&5
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 ( exit $ac_status )
3564 ac_cv_c_bigendian=yes
3565 fi
3566 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3567 fi
3568 fi
3569 rm -f conftest.$ac_objext conftest.$ac_ext
3570 fi
3571 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3572 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3573 case $ac_cv_c_bigendian in
3574   yes)
3575
3576 cat >>confdefs.h <<\_ACEOF
3577 #define WORDS_BIGENDIAN 1
3578 _ACEOF
3579  ;;
3580   no)
3581      ;;
3582   *)
3583     { { echo "$as_me:$LINENO: error: unknown endianness
3584 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3585 echo "$as_me: error: unknown endianness
3586 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3587    { (exit 1); exit 1; }; } ;;
3588 esac
3589
3590
3591 # Extract the first word of "wx-config", so it can be a program name with args.
3592 set dummy wx-config; ac_word=$2
3593 echo "$as_me:$LINENO: checking for $ac_word" >&5
3594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3595 if test "${ac_cv_path_wxconfig+set}" = set; then
3596   echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598   case $wxconfig in
3599   [\\/]* | ?:[\\/]*)
3600   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3601   ;;
3602   *)
3603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3605 do
3606   IFS=$as_save_IFS
3607   test -z "$as_dir" && as_dir=.
3608   for ac_exec_ext in '' $ac_executable_extensions; do
3609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3612     break 2
3613   fi
3614 done
3615 done
3616
3617   ;;
3618 esac
3619 fi
3620 wxconfig=$ac_cv_path_wxconfig
3621
3622 if test -n "$wxconfig"; then
3623   echo "$as_me:$LINENO: result: $wxconfig" >&5
3624 echo "${ECHO_T}$wxconfig" >&6
3625 else
3626   echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3628 fi
3629
3630
3631 # Make sure we can run config.sub.
3632 $ac_config_sub sun4 >/dev/null 2>&1 ||
3633   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3634 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3635    { (exit 1); exit 1; }; }
3636
3637 echo "$as_me:$LINENO: checking build system type" >&5
3638 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3639 if test "${ac_cv_build+set}" = set; then
3640   echo $ECHO_N "(cached) $ECHO_C" >&6
3641 else
3642   ac_cv_build_alias=$build_alias
3643 test -z "$ac_cv_build_alias" &&
3644   ac_cv_build_alias=`$ac_config_guess`
3645 test -z "$ac_cv_build_alias" &&
3646   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3647 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3648    { (exit 1); exit 1; }; }
3649 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3650   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3651 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3652    { (exit 1); exit 1; }; }
3653
3654 fi
3655 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3656 echo "${ECHO_T}$ac_cv_build" >&6
3657 build=$ac_cv_build
3658 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3659 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3660 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3661
3662
3663 echo "$as_me:$LINENO: checking host system type" >&5
3664 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3665 if test "${ac_cv_host+set}" = set; then
3666   echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668   ac_cv_host_alias=$host_alias
3669 test -z "$ac_cv_host_alias" &&
3670   ac_cv_host_alias=$ac_cv_build_alias
3671 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3672   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3673 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3674    { (exit 1); exit 1; }; }
3675
3676 fi
3677 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3678 echo "${ECHO_T}$ac_cv_host" >&6
3679 host=$ac_cv_host
3680 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3681 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3682 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3683
3684
3685 echo "$as_me:$LINENO: checking for inline" >&5
3686 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3687 if test "${ac_cv_c_inline+set}" = set; then
3688   echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690   ac_cv_c_inline=no
3691 for ac_kw in inline __inline__ __inline; do
3692   cat >conftest.$ac_ext <<_ACEOF
3693 #line $LINENO "configure"
3694 /* confdefs.h.  */
3695 _ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h.  */
3699 #ifndef __cplusplus
3700 typedef int foo_t;
3701 static $ac_kw foo_t static_foo () {return 0; }
3702 $ac_kw foo_t foo () {return 0; }
3703 #endif
3704
3705 _ACEOF
3706 rm -f conftest.$ac_objext
3707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708   (eval $ac_compile) 2>&5
3709   ac_status=$?
3710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); } &&
3712          { ac_try='test -s conftest.$ac_objext'
3713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714   (eval $ac_try) 2>&5
3715   ac_status=$?
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); }; }; then
3718   ac_cv_c_inline=$ac_kw; break
3719 else
3720   echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 fi
3724 rm -f conftest.$ac_objext conftest.$ac_ext
3725 done
3726
3727 fi
3728 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3729 echo "${ECHO_T}$ac_cv_c_inline" >&6
3730 case $ac_cv_c_inline in
3731   inline | yes) ;;
3732   no)
3733 cat >>confdefs.h <<\_ACEOF
3734 #define inline
3735 _ACEOF
3736  ;;
3737   *)  cat >>confdefs.h <<_ACEOF
3738 #define inline $ac_cv_c_inline
3739 _ACEOF
3740  ;;
3741 esac
3742
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3749 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3750 # On Suns, sometimes $CPP names a directory.
3751 if test -n "$CPP" && test -d "$CPP"; then
3752   CPP=
3753 fi
3754 if test -z "$CPP"; then
3755   if test "${ac_cv_prog_CPP+set}" = set; then
3756   echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758       # Double quotes because CPP needs to be expanded
3759     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3760     do
3761       ac_preproc_ok=false
3762 for ac_c_preproc_warn_flag in '' yes
3763 do
3764   # Use a header file that comes with gcc, so configuring glibc
3765   # with a fresh cross-compiler works.
3766   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3767   # <limits.h> exists even on freestanding compilers.
3768   # On the NeXT, cc -E runs the code through the compiler's parser,
3769   # not just through cpp. "Syntax error" is here to catch this case.
3770   cat >conftest.$ac_ext <<_ACEOF
3771 #line $LINENO "configure"
3772 /* confdefs.h.  */
3773 _ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h.  */
3777 #ifdef __STDC__
3778 # include <limits.h>
3779 #else
3780 # include <assert.h>
3781 #endif
3782                      Syntax error
3783 _ACEOF
3784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3785   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3786   ac_status=$?
3787   grep -v '^ *+' conftest.er1 >conftest.err
3788   rm -f conftest.er1
3789   cat conftest.err >&5
3790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791   (exit $ac_status); } >/dev/null; then
3792   if test -s conftest.err; then
3793     ac_cpp_err=$ac_c_preproc_warn_flag
3794   else
3795     ac_cpp_err=
3796   fi
3797 else
3798   ac_cpp_err=yes
3799 fi
3800 if test -z "$ac_cpp_err"; then
3801   :
3802 else
3803   echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3805
3806   # Broken: fails on valid input.
3807 continue
3808 fi
3809 rm -f conftest.err conftest.$ac_ext
3810
3811   # OK, works on sane cases.  Now check whether non-existent headers
3812   # can be detected and how.
3813   cat >conftest.$ac_ext <<_ACEOF
3814 #line $LINENO "configure"
3815 /* confdefs.h.  */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h.  */
3820 #include <ac_nonexistent.h>
3821 _ACEOF
3822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3823   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3824   ac_status=$?
3825   grep -v '^ *+' conftest.er1 >conftest.err
3826   rm -f conftest.er1
3827   cat conftest.err >&5
3828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829   (exit $ac_status); } >/dev/null; then
3830   if test -s conftest.err; then
3831     ac_cpp_err=$ac_c_preproc_warn_flag
3832   else
3833     ac_cpp_err=
3834   fi
3835 else
3836   ac_cpp_err=yes
3837 fi
3838 if test -z "$ac_cpp_err"; then
3839   # Broken: success on invalid input.
3840 continue
3841 else
3842   echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3844
3845   # Passes both tests.
3846 ac_preproc_ok=:
3847 break
3848 fi
3849 rm -f conftest.err conftest.$ac_ext
3850
3851 done
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then
3855   break
3856 fi
3857
3858     done
3859     ac_cv_prog_CPP=$CPP
3860
3861 fi
3862   CPP=$ac_cv_prog_CPP
3863 else
3864   ac_cv_prog_CPP=$CPP
3865 fi
3866 echo "$as_me:$LINENO: result: $CPP" >&5
3867 echo "${ECHO_T}$CPP" >&6
3868 ac_preproc_ok=false
3869 for ac_c_preproc_warn_flag in '' yes
3870 do
3871   # Use a header file that comes with gcc, so configuring glibc
3872   # with a fresh cross-compiler works.
3873   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874   # <limits.h> exists even on freestanding compilers.
3875   # On the NeXT, cc -E runs the code through the compiler's parser,
3876   # not just through cpp. "Syntax error" is here to catch this case.
3877   cat >conftest.$ac_ext <<_ACEOF
3878 #line $LINENO "configure"
3879 /* confdefs.h.  */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h.  */
3884 #ifdef __STDC__
3885 # include <limits.h>
3886 #else
3887 # include <assert.h>
3888 #endif
3889                      Syntax error
3890 _ACEOF
3891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3892   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3893   ac_status=$?
3894   grep -v '^ *+' conftest.er1 >conftest.err
3895   rm -f conftest.er1
3896   cat conftest.err >&5
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); } >/dev/null; then
3899   if test -s conftest.err; then
3900     ac_cpp_err=$ac_c_preproc_warn_flag
3901   else
3902     ac_cpp_err=
3903   fi
3904 else
3905   ac_cpp_err=yes
3906 fi
3907 if test -z "$ac_cpp_err"; then
3908   :
3909 else
3910   echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3912
3913   # Broken: fails on valid input.
3914 continue
3915 fi
3916 rm -f conftest.err conftest.$ac_ext
3917
3918   # OK, works on sane cases.  Now check whether non-existent headers
3919   # can be detected and how.
3920   cat >conftest.$ac_ext <<_ACEOF
3921 #line $LINENO "configure"
3922 /* confdefs.h.  */
3923 _ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h.  */
3927 #include <ac_nonexistent.h>
3928 _ACEOF
3929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3930   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3931   ac_status=$?
3932   grep -v '^ *+' conftest.er1 >conftest.err
3933   rm -f conftest.er1
3934   cat conftest.err >&5
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); } >/dev/null; then
3937   if test -s conftest.err; then
3938     ac_cpp_err=$ac_c_preproc_warn_flag
3939   else
3940     ac_cpp_err=
3941   fi
3942 else
3943   ac_cpp_err=yes
3944 fi
3945 if test -z "$ac_cpp_err"; then
3946   # Broken: success on invalid input.
3947 continue
3948 else
3949   echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3951
3952   # Passes both tests.
3953 ac_preproc_ok=:
3954 break
3955 fi
3956 rm -f conftest.err conftest.$ac_ext
3957
3958 done
3959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3960 rm -f conftest.err conftest.$ac_ext
3961 if $ac_preproc_ok; then
3962   :
3963 else
3964   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details." >&5
3966 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3967 See \`config.log' for more details." >&2;}
3968    { (exit 1); exit 1; }; }
3969 fi
3970
3971 ac_ext=c
3972 ac_cpp='$CPP $CPPFLAGS'
3973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976
3977
3978 echo "$as_me:$LINENO: checking for egrep" >&5
3979 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3980 if test "${ac_cv_prog_egrep+set}" = set; then
3981   echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3984     then ac_cv_prog_egrep='grep -E'
3985     else ac_cv_prog_egrep='egrep'
3986     fi
3987 fi
3988 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3989 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3990  EGREP=$ac_cv_prog_egrep
3991
3992
3993 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3994 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3995 if test "${ac_cv_header_stdc+set}" = set; then
3996   echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998   cat >conftest.$ac_ext <<_ACEOF
3999 #line $LINENO "configure"
4000 /* confdefs.h.  */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h.  */
4005 #include <stdlib.h>
4006 #include <stdarg.h>
4007 #include <string.h>
4008 #include <float.h>
4009
4010 int
4011 main ()
4012 {
4013
4014   ;
4015   return 0;
4016 }
4017 _ACEOF
4018 rm -f conftest.$ac_objext
4019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4020   (eval $ac_compile) 2>&5
4021   ac_status=$?
4022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023   (exit $ac_status); } &&
4024          { ac_try='test -s conftest.$ac_objext'
4025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026   (eval $ac_try) 2>&5
4027   ac_status=$?
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); }; }; then
4030   ac_cv_header_stdc=yes
4031 else
4032   echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4034
4035 ac_cv_header_stdc=no
4036 fi
4037 rm -f conftest.$ac_objext conftest.$ac_ext
4038
4039 if test $ac_cv_header_stdc = yes; then
4040   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4041   cat >conftest.$ac_ext <<_ACEOF
4042 #line $LINENO "configure"
4043 /* confdefs.h.  */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h.  */
4048 #include <string.h>
4049
4050 _ACEOF
4051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4052   $EGREP "memchr" >/dev/null 2>&1; then
4053   :
4054 else
4055   ac_cv_header_stdc=no
4056 fi
4057 rm -f conftest*
4058
4059 fi
4060
4061 if test $ac_cv_header_stdc = yes; then
4062   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4063   cat >conftest.$ac_ext <<_ACEOF
4064 #line $LINENO "configure"
4065 /* confdefs.h.  */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h.  */
4070 #include <stdlib.h>
4071
4072 _ACEOF
4073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4074   $EGREP "free" >/dev/null 2>&1; then
4075   :
4076 else
4077   ac_cv_header_stdc=no
4078 fi
4079 rm -f conftest*
4080
4081 fi
4082
4083 if test $ac_cv_header_stdc = yes; then
4084   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4085   if test "$cross_compiling" = yes; then
4086   :
4087 else
4088   cat >conftest.$ac_ext <<_ACEOF
4089 #line $LINENO "configure"
4090 /* confdefs.h.  */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h.  */
4095 #include <ctype.h>
4096 #if ((' ' & 0x0FF) == 0x020)
4097 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4098 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4099 #else
4100 # define ISLOWER(c) \
4101                    (('a' <= (c) && (c) <= 'i') \
4102                      || ('j' <= (c) && (c) <= 'r') \
4103                      || ('s' <= (c) && (c) <= 'z'))
4104 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4105 #endif
4106
4107 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4108 int
4109 main ()
4110 {
4111   int i;
4112   for (i = 0; i < 256; i++)
4113     if (XOR (islower (i), ISLOWER (i))
4114         || toupper (i) != TOUPPER (i))
4115       exit(2);
4116   exit (0);
4117 }
4118 _ACEOF
4119 rm -f conftest$ac_exeext
4120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4121   (eval $ac_link) 2>&5
4122   ac_status=$?
4123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126   (eval $ac_try) 2>&5
4127   ac_status=$?
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); }; }; then
4130   :
4131 else
4132   echo "$as_me: program exited with status $ac_status" >&5
4133 echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4135
4136 ( exit $ac_status )
4137 ac_cv_header_stdc=no
4138 fi
4139 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4140 fi
4141 fi
4142 fi
4143 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4144 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4145 if test $ac_cv_header_stdc = yes; then
4146
4147 cat >>confdefs.h <<\_ACEOF
4148 #define STDC_HEADERS 1
4149 _ACEOF
4150
4151 fi
4152
4153 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4164                   inttypes.h stdint.h unistd.h
4165 do
4166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4167 echo "$as_me:$LINENO: checking for $ac_header" >&5
4168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4170   echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172   cat >conftest.$ac_ext <<_ACEOF
4173 #line $LINENO "configure"
4174 /* confdefs.h.  */
4175 _ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h.  */
4179 $ac_includes_default
4180
4181 #include <$ac_header>
4182 _ACEOF
4183 rm -f conftest.$ac_objext
4184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4185   (eval $ac_compile) 2>&5
4186   ac_status=$?
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); } &&
4189          { ac_try='test -s conftest.$ac_objext'
4190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191   (eval $ac_try) 2>&5
4192   ac_status=$?
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); }; }; then
4195   eval "$as_ac_Header=yes"
4196 else
4197   echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4199
4200 eval "$as_ac_Header=no"
4201 fi
4202 rm -f conftest.$ac_objext conftest.$ac_ext
4203 fi
4204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4207   cat >>confdefs.h <<_ACEOF
4208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4209 _ACEOF
4210
4211 fi
4212
4213 done
4214
4215
4216 echo "$as_me:$LINENO: checking for short" >&5
4217 echo $ECHO_N "checking for short... $ECHO_C" >&6
4218 if test "${ac_cv_type_short+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   cat >conftest.$ac_ext <<_ACEOF
4222 #line $LINENO "configure"
4223 /* confdefs.h.  */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h.  */
4228 $ac_includes_default
4229 int
4230 main ()
4231 {
4232 if ((short *) 0)
4233   return 0;
4234 if (sizeof (short))
4235   return 0;
4236   ;
4237   return 0;
4238 }
4239 _ACEOF
4240 rm -f conftest.$ac_objext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242   (eval $ac_compile) 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); } &&
4246          { ac_try='test -s conftest.$ac_objext'
4247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248   (eval $ac_try) 2>&5
4249   ac_status=$?
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); }; }; then
4252   ac_cv_type_short=yes
4253 else
4254   echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 ac_cv_type_short=no
4258 fi
4259 rm -f conftest.$ac_objext conftest.$ac_ext
4260 fi
4261 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4262 echo "${ECHO_T}$ac_cv_type_short" >&6
4263
4264 echo "$as_me:$LINENO: checking size of short" >&5
4265 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4266 if test "${ac_cv_sizeof_short+set}" = set; then
4267   echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269   if test "$ac_cv_type_short" = yes; then
4270   # The cast to unsigned long works around a bug in the HP C Compiler
4271   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4272   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4273   # This bug is HP SR number 8606223364.
4274   if test "$cross_compiling" = yes; then
4275   # Depending upon the size, compute the lo and hi bounds.
4276 cat >conftest.$ac_ext <<_ACEOF
4277 #line $LINENO "configure"
4278 /* confdefs.h.  */
4279 _ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h.  */
4283 $ac_includes_default
4284 int
4285 main ()
4286 {
4287 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4288 test_array [0] = 0
4289
4290   ;
4291   return 0;
4292 }
4293 _ACEOF
4294 rm -f conftest.$ac_objext
4295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4296   (eval $ac_compile) 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); } &&
4300          { ac_try='test -s conftest.$ac_objext'
4301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302   (eval $ac_try) 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; }; then
4306   ac_lo=0 ac_mid=0
4307   while :; do
4308     cat >conftest.$ac_ext <<_ACEOF
4309 #line $LINENO "configure"
4310 /* confdefs.h.  */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h.  */
4315 $ac_includes_default
4316 int
4317 main ()
4318 {
4319 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4320 test_array [0] = 0
4321
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328   (eval $ac_compile) 2>&5
4329   ac_status=$?
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); } &&
4332          { ac_try='test -s conftest.$ac_objext'
4333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334   (eval $ac_try) 2>&5
4335   ac_status=$?
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); }; }; then
4338   ac_hi=$ac_mid; break
4339 else
4340   echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4342
4343 ac_lo=`expr $ac_mid + 1`
4344                     if test $ac_lo -le $ac_mid; then
4345                       ac_lo= ac_hi=
4346                       break
4347                     fi
4348                     ac_mid=`expr 2 '*' $ac_mid + 1`
4349 fi
4350 rm -f conftest.$ac_objext conftest.$ac_ext
4351   done
4352 else
4353   echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4355
4356 cat >conftest.$ac_ext <<_ACEOF
4357 #line $LINENO "configure"
4358 /* confdefs.h.  */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h.  */
4363 $ac_includes_default
4364 int
4365 main ()
4366 {
4367 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4368 test_array [0] = 0
4369
4370   ;
4371   return 0;
4372 }
4373 _ACEOF
4374 rm -f conftest.$ac_objext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376   (eval $ac_compile) 2>&5
4377   ac_status=$?
4378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379   (exit $ac_status); } &&
4380          { ac_try='test -s conftest.$ac_objext'
4381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382   (eval $ac_try) 2>&5
4383   ac_status=$?
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); }; }; then
4386   ac_hi=-1 ac_mid=-1
4387   while :; do
4388     cat >conftest.$ac_ext <<_ACEOF
4389 #line $LINENO "configure"
4390 /* confdefs.h.  */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h.  */
4395 $ac_includes_default
4396 int
4397 main ()
4398 {
4399 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4400 test_array [0] = 0
4401
4402   ;
4403   return 0;
4404 }
4405 _ACEOF
4406 rm -f conftest.$ac_objext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408   (eval $ac_compile) 2>&5
4409   ac_status=$?
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); } &&
4412          { ac_try='test -s conftest.$ac_objext'
4413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414   (eval $ac_try) 2>&5
4415   ac_status=$?
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); }; }; then
4418   ac_lo=$ac_mid; break
4419 else
4420   echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4422
4423 ac_hi=`expr '(' $ac_mid ')' - 1`
4424                        if test $ac_mid -le $ac_hi; then
4425                          ac_lo= ac_hi=
4426                          break
4427                        fi
4428                        ac_mid=`expr 2 '*' $ac_mid`
4429 fi
4430 rm -f conftest.$ac_objext conftest.$ac_ext
4431   done
4432 else
4433   echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436 ac_lo= ac_hi=
4437 fi
4438 rm -f conftest.$ac_objext conftest.$ac_ext
4439 fi
4440 rm -f conftest.$ac_objext conftest.$ac_ext
4441 # Binary search between lo and hi bounds.
4442 while test "x$ac_lo" != "x$ac_hi"; do
4443   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4444   cat >conftest.$ac_ext <<_ACEOF
4445 #line $LINENO "configure"
4446 /* confdefs.h.  */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h.  */
4451 $ac_includes_default
4452 int
4453 main ()
4454 {
4455 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4456 test_array [0] = 0
4457
4458   ;
4459   return 0;
4460 }
4461 _ACEOF
4462 rm -f conftest.$ac_objext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464   (eval $ac_compile) 2>&5
4465   ac_status=$?
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); } &&
4468          { ac_try='test -s conftest.$ac_objext'
4469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470   (eval $ac_try) 2>&5
4471   ac_status=$?
4472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); }; }; then
4474   ac_hi=$ac_mid
4475 else
4476   echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4478
4479 ac_lo=`expr '(' $ac_mid ')' + 1`
4480 fi
4481 rm -f conftest.$ac_objext conftest.$ac_ext
4482 done
4483 case $ac_lo in
4484 ?*) ac_cv_sizeof_short=$ac_lo;;
4485 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4486 See \`config.log' for more details." >&5
4487 echo "$as_me: error: cannot compute sizeof (short), 77
4488 See \`config.log' for more details." >&2;}
4489    { (exit 1); exit 1; }; } ;;
4490 esac
4491 else
4492   if test "$cross_compiling" = yes; then
4493   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4494 See \`config.log' for more details." >&5
4495 echo "$as_me: error: cannot run test program while cross compiling
4496 See \`config.log' for more details." >&2;}
4497    { (exit 1); exit 1; }; }
4498 else
4499   cat >conftest.$ac_ext <<_ACEOF
4500 #line $LINENO "configure"
4501 /* confdefs.h.  */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h.  */
4506 $ac_includes_default
4507 long longval () { return (long) (sizeof (short)); }
4508 unsigned long ulongval () { return (long) (sizeof (short)); }
4509 #include <stdio.h>
4510 #include <stdlib.h>
4511 int
4512 main ()
4513 {
4514
4515   FILE *f = fopen ("conftest.val", "w");
4516   if (! f)
4517     exit (1);
4518   if (((long) (sizeof (short))) < 0)
4519     {
4520       long i = longval ();
4521       if (i != ((long) (sizeof (short))))
4522         exit (1);
4523       fprintf (f, "%ld\n", i);
4524     }
4525   else
4526     {
4527       unsigned long i = ulongval ();
4528       if (i != ((long) (sizeof (short))))
4529         exit (1);
4530       fprintf (f, "%lu\n", i);
4531     }
4532   exit (ferror (f) || fclose (f) != 0);
4533
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 rm -f conftest$ac_exeext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540   (eval $ac_link) 2>&5
4541   ac_status=$?
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545   (eval $ac_try) 2>&5
4546   ac_status=$?
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); }; }; then
4549   ac_cv_sizeof_short=`cat conftest.val`
4550 else
4551   echo "$as_me: program exited with status $ac_status" >&5
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555 ( exit $ac_status )
4556 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4557 See \`config.log' for more details." >&5
4558 echo "$as_me: error: cannot compute sizeof (short), 77
4559 See \`config.log' for more details." >&2;}
4560    { (exit 1); exit 1; }; }
4561 fi
4562 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4563 fi
4564 fi
4565 rm -f conftest.val
4566 else
4567   ac_cv_sizeof_short=0
4568 fi
4569 fi
4570 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4571 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4572 cat >>confdefs.h <<_ACEOF
4573 #define SIZEOF_SHORT $ac_cv_sizeof_short
4574 _ACEOF
4575
4576
4577 echo "$as_me:$LINENO: checking for int" >&5
4578 echo $ECHO_N "checking for int... $ECHO_C" >&6
4579 if test "${ac_cv_type_int+set}" = set; then
4580   echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582   cat >conftest.$ac_ext <<_ACEOF
4583 #line $LINENO "configure"
4584 /* confdefs.h.  */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h.  */
4589 $ac_includes_default
4590 int
4591 main ()
4592 {
4593 if ((int *) 0)
4594   return 0;
4595 if (sizeof (int))
4596   return 0;
4597   ;
4598   return 0;
4599 }
4600 _ACEOF
4601 rm -f conftest.$ac_objext
4602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4603   (eval $ac_compile) 2>&5
4604   ac_status=$?
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); } &&
4607          { ac_try='test -s conftest.$ac_objext'
4608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609   (eval $ac_try) 2>&5
4610   ac_status=$?
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); }; }; then
4613   ac_cv_type_int=yes
4614 else
4615   echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4617
4618 ac_cv_type_int=no
4619 fi
4620 rm -f conftest.$ac_objext conftest.$ac_ext
4621 fi
4622 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4623 echo "${ECHO_T}$ac_cv_type_int" >&6
4624
4625 echo "$as_me:$LINENO: checking size of int" >&5
4626 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4627 if test "${ac_cv_sizeof_int+set}" = set; then
4628   echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630   if test "$ac_cv_type_int" = yes; then
4631   # The cast to unsigned long works around a bug in the HP C Compiler
4632   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4633   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4634   # This bug is HP SR number 8606223364.
4635   if test "$cross_compiling" = yes; then
4636   # Depending upon the size, compute the lo and hi bounds.
4637 cat >conftest.$ac_ext <<_ACEOF
4638 #line $LINENO "configure"
4639 /* confdefs.h.  */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h.  */
4644 $ac_includes_default
4645 int
4646 main ()
4647 {
4648 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4649 test_array [0] = 0
4650
4651   ;
4652   return 0;
4653 }
4654 _ACEOF
4655 rm -f conftest.$ac_objext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657   (eval $ac_compile) 2>&5
4658   ac_status=$?
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); } &&
4661          { ac_try='test -s conftest.$ac_objext'
4662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663   (eval $ac_try) 2>&5
4664   ac_status=$?
4665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666   (exit $ac_status); }; }; then
4667   ac_lo=0 ac_mid=0
4668   while :; do
4669     cat >conftest.$ac_ext <<_ACEOF
4670 #line $LINENO "configure"
4671 /* confdefs.h.  */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h.  */
4676 $ac_includes_default
4677 int
4678 main ()
4679 {
4680 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4681 test_array [0] = 0
4682
4683   ;
4684   return 0;
4685 }
4686 _ACEOF
4687 rm -f conftest.$ac_objext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4689   (eval $ac_compile) 2>&5
4690   ac_status=$?
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); } &&
4693          { ac_try='test -s conftest.$ac_objext'
4694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695   (eval $ac_try) 2>&5
4696   ac_status=$?
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); }; }; then
4699   ac_hi=$ac_mid; break
4700 else
4701   echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4703
4704 ac_lo=`expr $ac_mid + 1`
4705                     if test $ac_lo -le $ac_mid; then
4706                       ac_lo= ac_hi=
4707                       break
4708                     fi
4709                     ac_mid=`expr 2 '*' $ac_mid + 1`
4710 fi
4711 rm -f conftest.$ac_objext conftest.$ac_ext
4712   done
4713 else
4714   echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4716
4717 cat >conftest.$ac_ext <<_ACEOF
4718 #line $LINENO "configure"
4719 /* confdefs.h.  */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h.  */
4724 $ac_includes_default
4725 int
4726 main ()
4727 {
4728 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4729 test_array [0] = 0
4730
4731   ;
4732   return 0;
4733 }
4734 _ACEOF
4735 rm -f conftest.$ac_objext
4736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737   (eval $ac_compile) 2>&5
4738   ac_status=$?
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); } &&
4741          { ac_try='test -s conftest.$ac_objext'
4742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743   (eval $ac_try) 2>&5
4744   ac_status=$?
4745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); }; }; then
4747   ac_hi=-1 ac_mid=-1
4748   while :; do
4749     cat >conftest.$ac_ext <<_ACEOF
4750 #line $LINENO "configure"
4751 /* confdefs.h.  */
4752 _ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h.  */
4756 $ac_includes_default
4757 int
4758 main ()
4759 {
4760 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4761 test_array [0] = 0
4762
4763   ;
4764   return 0;
4765 }
4766 _ACEOF
4767 rm -f conftest.$ac_objext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769   (eval $ac_compile) 2>&5
4770   ac_status=$?
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); } &&
4773          { ac_try='test -s conftest.$ac_objext'
4774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775   (eval $ac_try) 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); }; }; then
4779   ac_lo=$ac_mid; break
4780 else
4781   echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4783
4784 ac_hi=`expr '(' $ac_mid ')' - 1`
4785                        if test $ac_mid -le $ac_hi; then
4786                          ac_lo= ac_hi=
4787                          break
4788                        fi
4789                        ac_mid=`expr 2 '*' $ac_mid`
4790 fi
4791 rm -f conftest.$ac_objext conftest.$ac_ext
4792   done
4793 else
4794   echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4796
4797 ac_lo= ac_hi=
4798 fi
4799 rm -f conftest.$ac_objext conftest.$ac_ext
4800 fi
4801 rm -f conftest.$ac_objext conftest.$ac_ext
4802 # Binary search between lo and hi bounds.
4803 while test "x$ac_lo" != "x$ac_hi"; do
4804   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4805   cat >conftest.$ac_ext <<_ACEOF
4806 #line $LINENO "configure"
4807 /* confdefs.h.  */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h.  */
4812 $ac_includes_default
4813 int
4814 main ()
4815 {
4816 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4817 test_array [0] = 0
4818
4819   ;
4820   return 0;
4821 }
4822 _ACEOF
4823 rm -f conftest.$ac_objext
4824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825   (eval $ac_compile) 2>&5
4826   ac_status=$?
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); } &&
4829          { ac_try='test -s conftest.$ac_objext'
4830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831   (eval $ac_try) 2>&5
4832   ac_status=$?
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); }; }; then
4835   ac_hi=$ac_mid
4836 else
4837   echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4839
4840 ac_lo=`expr '(' $ac_mid ')' + 1`
4841 fi
4842 rm -f conftest.$ac_objext conftest.$ac_ext
4843 done
4844 case $ac_lo in
4845 ?*) ac_cv_sizeof_int=$ac_lo;;
4846 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4847 See \`config.log' for more details." >&5
4848 echo "$as_me: error: cannot compute sizeof (int), 77
4849 See \`config.log' for more details." >&2;}
4850    { (exit 1); exit 1; }; } ;;
4851 esac
4852 else
4853   if test "$cross_compiling" = yes; then
4854   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4855 See \`config.log' for more details." >&5
4856 echo "$as_me: error: cannot run test program while cross compiling
4857 See \`config.log' for more details." >&2;}
4858    { (exit 1); exit 1; }; }
4859 else
4860   cat >conftest.$ac_ext <<_ACEOF
4861 #line $LINENO "configure"
4862 /* confdefs.h.  */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h.  */
4867 $ac_includes_default
4868 long longval () { return (long) (sizeof (int)); }
4869 unsigned long ulongval () { return (long) (sizeof (int)); }
4870 #include <stdio.h>
4871 #include <stdlib.h>
4872 int
4873 main ()
4874 {
4875
4876   FILE *f = fopen ("conftest.val", "w");
4877   if (! f)
4878     exit (1);
4879   if (((long) (sizeof (int))) < 0)
4880     {
4881       long i = longval ();
4882       if (i != ((long) (sizeof (int))))
4883         exit (1);
4884       fprintf (f, "%ld\n", i);
4885     }
4886   else
4887     {
4888       unsigned long i = ulongval ();
4889       if (i != ((long) (sizeof (int))))
4890         exit (1);
4891       fprintf (f, "%lu\n", i);
4892     }
4893   exit (ferror (f) || fclose (f) != 0);
4894
4895   ;
4896   return 0;
4897 }
4898 _ACEOF
4899 rm -f conftest$ac_exeext
4900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4901   (eval $ac_link) 2>&5
4902   ac_status=$?
4903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906   (eval $ac_try) 2>&5
4907   ac_status=$?
4908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); }; }; then
4910   ac_cv_sizeof_int=`cat conftest.val`
4911 else
4912   echo "$as_me: program exited with status $ac_status" >&5
4913 echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4915
4916 ( exit $ac_status )
4917 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4918 See \`config.log' for more details." >&5
4919 echo "$as_me: error: cannot compute sizeof (int), 77
4920 See \`config.log' for more details." >&2;}
4921    { (exit 1); exit 1; }; }
4922 fi
4923 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4924 fi
4925 fi
4926 rm -f conftest.val
4927 else
4928   ac_cv_sizeof_int=0
4929 fi
4930 fi
4931 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4932 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4933 cat >>confdefs.h <<_ACEOF
4934 #define SIZEOF_INT $ac_cv_sizeof_int
4935 _ACEOF
4936
4937
4938 echo "$as_me:$LINENO: checking for long" >&5
4939 echo $ECHO_N "checking for long... $ECHO_C" >&6
4940 if test "${ac_cv_type_long+set}" = set; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   cat >conftest.$ac_ext <<_ACEOF
4944 #line $LINENO "configure"
4945 /* confdefs.h.  */
4946 _ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h.  */
4950 $ac_includes_default
4951 int
4952 main ()
4953 {
4954 if ((long *) 0)
4955   return 0;
4956 if (sizeof (long))
4957   return 0;
4958   ;
4959   return 0;
4960 }
4961 _ACEOF
4962 rm -f conftest.$ac_objext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964   (eval $ac_compile) 2>&5
4965   ac_status=$?
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); } &&
4968          { ac_try='test -s conftest.$ac_objext'
4969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970   (eval $ac_try) 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); }; }; then
4974   ac_cv_type_long=yes
4975 else
4976   echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979 ac_cv_type_long=no
4980 fi
4981 rm -f conftest.$ac_objext conftest.$ac_ext
4982 fi
4983 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4984 echo "${ECHO_T}$ac_cv_type_long" >&6
4985
4986 echo "$as_me:$LINENO: checking size of long" >&5
4987 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4988 if test "${ac_cv_sizeof_long+set}" = set; then
4989   echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991   if test "$ac_cv_type_long" = yes; then
4992   # The cast to unsigned long works around a bug in the HP C Compiler
4993   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4994   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4995   # This bug is HP SR number 8606223364.
4996   if test "$cross_compiling" = yes; then
4997   # Depending upon the size, compute the lo and hi bounds.
4998 cat >conftest.$ac_ext <<_ACEOF
4999 #line $LINENO "configure"
5000 /* confdefs.h.  */
5001 _ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h.  */
5005 $ac_includes_default
5006 int
5007 main ()
5008 {
5009 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5010 test_array [0] = 0
5011
5012   ;
5013   return 0;
5014 }
5015 _ACEOF
5016 rm -f conftest.$ac_objext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018   (eval $ac_compile) 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); } &&
5022          { ac_try='test -s conftest.$ac_objext'
5023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024   (eval $ac_try) 2>&5
5025   ac_status=$?
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); }; }; then
5028   ac_lo=0 ac_mid=0
5029   while :; do
5030     cat >conftest.$ac_ext <<_ACEOF
5031 #line $LINENO "configure"
5032 /* confdefs.h.  */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h.  */
5037 $ac_includes_default
5038 int
5039 main ()
5040 {
5041 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5042 test_array [0] = 0
5043
5044   ;
5045   return 0;
5046 }
5047 _ACEOF
5048 rm -f conftest.$ac_objext
5049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5050   (eval $ac_compile) 2>&5
5051   ac_status=$?
5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); } &&
5054          { ac_try='test -s conftest.$ac_objext'
5055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056   (eval $ac_try) 2>&5
5057   ac_status=$?
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); }; }; then
5060   ac_hi=$ac_mid; break
5061 else
5062   echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065 ac_lo=`expr $ac_mid + 1`
5066                     if test $ac_lo -le $ac_mid; then
5067                       ac_lo= ac_hi=
5068                       break
5069                     fi
5070                     ac_mid=`expr 2 '*' $ac_mid + 1`
5071 fi
5072 rm -f conftest.$ac_objext conftest.$ac_ext
5073   done
5074 else
5075   echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078 cat >conftest.$ac_ext <<_ACEOF
5079 #line $LINENO "configure"
5080 /* confdefs.h.  */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h.  */
5085 $ac_includes_default
5086 int
5087 main ()
5088 {
5089 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5090 test_array [0] = 0
5091
5092   ;
5093   return 0;
5094 }
5095 _ACEOF
5096 rm -f conftest.$ac_objext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5098   (eval $ac_compile) 2>&5
5099   ac_status=$?
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); } &&
5102          { ac_try='test -s conftest.$ac_objext'
5103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104   (eval $ac_try) 2>&5
5105   ac_status=$?
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); }; }; then
5108   ac_hi=-1 ac_mid=-1
5109   while :; do
5110     cat >conftest.$ac_ext <<_ACEOF
5111 #line $LINENO "configure"
5112 /* confdefs.h.  */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h.  */
5117 $ac_includes_default
5118 int
5119 main ()
5120 {
5121 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5122 test_array [0] = 0
5123
5124   ;
5125   return 0;
5126 }
5127 _ACEOF
5128 rm -f conftest.$ac_objext
5129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5130   (eval $ac_compile) 2>&5
5131   ac_status=$?
5132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133   (exit $ac_status); } &&
5134          { ac_try='test -s conftest.$ac_objext'
5135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136   (eval $ac_try) 2>&5
5137   ac_status=$?
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); }; }; then
5140   ac_lo=$ac_mid; break
5141 else
5142   echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5144
5145 ac_hi=`expr '(' $ac_mid ')' - 1`
5146                        if test $ac_mid -le $ac_hi; then
5147                          ac_lo= ac_hi=
5148                          break
5149                        fi
5150                        ac_mid=`expr 2 '*' $ac_mid`
5151 fi
5152 rm -f conftest.$ac_objext conftest.$ac_ext
5153   done
5154 else
5155   echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5157
5158 ac_lo= ac_hi=
5159 fi
5160 rm -f conftest.$ac_objext conftest.$ac_ext
5161 fi
5162 rm -f conftest.$ac_objext conftest.$ac_ext
5163 # Binary search between lo and hi bounds.
5164 while test "x$ac_lo" != "x$ac_hi"; do
5165   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5166   cat >conftest.$ac_ext <<_ACEOF
5167 #line $LINENO "configure"
5168 /* confdefs.h.  */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h.  */
5173 $ac_includes_default
5174 int
5175 main ()
5176 {
5177 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5178 test_array [0] = 0
5179
5180   ;
5181   return 0;
5182 }
5183 _ACEOF
5184 rm -f conftest.$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186   (eval $ac_compile) 2>&5
5187   ac_status=$?
5188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189   (exit $ac_status); } &&
5190          { ac_try='test -s conftest.$ac_objext'
5191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192   (eval $ac_try) 2>&5
5193   ac_status=$?
5194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); }; }; then
5196   ac_hi=$ac_mid
5197 else
5198   echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5200
5201 ac_lo=`expr '(' $ac_mid ')' + 1`
5202 fi
5203 rm -f conftest.$ac_objext conftest.$ac_ext
5204 done
5205 case $ac_lo in
5206 ?*) ac_cv_sizeof_long=$ac_lo;;
5207 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5208 See \`config.log' for more details." >&5
5209 echo "$as_me: error: cannot compute sizeof (long), 77
5210 See \`config.log' for more details." >&2;}
5211    { (exit 1); exit 1; }; } ;;
5212 esac
5213 else
5214   if test "$cross_compiling" = yes; then
5215   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5216 See \`config.log' for more details." >&5
5217 echo "$as_me: error: cannot run test program while cross compiling
5218 See \`config.log' for more details." >&2;}
5219    { (exit 1); exit 1; }; }
5220 else
5221   cat >conftest.$ac_ext <<_ACEOF
5222 #line $LINENO "configure"
5223 /* confdefs.h.  */
5224 _ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h.  */
5228 $ac_includes_default
5229 long longval () { return (long) (sizeof (long)); }
5230 unsigned long ulongval () { return (long) (sizeof (long)); }
5231 #include <stdio.h>
5232 #include <stdlib.h>
5233 int
5234 main ()
5235 {
5236
5237   FILE *f = fopen ("conftest.val", "w");
5238   if (! f)
5239     exit (1);
5240   if (((long) (sizeof (long))) < 0)
5241     {
5242       long i = longval ();
5243       if (i != ((long) (sizeof (long))))
5244         exit (1);
5245       fprintf (f, "%ld\n", i);
5246     }
5247   else
5248     {
5249       unsigned long i = ulongval ();
5250       if (i != ((long) (sizeof (long))))
5251         exit (1);
5252       fprintf (f, "%lu\n", i);
5253     }
5254   exit (ferror (f) || fclose (f) != 0);
5255
5256   ;
5257   return 0;
5258 }
5259 _ACEOF
5260 rm -f conftest$ac_exeext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5262   (eval $ac_link) 2>&5
5263   ac_status=$?
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267   (eval $ac_try) 2>&5
5268   ac_status=$?
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); }; }; then
5271   ac_cv_sizeof_long=`cat conftest.val`
5272 else
5273   echo "$as_me: program exited with status $ac_status" >&5
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5276
5277 ( exit $ac_status )
5278 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5279 See \`config.log' for more details." >&5
5280 echo "$as_me: error: cannot compute sizeof (long), 77
5281 See \`config.log' for more details." >&2;}
5282    { (exit 1); exit 1; }; }
5283 fi
5284 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5285 fi
5286 fi
5287 rm -f conftest.val
5288 else
5289   ac_cv_sizeof_long=0
5290 fi
5291 fi
5292 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5293 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5294 cat >>confdefs.h <<_ACEOF
5295 #define SIZEOF_LONG $ac_cv_sizeof_long
5296 _ACEOF
5297
5298
5299 echo "$as_me:$LINENO: checking for float" >&5
5300 echo $ECHO_N "checking for float... $ECHO_C" >&6
5301 if test "${ac_cv_type_float+set}" = set; then
5302   echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304   cat >conftest.$ac_ext <<_ACEOF
5305 #line $LINENO "configure"
5306 /* confdefs.h.  */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h.  */
5311 $ac_includes_default
5312 int
5313 main ()
5314 {
5315 if ((float *) 0)
5316   return 0;
5317 if (sizeof (float))
5318   return 0;
5319   ;
5320   return 0;
5321 }
5322 _ACEOF
5323 rm -f conftest.$ac_objext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5325   (eval $ac_compile) 2>&5
5326   ac_status=$?
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); } &&
5329          { ac_try='test -s conftest.$ac_objext'
5330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331   (eval $ac_try) 2>&5
5332   ac_status=$?
5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334   (exit $ac_status); }; }; then
5335   ac_cv_type_float=yes
5336 else
5337   echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5339
5340 ac_cv_type_float=no
5341 fi
5342 rm -f conftest.$ac_objext conftest.$ac_ext
5343 fi
5344 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
5345 echo "${ECHO_T}$ac_cv_type_float" >&6
5346
5347 echo "$as_me:$LINENO: checking size of float" >&5
5348 echo $ECHO_N "checking size of float... $ECHO_C" >&6
5349 if test "${ac_cv_sizeof_float+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   if test "$ac_cv_type_float" = yes; then
5353   # The cast to unsigned long works around a bug in the HP C Compiler
5354   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5355   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5356   # This bug is HP SR number 8606223364.
5357   if test "$cross_compiling" = yes; then
5358   # Depending upon the size, compute the lo and hi bounds.
5359 cat >conftest.$ac_ext <<_ACEOF
5360 #line $LINENO "configure"
5361 /* confdefs.h.  */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h.  */
5366 $ac_includes_default
5367 int
5368 main ()
5369 {
5370 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5371 test_array [0] = 0
5372
5373   ;
5374   return 0;
5375 }
5376 _ACEOF
5377 rm -f conftest.$ac_objext
5378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5379   (eval $ac_compile) 2>&5
5380   ac_status=$?
5381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382   (exit $ac_status); } &&
5383          { ac_try='test -s conftest.$ac_objext'
5384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385   (eval $ac_try) 2>&5
5386   ac_status=$?
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); }; }; then
5389   ac_lo=0 ac_mid=0
5390   while :; do
5391     cat >conftest.$ac_ext <<_ACEOF
5392 #line $LINENO "configure"
5393 /* confdefs.h.  */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h.  */
5398 $ac_includes_default
5399 int
5400 main ()
5401 {
5402 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5403 test_array [0] = 0
5404
5405   ;
5406   return 0;
5407 }
5408 _ACEOF
5409 rm -f conftest.$ac_objext
5410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5411   (eval $ac_compile) 2>&5
5412   ac_status=$?
5413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414   (exit $ac_status); } &&
5415          { ac_try='test -s conftest.$ac_objext'
5416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417   (eval $ac_try) 2>&5
5418   ac_status=$?
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); }; }; then
5421   ac_hi=$ac_mid; break
5422 else
5423   echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5425
5426 ac_lo=`expr $ac_mid + 1`
5427                     if test $ac_lo -le $ac_mid; then
5428                       ac_lo= ac_hi=
5429                       break
5430                     fi
5431                     ac_mid=`expr 2 '*' $ac_mid + 1`
5432 fi
5433 rm -f conftest.$ac_objext conftest.$ac_ext
5434   done
5435 else
5436   echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5438
5439 cat >conftest.$ac_ext <<_ACEOF
5440 #line $LINENO "configure"
5441 /* confdefs.h.  */
5442 _ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h.  */
5446 $ac_includes_default
5447 int
5448 main ()
5449 {
5450 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5451 test_array [0] = 0
5452
5453   ;
5454   return 0;
5455 }
5456 _ACEOF
5457 rm -f conftest.$ac_objext
5458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5459   (eval $ac_compile) 2>&5
5460   ac_status=$?
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); } &&
5463          { ac_try='test -s conftest.$ac_objext'
5464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465   (eval $ac_try) 2>&5
5466   ac_status=$?
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); }; }; then
5469   ac_hi=-1 ac_mid=-1
5470   while :; do
5471     cat >conftest.$ac_ext <<_ACEOF
5472 #line $LINENO "configure"
5473 /* confdefs.h.  */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h.  */
5478 $ac_includes_default
5479 int
5480 main ()
5481 {
5482 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5483 test_array [0] = 0
5484
5485   ;
5486   return 0;
5487 }
5488 _ACEOF
5489 rm -f conftest.$ac_objext
5490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5491   (eval $ac_compile) 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); } &&
5495          { ac_try='test -s conftest.$ac_objext'
5496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497   (eval $ac_try) 2>&5
5498   ac_status=$?
5499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500   (exit $ac_status); }; }; then
5501   ac_lo=$ac_mid; break
5502 else
5503   echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506 ac_hi=`expr '(' $ac_mid ')' - 1`
5507                        if test $ac_mid -le $ac_hi; then
5508                          ac_lo= ac_hi=
5509                          break
5510                        fi
5511                        ac_mid=`expr 2 '*' $ac_mid`
5512 fi
5513 rm -f conftest.$ac_objext conftest.$ac_ext
5514   done
5515 else
5516   echo "$as_me: failed program was:" >&5
5517 sed 's/^/| /' conftest.$ac_ext >&5
5518
5519 ac_lo= ac_hi=
5520 fi
5521 rm -f conftest.$ac_objext conftest.$ac_ext
5522 fi
5523 rm -f conftest.$ac_objext conftest.$ac_ext
5524 # Binary search between lo and hi bounds.
5525 while test "x$ac_lo" != "x$ac_hi"; do
5526   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5527   cat >conftest.$ac_ext <<_ACEOF
5528 #line $LINENO "configure"
5529 /* confdefs.h.  */
5530 _ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h.  */
5534 $ac_includes_default
5535 int
5536 main ()
5537 {
5538 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5539 test_array [0] = 0
5540
5541   ;
5542   return 0;
5543 }
5544 _ACEOF
5545 rm -f conftest.$ac_objext
5546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5547   (eval $ac_compile) 2>&5
5548   ac_status=$?
5549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550   (exit $ac_status); } &&
5551          { ac_try='test -s conftest.$ac_objext'
5552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553   (eval $ac_try) 2>&5
5554   ac_status=$?
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); }; }; then
5557   ac_hi=$ac_mid
5558 else
5559   echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5561
5562 ac_lo=`expr '(' $ac_mid ')' + 1`
5563 fi
5564 rm -f conftest.$ac_objext conftest.$ac_ext
5565 done
5566 case $ac_lo in
5567 ?*) ac_cv_sizeof_float=$ac_lo;;
5568 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5569 See \`config.log' for more details." >&5
5570 echo "$as_me: error: cannot compute sizeof (float), 77
5571 See \`config.log' for more details." >&2;}
5572    { (exit 1); exit 1; }; } ;;
5573 esac
5574 else
5575   if test "$cross_compiling" = yes; then
5576   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5577 See \`config.log' for more details." >&5
5578 echo "$as_me: error: cannot run test program while cross compiling
5579 See \`config.log' for more details." >&2;}
5580    { (exit 1); exit 1; }; }
5581 else
5582   cat >conftest.$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5584 /* confdefs.h.  */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h.  */
5589 $ac_includes_default
5590 long longval () { return (long) (sizeof (float)); }
5591 unsigned long ulongval () { return (long) (sizeof (float)); }
5592 #include <stdio.h>
5593 #include <stdlib.h>
5594 int
5595 main ()
5596 {
5597
5598   FILE *f = fopen ("conftest.val", "w");
5599   if (! f)
5600     exit (1);
5601   if (((long) (sizeof (float))) < 0)
5602     {
5603       long i = longval ();
5604       if (i != ((long) (sizeof (float))))
5605         exit (1);
5606       fprintf (f, "%ld\n", i);
5607     }
5608   else
5609     {
5610       unsigned long i = ulongval ();
5611       if (i != ((long) (sizeof (float))))
5612         exit (1);
5613       fprintf (f, "%lu\n", i);
5614     }
5615   exit (ferror (f) || fclose (f) != 0);
5616
5617   ;
5618   return 0;
5619 }
5620 _ACEOF
5621 rm -f conftest$ac_exeext
5622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5623   (eval $ac_link) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628   (eval $ac_try) 2>&5
5629   ac_status=$?
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); }; }; then
5632   ac_cv_sizeof_float=`cat conftest.val`
5633 else
5634   echo "$as_me: program exited with status $ac_status" >&5
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638 ( exit $ac_status )
5639 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5640 See \`config.log' for more details." >&5
5641 echo "$as_me: error: cannot compute sizeof (float), 77
5642 See \`config.log' for more details." >&2;}
5643    { (exit 1); exit 1; }; }
5644 fi
5645 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5646 fi
5647 fi
5648 rm -f conftest.val
5649 else
5650   ac_cv_sizeof_float=0
5651 fi
5652 fi
5653 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5654 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5655 cat >>confdefs.h <<_ACEOF
5656 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5657 _ACEOF
5658
5659
5660 echo "$as_me:$LINENO: checking for double" >&5
5661 echo $ECHO_N "checking for double... $ECHO_C" >&6
5662 if test "${ac_cv_type_double+set}" = set; then
5663   echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665   cat >conftest.$ac_ext <<_ACEOF
5666 #line $LINENO "configure"
5667 /* confdefs.h.  */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h.  */
5672 $ac_includes_default
5673 int
5674 main ()
5675 {
5676 if ((double *) 0)
5677   return 0;
5678 if (sizeof (double))
5679   return 0;
5680   ;
5681   return 0;
5682 }
5683 _ACEOF
5684 rm -f conftest.$ac_objext
5685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686   (eval $ac_compile) 2>&5
5687   ac_status=$?
5688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689   (exit $ac_status); } &&
5690          { ac_try='test -s conftest.$ac_objext'
5691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692   (eval $ac_try) 2>&5
5693   ac_status=$?
5694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695   (exit $ac_status); }; }; then
5696   ac_cv_type_double=yes
5697 else
5698   echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5700
5701 ac_cv_type_double=no
5702 fi
5703 rm -f conftest.$ac_objext conftest.$ac_ext
5704 fi
5705 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5706 echo "${ECHO_T}$ac_cv_type_double" >&6
5707
5708 echo "$as_me:$LINENO: checking size of double" >&5
5709 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5710 if test "${ac_cv_sizeof_double+set}" = set; then
5711   echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713   if test "$ac_cv_type_double" = yes; then
5714   # The cast to unsigned long works around a bug in the HP C Compiler
5715   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5716   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5717   # This bug is HP SR number 8606223364.
5718   if test "$cross_compiling" = yes; then
5719   # Depending upon the size, compute the lo and hi bounds.
5720 cat >conftest.$ac_ext <<_ACEOF
5721 #line $LINENO "configure"
5722 /* confdefs.h.  */
5723 _ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h.  */
5727 $ac_includes_default
5728 int
5729 main ()
5730 {
5731 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5732 test_array [0] = 0
5733
5734   ;
5735   return 0;
5736 }
5737 _ACEOF
5738 rm -f conftest.$ac_objext
5739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5740   (eval $ac_compile) 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); } &&
5744          { ac_try='test -s conftest.$ac_objext'
5745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746   (eval $ac_try) 2>&5
5747   ac_status=$?
5748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749   (exit $ac_status); }; }; then
5750   ac_lo=0 ac_mid=0
5751   while :; do
5752     cat >conftest.$ac_ext <<_ACEOF
5753 #line $LINENO "configure"
5754 /* confdefs.h.  */
5755 _ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h.  */
5759 $ac_includes_default
5760 int
5761 main ()
5762 {
5763 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5764 test_array [0] = 0
5765
5766   ;
5767   return 0;
5768 }
5769 _ACEOF
5770 rm -f conftest.$ac_objext
5771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5772   (eval $ac_compile) 2>&5
5773   ac_status=$?
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); } &&
5776          { ac_try='test -s conftest.$ac_objext'
5777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778   (eval $ac_try) 2>&5
5779   ac_status=$?
5780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781   (exit $ac_status); }; }; then
5782   ac_hi=$ac_mid; break
5783 else
5784   echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5786
5787 ac_lo=`expr $ac_mid + 1`
5788                     if test $ac_lo -le $ac_mid; then
5789                       ac_lo= ac_hi=
5790                       break
5791                     fi
5792                     ac_mid=`expr 2 '*' $ac_mid + 1`
5793 fi
5794 rm -f conftest.$ac_objext conftest.$ac_ext
5795   done
5796 else
5797   echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5799
5800 cat >conftest.$ac_ext <<_ACEOF
5801 #line $LINENO "configure"
5802 /* confdefs.h.  */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h.  */
5807 $ac_includes_default
5808 int
5809 main ()
5810 {
5811 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5812 test_array [0] = 0
5813
5814   ;
5815   return 0;
5816 }
5817 _ACEOF
5818 rm -f conftest.$ac_objext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820   (eval $ac_compile) 2>&5
5821   ac_status=$?
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); } &&
5824          { ac_try='test -s conftest.$ac_objext'
5825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826   (eval $ac_try) 2>&5
5827   ac_status=$?
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); }; }; then
5830   ac_hi=-1 ac_mid=-1
5831   while :; do
5832     cat >conftest.$ac_ext <<_ACEOF
5833 #line $LINENO "configure"
5834 /* confdefs.h.  */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h.  */
5839 $ac_includes_default
5840 int
5841 main ()
5842 {
5843 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5844 test_array [0] = 0
5845
5846   ;
5847   return 0;
5848 }
5849 _ACEOF
5850 rm -f conftest.$ac_objext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852   (eval $ac_compile) 2>&5
5853   ac_status=$?
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); } &&
5856          { ac_try='test -s conftest.$ac_objext'
5857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858   (eval $ac_try) 2>&5
5859   ac_status=$?
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); }; }; then
5862   ac_lo=$ac_mid; break
5863 else
5864   echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5866
5867 ac_hi=`expr '(' $ac_mid ')' - 1`
5868                        if test $ac_mid -le $ac_hi; then
5869                          ac_lo= ac_hi=
5870                          break
5871                        fi
5872                        ac_mid=`expr 2 '*' $ac_mid`
5873 fi
5874 rm -f conftest.$ac_objext conftest.$ac_ext
5875   done
5876 else
5877   echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5879
5880 ac_lo= ac_hi=
5881 fi
5882 rm -f conftest.$ac_objext conftest.$ac_ext
5883 fi
5884 rm -f conftest.$ac_objext conftest.$ac_ext
5885 # Binary search between lo and hi bounds.
5886 while test "x$ac_lo" != "x$ac_hi"; do
5887   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5888   cat >conftest.$ac_ext <<_ACEOF
5889 #line $LINENO "configure"
5890 /* confdefs.h.  */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h.  */
5895 $ac_includes_default
5896 int
5897 main ()
5898 {
5899 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5900 test_array [0] = 0
5901
5902   ;
5903   return 0;
5904 }
5905 _ACEOF
5906 rm -f conftest.$ac_objext
5907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5908   (eval $ac_compile) 2>&5
5909   ac_status=$?
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); } &&
5912          { ac_try='test -s conftest.$ac_objext'
5913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914   (eval $ac_try) 2>&5
5915   ac_status=$?
5916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917   (exit $ac_status); }; }; then
5918   ac_hi=$ac_mid
5919 else
5920   echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5922
5923 ac_lo=`expr '(' $ac_mid ')' + 1`
5924 fi
5925 rm -f conftest.$ac_objext conftest.$ac_ext
5926 done
5927 case $ac_lo in
5928 ?*) ac_cv_sizeof_double=$ac_lo;;
5929 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5930 See \`config.log' for more details." >&5
5931 echo "$as_me: error: cannot compute sizeof (double), 77
5932 See \`config.log' for more details." >&2;}
5933    { (exit 1); exit 1; }; } ;;
5934 esac
5935 else
5936   if test "$cross_compiling" = yes; then
5937   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5938 See \`config.log' for more details." >&5
5939 echo "$as_me: error: cannot run test program while cross compiling
5940 See \`config.log' for more details." >&2;}
5941    { (exit 1); exit 1; }; }
5942 else
5943   cat >conftest.$ac_ext <<_ACEOF
5944 #line $LINENO "configure"
5945 /* confdefs.h.  */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h.  */
5950 $ac_includes_default
5951 long longval () { return (long) (sizeof (double)); }
5952 unsigned long ulongval () { return (long) (sizeof (double)); }
5953 #include <stdio.h>
5954 #include <stdlib.h>
5955 int
5956 main ()
5957 {
5958
5959   FILE *f = fopen ("conftest.val", "w");
5960   if (! f)
5961     exit (1);
5962   if (((long) (sizeof (double))) < 0)
5963     {
5964       long i = longval ();
5965       if (i != ((long) (sizeof (double))))
5966         exit (1);
5967       fprintf (f, "%ld\n", i);
5968     }
5969   else
5970     {
5971       unsigned long i = ulongval ();
5972       if (i != ((long) (sizeof (double))))
5973         exit (1);
5974       fprintf (f, "%lu\n", i);
5975     }
5976   exit (ferror (f) || fclose (f) != 0);
5977
5978   ;
5979   return 0;
5980 }
5981 _ACEOF
5982 rm -f conftest$ac_exeext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5984   (eval $ac_link) 2>&5
5985   ac_status=$?
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989   (eval $ac_try) 2>&5
5990   ac_status=$?
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); }; }; then
5993   ac_cv_sizeof_double=`cat conftest.val`
5994 else
5995   echo "$as_me: program exited with status $ac_status" >&5
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5998
5999 ( exit $ac_status )
6000 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6001 See \`config.log' for more details." >&5
6002 echo "$as_me: error: cannot compute sizeof (double), 77
6003 See \`config.log' for more details." >&2;}
6004    { (exit 1); exit 1; }; }
6005 fi
6006 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6007 fi
6008 fi
6009 rm -f conftest.val
6010 else
6011   ac_cv_sizeof_double=0
6012 fi
6013 fi
6014 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6015 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6016 cat >>confdefs.h <<_ACEOF
6017 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6018 _ACEOF
6019
6020
6021
6022
6023 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
6024 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
6025 if test "${ac_cv_lib_z_deflate+set}" = set; then
6026   echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028   ac_check_lib_save_LIBS=$LIBS
6029 LIBS="-lz  $LIBS"
6030 cat >conftest.$ac_ext <<_ACEOF
6031 #line $LINENO "configure"
6032 /* confdefs.h.  */
6033 _ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h.  */
6037
6038 /* Override any gcc2 internal prototype to avoid an error.  */
6039 #ifdef __cplusplus
6040 extern "C"
6041 #endif
6042 /* We use char because int might match the return type of a gcc2
6043    builtin and then its argument prototype would still apply.  */
6044 char deflate ();
6045 int
6046 main ()
6047 {
6048 deflate ();
6049   ;
6050   return 0;
6051 }
6052 _ACEOF
6053 rm -f conftest.$ac_objext conftest$ac_exeext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6055   (eval $ac_link) 2>&5
6056   ac_status=$?
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); } &&
6059          { ac_try='test -s conftest$ac_exeext'
6060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061   (eval $ac_try) 2>&5
6062   ac_status=$?
6063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); }; }; then
6065   ac_cv_lib_z_deflate=yes
6066 else
6067   echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6069
6070 ac_cv_lib_z_deflate=no
6071 fi
6072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6073 LIBS=$ac_check_lib_save_LIBS
6074 fi
6075 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
6076 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
6077 if test $ac_cv_lib_z_deflate = yes; then
6078    zlib="true"
6079 else
6080    zlib="false" ;  { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
6081 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
6082 fi
6083
6084
6085 echo "$as_me:$LINENO: checking for sin in -lm" >&5
6086 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6087 if test "${ac_cv_lib_m_sin+set}" = set; then
6088   echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090   ac_check_lib_save_LIBS=$LIBS
6091 LIBS="-lm  $LIBS"
6092 cat >conftest.$ac_ext <<_ACEOF
6093 #line $LINENO "configure"
6094 /* confdefs.h.  */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h.  */
6099
6100 /* Override any gcc2 internal prototype to avoid an error.  */
6101 #ifdef __cplusplus
6102 extern "C"
6103 #endif
6104 /* We use char because int might match the return type of a gcc2
6105    builtin and then its argument prototype would still apply.  */
6106 char sin ();
6107 int
6108 main ()
6109 {
6110 sin ();
6111   ;
6112   return 0;
6113 }
6114 _ACEOF
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6117   (eval $ac_link) 2>&5
6118   ac_status=$?
6119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120   (exit $ac_status); } &&
6121          { ac_try='test -s conftest$ac_exeext'
6122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123   (eval $ac_try) 2>&5
6124   ac_status=$?
6125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126   (exit $ac_status); }; }; then
6127   ac_cv_lib_m_sin=yes
6128 else
6129   echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6131
6132 ac_cv_lib_m_sin=no
6133 fi
6134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6135 LIBS=$ac_check_lib_save_LIBS
6136 fi
6137 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6138 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6139 if test $ac_cv_lib_m_sin = yes; then
6140   cat >>confdefs.h <<_ACEOF
6141 #define HAVE_LIBM 1
6142 _ACEOF
6143
6144   LIBS="-lm $LIBS"
6145
6146 fi
6147
6148 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
6149 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
6150 if test "${ac_cv_lib_curses_main+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   ac_check_lib_save_LIBS=$LIBS
6154 LIBS="-lcurses  $LIBS"
6155 cat >conftest.$ac_ext <<_ACEOF
6156 #line $LINENO "configure"
6157 /* confdefs.h.  */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h.  */
6162
6163
6164 int
6165 main ()
6166 {
6167 main ();
6168   ;
6169   return 0;
6170 }
6171 _ACEOF
6172 rm -f conftest.$ac_objext conftest$ac_exeext
6173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6174   (eval $ac_link) 2>&5
6175   ac_status=$?
6176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177   (exit $ac_status); } &&
6178          { ac_try='test -s conftest$ac_exeext'
6179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180   (eval $ac_try) 2>&5
6181   ac_status=$?
6182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183   (exit $ac_status); }; }; then
6184   ac_cv_lib_curses_main=yes
6185 else
6186   echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6188
6189 ac_cv_lib_curses_main=no
6190 fi
6191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6192 LIBS=$ac_check_lib_save_LIBS
6193 fi
6194 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
6195 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
6196 if test $ac_cv_lib_curses_main = yes; then
6197   curses=true
6198 else
6199   curses=false
6200 fi
6201
6202 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6203 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
6204 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6205   echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207   ac_check_lib_save_LIBS=$LIBS
6208 LIBS="-lncurses  $LIBS"
6209 cat >conftest.$ac_ext <<_ACEOF
6210 #line $LINENO "configure"
6211 /* confdefs.h.  */
6212 _ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h.  */
6216
6217
6218 int
6219 main ()
6220 {
6221 main ();
6222   ;
6223   return 0;
6224 }
6225 _ACEOF
6226 rm -f conftest.$ac_objext conftest$ac_exeext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228   (eval $ac_link) 2>&5
6229   ac_status=$?
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); } &&
6232          { ac_try='test -s conftest$ac_exeext'
6233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234   (eval $ac_try) 2>&5
6235   ac_status=$?
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); }; }; then
6238   ac_cv_lib_ncurses_main=yes
6239 else
6240   echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6242
6243 ac_cv_lib_ncurses_main=no
6244 fi
6245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6246 LIBS=$ac_check_lib_save_LIBS
6247 fi
6248 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6249 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
6250 if test $ac_cv_lib_ncurses_main = yes; then
6251   ncurses=true
6252 else
6253   ncurses=false
6254 fi
6255
6256 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
6257 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
6258 if test "${ac_cv_lib_readline_main+set}" = set; then
6259   echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261   ac_check_lib_save_LIBS=$LIBS
6262 LIBS="-lreadline -lcurses $LIBS"
6263 cat >conftest.$ac_ext <<_ACEOF
6264 #line $LINENO "configure"
6265 /* confdefs.h.  */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h.  */
6270
6271
6272 int
6273 main ()
6274 {
6275 main ();
6276   ;
6277   return 0;
6278 }
6279 _ACEOF
6280 rm -f conftest.$ac_objext conftest$ac_exeext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6282   (eval $ac_link) 2>&5
6283   ac_status=$?
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); } &&
6286          { ac_try='test -s conftest$ac_exeext'
6287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288   (eval $ac_try) 2>&5
6289   ac_status=$?
6290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291   (exit $ac_status); }; }; then
6292   ac_cv_lib_readline_main=yes
6293 else
6294   echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6296
6297 ac_cv_lib_readline_main=no
6298 fi
6299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6300 LIBS=$ac_check_lib_save_LIBS
6301 fi
6302 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
6303 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
6304 if test $ac_cv_lib_readline_main = yes; then
6305   readline=true;
6306
6307 cat >>confdefs.h <<\_ACEOF
6308 #define HAVE_READLINE 1
6309 _ACEOF
6310
6311 else
6312   readline=false
6313 fi
6314
6315 wxwin=false
6316 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
6317 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
6318 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
6319   echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321   ac_check_lib_save_LIBS=$LIBS
6322 LIBS="-lwx_gtk-2.4  $LIBS"
6323 cat >conftest.$ac_ext <<_ACEOF
6324 #line $LINENO "configure"
6325 /* confdefs.h.  */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h.  */
6330
6331
6332 int
6333 main ()
6334 {
6335 main ();
6336   ;
6337   return 0;
6338 }
6339 _ACEOF
6340 rm -f conftest.$ac_objext conftest$ac_exeext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6342   (eval $ac_link) 2>&5
6343   ac_status=$?
6344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345   (exit $ac_status); } &&
6346          { ac_try='test -s conftest$ac_exeext'
6347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348   (eval $ac_try) 2>&5
6349   ac_status=$?
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); }; }; then
6352   ac_cv_lib_wx_gtk_2_4_main=yes
6353 else
6354   echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6356
6357 ac_cv_lib_wx_gtk_2_4_main=no
6358 fi
6359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6360 LIBS=$ac_check_lib_save_LIBS
6361 fi
6362 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
6363 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
6364 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
6365   wxwin=true; wx_gtk=true;
6366 cat >>confdefs.h <<\_ACEOF
6367 #define HAVE_WXWINDOWS 1
6368 _ACEOF
6369
6370 fi
6371
6372 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
6373 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
6374 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
6375   echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377   ac_check_lib_save_LIBS=$LIBS
6378 LIBS="-lwx_mac-2.4  $LIBS"
6379 cat >conftest.$ac_ext <<_ACEOF
6380 #line $LINENO "configure"
6381 /* confdefs.h.  */
6382 _ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h.  */
6386
6387
6388 int
6389 main ()
6390 {
6391 main ();
6392   ;
6393   return 0;
6394 }
6395 _ACEOF
6396 rm -f conftest.$ac_objext conftest$ac_exeext
6397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6398   (eval $ac_link) 2>&5
6399   ac_status=$?
6400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401   (exit $ac_status); } &&
6402          { ac_try='test -s conftest$ac_exeext'
6403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404   (eval $ac_try) 2>&5
6405   ac_status=$?
6406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407   (exit $ac_status); }; }; then
6408   ac_cv_lib_wx_mac_2_4_main=yes
6409 else
6410   echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6412
6413 ac_cv_lib_wx_mac_2_4_main=no
6414 fi
6415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6416 LIBS=$ac_check_lib_save_LIBS
6417 fi
6418 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
6419 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
6420 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
6421   wxwin=true; wx_mac=true;
6422 cat >>confdefs.h <<\_ACEOF
6423 #define HAVE_WXWINDOWS 1
6424 _ACEOF
6425
6426 fi
6427
6428 echo "$as_me:$LINENO: checking for fftw_one in -lfftw" >&5
6429 echo $ECHO_N "checking for fftw_one in -lfftw... $ECHO_C" >&6
6430 if test "${ac_cv_lib_fftw_fftw_one+set}" = set; then
6431   echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433   ac_check_lib_save_LIBS=$LIBS
6434 LIBS="-lfftw  $LIBS"
6435 cat >conftest.$ac_ext <<_ACEOF
6436 #line $LINENO "configure"
6437 /* confdefs.h.  */
6438 _ACEOF
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h.  */
6442
6443 /* Override any gcc2 internal prototype to avoid an error.  */
6444 #ifdef __cplusplus
6445 extern "C"
6446 #endif
6447 /* We use char because int might match the return type of a gcc2
6448    builtin and then its argument prototype would still apply.  */
6449 char fftw_one ();
6450 int
6451 main ()
6452 {
6453 fftw_one ();
6454   ;
6455   return 0;
6456 }
6457 _ACEOF
6458 rm -f conftest.$ac_objext conftest$ac_exeext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6460   (eval $ac_link) 2>&5
6461   ac_status=$?
6462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463   (exit $ac_status); } &&
6464          { ac_try='test -s conftest$ac_exeext'
6465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466   (eval $ac_try) 2>&5
6467   ac_status=$?
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); }; }; then
6470   ac_cv_lib_fftw_fftw_one=yes
6471 else
6472   echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6474
6475 ac_cv_lib_fftw_fftw_one=no
6476 fi
6477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6478 LIBS=$ac_check_lib_save_LIBS
6479 fi
6480 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_one" >&5
6481 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_one" >&6
6482 if test $ac_cv_lib_fftw_fftw_one = yes; then
6483   fftw=true;
6484 cat >>confdefs.h <<\_ACEOF
6485 #define HAVE_FFTW 1
6486 _ACEOF
6487
6488 else
6489   fftw=false
6490 fi
6491
6492 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6493 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6494 if test "${ac_cv_lib_GL_main+set}" = set; then
6495   echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497   ac_check_lib_save_LIBS=$LIBS
6498 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
6499 cat >conftest.$ac_ext <<_ACEOF
6500 #line $LINENO "configure"
6501 /* confdefs.h.  */
6502 _ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h.  */
6506
6507
6508 int
6509 main ()
6510 {
6511 main ();
6512   ;
6513   return 0;
6514 }
6515 _ACEOF
6516 rm -f conftest.$ac_objext conftest$ac_exeext
6517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6518   (eval $ac_link) 2>&5
6519   ac_status=$?
6520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521   (exit $ac_status); } &&
6522          { ac_try='test -s conftest$ac_exeext'
6523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524   (eval $ac_try) 2>&5
6525   ac_status=$?
6526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527   (exit $ac_status); }; }; then
6528   ac_cv_lib_GL_main=yes
6529 else
6530   echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6532
6533 ac_cv_lib_GL_main=no
6534 fi
6535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6536 LIBS=$ac_check_lib_save_LIBS
6537 fi
6538 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6539 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6540 if test $ac_cv_lib_GL_main = yes; then
6541   libgl=true
6542 else
6543   libgl=false
6544 fi
6545
6546 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6547 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6548 if test "${ac_cv_lib_pthread_main+set}" = set; then
6549   echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551   ac_check_lib_save_LIBS=$LIBS
6552 LIBS="-lpthread  $LIBS"
6553 cat >conftest.$ac_ext <<_ACEOF
6554 #line $LINENO "configure"
6555 /* confdefs.h.  */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h.  */
6560
6561
6562 int
6563 main ()
6564 {
6565 main ();
6566   ;
6567   return 0;
6568 }
6569 _ACEOF
6570 rm -f conftest.$ac_objext conftest$ac_exeext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572   (eval $ac_link) 2>&5
6573   ac_status=$?
6574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575   (exit $ac_status); } &&
6576          { ac_try='test -s conftest$ac_exeext'
6577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578   (eval $ac_try) 2>&5
6579   ac_status=$?
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); }; }; then
6582   ac_cv_lib_pthread_main=yes
6583 else
6584   echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6586
6587 ac_cv_lib_pthread_main=no
6588 fi
6589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6590 LIBS=$ac_check_lib_save_LIBS
6591 fi
6592 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6593 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6594 if test $ac_cv_lib_pthread_main = yes; then
6595   pthread=true
6596 else
6597   pthread=false
6598 fi
6599
6600
6601 if test "$zlib" = "true" ; then
6602   echo "$as_me:$LINENO: checking for main in -lpng" >&5
6603 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6604 if test "${ac_cv_lib_png_main+set}" = set; then
6605   echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607   ac_check_lib_save_LIBS=$LIBS
6608 LIBS="-lpng -lz -lm $LIBS"
6609 cat >conftest.$ac_ext <<_ACEOF
6610 #line $LINENO "configure"
6611 /* confdefs.h.  */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h.  */
6616
6617
6618 int
6619 main ()
6620 {
6621 main ();
6622   ;
6623   return 0;
6624 }
6625 _ACEOF
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628   (eval $ac_link) 2>&5
6629   ac_status=$?
6630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631   (exit $ac_status); } &&
6632          { ac_try='test -s conftest$ac_exeext'
6633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634   (eval $ac_try) 2>&5
6635   ac_status=$?
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); }; }; then
6638   ac_cv_lib_png_main=yes
6639 else
6640   echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6642
6643 ac_cv_lib_png_main=no
6644 fi
6645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6646 LIBS=$ac_check_lib_save_LIBS
6647 fi
6648 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6649 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6650 if test $ac_cv_lib_png_main = yes; then
6651   png=true ;
6652 cat >>confdefs.h <<\_ACEOF
6653 #define HAVE_PNG 1
6654 _ACEOF
6655
6656 else
6657   png=false
6658 fi
6659
6660 fi
6661
6662 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6663 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6664 if test "${ac_cv_header_stdc+set}" = set; then
6665   echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667   cat >conftest.$ac_ext <<_ACEOF
6668 #line $LINENO "configure"
6669 /* confdefs.h.  */
6670 _ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h.  */
6674 #include <stdlib.h>
6675 #include <stdarg.h>
6676 #include <string.h>
6677 #include <float.h>
6678
6679 int
6680 main ()
6681 {
6682
6683   ;
6684   return 0;
6685 }
6686 _ACEOF
6687 rm -f conftest.$ac_objext
6688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689   (eval $ac_compile) 2>&5
6690   ac_status=$?
6691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692   (exit $ac_status); } &&
6693          { ac_try='test -s conftest.$ac_objext'
6694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695   (eval $ac_try) 2>&5
6696   ac_status=$?
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); }; }; then
6699   ac_cv_header_stdc=yes
6700 else
6701   echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6703
6704 ac_cv_header_stdc=no
6705 fi
6706 rm -f conftest.$ac_objext conftest.$ac_ext
6707
6708 if test $ac_cv_header_stdc = yes; then
6709   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6710   cat >conftest.$ac_ext <<_ACEOF
6711 #line $LINENO "configure"
6712 /* confdefs.h.  */
6713 _ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h.  */
6717 #include <string.h>
6718
6719 _ACEOF
6720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6721   $EGREP "memchr" >/dev/null 2>&1; then
6722   :
6723 else
6724   ac_cv_header_stdc=no
6725 fi
6726 rm -f conftest*
6727
6728 fi
6729
6730 if test $ac_cv_header_stdc = yes; then
6731   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6732   cat >conftest.$ac_ext <<_ACEOF
6733 #line $LINENO "configure"
6734 /* confdefs.h.  */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h.  */
6739 #include <stdlib.h>
6740
6741 _ACEOF
6742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6743   $EGREP "free" >/dev/null 2>&1; then
6744   :
6745 else
6746   ac_cv_header_stdc=no
6747 fi
6748 rm -f conftest*
6749
6750 fi
6751
6752 if test $ac_cv_header_stdc = yes; then
6753   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6754   if test "$cross_compiling" = yes; then
6755   :
6756 else
6757   cat >conftest.$ac_ext <<_ACEOF
6758 #line $LINENO "configure"
6759 /* confdefs.h.  */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h.  */
6764 #include <ctype.h>
6765 #if ((' ' & 0x0FF) == 0x020)
6766 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6767 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6768 #else
6769 # define ISLOWER(c) \
6770                    (('a' <= (c) && (c) <= 'i') \
6771                      || ('j' <= (c) && (c) <= 'r') \
6772                      || ('s' <= (c) && (c) <= 'z'))
6773 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6774 #endif
6775
6776 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6777 int
6778 main ()
6779 {
6780   int i;
6781   for (i = 0; i < 256; i++)
6782     if (XOR (islower (i), ISLOWER (i))
6783         || toupper (i) != TOUPPER (i))
6784       exit(2);
6785   exit (0);
6786 }
6787 _ACEOF
6788 rm -f conftest$ac_exeext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790   (eval $ac_link) 2>&5
6791   ac_status=$?
6792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795   (eval $ac_try) 2>&5
6796   ac_status=$?
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); }; }; then
6799   :
6800 else
6801   echo "$as_me: program exited with status $ac_status" >&5
6802 echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6804
6805 ( exit $ac_status )
6806 ac_cv_header_stdc=no
6807 fi
6808 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6809 fi
6810 fi
6811 fi
6812 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6813 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6814 if test $ac_cv_header_stdc = yes; then
6815
6816 cat >>confdefs.h <<\_ACEOF
6817 #define STDC_HEADERS 1
6818 _ACEOF
6819
6820 fi
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846 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
6847 do
6848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6850   echo "$as_me:$LINENO: checking for $ac_header" >&5
6851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6853   echo $ECHO_N "(cached) $ECHO_C" >&6
6854 fi
6855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6857 else
6858   # Is the header compilable?
6859 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6861 cat >conftest.$ac_ext <<_ACEOF
6862 #line $LINENO "configure"
6863 /* confdefs.h.  */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h.  */
6868 $ac_includes_default
6869 #include <$ac_header>
6870 _ACEOF
6871 rm -f conftest.$ac_objext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873   (eval $ac_compile) 2>&5
6874   ac_status=$?
6875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876   (exit $ac_status); } &&
6877          { ac_try='test -s conftest.$ac_objext'
6878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879   (eval $ac_try) 2>&5
6880   ac_status=$?
6881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882   (exit $ac_status); }; }; then
6883   ac_header_compiler=yes
6884 else
6885   echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6887
6888 ac_header_compiler=no
6889 fi
6890 rm -f conftest.$ac_objext conftest.$ac_ext
6891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6892 echo "${ECHO_T}$ac_header_compiler" >&6
6893
6894 # Is the header present?
6895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6897 cat >conftest.$ac_ext <<_ACEOF
6898 #line $LINENO "configure"
6899 /* confdefs.h.  */
6900 _ACEOF
6901 cat confdefs.h >>conftest.$ac_ext
6902 cat >>conftest.$ac_ext <<_ACEOF
6903 /* end confdefs.h.  */
6904 #include <$ac_header>
6905 _ACEOF
6906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6907   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6908   ac_status=$?
6909   grep -v '^ *+' conftest.er1 >conftest.err
6910   rm -f conftest.er1
6911   cat conftest.err >&5
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); } >/dev/null; then
6914   if test -s conftest.err; then
6915     ac_cpp_err=$ac_c_preproc_warn_flag
6916   else
6917     ac_cpp_err=
6918   fi
6919 else
6920   ac_cpp_err=yes
6921 fi
6922 if test -z "$ac_cpp_err"; then
6923   ac_header_preproc=yes
6924 else
6925   echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6927
6928   ac_header_preproc=no
6929 fi
6930 rm -f conftest.err conftest.$ac_ext
6931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6932 echo "${ECHO_T}$ac_header_preproc" >&6
6933
6934 # So?  What about this header?
6935 case $ac_header_compiler:$ac_header_preproc in
6936   yes:no )
6937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6941     (
6942       cat <<\_ASBOX
6943 ## ------------------------------------ ##
6944 ## Report this to bug-autoconf@gnu.org. ##
6945 ## ------------------------------------ ##
6946 _ASBOX
6947     ) |
6948       sed "s/^/$as_me: WARNING:     /" >&2
6949     ;;
6950   no:yes )
6951     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6953     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6957     (
6958       cat <<\_ASBOX
6959 ## ------------------------------------ ##
6960 ## Report this to bug-autoconf@gnu.org. ##
6961 ## ------------------------------------ ##
6962 _ASBOX
6963     ) |
6964       sed "s/^/$as_me: WARNING:     /" >&2
6965     ;;
6966 esac
6967 echo "$as_me:$LINENO: checking for $ac_header" >&5
6968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6970   echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972   eval "$as_ac_Header=$ac_header_preproc"
6973 fi
6974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6976
6977 fi
6978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6979   cat >>confdefs.h <<_ACEOF
6980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6981 _ACEOF
6982
6983 fi
6984
6985 done
6986
6987
6988 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6989 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6990 if test "${ac_cv_c_const+set}" = set; then
6991   echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993   cat >conftest.$ac_ext <<_ACEOF
6994 #line $LINENO "configure"
6995 /* confdefs.h.  */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h.  */
7000
7001 int
7002 main ()
7003 {
7004 /* FIXME: Include the comments suggested by Paul. */
7005 #ifndef __cplusplus
7006   /* Ultrix mips cc rejects this.  */
7007   typedef int charset[2];
7008   const charset x;
7009   /* SunOS 4.1.1 cc rejects this.  */
7010   char const *const *ccp;
7011   char **p;
7012   /* NEC SVR4.0.2 mips cc rejects this.  */
7013   struct point {int x, y;};
7014   static struct point const zero = {0,0};
7015   /* AIX XL C 1.02.0.0 rejects this.
7016      It does not let you subtract one const X* pointer from another in
7017      an arm of an if-expression whose if-part is not a constant
7018      expression */
7019   const char *g = "string";
7020   ccp = &g + (g ? g-g : 0);
7021   /* HPUX 7.0 cc rejects these. */
7022   ++ccp;
7023   p = (char**) ccp;
7024   ccp = (char const *const *) p;
7025   { /* SCO 3.2v4 cc rejects this.  */
7026     char *t;
7027     char const *s = 0 ? (char *) 0 : (char const *) 0;
7028
7029     *t++ = 0;
7030   }
7031   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7032     int x[] = {25, 17};
7033     const int *foo = &x[0];
7034     ++foo;
7035   }
7036   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7037     typedef const int *iptr;
7038     iptr p = 0;
7039     ++p;
7040   }
7041   { /* AIX XL C 1.02.0.0 rejects this saying
7042        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7043     struct s { int j; const int *ap[3]; };
7044     struct s *b; b->j = 5;
7045   }
7046   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7047     const int foo = 10;
7048   }
7049 #endif
7050
7051   ;
7052   return 0;
7053 }
7054 _ACEOF
7055 rm -f conftest.$ac_objext
7056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057   (eval $ac_compile) 2>&5
7058   ac_status=$?
7059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060   (exit $ac_status); } &&
7061          { ac_try='test -s conftest.$ac_objext'
7062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063   (eval $ac_try) 2>&5
7064   ac_status=$?
7065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066   (exit $ac_status); }; }; then
7067   ac_cv_c_const=yes
7068 else
7069   echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.$ac_ext >&5
7071
7072 ac_cv_c_const=no
7073 fi
7074 rm -f conftest.$ac_objext conftest.$ac_ext
7075 fi
7076 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7077 echo "${ECHO_T}$ac_cv_c_const" >&6
7078 if test $ac_cv_c_const = no; then
7079
7080 cat >>confdefs.h <<\_ACEOF
7081 #define const
7082 _ACEOF
7083
7084 fi
7085
7086 echo "$as_me:$LINENO: checking for off_t" >&5
7087 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7088 if test "${ac_cv_type_off_t+set}" = set; then
7089   echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091   cat >conftest.$ac_ext <<_ACEOF
7092 #line $LINENO "configure"
7093 /* confdefs.h.  */
7094 _ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h.  */
7098 $ac_includes_default
7099 int
7100 main ()
7101 {
7102 if ((off_t *) 0)
7103   return 0;
7104 if (sizeof (off_t))
7105   return 0;
7106   ;
7107   return 0;
7108 }
7109 _ACEOF
7110 rm -f conftest.$ac_objext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7112   (eval $ac_compile) 2>&5
7113   ac_status=$?
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); } &&
7116          { ac_try='test -s conftest.$ac_objext'
7117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118   (eval $ac_try) 2>&5
7119   ac_status=$?
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); }; }; then
7122   ac_cv_type_off_t=yes
7123 else
7124   echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7126
7127 ac_cv_type_off_t=no
7128 fi
7129 rm -f conftest.$ac_objext conftest.$ac_ext
7130 fi
7131 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7132 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7133 if test $ac_cv_type_off_t = yes; then
7134   :
7135 else
7136
7137 cat >>confdefs.h <<_ACEOF
7138 #define off_t long
7139 _ACEOF
7140
7141 fi
7142
7143 echo "$as_me:$LINENO: checking for size_t" >&5
7144 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7145 if test "${ac_cv_type_size_t+set}" = set; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148   cat >conftest.$ac_ext <<_ACEOF
7149 #line $LINENO "configure"
7150 /* confdefs.h.  */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h.  */
7155 $ac_includes_default
7156 int
7157 main ()
7158 {
7159 if ((size_t *) 0)
7160   return 0;
7161 if (sizeof (size_t))
7162   return 0;
7163   ;
7164   return 0;
7165 }
7166 _ACEOF
7167 rm -f conftest.$ac_objext
7168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7169   (eval $ac_compile) 2>&5
7170   ac_status=$?
7171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); } &&
7173          { ac_try='test -s conftest.$ac_objext'
7174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175   (eval $ac_try) 2>&5
7176   ac_status=$?
7177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178   (exit $ac_status); }; }; then
7179   ac_cv_type_size_t=yes
7180 else
7181   echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7183
7184 ac_cv_type_size_t=no
7185 fi
7186 rm -f conftest.$ac_objext conftest.$ac_ext
7187 fi
7188 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7189 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7190 if test $ac_cv_type_size_t = yes; then
7191   :
7192 else
7193
7194 cat >>confdefs.h <<_ACEOF
7195 #define size_t unsigned
7196 _ACEOF
7197
7198 fi
7199
7200 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7201 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7202 if test "${ac_cv_struct_tm+set}" = set; then
7203   echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205   cat >conftest.$ac_ext <<_ACEOF
7206 #line $LINENO "configure"
7207 /* confdefs.h.  */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h.  */
7212 #include <sys/types.h>
7213 #include <time.h>
7214
7215 int
7216 main ()
7217 {
7218 struct tm *tp; tp->tm_sec;
7219   ;
7220   return 0;
7221 }
7222 _ACEOF
7223 rm -f conftest.$ac_objext
7224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7225   (eval $ac_compile) 2>&5
7226   ac_status=$?
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); } &&
7229          { ac_try='test -s conftest.$ac_objext'
7230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231   (eval $ac_try) 2>&5
7232   ac_status=$?
7233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234   (exit $ac_status); }; }; then
7235   ac_cv_struct_tm=time.h
7236 else
7237   echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7239
7240 ac_cv_struct_tm=sys/time.h
7241 fi
7242 rm -f conftest.$ac_objext conftest.$ac_ext
7243 fi
7244 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7245 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7246 if test $ac_cv_struct_tm = sys/time.h; then
7247
7248 cat >>confdefs.h <<\_ACEOF
7249 #define TM_IN_SYS_TIME 1
7250 _ACEOF
7251
7252 fi
7253
7254
7255
7256 for ac_func in vprintf
7257 do
7258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7259 echo "$as_me:$LINENO: checking for $ac_func" >&5
7260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7261 if eval "test \"\${$as_ac_var+set}\" = set"; then
7262   echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264   cat >conftest.$ac_ext <<_ACEOF
7265 #line $LINENO "configure"
7266 /* confdefs.h.  */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h.  */
7271 /* System header to define __stub macros and hopefully few prototypes,
7272     which can conflict with char $ac_func (); below.
7273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7274     <limits.h> exists even on freestanding compilers.  */
7275 #ifdef __STDC__
7276 # include <limits.h>
7277 #else
7278 # include <assert.h>
7279 #endif
7280 /* Override any gcc2 internal prototype to avoid an error.  */
7281 #ifdef __cplusplus
7282 extern "C"
7283 {
7284 #endif
7285 /* We use char because int might match the return type of a gcc2
7286    builtin and then its argument prototype would still apply.  */
7287 char $ac_func ();
7288 /* The GNU C library defines this for functions which it implements
7289     to always fail with ENOSYS.  Some functions are actually named
7290     something starting with __ and the normal name is an alias.  */
7291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7292 choke me
7293 #else
7294 char (*f) () = $ac_func;
7295 #endif
7296 #ifdef __cplusplus
7297 }
7298 #endif
7299
7300 int
7301 main ()
7302 {
7303 return f != $ac_func;
7304   ;
7305   return 0;
7306 }
7307 _ACEOF
7308 rm -f conftest.$ac_objext conftest$ac_exeext
7309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7310   (eval $ac_link) 2>&5
7311   ac_status=$?
7312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313   (exit $ac_status); } &&
7314          { ac_try='test -s conftest$ac_exeext'
7315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316   (eval $ac_try) 2>&5
7317   ac_status=$?
7318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319   (exit $ac_status); }; }; then
7320   eval "$as_ac_var=yes"
7321 else
7322   echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7324
7325 eval "$as_ac_var=no"
7326 fi
7327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7328 fi
7329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7330 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7331 if test `eval echo '${'$as_ac_var'}'` = yes; then
7332   cat >>confdefs.h <<_ACEOF
7333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7334 _ACEOF
7335
7336 echo "$as_me:$LINENO: checking for _doprnt" >&5
7337 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7338 if test "${ac_cv_func__doprnt+set}" = set; then
7339   echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341   cat >conftest.$ac_ext <<_ACEOF
7342 #line $LINENO "configure"
7343 /* confdefs.h.  */
7344 _ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h.  */
7348 /* System header to define __stub macros and hopefully few prototypes,
7349     which can conflict with char _doprnt (); below.
7350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7351     <limits.h> exists even on freestanding compilers.  */
7352 #ifdef __STDC__
7353 # include <limits.h>
7354 #else
7355 # include <assert.h>
7356 #endif
7357 /* Override any gcc2 internal prototype to avoid an error.  */
7358 #ifdef __cplusplus
7359 extern "C"
7360 {
7361 #endif
7362 /* We use char because int might match the return type of a gcc2
7363    builtin and then its argument prototype would still apply.  */
7364 char _doprnt ();
7365 /* The GNU C library defines this for functions which it implements
7366     to always fail with ENOSYS.  Some functions are actually named
7367     something starting with __ and the normal name is an alias.  */
7368 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7369 choke me
7370 #else
7371 char (*f) () = _doprnt;
7372 #endif
7373 #ifdef __cplusplus
7374 }
7375 #endif
7376
7377 int
7378 main ()
7379 {
7380 return f != _doprnt;
7381   ;
7382   return 0;
7383 }
7384 _ACEOF
7385 rm -f conftest.$ac_objext conftest$ac_exeext
7386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7387   (eval $ac_link) 2>&5
7388   ac_status=$?
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); } &&
7391          { ac_try='test -s conftest$ac_exeext'
7392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393   (eval $ac_try) 2>&5
7394   ac_status=$?
7395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396   (exit $ac_status); }; }; then
7397   ac_cv_func__doprnt=yes
7398 else
7399   echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7401
7402 ac_cv_func__doprnt=no
7403 fi
7404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7405 fi
7406 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7407 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7408 if test $ac_cv_func__doprnt = yes; then
7409
7410 cat >>confdefs.h <<\_ACEOF
7411 #define HAVE_DOPRNT 1
7412 _ACEOF
7413
7414 fi
7415
7416 fi
7417 done
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
7428 do
7429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7430 echo "$as_me:$LINENO: checking for $ac_func" >&5
7431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7432 if eval "test \"\${$as_ac_var+set}\" = set"; then
7433   echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435   cat >conftest.$ac_ext <<_ACEOF
7436 #line $LINENO "configure"
7437 /* confdefs.h.  */
7438 _ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h.  */
7442 /* System header to define __stub macros and hopefully few prototypes,
7443     which can conflict with char $ac_func (); below.
7444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7445     <limits.h> exists even on freestanding compilers.  */
7446 #ifdef __STDC__
7447 # include <limits.h>
7448 #else
7449 # include <assert.h>
7450 #endif
7451 /* Override any gcc2 internal prototype to avoid an error.  */
7452 #ifdef __cplusplus
7453 extern "C"
7454 {
7455 #endif
7456 /* We use char because int might match the return type of a gcc2
7457    builtin and then its argument prototype would still apply.  */
7458 char $ac_func ();
7459 /* The GNU C library defines this for functions which it implements
7460     to always fail with ENOSYS.  Some functions are actually named
7461     something starting with __ and the normal name is an alias.  */
7462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7463 choke me
7464 #else
7465 char (*f) () = $ac_func;
7466 #endif
7467 #ifdef __cplusplus
7468 }
7469 #endif
7470
7471 int
7472 main ()
7473 {
7474 return f != $ac_func;
7475   ;
7476   return 0;
7477 }
7478 _ACEOF
7479 rm -f conftest.$ac_objext conftest$ac_exeext
7480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7481   (eval $ac_link) 2>&5
7482   ac_status=$?
7483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484   (exit $ac_status); } &&
7485          { ac_try='test -s conftest$ac_exeext'
7486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487   (eval $ac_try) 2>&5
7488   ac_status=$?
7489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490   (exit $ac_status); }; }; then
7491   eval "$as_ac_var=yes"
7492 else
7493   echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.$ac_ext >&5
7495
7496 eval "$as_ac_var=no"
7497 fi
7498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7499 fi
7500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7502 if test `eval echo '${'$as_ac_var'}'` = yes; then
7503   cat >>confdefs.h <<_ACEOF
7504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7505 _ACEOF
7506
7507 fi
7508 done
7509
7510 echo "$as_me:$LINENO: checking for basename" >&5
7511 echo $ECHO_N "checking for basename... $ECHO_C" >&6
7512 if test "${ac_cv_func_basename+set}" = set; then
7513   echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515   cat >conftest.$ac_ext <<_ACEOF
7516 #line $LINENO "configure"
7517 /* confdefs.h.  */
7518 _ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h.  */
7522 /* System header to define __stub macros and hopefully few prototypes,
7523     which can conflict with char basename (); below.
7524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7525     <limits.h> exists even on freestanding compilers.  */
7526 #ifdef __STDC__
7527 # include <limits.h>
7528 #else
7529 # include <assert.h>
7530 #endif
7531 /* Override any gcc2 internal prototype to avoid an error.  */
7532 #ifdef __cplusplus
7533 extern "C"
7534 {
7535 #endif
7536 /* We use char because int might match the return type of a gcc2
7537    builtin and then its argument prototype would still apply.  */
7538 char basename ();
7539 /* The GNU C library defines this for functions which it implements
7540     to always fail with ENOSYS.  Some functions are actually named
7541     something starting with __ and the normal name is an alias.  */
7542 #if defined (__stub_basename) || defined (__stub___basename)
7543 choke me
7544 #else
7545 char (*f) () = basename;
7546 #endif
7547 #ifdef __cplusplus
7548 }
7549 #endif
7550
7551 int
7552 main ()
7553 {
7554 return f != basename;
7555   ;
7556   return 0;
7557 }
7558 _ACEOF
7559 rm -f conftest.$ac_objext conftest$ac_exeext
7560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7561   (eval $ac_link) 2>&5
7562   ac_status=$?
7563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564   (exit $ac_status); } &&
7565          { ac_try='test -s conftest$ac_exeext'
7566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567   (eval $ac_try) 2>&5
7568   ac_status=$?
7569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570   (exit $ac_status); }; }; then
7571   ac_cv_func_basename=yes
7572 else
7573   echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.$ac_ext >&5
7575
7576 ac_cv_func_basename=no
7577 fi
7578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7579 fi
7580 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
7581 echo "${ECHO_T}$ac_cv_func_basename" >&6
7582
7583 echo "$as_me:$LINENO: checking for setjmp" >&5
7584 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
7585 if test "${ac_cv_func_setjmp+set}" = set; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588   cat >conftest.$ac_ext <<_ACEOF
7589 #line $LINENO "configure"
7590 /* confdefs.h.  */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h.  */
7595 /* System header to define __stub macros and hopefully few prototypes,
7596     which can conflict with char setjmp (); below.
7597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7598     <limits.h> exists even on freestanding compilers.  */
7599 #ifdef __STDC__
7600 # include <limits.h>
7601 #else
7602 # include <assert.h>
7603 #endif
7604 /* Override any gcc2 internal prototype to avoid an error.  */
7605 #ifdef __cplusplus
7606 extern "C"
7607 {
7608 #endif
7609 /* We use char because int might match the return type of a gcc2
7610    builtin and then its argument prototype would still apply.  */
7611 char setjmp ();
7612 /* The GNU C library defines this for functions which it implements
7613     to always fail with ENOSYS.  Some functions are actually named
7614     something starting with __ and the normal name is an alias.  */
7615 #if defined (__stub_setjmp) || defined (__stub___setjmp)
7616 choke me
7617 #else
7618 char (*f) () = setjmp;
7619 #endif
7620 #ifdef __cplusplus
7621 }
7622 #endif
7623
7624 int
7625 main ()
7626 {
7627 return f != setjmp;
7628   ;
7629   return 0;
7630 }
7631 _ACEOF
7632 rm -f conftest.$ac_objext conftest$ac_exeext
7633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7634   (eval $ac_link) 2>&5
7635   ac_status=$?
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); } &&
7638          { ac_try='test -s conftest$ac_exeext'
7639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640   (eval $ac_try) 2>&5
7641   ac_status=$?
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); }; }; then
7644   ac_cv_func_setjmp=yes
7645 else
7646   echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7648
7649 ac_cv_func_setjmp=no
7650 fi
7651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7652 fi
7653 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
7654 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
7655
7656 echo "$as_me:$LINENO: checking for setpriority" >&5
7657 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
7658 if test "${ac_cv_func_setpriority+set}" = set; then
7659   echo $ECHO_N "(cached) $ECHO_C" >&6
7660 else
7661   cat >conftest.$ac_ext <<_ACEOF
7662 #line $LINENO "configure"
7663 /* confdefs.h.  */
7664 _ACEOF
7665 cat confdefs.h >>conftest.$ac_ext
7666 cat >>conftest.$ac_ext <<_ACEOF
7667 /* end confdefs.h.  */
7668 /* System header to define __stub macros and hopefully few prototypes,
7669     which can conflict with char setpriority (); below.
7670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7671     <limits.h> exists even on freestanding compilers.  */
7672 #ifdef __STDC__
7673 # include <limits.h>
7674 #else
7675 # include <assert.h>
7676 #endif
7677 /* Override any gcc2 internal prototype to avoid an error.  */
7678 #ifdef __cplusplus
7679 extern "C"
7680 {
7681 #endif
7682 /* We use char because int might match the return type of a gcc2
7683    builtin and then its argument prototype would still apply.  */
7684 char setpriority ();
7685 /* The GNU C library defines this for functions which it implements
7686     to always fail with ENOSYS.  Some functions are actually named
7687     something starting with __ and the normal name is an alias.  */
7688 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7689 choke me
7690 #else
7691 char (*f) () = setpriority;
7692 #endif
7693 #ifdef __cplusplus
7694 }
7695 #endif
7696
7697 int
7698 main ()
7699 {
7700 return f != setpriority;
7701   ;
7702   return 0;
7703 }
7704 _ACEOF
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707   (eval $ac_link) 2>&5
7708   ac_status=$?
7709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710   (exit $ac_status); } &&
7711          { ac_try='test -s conftest$ac_exeext'
7712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713   (eval $ac_try) 2>&5
7714   ac_status=$?
7715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716   (exit $ac_status); }; }; then
7717   ac_cv_func_setpriority=yes
7718 else
7719   echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7721
7722 ac_cv_func_setpriority=no
7723 fi
7724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7725 fi
7726 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7727 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7728
7729 echo "$as_me:$LINENO: checking for time" >&5
7730 echo $ECHO_N "checking for time... $ECHO_C" >&6
7731 if test "${ac_cv_func_time+set}" = set; then
7732   echo $ECHO_N "(cached) $ECHO_C" >&6
7733 else
7734   cat >conftest.$ac_ext <<_ACEOF
7735 #line $LINENO "configure"
7736 /* confdefs.h.  */
7737 _ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h.  */
7741 /* System header to define __stub macros and hopefully few prototypes,
7742     which can conflict with char time (); below.
7743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7744     <limits.h> exists even on freestanding compilers.  */
7745 #ifdef __STDC__
7746 # include <limits.h>
7747 #else
7748 # include <assert.h>
7749 #endif
7750 /* Override any gcc2 internal prototype to avoid an error.  */
7751 #ifdef __cplusplus
7752 extern "C"
7753 {
7754 #endif
7755 /* We use char because int might match the return type of a gcc2
7756    builtin and then its argument prototype would still apply.  */
7757 char time ();
7758 /* The GNU C library defines this for functions which it implements
7759     to always fail with ENOSYS.  Some functions are actually named
7760     something starting with __ and the normal name is an alias.  */
7761 #if defined (__stub_time) || defined (__stub___time)
7762 choke me
7763 #else
7764 char (*f) () = time;
7765 #endif
7766 #ifdef __cplusplus
7767 }
7768 #endif
7769
7770 int
7771 main ()
7772 {
7773 return f != time;
7774   ;
7775   return 0;
7776 }
7777 _ACEOF
7778 rm -f conftest.$ac_objext conftest$ac_exeext
7779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7780   (eval $ac_link) 2>&5
7781   ac_status=$?
7782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783   (exit $ac_status); } &&
7784          { ac_try='test -s conftest$ac_exeext'
7785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786   (eval $ac_try) 2>&5
7787   ac_status=$?
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); }; }; then
7790   ac_cv_func_time=yes
7791 else
7792   echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7794
7795 ac_cv_func_time=no
7796 fi
7797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7798 fi
7799 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7800 echo "${ECHO_T}$ac_cv_func_time" >&6
7801
7802 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7803 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7804 if test "${ac_cv_func_gettimeofday+set}" = set; then
7805   echo $ECHO_N "(cached) $ECHO_C" >&6
7806 else
7807   cat >conftest.$ac_ext <<_ACEOF
7808 #line $LINENO "configure"
7809 /* confdefs.h.  */
7810 _ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h.  */
7814 /* System header to define __stub macros and hopefully few prototypes,
7815     which can conflict with char gettimeofday (); below.
7816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7817     <limits.h> exists even on freestanding compilers.  */
7818 #ifdef __STDC__
7819 # include <limits.h>
7820 #else
7821 # include <assert.h>
7822 #endif
7823 /* Override any gcc2 internal prototype to avoid an error.  */
7824 #ifdef __cplusplus
7825 extern "C"
7826 {
7827 #endif
7828 /* We use char because int might match the return type of a gcc2
7829    builtin and then its argument prototype would still apply.  */
7830 char gettimeofday ();
7831 /* The GNU C library defines this for functions which it implements
7832     to always fail with ENOSYS.  Some functions are actually named
7833     something starting with __ and the normal name is an alias.  */
7834 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7835 choke me
7836 #else
7837 char (*f) () = gettimeofday;
7838 #endif
7839 #ifdef __cplusplus
7840 }
7841 #endif
7842
7843 int
7844 main ()
7845 {
7846 return f != gettimeofday;
7847   ;
7848   return 0;
7849 }
7850 _ACEOF
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7853   (eval $ac_link) 2>&5
7854   ac_status=$?
7855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856   (exit $ac_status); } &&
7857          { ac_try='test -s conftest$ac_exeext'
7858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859   (eval $ac_try) 2>&5
7860   ac_status=$?
7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862   (exit $ac_status); }; }; then
7863   ac_cv_func_gettimeofday=yes
7864 else
7865   echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7867
7868 ac_cv_func_gettimeofday=no
7869 fi
7870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7871 fi
7872 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7873 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7874
7875 echo "$as_me:$LINENO: checking for getopt" >&5
7876 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
7877 if test "${ac_cv_func_getopt+set}" = set; then
7878   echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880   cat >conftest.$ac_ext <<_ACEOF
7881 #line $LINENO "configure"
7882 /* confdefs.h.  */
7883 _ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h.  */
7887 /* System header to define __stub macros and hopefully few prototypes,
7888     which can conflict with char getopt (); below.
7889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7890     <limits.h> exists even on freestanding compilers.  */
7891 #ifdef __STDC__
7892 # include <limits.h>
7893 #else
7894 # include <assert.h>
7895 #endif
7896 /* Override any gcc2 internal prototype to avoid an error.  */
7897 #ifdef __cplusplus
7898 extern "C"
7899 {
7900 #endif
7901 /* We use char because int might match the return type of a gcc2
7902    builtin and then its argument prototype would still apply.  */
7903 char getopt ();
7904 /* The GNU C library defines this for functions which it implements
7905     to always fail with ENOSYS.  Some functions are actually named
7906     something starting with __ and the normal name is an alias.  */
7907 #if defined (__stub_getopt) || defined (__stub___getopt)
7908 choke me
7909 #else
7910 char (*f) () = getopt;
7911 #endif
7912 #ifdef __cplusplus
7913 }
7914 #endif
7915
7916 int
7917 main ()
7918 {
7919 return f != getopt;
7920   ;
7921   return 0;
7922 }
7923 _ACEOF
7924 rm -f conftest.$ac_objext conftest$ac_exeext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7926   (eval $ac_link) 2>&5
7927   ac_status=$?
7928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929   (exit $ac_status); } &&
7930          { ac_try='test -s conftest$ac_exeext'
7931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932   (eval $ac_try) 2>&5
7933   ac_status=$?
7934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935   (exit $ac_status); }; }; then
7936   ac_cv_func_getopt=yes
7937 else
7938   echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7940
7941 ac_cv_func_getopt=no
7942 fi
7943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7944 fi
7945 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
7946 echo "${ECHO_T}$ac_cv_func_getopt" >&6
7947 if test $ac_cv_func_getopt = yes; then
7948    getopt=true
7949 else
7950    getopt=false
7951 fi
7952
7953
7954 if test "${OSTYPE}" = "cygwin" ; then
7955   getopt_long=false
7956 else
7957   echo "$as_me:$LINENO: checking for getopt_long" >&5
7958 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7959 if test "${ac_cv_func_getopt_long+set}" = set; then
7960   echo $ECHO_N "(cached) $ECHO_C" >&6
7961 else
7962   cat >conftest.$ac_ext <<_ACEOF
7963 #line $LINENO "configure"
7964 /* confdefs.h.  */
7965 _ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h.  */
7969 /* System header to define __stub macros and hopefully few prototypes,
7970     which can conflict with char getopt_long (); below.
7971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7972     <limits.h> exists even on freestanding compilers.  */
7973 #ifdef __STDC__
7974 # include <limits.h>
7975 #else
7976 # include <assert.h>
7977 #endif
7978 /* Override any gcc2 internal prototype to avoid an error.  */
7979 #ifdef __cplusplus
7980 extern "C"
7981 {
7982 #endif
7983 /* We use char because int might match the return type of a gcc2
7984    builtin and then its argument prototype would still apply.  */
7985 char getopt_long ();
7986 /* The GNU C library defines this for functions which it implements
7987     to always fail with ENOSYS.  Some functions are actually named
7988     something starting with __ and the normal name is an alias.  */
7989 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
7990 choke me
7991 #else
7992 char (*f) () = getopt_long;
7993 #endif
7994 #ifdef __cplusplus
7995 }
7996 #endif
7997
7998 int
7999 main ()
8000 {
8001 return f != getopt_long;
8002   ;
8003   return 0;
8004 }
8005 _ACEOF
8006 rm -f conftest.$ac_objext conftest$ac_exeext
8007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8008   (eval $ac_link) 2>&5
8009   ac_status=$?
8010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011   (exit $ac_status); } &&
8012          { ac_try='test -s conftest$ac_exeext'
8013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014   (eval $ac_try) 2>&5
8015   ac_status=$?
8016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017   (exit $ac_status); }; }; then
8018   ac_cv_func_getopt_long=yes
8019 else
8020   echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8022
8023 ac_cv_func_getopt_long=no
8024 fi
8025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8026 fi
8027 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
8028 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
8029 if test $ac_cv_func_getopt_long = yes; then
8030    getopt_long=true
8031 else
8032    getopt_long=false
8033 fi
8034
8035 fi
8036
8037 if test "${getopt_long}" = "false" ; then
8038   my_includes="$my_includes -I../getopt"
8039
8040 cat >>confdefs.h <<\_ACEOF
8041 #define HAVE_GETOPT_LONG 1
8042 _ACEOF
8043
8044   ctlibs_base="$ctlibs_base -lgetopt"
8045   LDFLAGS="$LDFLAGS -L../getopt"
8046
8047
8048 if test 1==1; then
8049   INCLUDED_GETOPT_LONG_TRUE=
8050   INCLUDED_GETOPT_LONG_FALSE='#'
8051 else
8052   INCLUDED_GETOPT_LONG_TRUE='#'
8053   INCLUDED_GETOPT_LONG_FALSE=
8054 fi
8055
8056 fi
8057
8058 if test "${readline}" = "true" ; then
8059   ctlibs_base="$ctlibs_base -lreadline"
8060   if test "${ncurses}" = "true"; then
8061     ctlibs_base="$ctlibs_base -lncurses"
8062   elif test "${curses}" = "true"; then
8063     ctlibs_base="$ctlibs_base -lcurses"
8064   fi
8065 fi
8066
8067 echo "$as_me:$LINENO: checking debug" >&5
8068 echo $ECHO_N "checking debug... $ECHO_C" >&6
8069 # Check whether --enable-debug or --disable-debug was given.
8070 if test "${enable_debug+set}" = set; then
8071   enableval="$enable_debug"
8072   case "${enableval}" in
8073   yes) debug=true
8074        echo "$as_me:$LINENO: result: yes" >&5
8075 echo "${ECHO_T}yes" >&6
8076        ;;
8077   no)  debug=false
8078        echo "$as_me:$LINENO: result: no" >&5
8079 echo "${ECHO_T}no" >&6
8080        ;;
8081   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
8082 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
8083        ;;
8084 esac
8085 else
8086   debug=false; echo "$as_me:$LINENO: result: no" >&5
8087 echo "${ECHO_T}no" >&6
8088 fi;
8089
8090
8091 if test "$debug" = "true"; then
8092   DEBUG_TRUE=
8093   DEBUG_FALSE='#'
8094 else
8095   DEBUG_TRUE='#'
8096   DEBUG_FALSE=
8097 fi
8098
8099
8100 if test "$datadir" != "" ; then
8101   CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
8102 fi
8103
8104 if test "$debug" = "true" ; then
8105   CFLAGS="$CFLAGS -g -DDEBUG"
8106
8107 cat >>confdefs.h <<\_ACEOF
8108 #define DEBUG 1
8109 _ACEOF
8110
8111 else
8112   CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
8113
8114 cat >>confdefs.h <<\_ACEOF
8115 #define NDEBUG 1
8116 _ACEOF
8117
8118 fi
8119
8120 if test "${pthread}" = "true" ; then
8121
8122 cat >>confdefs.h <<\_ACEOF
8123 #define HAVE_WXTHREADS 1
8124 _ACEOF
8125
8126 fi
8127
8128 echo "$as_me:$LINENO: checking sstream" >&5
8129 echo $ECHO_N "checking sstream... $ECHO_C" >&6
8130  if  test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
8131      test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
8132      test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
8133
8134 cat >>confdefs.h <<\_ACEOF
8135 #define HAVE_SSTREAM 1
8136 _ACEOF
8137
8138    echo "$as_me:$LINENO: result: yes" >&5
8139 echo "${ECHO_T}yes" >&6
8140   else
8141    echo "$as_me:$LINENO: result: no" >&5
8142 echo "${ECHO_T}no" >&6
8143  fi
8144
8145
8146 CFLAGS="$CFLAGS -Wall"
8147 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
8148 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
8149 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
8150 if test "${enable_verbose_warnings+set}" = set; then
8151   enableval="$enable_verbose_warnings"
8152    case "$enableval" in
8153   yes)
8154     echo "$as_me:$LINENO: result: yes" >&5
8155 echo "${ECHO_T}yes" >&6
8156     CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
8157     ;;
8158   *)
8159     echo "$as_me:$LINENO: result: no" >&5
8160 echo "${ECHO_T}no" >&6
8161     ;;
8162   esac
8163 else
8164   echo "$as_me:$LINENO: result: no" >&5
8165 echo "${ECHO_T}no" >&6
8166
8167 fi;
8168
8169 echo "$as_me:$LINENO: checking static executables" >&5
8170 echo $ECHO_N "checking static executables... $ECHO_C" >&6
8171 # Check whether --enable-static or --disable-static was given.
8172 if test "${enable_static+set}" = set; then
8173   enableval="$enable_static"
8174    case "$enableval" in
8175   yes)
8176     echo "$as_me:$LINENO: result: yes" >&5
8177 echo "${ECHO_T}yes" >&6
8178     CFLAGS="$CFLAGS --static"
8179     ;;
8180   *)
8181     echo "$as_me:$LINENO: result: no" >&5
8182 echo "${ECHO_T}no" >&6
8183     ;;
8184   esac
8185 else
8186   echo "$as_me:$LINENO: result: no" >&5
8187 echo "${ECHO_T}no" >&6
8188
8189 fi;
8190
8191
8192 # Check whether --with-lam or --without-lam was given.
8193 if test "${with_lam+set}" = set; then
8194   withval="$with_lam"
8195       if test "$withval" != "no" ; then
8196          trylamdir=$withval
8197      fi
8198
8199 fi;
8200
8201 if test "$withval" != "no" ; then
8202   if test "$prefix" != "NONE" ; then
8203      trylamdir="$trylamdir $prefix"
8204   fi
8205
8206   echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
8207 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
8208   for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
8209     if test -x "$testlamdir/bin/hcp" ; then
8210       if test "$testlamdir" != "/usr"; then
8211         LDFLAGS="$LDFLAGS -L$testlamdir/lib"
8212         CFLAGS="$CFLAGS -I$testlamdir/include"
8213       fi
8214       CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
8215       lamdir="$testlamdir"
8216
8217       mpienable="true"
8218
8219       break
8220     fi
8221   done
8222   echo "$as_me:$LINENO: result: $lamdir" >&5
8223 echo "${ECHO_T}$lamdir" >&6
8224 else
8225   echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6
8227 fi
8228
8229
8230
8231 # Check whether --with-ctn or --without-ctn was given.
8232 if test "${with_ctn+set}" = set; then
8233   withval="$with_ctn"
8234       if test "$withval" != "no" ; then
8235          tryctndir=$withval
8236      fi
8237
8238 fi;
8239
8240 if test "$withval" == "no" -o "$withval" == "NONE" ; then
8241   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8242 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8243   echo "$as_me:$LINENO: result: disabled" >&5
8244 echo "${ECHO_T}disabled" >&6
8245 else
8246   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8247 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8248   for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
8249     if test -f "$testctndir/libctn.a" ; then
8250       LDFLAGS="$LDFLAGS -L$testctndir"
8251       ctnlib="true"
8252       break
8253     fi
8254   done
8255   for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
8256     if test -f "$testctndir/ctn_os.h" ; then
8257       CFLAGS="$CFLAGS -I$testctndir"
8258       ctninclude="true"
8259       break
8260     fi
8261   done
8262   if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
8263       ctn="true"
8264
8265 cat >>confdefs.h <<\_ACEOF
8266 #define HAVE_CTN_DICOM 1
8267 _ACEOF
8268
8269       echo "$as_me:$LINENO: result: yes" >&5
8270 echo "${ECHO_T}yes" >&6
8271   else
8272     echo "$as_me:$LINENO: result: no" >&5
8273 echo "${ECHO_T}no" >&6
8274   fi
8275 fi
8276
8277 echo "$as_me:$LINENO: checking for CPU specification" >&5
8278 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6
8279
8280 # Check whether --with-mcpu or --without-mcpu was given.
8281 if test "${with_mcpu+set}" = set; then
8282   withval="$with_mcpu"
8283
8284 fi;
8285
8286 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
8287   echo "$as_me:$LINENO: result: no" >&5
8288 echo "${ECHO_T}no" >&6
8289 else
8290   echo "$as_me:$LINENO: result: $withval" >&5
8291 echo "${ECHO_T}$withval" >&6
8292   CFLAGS="$CFLAGS -mcpu=$withval"
8293 fi
8294
8295 echo "$as_me:$LINENO: checking for web access" >&5
8296 echo $ECHO_N "checking for web access... $ECHO_C" >&6
8297
8298 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
8299 if test "${with_cgibin_dir+set}" = set; then
8300   withval="$with_cgibin_dir"
8301    cgibindir=$withval ;
8302 fi;
8303
8304
8305 # Check whether --with-cgibin-url or --without-cgibin-url was given.
8306 if test "${with_cgibin_url+set}" = set; then
8307   withval="$with_cgibin_url"
8308    cgibinurl=$withval ;
8309 fi;
8310
8311
8312 # Check whether --with-webdata-dir or --without-webdata-dir was given.
8313 if test "${with_webdata_dir+set}" = set; then
8314   withval="$with_webdata_dir"
8315    webdatadir=$withval ;
8316 fi;
8317
8318
8319 # Check whether --with-webdata-url or --without-webdata-url was given.
8320 if test "${with_webdata_url+set}" = set; then
8321   withval="$with_webdata_url"
8322    webdataurl=$withval ;
8323 fi;
8324
8325
8326 # Check whether --with-html-dir or --without-html-dir was given.
8327 if test "${with_html_dir+set}" = set; then
8328   withval="$with_html_dir"
8329    htmldir=$withval ;
8330 fi;
8331
8332 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
8333   cgiprograms="ctsim.cgi ctsim.conf"
8334
8335 fi
8336
8337 if test -n "$htmldir" ; then
8338   htmldata=simulate.html
8339
8340 fi
8341
8342
8343 if test -n "$htmldir"; then
8344   USE_HTML_TRUE=
8345   USE_HTML_FALSE='#'
8346 else
8347   USE_HTML_TRUE='#'
8348   USE_HTML_FALSE=
8349 fi
8350
8351
8352 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
8353   webenabled=true
8354
8355   echo "$as_me:$LINENO: result: yes" >&5
8356 echo "${ECHO_T}yes" >&6
8357   if test -z "$cgibindir" ; then
8358     { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
8359 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
8360    { (exit 1); exit 1; }; }
8361   elif test -z "$cgibinurl" ; then
8362     { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
8363 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
8364    { (exit 1); exit 1; }; }
8365   elif test -z "$webdatadir" ; then
8366     { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
8367 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
8368    { (exit 1); exit 1; }; }
8369   elif test -z "$webdataurl" ; then
8370     { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
8371 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
8372    { (exit 1); exit 1; }; }
8373   elif test -z "$htmldir" ; then
8374     { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
8375 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
8376    { (exit 1); exit 1; }; }
8377   fi
8378 else
8379   echo "$as_me:$LINENO: result: no" >&5
8380 echo "${ECHO_T}no" >&6
8381 fi
8382
8383
8384
8385 if test -n "$lamdir"; then
8386   USE_LAM_TRUE=
8387   USE_LAM_FALSE='#'
8388 else
8389   USE_LAM_TRUE='#'
8390   USE_LAM_FALSE=
8391 fi
8392
8393
8394
8395 echo "$as_me:$LINENO: checking for X" >&5
8396 echo $ECHO_N "checking for X... $ECHO_C" >&6
8397
8398
8399 # Check whether --with-x or --without-x was given.
8400 if test "${with_x+set}" = set; then
8401   withval="$with_x"
8402
8403 fi;
8404 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8405 if test "x$with_x" = xno; then
8406   # The user explicitly disabled X.
8407   have_x=disabled
8408 else
8409   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8410     # Both variables are already set.
8411     have_x=yes
8412   else
8413     if test "${ac_cv_have_x+set}" = set; then
8414   echo $ECHO_N "(cached) $ECHO_C" >&6
8415 else
8416   # One or both of the vars are not set, and there is no cached value.
8417 ac_x_includes=no ac_x_libraries=no
8418 rm -fr conftest.dir
8419 if mkdir conftest.dir; then
8420   cd conftest.dir
8421   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8422   cat >Imakefile <<'_ACEOF'
8423 acfindx:
8424         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8425 _ACEOF
8426   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8427     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8428     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8429     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8430     for ac_extension in a so sl; do
8431       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8432          test -f $ac_im_libdir/libX11.$ac_extension; then
8433         ac_im_usrlibdir=$ac_im_libdir; break
8434       fi
8435     done
8436     # Screen out bogus values from the imake configuration.  They are
8437     # bogus both because they are the default anyway, and because
8438     # using them would break gcc on systems where it needs fixed includes.
8439     case $ac_im_incroot in
8440         /usr/include) ;;
8441         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8442     esac
8443     case $ac_im_usrlibdir in
8444         /usr/lib | /lib) ;;
8445         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8446     esac
8447   fi
8448   cd ..
8449   rm -fr conftest.dir
8450 fi
8451
8452 # Standard set of common directories for X headers.
8453 # Check X11 before X11Rn because it is often a symlink to the current release.
8454 ac_x_header_dirs='
8455 /usr/X11/include
8456 /usr/X11R6/include
8457 /usr/X11R5/include
8458 /usr/X11R4/include
8459
8460 /usr/include/X11
8461 /usr/include/X11R6
8462 /usr/include/X11R5
8463 /usr/include/X11R4
8464
8465 /usr/local/X11/include
8466 /usr/local/X11R6/include
8467 /usr/local/X11R5/include
8468 /usr/local/X11R4/include
8469
8470 /usr/local/include/X11
8471 /usr/local/include/X11R6
8472 /usr/local/include/X11R5
8473 /usr/local/include/X11R4
8474
8475 /usr/X386/include
8476 /usr/x386/include
8477 /usr/XFree86/include/X11
8478
8479 /usr/include
8480 /usr/local/include
8481 /usr/unsupported/include
8482 /usr/athena/include
8483 /usr/local/x11r5/include
8484 /usr/lpp/Xamples/include
8485
8486 /usr/openwin/include
8487 /usr/openwin/share/include'
8488
8489 if test "$ac_x_includes" = no; then
8490   # Guess where to find include files, by looking for Intrinsic.h.
8491   # First, try using that file with no special directory specified.
8492   cat >conftest.$ac_ext <<_ACEOF
8493 #line $LINENO "configure"
8494 /* confdefs.h.  */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h.  */
8499 #include <X11/Intrinsic.h>
8500 _ACEOF
8501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8503   ac_status=$?
8504   grep -v '^ *+' conftest.er1 >conftest.err
8505   rm -f conftest.er1
8506   cat conftest.err >&5
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); } >/dev/null; then
8509   if test -s conftest.err; then
8510     ac_cpp_err=$ac_c_preproc_warn_flag
8511   else
8512     ac_cpp_err=
8513   fi
8514 else
8515   ac_cpp_err=yes
8516 fi
8517 if test -z "$ac_cpp_err"; then
8518   # We can compile using X headers with no special include directory.
8519 ac_x_includes=
8520 else
8521   echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8523
8524   for ac_dir in $ac_x_header_dirs; do
8525   if test -r "$ac_dir/X11/Intrinsic.h"; then
8526     ac_x_includes=$ac_dir
8527     break
8528   fi
8529 done
8530 fi
8531 rm -f conftest.err conftest.$ac_ext
8532 fi # $ac_x_includes = no
8533
8534 if test "$ac_x_libraries" = no; then
8535   # Check for the libraries.
8536   # See if we find them without any special options.
8537   # Don't add to $LIBS permanently.
8538   ac_save_LIBS=$LIBS
8539   LIBS="-lXt $LIBS"
8540   cat >conftest.$ac_ext <<_ACEOF
8541 #line $LINENO "configure"
8542 /* confdefs.h.  */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h.  */
8547 #include <X11/Intrinsic.h>
8548 int
8549 main ()
8550 {
8551 XtMalloc (0)
8552   ;
8553   return 0;
8554 }
8555 _ACEOF
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558   (eval $ac_link) 2>&5
8559   ac_status=$?
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); } &&
8562          { ac_try='test -s conftest$ac_exeext'
8563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564   (eval $ac_try) 2>&5
8565   ac_status=$?
8566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   (exit $ac_status); }; }; then
8568   LIBS=$ac_save_LIBS
8569 # We can link X programs with no special library path.
8570 ac_x_libraries=
8571 else
8572   echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8574
8575 LIBS=$ac_save_LIBS
8576 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8577 do
8578   # Don't even attempt the hair of trying to link an X program!
8579   for ac_extension in a so sl; do
8580     if test -r $ac_dir/libXt.$ac_extension; then
8581       ac_x_libraries=$ac_dir
8582       break 2
8583     fi
8584   done
8585 done
8586 fi
8587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8588 fi # $ac_x_libraries = no
8589
8590 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8591   # Didn't find X anywhere.  Cache the known absence of X.
8592   ac_cv_have_x="have_x=no"
8593 else
8594   # Record where we found X for the cache.
8595   ac_cv_have_x="have_x=yes \
8596                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8597 fi
8598 fi
8599
8600   fi
8601   eval "$ac_cv_have_x"
8602 fi # $with_x != no
8603
8604 if test "$have_x" != yes; then
8605   echo "$as_me:$LINENO: result: $have_x" >&5
8606 echo "${ECHO_T}$have_x" >&6
8607   no_x=yes
8608 else
8609   # If each of the values was on the command line, it overrides each guess.
8610   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8611   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8612   # Update the cache value to reflect the command line values.
8613   ac_cv_have_x="have_x=yes \
8614                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8615   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8616 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8617 fi
8618
8619 if test "$no_x" = yes; then
8620   # Not all programs may use this symbol, but it does not hurt to define it.
8621
8622 cat >>confdefs.h <<\_ACEOF
8623 #define X_DISPLAY_MISSING 1
8624 _ACEOF
8625
8626   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8627 else
8628   if test -n "$x_includes"; then
8629     X_CFLAGS="$X_CFLAGS -I$x_includes"
8630   fi
8631
8632   # It would also be nice to do this for all -L options, not just this one.
8633   if test -n "$x_libraries"; then
8634     X_LIBS="$X_LIBS -L$x_libraries"
8635     # For Solaris; some versions of Sun CC require a space after -R and
8636     # others require no space.  Words are not sufficient . . . .
8637     case `(uname -sr) 2>/dev/null` in
8638     "SunOS 5"*)
8639       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8640 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8641       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8642       cat >conftest.$ac_ext <<_ACEOF
8643 #line $LINENO "configure"
8644 /* confdefs.h.  */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h.  */
8649
8650 int
8651 main ()
8652 {
8653
8654   ;
8655   return 0;
8656 }
8657 _ACEOF
8658 rm -f conftest.$ac_objext conftest$ac_exeext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8660   (eval $ac_link) 2>&5
8661   ac_status=$?
8662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); } &&
8664          { ac_try='test -s conftest$ac_exeext'
8665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666   (eval $ac_try) 2>&5
8667   ac_status=$?
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   (exit $ac_status); }; }; then
8670   ac_R_nospace=yes
8671 else
8672   echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8674
8675 ac_R_nospace=no
8676 fi
8677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8678       if test $ac_R_nospace = yes; then
8679         echo "$as_me:$LINENO: result: no" >&5
8680 echo "${ECHO_T}no" >&6
8681         X_LIBS="$X_LIBS -R$x_libraries"
8682       else
8683         LIBS="$ac_xsave_LIBS -R $x_libraries"
8684         cat >conftest.$ac_ext <<_ACEOF
8685 #line $LINENO "configure"
8686 /* confdefs.h.  */
8687 _ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h.  */
8691
8692 int
8693 main ()
8694 {
8695
8696   ;
8697   return 0;
8698 }
8699 _ACEOF
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702   (eval $ac_link) 2>&5
8703   ac_status=$?
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); } &&
8706          { ac_try='test -s conftest$ac_exeext'
8707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708   (eval $ac_try) 2>&5
8709   ac_status=$?
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); }; }; then
8712   ac_R_space=yes
8713 else
8714   echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8716
8717 ac_R_space=no
8718 fi
8719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8720         if test $ac_R_space = yes; then
8721           echo "$as_me:$LINENO: result: yes" >&5
8722 echo "${ECHO_T}yes" >&6
8723           X_LIBS="$X_LIBS -R $x_libraries"
8724         else
8725           echo "$as_me:$LINENO: result: neither works" >&5
8726 echo "${ECHO_T}neither works" >&6
8727         fi
8728       fi
8729       LIBS=$ac_xsave_LIBS
8730     esac
8731   fi
8732
8733   # Check for system-dependent libraries X programs must link with.
8734   # Do this before checking for the system-independent R6 libraries
8735   # (-lICE), since we may need -lsocket or whatever for X linking.
8736
8737   if test "$ISC" = yes; then
8738     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8739   else
8740     # Martyn Johnson says this is needed for Ultrix, if the X
8741     # libraries were built with DECnet support.  And Karl Berry says
8742     # the Alpha needs dnet_stub (dnet does not exist).
8743     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8744     cat >conftest.$ac_ext <<_ACEOF
8745 #line $LINENO "configure"
8746 /* confdefs.h.  */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h.  */
8751
8752 /* Override any gcc2 internal prototype to avoid an error.  */
8753 #ifdef __cplusplus
8754 extern "C"
8755 #endif
8756 /* We use char because int might match the return type of a gcc2
8757    builtin and then its argument prototype would still apply.  */
8758 char XOpenDisplay ();
8759 int
8760 main ()
8761 {
8762 XOpenDisplay ();
8763   ;
8764   return 0;
8765 }
8766 _ACEOF
8767 rm -f conftest.$ac_objext conftest$ac_exeext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8769   (eval $ac_link) 2>&5
8770   ac_status=$?
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); } &&
8773          { ac_try='test -s conftest$ac_exeext'
8774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775   (eval $ac_try) 2>&5
8776   ac_status=$?
8777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778   (exit $ac_status); }; }; then
8779   :
8780 else
8781   echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8783
8784 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8785 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8786 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8787   echo $ECHO_N "(cached) $ECHO_C" >&6
8788 else
8789   ac_check_lib_save_LIBS=$LIBS
8790 LIBS="-ldnet  $LIBS"
8791 cat >conftest.$ac_ext <<_ACEOF
8792 #line $LINENO "configure"
8793 /* confdefs.h.  */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h.  */
8798
8799 /* Override any gcc2 internal prototype to avoid an error.  */
8800 #ifdef __cplusplus
8801 extern "C"
8802 #endif
8803 /* We use char because int might match the return type of a gcc2
8804    builtin and then its argument prototype would still apply.  */
8805 char dnet_ntoa ();
8806 int
8807 main ()
8808 {
8809 dnet_ntoa ();
8810   ;
8811   return 0;
8812 }
8813 _ACEOF
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816   (eval $ac_link) 2>&5
8817   ac_status=$?
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); } &&
8820          { ac_try='test -s conftest$ac_exeext'
8821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822   (eval $ac_try) 2>&5
8823   ac_status=$?
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); }; }; then
8826   ac_cv_lib_dnet_dnet_ntoa=yes
8827 else
8828   echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8830
8831 ac_cv_lib_dnet_dnet_ntoa=no
8832 fi
8833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8834 LIBS=$ac_check_lib_save_LIBS
8835 fi
8836 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8837 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8838 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8839   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8840 fi
8841
8842     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8843       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8844 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8845 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8846   echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848   ac_check_lib_save_LIBS=$LIBS
8849 LIBS="-ldnet_stub  $LIBS"
8850 cat >conftest.$ac_ext <<_ACEOF
8851 #line $LINENO "configure"
8852 /* confdefs.h.  */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h.  */
8857
8858 /* Override any gcc2 internal prototype to avoid an error.  */
8859 #ifdef __cplusplus
8860 extern "C"
8861 #endif
8862 /* We use char because int might match the return type of a gcc2
8863    builtin and then its argument prototype would still apply.  */
8864 char dnet_ntoa ();
8865 int
8866 main ()
8867 {
8868 dnet_ntoa ();
8869   ;
8870   return 0;
8871 }
8872 _ACEOF
8873 rm -f conftest.$ac_objext conftest$ac_exeext
8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875   (eval $ac_link) 2>&5
8876   ac_status=$?
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); } &&
8879          { ac_try='test -s conftest$ac_exeext'
8880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881   (eval $ac_try) 2>&5
8882   ac_status=$?
8883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884   (exit $ac_status); }; }; then
8885   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8886 else
8887   echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8889
8890 ac_cv_lib_dnet_stub_dnet_ntoa=no
8891 fi
8892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8893 LIBS=$ac_check_lib_save_LIBS
8894 fi
8895 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8896 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8897 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8898   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8899 fi
8900
8901     fi
8902 fi
8903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8904     LIBS="$ac_xsave_LIBS"
8905
8906     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8907     # to get the SysV transport functions.
8908     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8909     # needs -lnsl.
8910     # The nsl library prevents programs from opening the X display
8911     # on Irix 5.2, according to T.E. Dickey.
8912     # The functions gethostbyname, getservbyname, and inet_addr are
8913     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8914     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8915 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8916 if test "${ac_cv_func_gethostbyname+set}" = set; then
8917   echo $ECHO_N "(cached) $ECHO_C" >&6
8918 else
8919   cat >conftest.$ac_ext <<_ACEOF
8920 #line $LINENO "configure"
8921 /* confdefs.h.  */
8922 _ACEOF
8923 cat confdefs.h >>conftest.$ac_ext
8924 cat >>conftest.$ac_ext <<_ACEOF
8925 /* end confdefs.h.  */
8926 /* System header to define __stub macros and hopefully few prototypes,
8927     which can conflict with char gethostbyname (); below.
8928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8929     <limits.h> exists even on freestanding compilers.  */
8930 #ifdef __STDC__
8931 # include <limits.h>
8932 #else
8933 # include <assert.h>
8934 #endif
8935 /* Override any gcc2 internal prototype to avoid an error.  */
8936 #ifdef __cplusplus
8937 extern "C"
8938 {
8939 #endif
8940 /* We use char because int might match the return type of a gcc2
8941    builtin and then its argument prototype would still apply.  */
8942 char gethostbyname ();
8943 /* The GNU C library defines this for functions which it implements
8944     to always fail with ENOSYS.  Some functions are actually named
8945     something starting with __ and the normal name is an alias.  */
8946 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8947 choke me
8948 #else
8949 char (*f) () = gethostbyname;
8950 #endif
8951 #ifdef __cplusplus
8952 }
8953 #endif
8954
8955 int
8956 main ()
8957 {
8958 return f != gethostbyname;
8959   ;
8960   return 0;
8961 }
8962 _ACEOF
8963 rm -f conftest.$ac_objext conftest$ac_exeext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8965   (eval $ac_link) 2>&5
8966   ac_status=$?
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); } &&
8969          { ac_try='test -s conftest$ac_exeext'
8970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971   (eval $ac_try) 2>&5
8972   ac_status=$?
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); }; }; then
8975   ac_cv_func_gethostbyname=yes
8976 else
8977   echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8979
8980 ac_cv_func_gethostbyname=no
8981 fi
8982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8983 fi
8984 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8985 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8986
8987     if test $ac_cv_func_gethostbyname = no; then
8988       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8989 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8990 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8991   echo $ECHO_N "(cached) $ECHO_C" >&6
8992 else
8993   ac_check_lib_save_LIBS=$LIBS
8994 LIBS="-lnsl  $LIBS"
8995 cat >conftest.$ac_ext <<_ACEOF
8996 #line $LINENO "configure"
8997 /* confdefs.h.  */
8998 _ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h.  */
9002
9003 /* Override any gcc2 internal prototype to avoid an error.  */
9004 #ifdef __cplusplus
9005 extern "C"
9006 #endif
9007 /* We use char because int might match the return type of a gcc2
9008    builtin and then its argument prototype would still apply.  */
9009 char gethostbyname ();
9010 int
9011 main ()
9012 {
9013 gethostbyname ();
9014   ;
9015   return 0;
9016 }
9017 _ACEOF
9018 rm -f conftest.$ac_objext conftest$ac_exeext
9019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9020   (eval $ac_link) 2>&5
9021   ac_status=$?
9022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023   (exit $ac_status); } &&
9024          { ac_try='test -s conftest$ac_exeext'
9025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026   (eval $ac_try) 2>&5
9027   ac_status=$?
9028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029   (exit $ac_status); }; }; then
9030   ac_cv_lib_nsl_gethostbyname=yes
9031 else
9032   echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9034
9035 ac_cv_lib_nsl_gethostbyname=no
9036 fi
9037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9038 LIBS=$ac_check_lib_save_LIBS
9039 fi
9040 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9041 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9042 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9043   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9044 fi
9045
9046       if test $ac_cv_lib_nsl_gethostbyname = no; then
9047         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9048 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9049 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9050   echo $ECHO_N "(cached) $ECHO_C" >&6
9051 else
9052   ac_check_lib_save_LIBS=$LIBS
9053 LIBS="-lbsd  $LIBS"
9054 cat >conftest.$ac_ext <<_ACEOF
9055 #line $LINENO "configure"
9056 /* confdefs.h.  */
9057 _ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h.  */
9061
9062 /* Override any gcc2 internal prototype to avoid an error.  */
9063 #ifdef __cplusplus
9064 extern "C"
9065 #endif
9066 /* We use char because int might match the return type of a gcc2
9067    builtin and then its argument prototype would still apply.  */
9068 char gethostbyname ();
9069 int
9070 main ()
9071 {
9072 gethostbyname ();
9073   ;
9074   return 0;
9075 }
9076 _ACEOF
9077 rm -f conftest.$ac_objext conftest$ac_exeext
9078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9079   (eval $ac_link) 2>&5
9080   ac_status=$?
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); } &&
9083          { ac_try='test -s conftest$ac_exeext'
9084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085   (eval $ac_try) 2>&5
9086   ac_status=$?
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); }; }; then
9089   ac_cv_lib_bsd_gethostbyname=yes
9090 else
9091   echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9093
9094 ac_cv_lib_bsd_gethostbyname=no
9095 fi
9096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9097 LIBS=$ac_check_lib_save_LIBS
9098 fi
9099 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9100 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9101 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9102   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9103 fi
9104
9105       fi
9106     fi
9107
9108     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9109     # socket/setsockopt and other routines are undefined under SCO ODT
9110     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9111     # on later versions), says Simon Leinen: it contains gethostby*
9112     # variants that don't use the name server (or something).  -lsocket
9113     # must be given before -lnsl if both are needed.  We assume that
9114     # if connect needs -lnsl, so does gethostbyname.
9115     echo "$as_me:$LINENO: checking for connect" >&5
9116 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9117 if test "${ac_cv_func_connect+set}" = set; then
9118   echo $ECHO_N "(cached) $ECHO_C" >&6
9119 else
9120   cat >conftest.$ac_ext <<_ACEOF
9121 #line $LINENO "configure"
9122 /* confdefs.h.  */
9123 _ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h.  */
9127 /* System header to define __stub macros and hopefully few prototypes,
9128     which can conflict with char connect (); below.
9129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9130     <limits.h> exists even on freestanding compilers.  */
9131 #ifdef __STDC__
9132 # include <limits.h>
9133 #else
9134 # include <assert.h>
9135 #endif
9136 /* Override any gcc2 internal prototype to avoid an error.  */
9137 #ifdef __cplusplus
9138 extern "C"
9139 {
9140 #endif
9141 /* We use char because int might match the return type of a gcc2
9142    builtin and then its argument prototype would still apply.  */
9143 char connect ();
9144 /* The GNU C library defines this for functions which it implements
9145     to always fail with ENOSYS.  Some functions are actually named
9146     something starting with __ and the normal name is an alias.  */
9147 #if defined (__stub_connect) || defined (__stub___connect)
9148 choke me
9149 #else
9150 char (*f) () = connect;
9151 #endif
9152 #ifdef __cplusplus
9153 }
9154 #endif
9155
9156 int
9157 main ()
9158 {
9159 return f != connect;
9160   ;
9161   return 0;
9162 }
9163 _ACEOF
9164 rm -f conftest.$ac_objext conftest$ac_exeext
9165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9166   (eval $ac_link) 2>&5
9167   ac_status=$?
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); } &&
9170          { ac_try='test -s conftest$ac_exeext'
9171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172   (eval $ac_try) 2>&5
9173   ac_status=$?
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); }; }; then
9176   ac_cv_func_connect=yes
9177 else
9178   echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9180
9181 ac_cv_func_connect=no
9182 fi
9183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9184 fi
9185 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9186 echo "${ECHO_T}$ac_cv_func_connect" >&6
9187
9188     if test $ac_cv_func_connect = no; then
9189       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9190 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9191 if test "${ac_cv_lib_socket_connect+set}" = set; then
9192   echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194   ac_check_lib_save_LIBS=$LIBS
9195 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9196 cat >conftest.$ac_ext <<_ACEOF
9197 #line $LINENO "configure"
9198 /* confdefs.h.  */
9199 _ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h.  */
9203
9204 /* Override any gcc2 internal prototype to avoid an error.  */
9205 #ifdef __cplusplus
9206 extern "C"
9207 #endif
9208 /* We use char because int might match the return type of a gcc2
9209    builtin and then its argument prototype would still apply.  */
9210 char connect ();
9211 int
9212 main ()
9213 {
9214 connect ();
9215   ;
9216   return 0;
9217 }
9218 _ACEOF
9219 rm -f conftest.$ac_objext conftest$ac_exeext
9220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9221   (eval $ac_link) 2>&5
9222   ac_status=$?
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); } &&
9225          { ac_try='test -s conftest$ac_exeext'
9226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227   (eval $ac_try) 2>&5
9228   ac_status=$?
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); }; }; then
9231   ac_cv_lib_socket_connect=yes
9232 else
9233   echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9235
9236 ac_cv_lib_socket_connect=no
9237 fi
9238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9239 LIBS=$ac_check_lib_save_LIBS
9240 fi
9241 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9242 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9243 if test $ac_cv_lib_socket_connect = yes; then
9244   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9245 fi
9246
9247     fi
9248
9249     # Guillermo Gomez says -lposix is necessary on A/UX.
9250     echo "$as_me:$LINENO: checking for remove" >&5
9251 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9252 if test "${ac_cv_func_remove+set}" = set; then
9253   echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255   cat >conftest.$ac_ext <<_ACEOF
9256 #line $LINENO "configure"
9257 /* confdefs.h.  */
9258 _ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h.  */
9262 /* System header to define __stub macros and hopefully few prototypes,
9263     which can conflict with char remove (); below.
9264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9265     <limits.h> exists even on freestanding compilers.  */
9266 #ifdef __STDC__
9267 # include <limits.h>
9268 #else
9269 # include <assert.h>
9270 #endif
9271 /* Override any gcc2 internal prototype to avoid an error.  */
9272 #ifdef __cplusplus
9273 extern "C"
9274 {
9275 #endif
9276 /* We use char because int might match the return type of a gcc2
9277    builtin and then its argument prototype would still apply.  */
9278 char remove ();
9279 /* The GNU C library defines this for functions which it implements
9280     to always fail with ENOSYS.  Some functions are actually named
9281     something starting with __ and the normal name is an alias.  */
9282 #if defined (__stub_remove) || defined (__stub___remove)
9283 choke me
9284 #else
9285 char (*f) () = remove;
9286 #endif
9287 #ifdef __cplusplus
9288 }
9289 #endif
9290
9291 int
9292 main ()
9293 {
9294 return f != remove;
9295   ;
9296   return 0;
9297 }
9298 _ACEOF
9299 rm -f conftest.$ac_objext conftest$ac_exeext
9300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9301   (eval $ac_link) 2>&5
9302   ac_status=$?
9303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304   (exit $ac_status); } &&
9305          { ac_try='test -s conftest$ac_exeext'
9306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307   (eval $ac_try) 2>&5
9308   ac_status=$?
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); }; }; then
9311   ac_cv_func_remove=yes
9312 else
9313   echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316 ac_cv_func_remove=no
9317 fi
9318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9319 fi
9320 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9321 echo "${ECHO_T}$ac_cv_func_remove" >&6
9322
9323     if test $ac_cv_func_remove = no; then
9324       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9325 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9326 if test "${ac_cv_lib_posix_remove+set}" = set; then
9327   echo $ECHO_N "(cached) $ECHO_C" >&6
9328 else
9329   ac_check_lib_save_LIBS=$LIBS
9330 LIBS="-lposix  $LIBS"
9331 cat >conftest.$ac_ext <<_ACEOF
9332 #line $LINENO "configure"
9333 /* confdefs.h.  */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h.  */
9338
9339 /* Override any gcc2 internal prototype to avoid an error.  */
9340 #ifdef __cplusplus
9341 extern "C"
9342 #endif
9343 /* We use char because int might match the return type of a gcc2
9344    builtin and then its argument prototype would still apply.  */
9345 char remove ();
9346 int
9347 main ()
9348 {
9349 remove ();
9350   ;
9351   return 0;
9352 }
9353 _ACEOF
9354 rm -f conftest.$ac_objext conftest$ac_exeext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9356   (eval $ac_link) 2>&5
9357   ac_status=$?
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); } &&
9360          { ac_try='test -s conftest$ac_exeext'
9361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362   (eval $ac_try) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); }; }; then
9366   ac_cv_lib_posix_remove=yes
9367 else
9368   echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9370
9371 ac_cv_lib_posix_remove=no
9372 fi
9373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9374 LIBS=$ac_check_lib_save_LIBS
9375 fi
9376 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9377 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9378 if test $ac_cv_lib_posix_remove = yes; then
9379   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9380 fi
9381
9382     fi
9383
9384     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9385     echo "$as_me:$LINENO: checking for shmat" >&5
9386 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9387 if test "${ac_cv_func_shmat+set}" = set; then
9388   echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390   cat >conftest.$ac_ext <<_ACEOF
9391 #line $LINENO "configure"
9392 /* confdefs.h.  */
9393 _ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h.  */
9397 /* System header to define __stub macros and hopefully few prototypes,
9398     which can conflict with char shmat (); below.
9399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9400     <limits.h> exists even on freestanding compilers.  */
9401 #ifdef __STDC__
9402 # include <limits.h>
9403 #else
9404 # include <assert.h>
9405 #endif
9406 /* Override any gcc2 internal prototype to avoid an error.  */
9407 #ifdef __cplusplus
9408 extern "C"
9409 {
9410 #endif
9411 /* We use char because int might match the return type of a gcc2
9412    builtin and then its argument prototype would still apply.  */
9413 char shmat ();
9414 /* The GNU C library defines this for functions which it implements
9415     to always fail with ENOSYS.  Some functions are actually named
9416     something starting with __ and the normal name is an alias.  */
9417 #if defined (__stub_shmat) || defined (__stub___shmat)
9418 choke me
9419 #else
9420 char (*f) () = shmat;
9421 #endif
9422 #ifdef __cplusplus
9423 }
9424 #endif
9425
9426 int
9427 main ()
9428 {
9429 return f != shmat;
9430   ;
9431   return 0;
9432 }
9433 _ACEOF
9434 rm -f conftest.$ac_objext conftest$ac_exeext
9435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436   (eval $ac_link) 2>&5
9437   ac_status=$?
9438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); } &&
9440          { ac_try='test -s conftest$ac_exeext'
9441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442   (eval $ac_try) 2>&5
9443   ac_status=$?
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); }; }; then
9446   ac_cv_func_shmat=yes
9447 else
9448   echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9450
9451 ac_cv_func_shmat=no
9452 fi
9453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9454 fi
9455 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9456 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9457
9458     if test $ac_cv_func_shmat = no; then
9459       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9460 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9461 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9462   echo $ECHO_N "(cached) $ECHO_C" >&6
9463 else
9464   ac_check_lib_save_LIBS=$LIBS
9465 LIBS="-lipc  $LIBS"
9466 cat >conftest.$ac_ext <<_ACEOF
9467 #line $LINENO "configure"
9468 /* confdefs.h.  */
9469 _ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h.  */
9473
9474 /* Override any gcc2 internal prototype to avoid an error.  */
9475 #ifdef __cplusplus
9476 extern "C"
9477 #endif
9478 /* We use char because int might match the return type of a gcc2
9479    builtin and then its argument prototype would still apply.  */
9480 char shmat ();
9481 int
9482 main ()
9483 {
9484 shmat ();
9485   ;
9486   return 0;
9487 }
9488 _ACEOF
9489 rm -f conftest.$ac_objext conftest$ac_exeext
9490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9491   (eval $ac_link) 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); } &&
9495          { ac_try='test -s conftest$ac_exeext'
9496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497   (eval $ac_try) 2>&5
9498   ac_status=$?
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); }; }; then
9501   ac_cv_lib_ipc_shmat=yes
9502 else
9503   echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9505
9506 ac_cv_lib_ipc_shmat=no
9507 fi
9508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9509 LIBS=$ac_check_lib_save_LIBS
9510 fi
9511 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9512 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9513 if test $ac_cv_lib_ipc_shmat = yes; then
9514   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9515 fi
9516
9517     fi
9518   fi
9519
9520   # Check for libraries that X11R6 Xt/Xaw programs need.
9521   ac_save_LDFLAGS=$LDFLAGS
9522   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9523   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9524   # check for ICE first), but we must link in the order -lSM -lICE or
9525   # we get undefined symbols.  So assume we have SM if we have ICE.
9526   # These have to be linked with before -lX11, unlike the other
9527   # libraries we check for below, so use a different variable.
9528   # John Interrante, Karl Berry
9529   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9530 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9531 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9532   echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534   ac_check_lib_save_LIBS=$LIBS
9535 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9536 cat >conftest.$ac_ext <<_ACEOF
9537 #line $LINENO "configure"
9538 /* confdefs.h.  */
9539 _ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h.  */
9543
9544 /* Override any gcc2 internal prototype to avoid an error.  */
9545 #ifdef __cplusplus
9546 extern "C"
9547 #endif
9548 /* We use char because int might match the return type of a gcc2
9549    builtin and then its argument prototype would still apply.  */
9550 char IceConnectionNumber ();
9551 int
9552 main ()
9553 {
9554 IceConnectionNumber ();
9555   ;
9556   return 0;
9557 }
9558 _ACEOF
9559 rm -f conftest.$ac_objext conftest$ac_exeext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561   (eval $ac_link) 2>&5
9562   ac_status=$?
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); } &&
9565          { ac_try='test -s conftest$ac_exeext'
9566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567   (eval $ac_try) 2>&5
9568   ac_status=$?
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); }; }; then
9571   ac_cv_lib_ICE_IceConnectionNumber=yes
9572 else
9573   echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9575
9576 ac_cv_lib_ICE_IceConnectionNumber=no
9577 fi
9578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9579 LIBS=$ac_check_lib_save_LIBS
9580 fi
9581 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9582 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9583 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9584   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9585 fi
9586
9587   LDFLAGS=$ac_save_LDFLAGS
9588
9589 fi
9590
9591
9592
9593
9594
9595
9596
9597
9598 X_TOOLKIT_LIBS="-lXt"
9599 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9600
9601 our_saved_LDFLAGS="$LDFLAGS"
9602 LDFLAGS="$X_LIBS $LDFLAGS"
9603 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9604 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9605 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9606   echo $ECHO_N "(cached) $ECHO_C" >&6
9607 else
9608   ac_check_lib_save_LIBS=$LIBS
9609 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9610 cat >conftest.$ac_ext <<_ACEOF
9611 #line $LINENO "configure"
9612 /* confdefs.h.  */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h.  */
9617
9618 /* Override any gcc2 internal prototype to avoid an error.  */
9619 #ifdef __cplusplus
9620 extern "C"
9621 #endif
9622 /* We use char because int might match the return type of a gcc2
9623    builtin and then its argument prototype would still apply.  */
9624 char XtToolkitThreadInitialize ();
9625 int
9626 main ()
9627 {
9628 XtToolkitThreadInitialize ();
9629   ;
9630   return 0;
9631 }
9632 _ACEOF
9633 rm -f conftest.$ac_objext conftest$ac_exeext
9634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9635   (eval $ac_link) 2>&5
9636   ac_status=$?
9637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638   (exit $ac_status); } &&
9639          { ac_try='test -s conftest$ac_exeext'
9640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641   (eval $ac_try) 2>&5
9642   ac_status=$?
9643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644   (exit $ac_status); }; }; then
9645   ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9646 else
9647   echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9649
9650 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9651 fi
9652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9653 LIBS=$ac_check_lib_save_LIBS
9654 fi
9655 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9656 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9657 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9658
9659 cat >>confdefs.h <<\_ACEOF
9660 #define X_THREAD_SUPPORT 1
9661 _ACEOF
9662
9663 fi
9664
9665 LDFLAGS="$our_saved_LDFLAGS"
9666
9667
9668
9669 if test "x$no_x" = "xyes"; then
9670   NO_X_TRUE=
9671   NO_X_FALSE='#'
9672 else
9673   NO_X_TRUE='#'
9674   NO_X_FALSE=
9675 fi
9676
9677
9678 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9679
9680
9681 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9682
9683 echo "$as_me:$LINENO: checking for X" >&5
9684 echo $ECHO_N "checking for X... $ECHO_C" >&6
9685 if test "$no_x" != "yes" ; then
9686
9687 cat >>confdefs.h <<\_ACEOF
9688 #define HAVE_X11 1
9689 _ACEOF
9690
9691   LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
9692   my_includes="$my_includes -I/usr/X11R6/include"
9693   ctlib_graphics="$ctlibs_base -lctgraphics"
9694   echo "$as_me:$LINENO: result: yes" >&5
9695 echo "${ECHO_T}yes" >&6
9696   ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9697   if test "$libgl" = "true" ; then
9698     # Removed "-lglut" for Mac OS X compilation
9699     ctlib_graphics="$ctlib_graphics -lGL -lGLU"
9700     if test "$wxwin" = "true" ; then
9701       if  "$wx_gtk" ; then
9702         ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.4"
9703       elif  "$wx_mac" ; then
9704         ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
9705       fi
9706     fi
9707   fi
9708   if test "$wxwin" = "true" ; then
9709
9710 cat >>confdefs.h <<\_ACEOF
9711 #define HAVE_SGP 1
9712 _ACEOF
9713
9714
9715
9716 if test 1==1; then
9717   HAVE_SGP_TRUE=
9718   HAVE_SGP_FALSE='#'
9719 else
9720   HAVE_SGP_TRUE='#'
9721   HAVE_SGP_FALSE=
9722 fi
9723
9724   fi
9725 else
9726   echo "$as_me:$LINENO: result: no" >&5
9727 echo "${ECHO_T}no" >&6
9728 fi
9729
9730 if test "$png" = "true" ; then
9731   ctlibs_tools="$ctlibs_tools -lpng"
9732 fi
9733 if test "$zlib" = "true" ; then
9734   ctlibs_tools="$ctlibs_tools -lz"
9735 fi
9736 if test "$fftw" = "true" ; then
9737   ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
9738 fi
9739 if test "$ctn" = "true"; then
9740   ctlibs_tools="$ctlibs_tools -lctn"
9741 fi
9742
9743 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9744 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9745 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9746   echo $ECHO_N "(cached) $ECHO_C" >&6
9747 else
9748   ac_check_lib_save_LIBS=$LIBS
9749 LIBS="-ldmallocxx  $LIBS"
9750 cat >conftest.$ac_ext <<_ACEOF
9751 #line $LINENO "configure"
9752 /* confdefs.h.  */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h.  */
9757
9758
9759 int
9760 main ()
9761 {
9762 main ();
9763   ;
9764   return 0;
9765 }
9766 _ACEOF
9767 rm -f conftest.$ac_objext conftest$ac_exeext
9768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769   (eval $ac_link) 2>&5
9770   ac_status=$?
9771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772   (exit $ac_status); } &&
9773          { ac_try='test -s conftest$ac_exeext'
9774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775   (eval $ac_try) 2>&5
9776   ac_status=$?
9777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778   (exit $ac_status); }; }; then
9779   ac_cv_lib_dmallocxx_main=yes
9780 else
9781   echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9783
9784 ac_cv_lib_dmallocxx_main=no
9785 fi
9786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9787 LIBS=$ac_check_lib_save_LIBS
9788 fi
9789 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9790 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9791 if test $ac_cv_lib_dmallocxx_main = yes; then
9792   dmallocxx=true
9793 else
9794   dmallocxx=false
9795 fi
9796
9797 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9798 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9799 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9800 if test "${enable_dmalloc+set}" = set; then
9801   enableval="$enable_dmalloc"
9802   case "${enableval}" in
9803   yes) usedmalloc=true
9804        echo "$as_me:$LINENO: result: yes" >&5
9805 echo "${ECHO_T}yes" >&6
9806        ;;
9807   no)  usedmalloc=false
9808        echo "$as_me:$LINENO: result: no" >&5
9809 echo "${ECHO_T}no" >&6
9810        ;;
9811   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9812 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9813        ;;
9814 esac
9815 else
9816   usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9817 echo "${ECHO_T}no" >&6
9818 fi;
9819
9820 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9821   ctlibs_tools="$ctlibs_tools -ldmallocxx"
9822
9823 cat >>confdefs.h <<\_ACEOF
9824 #define HAVE_DMALLOC 1
9825 _ACEOF
9826
9827   echo "$as_me:$LINENO: result: Using dmalloc" >&5
9828 echo "${ECHO_T}Using dmalloc" >&6
9829 fi
9830
9831 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9832 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9833 if test "${ac_cv_lib_efence_main+set}" = set; then
9834   echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836   ac_check_lib_save_LIBS=$LIBS
9837 LIBS="-lefence  $LIBS"
9838 cat >conftest.$ac_ext <<_ACEOF
9839 #line $LINENO "configure"
9840 /* confdefs.h.  */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h.  */
9845
9846
9847 int
9848 main ()
9849 {
9850 main ();
9851   ;
9852   return 0;
9853 }
9854 _ACEOF
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9857   (eval $ac_link) 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); } &&
9861          { ac_try='test -s conftest$ac_exeext'
9862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863   (eval $ac_try) 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); }; }; then
9867   ac_cv_lib_efence_main=yes
9868 else
9869   echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9871
9872 ac_cv_lib_efence_main=no
9873 fi
9874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9875 LIBS=$ac_check_lib_save_LIBS
9876 fi
9877 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9878 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9879 if test $ac_cv_lib_efence_main = yes; then
9880   efence=true
9881 else
9882   efence=false
9883 fi
9884
9885 echo "$as_me:$LINENO: checking for enable-efence" >&5
9886 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9887 # Check whether --enable-efence or --disable-efence was given.
9888 if test "${enable_efence+set}" = set; then
9889   enableval="$enable_efence"
9890   case "${enableval}" in
9891   yes) useefence=true
9892        echo "$as_me:$LINENO: result: yes" >&5
9893 echo "${ECHO_T}yes" >&6
9894        ;;
9895   no)  useefence=false
9896        echo "$as_me:$LINENO: result: no" >&5
9897 echo "${ECHO_T}no" >&6
9898        ;;
9899   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9900 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9901        ;;
9902 esac
9903 else
9904   useefence=false; echo "$as_me:$LINENO: result: no" >&5
9905 echo "${ECHO_T}no" >&6
9906 fi;
9907
9908 if test "$efence" = "true" -a "$useefence" = "true" ; then
9909   ctlibs_tools="$ctlibs_tools -lefence"
9910
9911 cat >>confdefs.h <<\_ACEOF
9912 #define HAVE_EFENCE 1
9913 _ACEOF
9914
9915   echo "$as_me:$LINENO: result: Using efence" >&5
9916 echo "${ECHO_T}Using efence" >&6
9917 fi
9918
9919 if test "$wxwin" = "true" ; then
9920   if  "$wx_gtk" = "true"  ||  "$wx_mac" == "true"  ; then
9921     wxcflags=`$wxconfig --cflags`
9922     wxlibs=`$wxconfig --libs`
9923   else
9924         wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9925         wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9926   fi
9927   CFLAGS="$CFLAGS -I../include $wxcflags"
9928   ctlib_graphics="$ctlib_graphics $wxlibs"
9929
9930
9931 if test 1==1 ; then
9932   HAVE_WXWINDOWS_TRUE=
9933   HAVE_WXWINDOWS_FALSE='#'
9934 else
9935   HAVE_WXWINDOWS_TRUE='#'
9936   HAVE_WXWINDOWS_FALSE=
9937 fi
9938
9939 fi
9940
9941
9942
9943 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9944 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9945
9946
9947 if test -n "$lamdir" ; then
9948   lamprograms="ctsimtext-lam"
9949
9950   lamdefs="$CFLAGS"
9951
9952 fi
9953
9954 CXXFLAGS="$CFLAGS"
9955
9956                                                                                                                                                                           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"
9957
9958
9959 cat >confcache <<\_ACEOF
9960 # This file is a shell script that caches the results of configure
9961 # tests run on this system so they can be shared between configure
9962 # scripts and configure runs, see configure's option --config-cache.
9963 # It is not useful on other systems.  If it contains results you don't
9964 # want to keep, you may remove or edit it.
9965 #
9966 # config.status only pays attention to the cache file if you give it
9967 # the --recheck option to rerun configure.
9968 #
9969 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9970 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9971 # following values.
9972
9973 _ACEOF
9974
9975 # The following way of writing the cache mishandles newlines in values,
9976 # but we know of no workaround that is simple, portable, and efficient.
9977 # So, don't put newlines in cache variables' values.
9978 # Ultrix sh set writes to stderr and can't be redirected directly,
9979 # and sets the high bit in the cache file unless we assign to the vars.
9980 {
9981   (set) 2>&1 |
9982     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9983     *ac_space=\ *)
9984       # `set' does not quote correctly, so add quotes (double-quote
9985       # substitution turns \\\\ into \\, and sed turns \\ into \).
9986       sed -n \
9987         "s/'/'\\\\''/g;
9988           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9989       ;;
9990     *)
9991       # `set' quotes correctly as required by POSIX, so do not add quotes.
9992       sed -n \
9993         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9994       ;;
9995     esac;
9996 } |
9997   sed '
9998      t clear
9999      : clear
10000      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10001      t end
10002      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10003      : end' >>confcache
10004 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10005   if test -w $cache_file; then
10006     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10007     cat confcache >$cache_file
10008   else
10009     echo "not updating unwritable cache $cache_file"
10010   fi
10011 fi
10012 rm -f confcache
10013
10014 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10015 # Let make expand exec_prefix.
10016 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10017
10018 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10019 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10020 # trailing colons and then remove the whole line if VPATH becomes empty
10021 # (actually we leave an empty line to preserve line numbers).
10022 if test "x$srcdir" = x.; then
10023   ac_vpsub='/^[         ]*VPATH[        ]*=/{
10024 s/:*\$(srcdir):*/:/;
10025 s/:*\${srcdir}:*/:/;
10026 s/:*@srcdir@:*/:/;
10027 s/^\([^=]*=[    ]*\):*/\1/;
10028 s/:*$//;
10029 s/^[^=]*=[      ]*$//;
10030 }'
10031 fi
10032
10033 DEFS=-DHAVE_CONFIG_H
10034
10035 ac_libobjs=
10036 ac_ltlibobjs=
10037 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10038   # 1. Remove the extension, and $U if already installed.
10039   ac_i=`echo "$ac_i" |
10040          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10041   # 2. Add them.
10042   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10043   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10044 done
10045 LIBOBJS=$ac_libobjs
10046
10047 LTLIBOBJS=$ac_ltlibobjs
10048
10049
10050 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10051   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10052 Usually this means the macro was only invoked conditionally." >&5
10053 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10054 Usually this means the macro was only invoked conditionally." >&2;}
10055    { (exit 1); exit 1; }; }
10056 fi
10057 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10058   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10059 Usually this means the macro was only invoked conditionally." >&5
10060 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10061 Usually this means the macro was only invoked conditionally." >&2;}
10062    { (exit 1); exit 1; }; }
10063 fi
10064 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10065   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10066 Usually this means the macro was only invoked conditionally." >&5
10067 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10068 Usually this means the macro was only invoked conditionally." >&2;}
10069    { (exit 1); exit 1; }; }
10070 fi
10071 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10072   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10073 Usually this means the macro was only invoked conditionally." >&5
10074 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10075 Usually this means the macro was only invoked conditionally." >&2;}
10076    { (exit 1); exit 1; }; }
10077 fi
10078 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
10079   { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10080 Usually this means the macro was only invoked conditionally." >&5
10081 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10082 Usually this means the macro was only invoked conditionally." >&2;}
10083    { (exit 1); exit 1; }; }
10084 fi
10085 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
10086   { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
10087 Usually this means the macro was only invoked conditionally." >&5
10088 echo "$as_me: error: conditional \"DEBUG\" was never defined.
10089 Usually this means the macro was only invoked conditionally." >&2;}
10090    { (exit 1); exit 1; }; }
10091 fi
10092 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
10093   { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
10094 Usually this means the macro was only invoked conditionally." >&5
10095 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
10096 Usually this means the macro was only invoked conditionally." >&2;}
10097    { (exit 1); exit 1; }; }
10098 fi
10099 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
10100   { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
10101 Usually this means the macro was only invoked conditionally." >&5
10102 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
10103 Usually this means the macro was only invoked conditionally." >&2;}
10104    { (exit 1); exit 1; }; }
10105 fi
10106 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
10107   { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
10108 Usually this means the macro was only invoked conditionally." >&5
10109 echo "$as_me: error: conditional \"NO_X\" was never defined.
10110 Usually this means the macro was only invoked conditionally." >&2;}
10111    { (exit 1); exit 1; }; }
10112 fi
10113 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
10114   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
10115 Usually this means the macro was only invoked conditionally." >&5
10116 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
10117 Usually this means the macro was only invoked conditionally." >&2;}
10118    { (exit 1); exit 1; }; }
10119 fi
10120 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
10121   { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
10122 Usually this means the macro was only invoked conditionally." >&5
10123 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
10124 Usually this means the macro was only invoked conditionally." >&2;}
10125    { (exit 1); exit 1; }; }
10126 fi
10127
10128 : ${CONFIG_STATUS=./config.status}
10129 ac_clean_files_save=$ac_clean_files
10130 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10131 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10132 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10133 cat >$CONFIG_STATUS <<_ACEOF
10134 #! $SHELL
10135 # Generated by $as_me.
10136 # Run this file to recreate the current configuration.
10137 # Compiler output produced by configure, useful for debugging
10138 # configure, is in config.log if it exists.
10139
10140 debug=false
10141 ac_cs_recheck=false
10142 ac_cs_silent=false
10143 SHELL=\${CONFIG_SHELL-$SHELL}
10144 _ACEOF
10145
10146 cat >>$CONFIG_STATUS <<\_ACEOF
10147 ## --------------------- ##
10148 ## M4sh Initialization.  ##
10149 ## --------------------- ##
10150
10151 # Be Bourne compatible
10152 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10153   emulate sh
10154   NULLCMD=:
10155   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10156   # is contrary to our usage.  Disable this feature.
10157   alias -g '${1+"$@"}'='"$@"'
10158 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10159   set -o posix
10160 fi
10161
10162 # Support unset when possible.
10163 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10164   as_unset=unset
10165 else
10166   as_unset=false
10167 fi
10168
10169
10170 # Work around bugs in pre-3.0 UWIN ksh.
10171 $as_unset ENV MAIL MAILPATH
10172 PS1='$ '
10173 PS2='> '
10174 PS4='+ '
10175
10176 # NLS nuisances.
10177 for as_var in \
10178   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10179   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10180   LC_TELEPHONE LC_TIME
10181 do
10182   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10183     eval $as_var=C; export $as_var
10184   else
10185     $as_unset $as_var
10186   fi
10187 done
10188
10189 # Required to use basename.
10190 if expr a : '\(a\)' >/dev/null 2>&1; then
10191   as_expr=expr
10192 else
10193   as_expr=false
10194 fi
10195
10196 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10197   as_basename=basename
10198 else
10199   as_basename=false
10200 fi
10201
10202
10203 # Name of the executable.
10204 as_me=`$as_basename "$0" ||
10205 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10206          X"$0" : 'X\(//\)$' \| \
10207          X"$0" : 'X\(/\)$' \| \
10208          .     : '\(.\)' 2>/dev/null ||
10209 echo X/"$0" |
10210     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10211           /^X\/\(\/\/\)$/{ s//\1/; q; }
10212           /^X\/\(\/\).*/{ s//\1/; q; }
10213           s/.*/./; q'`
10214
10215
10216 # PATH needs CR, and LINENO needs CR and PATH.
10217 # Avoid depending upon Character Ranges.
10218 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10219 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10220 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10221 as_cr_digits='0123456789'
10222 as_cr_alnum=$as_cr_Letters$as_cr_digits
10223
10224 # The user is always right.
10225 if test "${PATH_SEPARATOR+set}" != set; then
10226   echo "#! /bin/sh" >conf$$.sh
10227   echo  "exit 0"   >>conf$$.sh
10228   chmod +x conf$$.sh
10229   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10230     PATH_SEPARATOR=';'
10231   else
10232     PATH_SEPARATOR=:
10233   fi
10234   rm -f conf$$.sh
10235 fi
10236
10237
10238   as_lineno_1=$LINENO
10239   as_lineno_2=$LINENO
10240   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10241   test "x$as_lineno_1" != "x$as_lineno_2" &&
10242   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10243   # Find who we are.  Look in the path if we contain no path at all
10244   # relative or not.
10245   case $0 in
10246     *[\\/]* ) as_myself=$0 ;;
10247     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248 for as_dir in $PATH
10249 do
10250   IFS=$as_save_IFS
10251   test -z "$as_dir" && as_dir=.
10252   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10253 done
10254
10255        ;;
10256   esac
10257   # We did not find ourselves, most probably we were run as `sh COMMAND'
10258   # in which case we are not to be found in the path.
10259   if test "x$as_myself" = x; then
10260     as_myself=$0
10261   fi
10262   if test ! -f "$as_myself"; then
10263     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10264 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10265    { (exit 1); exit 1; }; }
10266   fi
10267   case $CONFIG_SHELL in
10268   '')
10269     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10271 do
10272   IFS=$as_save_IFS
10273   test -z "$as_dir" && as_dir=.
10274   for as_base in sh bash ksh sh5; do
10275          case $as_dir in
10276          /*)
10277            if ("$as_dir/$as_base" -c '
10278   as_lineno_1=$LINENO
10279   as_lineno_2=$LINENO
10280   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10281   test "x$as_lineno_1" != "x$as_lineno_2" &&
10282   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10283              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10284              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10285              CONFIG_SHELL=$as_dir/$as_base
10286              export CONFIG_SHELL
10287              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10288            fi;;
10289          esac
10290        done
10291 done
10292 ;;
10293   esac
10294
10295   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10296   # uniformly replaced by the line number.  The first 'sed' inserts a
10297   # line-number line before each line; the second 'sed' does the real
10298   # work.  The second script uses 'N' to pair each line-number line
10299   # with the numbered line, and appends trailing '-' during
10300   # substitution so that $LINENO is not a special case at line end.
10301   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10302   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10303   sed '=' <$as_myself |
10304     sed '
10305       N
10306       s,$,-,
10307       : loop
10308       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10309       t loop
10310       s,-$,,
10311       s,^['$as_cr_digits']*\n,,
10312     ' >$as_me.lineno &&
10313   chmod +x $as_me.lineno ||
10314     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10315 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10316    { (exit 1); exit 1; }; }
10317
10318   # Don't try to exec as it changes $[0], causing all sort of problems
10319   # (the dirname of $[0] is not the place where we might find the
10320   # original and so on.  Autoconf is especially sensible to this).
10321   . ./$as_me.lineno
10322   # Exit status is that of the last command.
10323   exit
10324 }
10325
10326
10327 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10328   *c*,-n*) ECHO_N= ECHO_C='
10329 ' ECHO_T='      ' ;;
10330   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10331   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10332 esac
10333
10334 if expr a : '\(a\)' >/dev/null 2>&1; then
10335   as_expr=expr
10336 else
10337   as_expr=false
10338 fi
10339
10340 rm -f conf$$ conf$$.exe conf$$.file
10341 echo >conf$$.file
10342 if ln -s conf$$.file conf$$ 2>/dev/null; then
10343   # We could just check for DJGPP; but this test a) works b) is more generic
10344   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10345   if test -f conf$$.exe; then
10346     # Don't use ln at all; we don't have any links
10347     as_ln_s='cp -p'
10348   else
10349     as_ln_s='ln -s'
10350   fi
10351 elif ln conf$$.file conf$$ 2>/dev/null; then
10352   as_ln_s=ln
10353 else
10354   as_ln_s='cp -p'
10355 fi
10356 rm -f conf$$ conf$$.exe conf$$.file
10357
10358 if mkdir -p . 2>/dev/null; then
10359   as_mkdir_p=:
10360 else
10361   as_mkdir_p=false
10362 fi
10363
10364 as_executable_p="test -f"
10365
10366 # Sed expression to map a string onto a valid CPP name.
10367 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10368
10369 # Sed expression to map a string onto a valid variable name.
10370 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10371
10372
10373 # IFS
10374 # We need space, tab and new line, in precisely that order.
10375 as_nl='
10376 '
10377 IFS="   $as_nl"
10378
10379 # CDPATH.
10380 $as_unset CDPATH
10381
10382 exec 6>&1
10383
10384 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10385 # report actual input values of CONFIG_FILES etc. instead of their
10386 # values after options handling.  Logging --version etc. is OK.
10387 exec 5>>config.log
10388 {
10389   echo
10390   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10391 ## Running $as_me. ##
10392 _ASBOX
10393 } >&5
10394 cat >&5 <<_CSEOF
10395
10396 This file was extended by $as_me, which was
10397 generated by GNU Autoconf 2.57.  Invocation command line was
10398
10399   CONFIG_FILES    = $CONFIG_FILES
10400   CONFIG_HEADERS  = $CONFIG_HEADERS
10401   CONFIG_LINKS    = $CONFIG_LINKS
10402   CONFIG_COMMANDS = $CONFIG_COMMANDS
10403   $ $0 $@
10404
10405 _CSEOF
10406 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10407 echo >&5
10408 _ACEOF
10409
10410 # Files that config.status was made for.
10411 if test -n "$ac_config_files"; then
10412   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10413 fi
10414
10415 if test -n "$ac_config_headers"; then
10416   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10417 fi
10418
10419 if test -n "$ac_config_links"; then
10420   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10421 fi
10422
10423 if test -n "$ac_config_commands"; then
10424   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10425 fi
10426
10427 cat >>$CONFIG_STATUS <<\_ACEOF
10428
10429 ac_cs_usage="\
10430 \`$as_me' instantiates files from templates according to the
10431 current configuration.
10432
10433 Usage: $0 [OPTIONS] [FILE]...
10434
10435   -h, --help       print this help, then exit
10436   -V, --version    print version number, then exit
10437   -q, --quiet      do not print progress messages
10438   -d, --debug      don't remove temporary files
10439       --recheck    update $as_me by reconfiguring in the same conditions
10440   --file=FILE[:TEMPLATE]
10441                    instantiate the configuration file FILE
10442   --header=FILE[:TEMPLATE]
10443                    instantiate the configuration header FILE
10444
10445 Configuration files:
10446 $config_files
10447
10448 Configuration headers:
10449 $config_headers
10450
10451 Configuration commands:
10452 $config_commands
10453
10454 Report bugs to <bug-autoconf@gnu.org>."
10455 _ACEOF
10456
10457 cat >>$CONFIG_STATUS <<_ACEOF
10458 ac_cs_version="\\
10459 config.status
10460 configured by $0, generated by GNU Autoconf 2.57,
10461   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10462
10463 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10464 Free Software Foundation, Inc.
10465 This config.status script is free software; the Free Software Foundation
10466 gives unlimited permission to copy, distribute and modify it."
10467 srcdir=$srcdir
10468 INSTALL="$INSTALL"
10469 _ACEOF
10470
10471 cat >>$CONFIG_STATUS <<\_ACEOF
10472 # If no file are specified by the user, then we need to provide default
10473 # value.  By we need to know if files were specified by the user.
10474 ac_need_defaults=:
10475 while test $# != 0
10476 do
10477   case $1 in
10478   --*=*)
10479     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10480     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10481     ac_shift=:
10482     ;;
10483   -*)
10484     ac_option=$1
10485     ac_optarg=$2
10486     ac_shift=shift
10487     ;;
10488   *) # This is not an option, so the user has probably given explicit
10489      # arguments.
10490      ac_option=$1
10491      ac_need_defaults=false;;
10492   esac
10493
10494   case $ac_option in
10495   # Handling of the options.
10496 _ACEOF
10497 cat >>$CONFIG_STATUS <<\_ACEOF
10498   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10499     ac_cs_recheck=: ;;
10500   --version | --vers* | -V )
10501     echo "$ac_cs_version"; exit 0 ;;
10502   --he | --h)
10503     # Conflict between --help and --header
10504     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10505 Try \`$0 --help' for more information." >&5
10506 echo "$as_me: error: ambiguous option: $1
10507 Try \`$0 --help' for more information." >&2;}
10508    { (exit 1); exit 1; }; };;
10509   --help | --hel | -h )
10510     echo "$ac_cs_usage"; exit 0 ;;
10511   --debug | --d* | -d )
10512     debug=: ;;
10513   --file | --fil | --fi | --f )
10514     $ac_shift
10515     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10516     ac_need_defaults=false;;
10517   --header | --heade | --head | --hea )
10518     $ac_shift
10519     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10520     ac_need_defaults=false;;
10521   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10522   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10523     ac_cs_silent=: ;;
10524
10525   # This is an error.
10526   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10527 Try \`$0 --help' for more information." >&5
10528 echo "$as_me: error: unrecognized option: $1
10529 Try \`$0 --help' for more information." >&2;}
10530    { (exit 1); exit 1; }; } ;;
10531
10532   *) ac_config_targets="$ac_config_targets $1" ;;
10533
10534   esac
10535   shift
10536 done
10537
10538 ac_configure_extra_args=
10539
10540 if $ac_cs_silent; then
10541   exec 6>/dev/null
10542   ac_configure_extra_args="$ac_configure_extra_args --silent"
10543 fi
10544
10545 _ACEOF
10546 cat >>$CONFIG_STATUS <<_ACEOF
10547 if \$ac_cs_recheck; then
10548   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10549   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10550 fi
10551
10552 _ACEOF
10553
10554 cat >>$CONFIG_STATUS <<_ACEOF
10555 #
10556 # INIT-COMMANDS section.
10557 #
10558
10559 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10560
10561 _ACEOF
10562
10563
10564
10565 cat >>$CONFIG_STATUS <<\_ACEOF
10566 for ac_config_target in $ac_config_targets
10567 do
10568   case "$ac_config_target" in
10569   # Handling of arguments.
10570   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10571   "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
10572   "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
10573   "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
10574   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10575   "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
10576   "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
10577   "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
10578   "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
10579   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10580   "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
10581   "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
10582   "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
10583   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10584   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10585   "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
10586   "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
10587   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10588   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10589   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10590 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10591    { (exit 1); exit 1; }; };;
10592   esac
10593 done
10594
10595 # If the user did not use the arguments to specify the items to instantiate,
10596 # then the envvar interface is used.  Set only those that are not.
10597 # We use the long form for the default assignment because of an extremely
10598 # bizarre bug on SunOS 4.1.3.
10599 if $ac_need_defaults; then
10600   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10601   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10602   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10603 fi
10604
10605 # Have a temporary directory for convenience.  Make it in the build tree
10606 # simply because there is no reason to put it here, and in addition,
10607 # creating and moving files from /tmp can sometimes cause problems.
10608 # Create a temporary directory, and hook for its removal unless debugging.
10609 $debug ||
10610 {
10611   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10612   trap '{ (exit 1); exit 1; }' 1 2 13 15
10613 }
10614
10615 # Create a (secure) tmp directory for tmp files.
10616
10617 {
10618   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10619   test -n "$tmp" && test -d "$tmp"
10620 }  ||
10621 {
10622   tmp=./confstat$$-$RANDOM
10623   (umask 077 && mkdir $tmp)
10624 } ||
10625 {
10626    echo "$me: cannot create a temporary directory in ." >&2
10627    { (exit 1); exit 1; }
10628 }
10629
10630 _ACEOF
10631
10632 cat >>$CONFIG_STATUS <<_ACEOF
10633
10634 #
10635 # CONFIG_FILES section.
10636 #
10637
10638 # No need to generate the scripts if there are no CONFIG_FILES.
10639 # This happens for instance when ./config.status config.h
10640 if test -n "\$CONFIG_FILES"; then
10641   # Protect against being on the right side of a sed subst in config.status.
10642   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10643    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10644 s,@SHELL@,$SHELL,;t t
10645 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10646 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10647 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10648 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10649 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10650 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10651 s,@exec_prefix@,$exec_prefix,;t t
10652 s,@prefix@,$prefix,;t t
10653 s,@program_transform_name@,$program_transform_name,;t t
10654 s,@bindir@,$bindir,;t t
10655 s,@sbindir@,$sbindir,;t t
10656 s,@libexecdir@,$libexecdir,;t t
10657 s,@datadir@,$datadir,;t t
10658 s,@sysconfdir@,$sysconfdir,;t t
10659 s,@sharedstatedir@,$sharedstatedir,;t t
10660 s,@localstatedir@,$localstatedir,;t t
10661 s,@libdir@,$libdir,;t t
10662 s,@includedir@,$includedir,;t t
10663 s,@oldincludedir@,$oldincludedir,;t t
10664 s,@infodir@,$infodir,;t t
10665 s,@mandir@,$mandir,;t t
10666 s,@build_alias@,$build_alias,;t t
10667 s,@host_alias@,$host_alias,;t t
10668 s,@target_alias@,$target_alias,;t t
10669 s,@DEFS@,$DEFS,;t t
10670 s,@ECHO_C@,$ECHO_C,;t t
10671 s,@ECHO_N@,$ECHO_N,;t t
10672 s,@ECHO_T@,$ECHO_T,;t t
10673 s,@LIBS@,$LIBS,;t t
10674 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10675 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10676 s,@MAINT@,$MAINT,;t t
10677 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10678 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10679 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10680 s,@CYGPATH_W@,$CYGPATH_W,;t t
10681 s,@PACKAGE@,$PACKAGE,;t t
10682 s,@VERSION@,$VERSION,;t t
10683 s,@ACLOCAL@,$ACLOCAL,;t t
10684 s,@AUTOCONF@,$AUTOCONF,;t t
10685 s,@AUTOMAKE@,$AUTOMAKE,;t t
10686 s,@AUTOHEADER@,$AUTOHEADER,;t t
10687 s,@MAKEINFO@,$MAKEINFO,;t t
10688 s,@AMTAR@,$AMTAR,;t t
10689 s,@install_sh@,$install_sh,;t t
10690 s,@STRIP@,$STRIP,;t t
10691 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10692 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10693 s,@AWK@,$AWK,;t t
10694 s,@SET_MAKE@,$SET_MAKE,;t t
10695 s,@am__leading_dot@,$am__leading_dot,;t t
10696 s,@RANLIB@,$RANLIB,;t t
10697 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10698 s,@CC@,$CC,;t t
10699 s,@CFLAGS@,$CFLAGS,;t t
10700 s,@LDFLAGS@,$LDFLAGS,;t t
10701 s,@CPPFLAGS@,$CPPFLAGS,;t t
10702 s,@ac_ct_CC@,$ac_ct_CC,;t t
10703 s,@EXEEXT@,$EXEEXT,;t t
10704 s,@OBJEXT@,$OBJEXT,;t t
10705 s,@DEPDIR@,$DEPDIR,;t t
10706 s,@am__include@,$am__include,;t t
10707 s,@am__quote@,$am__quote,;t t
10708 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10709 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10710 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10711 s,@CCDEPMODE@,$CCDEPMODE,;t t
10712 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10713 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10714 s,@CXX@,$CXX,;t t
10715 s,@CXXFLAGS@,$CXXFLAGS,;t t
10716 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10717 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10718 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10719 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10720 s,@wxconfig@,$wxconfig,;t t
10721 s,@build@,$build,;t t
10722 s,@build_cpu@,$build_cpu,;t t
10723 s,@build_vendor@,$build_vendor,;t t
10724 s,@build_os@,$build_os,;t t
10725 s,@host@,$host,;t t
10726 s,@host_cpu@,$host_cpu,;t t
10727 s,@host_vendor@,$host_vendor,;t t
10728 s,@host_os@,$host_os,;t t
10729 s,@CPP@,$CPP,;t t
10730 s,@EGREP@,$EGREP,;t t
10731 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10732 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10733 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10734 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10735 s,@lamdir@,$lamdir,;t t
10736 s,@mpienable@,$mpienable,;t t
10737 s,@cgibindir@,$cgibindir,;t t
10738 s,@cgibinurl@,$cgibinurl,;t t
10739 s,@webdatadir@,$webdatadir,;t t
10740 s,@webdataurl@,$webdataurl,;t t
10741 s,@htmldir@,$htmldir,;t t
10742 s,@cgiprograms@,$cgiprograms,;t t
10743 s,@htmldata@,$htmldata,;t t
10744 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10745 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10746 s,@webenabled@,$webenabled,;t t
10747 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10748 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10749 s,@X_CFLAGS@,$X_CFLAGS,;t t
10750 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10751 s,@X_LIBS@,$X_LIBS,;t t
10752 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10753 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10754 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10755 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10756 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10757 s,@my_includes@,$my_includes,;t t
10758 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10759 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10760 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10761 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10762 s,@wxcflags@,$wxcflags,;t t
10763 s,@wxlibs@,$wxlibs,;t t
10764 s,@ctlibs@,$ctlibs,;t t
10765 s,@lamprograms@,$lamprograms,;t t
10766 s,@lamdefs@,$lamdefs,;t t
10767 s,@LIBOBJS@,$LIBOBJS,;t t
10768 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10769 CEOF
10770
10771 _ACEOF
10772
10773   cat >>$CONFIG_STATUS <<\_ACEOF
10774   # Split the substitutions into bite-sized pieces for seds with
10775   # small command number limits, like on Digital OSF/1 and HP-UX.
10776   ac_max_sed_lines=48
10777   ac_sed_frag=1 # Number of current file.
10778   ac_beg=1 # First line for current file.
10779   ac_end=$ac_max_sed_lines # Line after last line for current file.
10780   ac_more_lines=:
10781   ac_sed_cmds=
10782   while $ac_more_lines; do
10783     if test $ac_beg -gt 1; then
10784       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10785     else
10786       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10787     fi
10788     if test ! -s $tmp/subs.frag; then
10789       ac_more_lines=false
10790     else
10791       # The purpose of the label and of the branching condition is to
10792       # speed up the sed processing (if there are no `@' at all, there
10793       # is no need to browse any of the substitutions).
10794       # These are the two extra sed commands mentioned above.
10795       (echo ':t
10796   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10797       if test -z "$ac_sed_cmds"; then
10798         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10799       else
10800         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10801       fi
10802       ac_sed_frag=`expr $ac_sed_frag + 1`
10803       ac_beg=$ac_end
10804       ac_end=`expr $ac_end + $ac_max_sed_lines`
10805     fi
10806   done
10807   if test -z "$ac_sed_cmds"; then
10808     ac_sed_cmds=cat
10809   fi
10810 fi # test -n "$CONFIG_FILES"
10811
10812 _ACEOF
10813 cat >>$CONFIG_STATUS <<\_ACEOF
10814 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10815   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10816   case $ac_file in
10817   - | *:- | *:-:* ) # input from stdin
10818         cat >$tmp/stdin
10819         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10820         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10821   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10822         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10823   * )   ac_file_in=$ac_file.in ;;
10824   esac
10825
10826   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10827   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10828 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10829          X"$ac_file" : 'X\(//\)[^/]' \| \
10830          X"$ac_file" : 'X\(//\)$' \| \
10831          X"$ac_file" : 'X\(/\)' \| \
10832          .     : '\(.\)' 2>/dev/null ||
10833 echo X"$ac_file" |
10834     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10835           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10836           /^X\(\/\/\)$/{ s//\1/; q; }
10837           /^X\(\/\).*/{ s//\1/; q; }
10838           s/.*/./; q'`
10839   { if $as_mkdir_p; then
10840     mkdir -p "$ac_dir"
10841   else
10842     as_dir="$ac_dir"
10843     as_dirs=
10844     while test ! -d "$as_dir"; do
10845       as_dirs="$as_dir $as_dirs"
10846       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10847 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10848          X"$as_dir" : 'X\(//\)[^/]' \| \
10849          X"$as_dir" : 'X\(//\)$' \| \
10850          X"$as_dir" : 'X\(/\)' \| \
10851          .     : '\(.\)' 2>/dev/null ||
10852 echo X"$as_dir" |
10853     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10854           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10855           /^X\(\/\/\)$/{ s//\1/; q; }
10856           /^X\(\/\).*/{ s//\1/; q; }
10857           s/.*/./; q'`
10858     done
10859     test ! -n "$as_dirs" || mkdir $as_dirs
10860   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10861 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10862    { (exit 1); exit 1; }; }; }
10863
10864   ac_builddir=.
10865
10866 if test "$ac_dir" != .; then
10867   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10868   # A "../" for each directory in $ac_dir_suffix.
10869   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10870 else
10871   ac_dir_suffix= ac_top_builddir=
10872 fi
10873
10874 case $srcdir in
10875   .)  # No --srcdir option.  We are building in place.
10876     ac_srcdir=.
10877     if test -z "$ac_top_builddir"; then
10878        ac_top_srcdir=.
10879     else
10880        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10881     fi ;;
10882   [\\/]* | ?:[\\/]* )  # Absolute path.
10883     ac_srcdir=$srcdir$ac_dir_suffix;
10884     ac_top_srcdir=$srcdir ;;
10885   *) # Relative path.
10886     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10887     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10888 esac
10889 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10890 # absolute.
10891 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10892 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10893 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10894 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10895
10896
10897   case $INSTALL in
10898   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10899   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10900   esac
10901
10902   if test x"$ac_file" != x-; then
10903     { echo "$as_me:$LINENO: creating $ac_file" >&5
10904 echo "$as_me: creating $ac_file" >&6;}
10905     rm -f "$ac_file"
10906   fi
10907   # Let's still pretend it is `configure' which instantiates (i.e., don't
10908   # use $as_me), people would be surprised to read:
10909   #    /* config.h.  Generated by config.status.  */
10910   if test x"$ac_file" = x-; then
10911     configure_input=
10912   else
10913     configure_input="$ac_file.  "
10914   fi
10915   configure_input=$configure_input"Generated from `echo $ac_file_in |
10916                                      sed 's,.*/,,'` by configure."
10917
10918   # First look for the input files in the build tree, otherwise in the
10919   # src tree.
10920   ac_file_inputs=`IFS=:
10921     for f in $ac_file_in; do
10922       case $f in
10923       -) echo $tmp/stdin ;;
10924       [\\/$]*)
10925          # Absolute (can't be DOS-style, as IFS=:)
10926          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10927 echo "$as_me: error: cannot find input file: $f" >&2;}
10928    { (exit 1); exit 1; }; }
10929          echo $f;;
10930       *) # Relative
10931          if test -f "$f"; then
10932            # Build tree
10933            echo $f
10934          elif test -f "$srcdir/$f"; then
10935            # Source tree
10936            echo $srcdir/$f
10937          else
10938            # /dev/null tree
10939            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10940 echo "$as_me: error: cannot find input file: $f" >&2;}
10941    { (exit 1); exit 1; }; }
10942          fi;;
10943       esac
10944     done` || { (exit 1); exit 1; }
10945 _ACEOF
10946 cat >>$CONFIG_STATUS <<_ACEOF
10947   sed "$ac_vpsub
10948 $extrasub
10949 _ACEOF
10950 cat >>$CONFIG_STATUS <<\_ACEOF
10951 :t
10952 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10953 s,@configure_input@,$configure_input,;t t
10954 s,@srcdir@,$ac_srcdir,;t t
10955 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10956 s,@top_srcdir@,$ac_top_srcdir,;t t
10957 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10958 s,@builddir@,$ac_builddir,;t t
10959 s,@abs_builddir@,$ac_abs_builddir,;t t
10960 s,@top_builddir@,$ac_top_builddir,;t t
10961 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10962 s,@INSTALL@,$ac_INSTALL,;t t
10963 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10964   rm -f $tmp/stdin
10965   if test x"$ac_file" != x-; then
10966     mv $tmp/out $ac_file
10967   else
10968     cat $tmp/out
10969     rm -f $tmp/out
10970   fi
10971
10972 done
10973 _ACEOF
10974 cat >>$CONFIG_STATUS <<\_ACEOF
10975
10976 #
10977 # CONFIG_HEADER section.
10978 #
10979
10980 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10981 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10982 #
10983 # ac_d sets the value in "#define NAME VALUE" lines.
10984 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
10985 ac_dB='[        ].*$,\1#\2'
10986 ac_dC=' '
10987 ac_dD=',;t'
10988 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10989 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10990 ac_uB='$,\1#\2define\3'
10991 ac_uC=' '
10992 ac_uD=',;t'
10993
10994 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10995   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10996   case $ac_file in
10997   - | *:- | *:-:* ) # input from stdin
10998         cat >$tmp/stdin
10999         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11000         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11001   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11002         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11003   * )   ac_file_in=$ac_file.in ;;
11004   esac
11005
11006   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11007 echo "$as_me: creating $ac_file" >&6;}
11008
11009   # First look for the input files in the build tree, otherwise in the
11010   # src tree.
11011   ac_file_inputs=`IFS=:
11012     for f in $ac_file_in; do
11013       case $f in
11014       -) echo $tmp/stdin ;;
11015       [\\/$]*)
11016          # Absolute (can't be DOS-style, as IFS=:)
11017          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11018 echo "$as_me: error: cannot find input file: $f" >&2;}
11019    { (exit 1); exit 1; }; }
11020          echo $f;;
11021       *) # Relative
11022          if test -f "$f"; then
11023            # Build tree
11024            echo $f
11025          elif test -f "$srcdir/$f"; then
11026            # Source tree
11027            echo $srcdir/$f
11028          else
11029            # /dev/null tree
11030            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11031 echo "$as_me: error: cannot find input file: $f" >&2;}
11032    { (exit 1); exit 1; }; }
11033          fi;;
11034       esac
11035     done` || { (exit 1); exit 1; }
11036   # Remove the trailing spaces.
11037   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
11038
11039 _ACEOF
11040
11041 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11042 # `conftest.undefs', that substitutes the proper values into
11043 # config.h.in to produce config.h.  The first handles `#define'
11044 # templates, and the second `#undef' templates.
11045 # And first: Protect against being on the right side of a sed subst in
11046 # config.status.  Protect against being in an unquoted here document
11047 # in config.status.
11048 rm -f conftest.defines conftest.undefs
11049 # Using a here document instead of a string reduces the quoting nightmare.
11050 # Putting comments in sed scripts is not portable.
11051 #
11052 # `end' is used to avoid that the second main sed command (meant for
11053 # 0-ary CPP macros) applies to n-ary macro definitions.
11054 # See the Autoconf documentation for `clear'.
11055 cat >confdef2sed.sed <<\_ACEOF
11056 s/[\\&,]/\\&/g
11057 s,[\\$`],\\&,g
11058 t clear
11059 : clear
11060 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11061 t end
11062 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11063 : end
11064 _ACEOF
11065 # If some macros were called several times there might be several times
11066 # the same #defines, which is useless.  Nevertheless, we may not want to
11067 # sort them, since we want the *last* AC-DEFINE to be honored.
11068 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11069 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11070 rm -f confdef2sed.sed
11071
11072 # This sed command replaces #undef with comments.  This is necessary, for
11073 # example, in the case of _POSIX_SOURCE, which is predefined and required
11074 # on some systems where configure will not decide to define it.
11075 cat >>conftest.undefs <<\_ACEOF
11076 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11077 _ACEOF
11078
11079 # Break up conftest.defines because some shells have a limit on the size
11080 # of here documents, and old seds have small limits too (100 cmds).
11081 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11082 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11083 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11084 echo '  :' >>$CONFIG_STATUS
11085 rm -f conftest.tail
11086 while grep . conftest.defines >/dev/null
11087 do
11088   # Write a limited-size here document to $tmp/defines.sed.
11089   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11090   # Speed up: don't consider the non `#define' lines.
11091   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
11092   # Work around the forget-to-reset-the-flag bug.
11093   echo 't clr' >>$CONFIG_STATUS
11094   echo ': clr' >>$CONFIG_STATUS
11095   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11096   echo 'CEOF
11097   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11098   rm -f $tmp/in
11099   mv $tmp/out $tmp/in
11100 ' >>$CONFIG_STATUS
11101   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11102   rm -f conftest.defines
11103   mv conftest.tail conftest.defines
11104 done
11105 rm -f conftest.defines
11106 echo '  fi # grep' >>$CONFIG_STATUS
11107 echo >>$CONFIG_STATUS
11108
11109 # Break up conftest.undefs because some shells have a limit on the size
11110 # of here documents, and old seds have small limits too (100 cmds).
11111 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11112 rm -f conftest.tail
11113 while grep . conftest.undefs >/dev/null
11114 do
11115   # Write a limited-size here document to $tmp/undefs.sed.
11116   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11117   # Speed up: don't consider the non `#undef'
11118   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11119   # Work around the forget-to-reset-the-flag bug.
11120   echo 't clr' >>$CONFIG_STATUS
11121   echo ': clr' >>$CONFIG_STATUS
11122   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11123   echo 'CEOF
11124   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11125   rm -f $tmp/in
11126   mv $tmp/out $tmp/in
11127 ' >>$CONFIG_STATUS
11128   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11129   rm -f conftest.undefs
11130   mv conftest.tail conftest.undefs
11131 done
11132 rm -f conftest.undefs
11133
11134 cat >>$CONFIG_STATUS <<\_ACEOF
11135   # Let's still pretend it is `configure' which instantiates (i.e., don't
11136   # use $as_me), people would be surprised to read:
11137   #    /* config.h.  Generated by config.status.  */
11138   if test x"$ac_file" = x-; then
11139     echo "/* Generated by configure.  */" >$tmp/config.h
11140   else
11141     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11142   fi
11143   cat $tmp/in >>$tmp/config.h
11144   rm -f $tmp/in
11145   if test x"$ac_file" != x-; then
11146     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11147       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11148 echo "$as_me: $ac_file is unchanged" >&6;}
11149     else
11150       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11151 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11152          X"$ac_file" : 'X\(//\)[^/]' \| \
11153          X"$ac_file" : 'X\(//\)$' \| \
11154          X"$ac_file" : 'X\(/\)' \| \
11155          .     : '\(.\)' 2>/dev/null ||
11156 echo X"$ac_file" |
11157     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11158           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11159           /^X\(\/\/\)$/{ s//\1/; q; }
11160           /^X\(\/\).*/{ s//\1/; q; }
11161           s/.*/./; q'`
11162       { if $as_mkdir_p; then
11163     mkdir -p "$ac_dir"
11164   else
11165     as_dir="$ac_dir"
11166     as_dirs=
11167     while test ! -d "$as_dir"; do
11168       as_dirs="$as_dir $as_dirs"
11169       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11171          X"$as_dir" : 'X\(//\)[^/]' \| \
11172          X"$as_dir" : 'X\(//\)$' \| \
11173          X"$as_dir" : 'X\(/\)' \| \
11174          .     : '\(.\)' 2>/dev/null ||
11175 echo X"$as_dir" |
11176     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11177           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11178           /^X\(\/\/\)$/{ s//\1/; q; }
11179           /^X\(\/\).*/{ s//\1/; q; }
11180           s/.*/./; q'`
11181     done
11182     test ! -n "$as_dirs" || mkdir $as_dirs
11183   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11184 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11185    { (exit 1); exit 1; }; }; }
11186
11187       rm -f $ac_file
11188       mv $tmp/config.h $ac_file
11189     fi
11190   else
11191     cat $tmp/config.h
11192     rm -f $tmp/config.h
11193   fi
11194 # Compute $ac_file's index in $config_headers.
11195 _am_stamp_count=1
11196 for _am_header in $config_headers :; do
11197   case $_am_header in
11198     $ac_file | $ac_file:* )
11199       break ;;
11200     * )
11201       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11202   esac
11203 done
11204 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11205 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11206          X$ac_file : 'X\(//\)[^/]' \| \
11207          X$ac_file : 'X\(//\)$' \| \
11208          X$ac_file : 'X\(/\)' \| \
11209          .     : '\(.\)' 2>/dev/null ||
11210 echo X$ac_file |
11211     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11212           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11213           /^X\(\/\/\)$/{ s//\1/; q; }
11214           /^X\(\/\).*/{ s//\1/; q; }
11215           s/.*/./; q'`/stamp-h$_am_stamp_count
11216 done
11217 _ACEOF
11218 cat >>$CONFIG_STATUS <<\_ACEOF
11219
11220 #
11221 # CONFIG_COMMANDS section.
11222 #
11223 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11224   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11225   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11226   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11227 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11228          X"$ac_dest" : 'X\(//\)[^/]' \| \
11229          X"$ac_dest" : 'X\(//\)$' \| \
11230          X"$ac_dest" : 'X\(/\)' \| \
11231          .     : '\(.\)' 2>/dev/null ||
11232 echo X"$ac_dest" |
11233     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11234           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11235           /^X\(\/\/\)$/{ s//\1/; q; }
11236           /^X\(\/\).*/{ s//\1/; q; }
11237           s/.*/./; q'`
11238   ac_builddir=.
11239
11240 if test "$ac_dir" != .; then
11241   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11242   # A "../" for each directory in $ac_dir_suffix.
11243   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11244 else
11245   ac_dir_suffix= ac_top_builddir=
11246 fi
11247
11248 case $srcdir in
11249   .)  # No --srcdir option.  We are building in place.
11250     ac_srcdir=.
11251     if test -z "$ac_top_builddir"; then
11252        ac_top_srcdir=.
11253     else
11254        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11255     fi ;;
11256   [\\/]* | ?:[\\/]* )  # Absolute path.
11257     ac_srcdir=$srcdir$ac_dir_suffix;
11258     ac_top_srcdir=$srcdir ;;
11259   *) # Relative path.
11260     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11261     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11262 esac
11263 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11264 # absolute.
11265 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11266 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11267 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11268 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11269
11270
11271   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11272 echo "$as_me: executing $ac_dest commands" >&6;}
11273   case $ac_dest in
11274     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11275   # Strip MF so we end up with the name of the file.
11276   mf=`echo "$mf" | sed -e 's/:.*$//'`
11277   # Check whether this is an Automake generated Makefile or not.
11278   # We used to match only the files named `Makefile.in', but
11279   # some people rename them; so instead we look at the file content.
11280   # Grep'ing the first line is not enough: some people post-process
11281   # each Makefile.in and add a new line on top of each file to say so.
11282   # So let's grep whole file.
11283   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11284     dirpart=`(dirname "$mf") 2>/dev/null ||
11285 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11286          X"$mf" : 'X\(//\)[^/]' \| \
11287          X"$mf" : 'X\(//\)$' \| \
11288          X"$mf" : 'X\(/\)' \| \
11289          .     : '\(.\)' 2>/dev/null ||
11290 echo X"$mf" |
11291     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11292           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11293           /^X\(\/\/\)$/{ s//\1/; q; }
11294           /^X\(\/\).*/{ s//\1/; q; }
11295           s/.*/./; q'`
11296   else
11297     continue
11298   fi
11299   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11300   # Extract the definition of DEP_FILES from the Makefile without
11301   # running `make'.
11302   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11303   test -z "$DEPDIR" && continue
11304   # When using ansi2knr, U may be empty or an underscore; expand it
11305   U=`sed -n -e '/^U = / s///p' < "$mf"`
11306   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11307   # We invoke sed twice because it is the simplest approach to
11308   # changing $(DEPDIR) to its actual value in the expansion.
11309   for file in `sed -n -e '
11310     /^DEP_FILES = .*\\\\$/ {
11311       s/^DEP_FILES = //
11312       :loop
11313         s/\\\\$//
11314         p
11315         n
11316         /\\\\$/ b loop
11317       p
11318     }
11319     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11320        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11321     # Make sure the directory exists.
11322     test -f "$dirpart/$file" && continue
11323     fdir=`(dirname "$file") 2>/dev/null ||
11324 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11325          X"$file" : 'X\(//\)[^/]' \| \
11326          X"$file" : 'X\(//\)$' \| \
11327          X"$file" : 'X\(/\)' \| \
11328          .     : '\(.\)' 2>/dev/null ||
11329 echo X"$file" |
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     { if $as_mkdir_p; then
11336     mkdir -p $dirpart/$fdir
11337   else
11338     as_dir=$dirpart/$fdir
11339     as_dirs=
11340     while test ! -d "$as_dir"; do
11341       as_dirs="$as_dir $as_dirs"
11342       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11344          X"$as_dir" : 'X\(//\)[^/]' \| \
11345          X"$as_dir" : 'X\(//\)$' \| \
11346          X"$as_dir" : 'X\(/\)' \| \
11347          .     : '\(.\)' 2>/dev/null ||
11348 echo X"$as_dir" |
11349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11350           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11351           /^X\(\/\/\)$/{ s//\1/; q; }
11352           /^X\(\/\).*/{ s//\1/; q; }
11353           s/.*/./; q'`
11354     done
11355     test ! -n "$as_dirs" || mkdir $as_dirs
11356   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11357 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11358    { (exit 1); exit 1; }; }; }
11359
11360     # echo "creating $dirpart/$file"
11361     echo '# dummy' > "$dirpart/$file"
11362   done
11363 done
11364  ;;
11365   esac
11366 done
11367 _ACEOF
11368
11369 cat >>$CONFIG_STATUS <<\_ACEOF
11370
11371 { (exit 0); exit 0; }
11372 _ACEOF
11373 chmod +x $CONFIG_STATUS
11374 ac_clean_files=$ac_clean_files_save
11375
11376
11377 # configure is writing to config.log, and then calls config.status.
11378 # config.status does its own redirection, appending to config.log.
11379 # Unfortunately, on DOS this fails, as config.log is still kept open
11380 # by configure, so config.status won't be able to write to it; its
11381 # output is simply discarded.  So we exec the FD to /dev/null,
11382 # effectively closing config.log, so it can be properly (re)opened and
11383 # appended to by config.status.  When coming back to configure, we
11384 # need to make the FD available again.
11385 if test "$no_create" != yes; then
11386   ac_cs_success=:
11387   ac_config_status_args=
11388   test "$silent" = yes &&
11389     ac_config_status_args="$ac_config_status_args --quiet"
11390   exec 5>/dev/null
11391   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11392   exec 5>>config.log
11393   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11394   # would make configure fail if this is the last instruction.
11395   $ac_cs_success || { (exit 1); exit 1; }
11396 fi
11397