r10879: Automated commit for Debian build of ctsim upstream-version-4.4.3
[ctsim.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/ctsim.cpp"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE wxconfig build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP INCLUDED_GETOPT_LONG_TRUE INCLUDED_GETOPT_LONG_FALSE DEBUG_TRUE DEBUG_FALSE lamdir mpienable cgibindir cgibinurl webdatadir webdataurl htmldir cgiprograms htmldata USE_HTML_TRUE USE_HTML_FALSE webenabled USE_LAM_TRUE USE_LAM_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_TOOLKIT_LIBS X_BASIC_LIBS NO_X_TRUE NO_X_FALSE my_includes HAVE_SGP_TRUE HAVE_SGP_FALSE wxcflags wxlibs HAVE_WXWINDOWS_TRUE HAVE_WXWINDOWS_FALSE ctlibs lamprograms lamdefs LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 Program names:
843   --program-prefix=PREFIX            prepend PREFIX to installed program names
844   --program-suffix=SUFFIX            append SUFFIX to installed program names
845   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
846
847 X features:
848   --x-includes=DIR    X include files are in DIR
849   --x-libraries=DIR   X library files are in DIR
850
851 System types:
852   --build=BUILD     configure for building on BUILD [guessed]
853   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
854 _ACEOF
855 fi
856
857 if test -n "$ac_init_help"; then
858
859   cat <<\_ACEOF
860
861 Optional Features:
862   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
863   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
864   --enable-maintainer-mode enable make rules and dependencies not useful
865                           (and sometimes confusing) to the casual installer
866   --disable-dependency-tracking Speeds up one-time builds
867   --enable-dependency-tracking  Do not reject slow dependency extractors
868   --enable-debug          Turn on debugging
869   --enable-verbose-warnings
870                           Enable verbose compiler warnings.
871   --enable-static
872                             Enable static executables.
873   --enable-dmalloc        Use dmalloc memory allocation
874   --enable-efence        Use ElectricFence memory allocation
875
876 Optional Packages:
877   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
878   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
879   --with-lam=PATH         Set path of LAM MPI
880   --with-ctn=PATH         Set path of CTN DICOM library
881   --with-mcpu=CPU         Set name of CPU for gcc -mcpu
882   --with-cgibin-dir=PATH  Set path of CGI binaries directory
883   --with-cgibin-url=PATH  Set URL path of CGI binaries
884   --with-webdata-dir=PATH Set path of webdata
885   --with-webdata-url=PATH Set URL path of webdata
886   --with-html-dir=PATH    Set directory of html files
887   --with-x                use the X Window System
888
889 Some influential environment variables:
890   CC          C compiler command
891   CFLAGS      C compiler flags
892   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
893               nonstandard directory <lib dir>
894   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
895               headers in a nonstandard directory <include dir>
896   CXX         C++ compiler command
897   CXXFLAGS    C++ compiler flags
898   CPP         C preprocessor
899
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
902
903 _ACEOF
904 fi
905
906 if test "$ac_init_help" = "recursive"; then
907   # If there are subdirs, report their specific --help.
908   ac_popdir=`pwd`
909   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910     test -d $ac_dir || continue
911     ac_builddir=.
912
913 if test "$ac_dir" != .; then
914   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915   # A "../" for each directory in $ac_dir_suffix.
916   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918   ac_dir_suffix= ac_top_builddir=
919 fi
920
921 case $srcdir in
922   .)  # No --srcdir option.  We are building in place.
923     ac_srcdir=.
924     if test -z "$ac_top_builddir"; then
925        ac_top_srcdir=.
926     else
927        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928     fi ;;
929   [\\/]* | ?:[\\/]* )  # Absolute path.
930     ac_srcdir=$srcdir$ac_dir_suffix;
931     ac_top_srcdir=$srcdir ;;
932   *) # Relative path.
933     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934     ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
936
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
941 *)
942   case "$ac_dir" in
943   .) ac_abs_builddir=`pwd`;;
944   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945   *) ac_abs_builddir=`pwd`/"$ac_dir";;
946   esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *)
951   case ${ac_top_builddir}. in
952   .) ac_abs_top_builddir=$ac_abs_builddir;;
953   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955   esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
959 *)
960   case $ac_srcdir in
961   .) ac_abs_srcdir=$ac_abs_builddir;;
962   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964   esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *)
969   case $ac_top_srcdir in
970   .) ac_abs_top_srcdir=$ac_abs_builddir;;
971   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973   esac;;
974 esac
975
976     cd $ac_dir
977     # Check for guested configure; otherwise get Cygnus style configure.
978     if test -f $ac_srcdir/configure.gnu; then
979       echo
980       $SHELL $ac_srcdir/configure.gnu  --help=recursive
981     elif test -f $ac_srcdir/configure; then
982       echo
983       $SHELL $ac_srcdir/configure  --help=recursive
984     elif test -f $ac_srcdir/configure.ac ||
985            test -f $ac_srcdir/configure.in; then
986       echo
987       $ac_configure --help
988     else
989       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
990     fi
991     cd "$ac_popdir"
992   done
993 fi
994
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997   cat <<\_ACEOF
998
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003   exit 0
1004 fi
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1009
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59.  Invocation command line was
1012
1013   $ $0 $@
1014
1015 _ACEOF
1016 {
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1021
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1027
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1030
1031 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1032 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1035 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1036 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1037 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1038
1039 _ASUNAME
1040
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1043 do
1044   IFS=$as_save_IFS
1045   test -z "$as_dir" && as_dir=.
1046   echo "PATH: $as_dir"
1047 done
1048
1049 } >&5
1050
1051 cat >&5 <<_ACEOF
1052
1053
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1057
1058 _ACEOF
1059
1060
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1072 do
1073   for ac_arg
1074   do
1075     case $ac_arg in
1076     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078     | -silent | --silent | --silen | --sile | --sil)
1079       continue ;;
1080     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082     esac
1083     case $ac_pass in
1084     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1085     2)
1086       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087       if test $ac_must_keep_next = true; then
1088         ac_must_keep_next=false # Got value, back to normal.
1089       else
1090         case $ac_arg in
1091           *=* | --config-cache | -C | -disable-* | --disable-* \
1092           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094           | -with-* | --with-* | -without-* | --without-* | --x)
1095             case "$ac_configure_args0 " in
1096               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097             esac
1098             ;;
1099           -* ) ac_must_keep_next=true ;;
1100         esac
1101       fi
1102       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103       # Get rid of the leading space.
1104       ac_sep=" "
1105       ;;
1106     esac
1107   done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1111
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log.  We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118   # Save into config.log some information that might help in debugging.
1119   {
1120     echo
1121
1122     cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127     echo
1128     # The following way of writing the cache mishandles newlines in values,
1129 {
1130   (set) 2>&1 |
1131     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132     *ac_space=\ *)
1133       sed -n \
1134         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136       ;;
1137     *)
1138       sed -n \
1139         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140       ;;
1141     esac;
1142 }
1143     echo
1144
1145     cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150     echo
1151     for ac_var in $ac_subst_vars
1152     do
1153       eval ac_val=$`echo $ac_var`
1154       echo "$ac_var='"'"'$ac_val'"'"'"
1155     done | sort
1156     echo
1157
1158     if test -n "$ac_subst_files"; then
1159       cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164       echo
1165       for ac_var in $ac_subst_files
1166       do
1167         eval ac_val=$`echo $ac_var`
1168         echo "$ac_var='"'"'$ac_val'"'"'"
1169       done | sort
1170       echo
1171     fi
1172
1173     if test -s confdefs.h; then
1174       cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179       echo
1180       sed "/^$/d" confdefs.h | sort
1181       echo
1182     fi
1183     test "$ac_signal" != 0 &&
1184       echo "$as_me: caught signal $ac_signal"
1185     echo "$as_me: exit $exit_status"
1186   } >&5
1187   rm -f core *.core &&
1188   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189     exit $exit_status
1190      ' 0
1191 for ac_signal in 1 2 13 15; do
1192   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1195
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1200
1201 # Predefined preprocessor variables.
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1226
1227
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231   if test "x$prefix" != xNONE; then
1232     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233   else
1234     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235   fi
1236 fi
1237 for ac_site_file in $CONFIG_SITE; do
1238   if test -r "$ac_site_file"; then
1239     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241     sed 's/^/| /' "$ac_site_file" >&5
1242     . "$ac_site_file"
1243   fi
1244 done
1245
1246 if test -r "$cache_file"; then
1247   # Some versions of bash will fail to source /dev/null (special
1248   # files actually), so we avoid doing that.
1249   if test -f "$cache_file"; then
1250     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252     case $cache_file in
1253       [\\/]* | ?:[\\/]* ) . $cache_file;;
1254       *)                      . ./$cache_file;;
1255     esac
1256   fi
1257 else
1258   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260   >$cache_file
1261 fi
1262
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269   eval ac_new_set=\$ac_env_${ac_var}_set
1270   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271   eval ac_new_val="\$ac_env_${ac_var}_value"
1272   case $ac_old_set,$ac_new_set in
1273     set,)
1274       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276       ac_cache_corrupted=: ;;
1277     ,set)
1278       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280       ac_cache_corrupted=: ;;
1281     ,);;
1282     *)
1283       if test "x$ac_old_val" != "x$ac_new_val"; then
1284         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1287 echo "$as_me:   former value:  $ac_old_val" >&2;}
1288         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1289 echo "$as_me:   current value: $ac_new_val" >&2;}
1290         ac_cache_corrupted=:
1291       fi;;
1292   esac
1293   # Pass precious variables to config.status.
1294   if test "$ac_new_set" = set; then
1295     case $ac_new_val in
1296     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298     *) ac_arg=$ac_var=$ac_new_val ;;
1299     esac
1300     case " $ac_configure_args " in
1301       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1302       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303     esac
1304   fi
1305 done
1306 if $ac_cache_corrupted; then
1307   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311    { (exit 1); exit 1; }; }
1312 fi
1313
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1340 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1341     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1342 if test "${enable_maintainer_mode+set}" = set; then
1343   enableval="$enable_maintainer_mode"
1344   USE_MAINTAINER_MODE=$enableval
1345 else
1346   USE_MAINTAINER_MODE=no
1347 fi;
1348   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1349 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1350
1351
1352 if test $USE_MAINTAINER_MODE = yes; then
1353   MAINTAINER_MODE_TRUE=
1354   MAINTAINER_MODE_FALSE='#'
1355 else
1356   MAINTAINER_MODE_TRUE='#'
1357   MAINTAINER_MODE_FALSE=
1358 fi
1359
1360   MAINT=$MAINTAINER_MODE_TRUE
1361
1362
1363 am__api_version="1.7"
1364 ac_aux_dir=
1365 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1366   if test -f $ac_dir/install-sh; then
1367     ac_aux_dir=$ac_dir
1368     ac_install_sh="$ac_aux_dir/install-sh -c"
1369     break
1370   elif test -f $ac_dir/install.sh; then
1371     ac_aux_dir=$ac_dir
1372     ac_install_sh="$ac_aux_dir/install.sh -c"
1373     break
1374   elif test -f $ac_dir/shtool; then
1375     ac_aux_dir=$ac_dir
1376     ac_install_sh="$ac_aux_dir/shtool install -c"
1377     break
1378   fi
1379 done
1380 if test -z "$ac_aux_dir"; then
1381   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1382 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1383    { (exit 1); exit 1; }; }
1384 fi
1385 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1386 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1387 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1388
1389 # Find a good install program.  We prefer a C program (faster),
1390 # so one script is as good as another.  But avoid the broken or
1391 # incompatible versions:
1392 # SysV /etc/install, /usr/sbin/install
1393 # SunOS /usr/etc/install
1394 # IRIX /sbin/install
1395 # AIX /bin/install
1396 # AmigaOS /C/install, which installs bootblocks on floppy discs
1397 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1398 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1399 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1400 # OS/2's system install, which has a completely different semantic
1401 # ./install, which can be erroneously created by make from ./install.sh.
1402 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1403 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1404 if test -z "$INSTALL"; then
1405 if test "${ac_cv_path_install+set}" = set; then
1406   echo $ECHO_N "(cached) $ECHO_C" >&6
1407 else
1408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1409 for as_dir in $PATH
1410 do
1411   IFS=$as_save_IFS
1412   test -z "$as_dir" && as_dir=.
1413   # Account for people who put trailing slashes in PATH elements.
1414 case $as_dir/ in
1415   ./ | .// | /cC/* | \
1416   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1417   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1418   /usr/ucb/* ) ;;
1419   *)
1420     # OSF1 and SCO ODT 3.0 have their own names for install.
1421     # Don't use installbsd from OSF since it installs stuff as root
1422     # by default.
1423     for ac_prog in ginstall scoinst install; do
1424       for ac_exec_ext in '' $ac_executable_extensions; do
1425         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1426           if test $ac_prog = install &&
1427             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1428             # AIX install.  It has an incompatible calling convention.
1429             :
1430           elif test $ac_prog = install &&
1431             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1432             # program-specific install script used by HP pwplus--don't use.
1433             :
1434           else
1435             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1436             break 3
1437           fi
1438         fi
1439       done
1440     done
1441     ;;
1442 esac
1443 done
1444
1445
1446 fi
1447   if test "${ac_cv_path_install+set}" = set; then
1448     INSTALL=$ac_cv_path_install
1449   else
1450     # As a last resort, use the slow shell script.  We don't cache a
1451     # path for INSTALL within a source directory, because that will
1452     # break other packages using the cache if that directory is
1453     # removed, or if the path is relative.
1454     INSTALL=$ac_install_sh
1455   fi
1456 fi
1457 echo "$as_me:$LINENO: result: $INSTALL" >&5
1458 echo "${ECHO_T}$INSTALL" >&6
1459
1460 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1461 # It thinks the first close brace ends the variable substitution.
1462 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1463
1464 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1465
1466 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1467
1468 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1469 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1470 # Just in case
1471 sleep 1
1472 echo timestamp > conftest.file
1473 # Do `set' in a subshell so we don't clobber the current shell's
1474 # arguments.  Must try -L first in case configure is actually a
1475 # symlink; some systems play weird games with the mod time of symlinks
1476 # (eg FreeBSD returns the mod time of the symlink's containing
1477 # directory).
1478 if (
1479    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1480    if test "$*" = "X"; then
1481       # -L didn't work.
1482       set X `ls -t $srcdir/configure conftest.file`
1483    fi
1484    rm -f conftest.file
1485    if test "$*" != "X $srcdir/configure conftest.file" \
1486       && test "$*" != "X conftest.file $srcdir/configure"; then
1487
1488       # If neither matched, then we have a broken ls.  This can happen
1489       # if, for instance, CONFIG_SHELL is bash and it inherits a
1490       # broken ls alias from the environment.  This has actually
1491       # happened.  Such a system could not be considered "sane".
1492       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1493 alias in your environment" >&5
1494 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1495 alias in your environment" >&2;}
1496    { (exit 1); exit 1; }; }
1497    fi
1498
1499    test "$2" = conftest.file
1500    )
1501 then
1502    # Ok.
1503    :
1504 else
1505    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1506 Check your system clock" >&5
1507 echo "$as_me: error: newly created file is older than distributed files!
1508 Check your system clock" >&2;}
1509    { (exit 1); exit 1; }; }
1510 fi
1511 echo "$as_me:$LINENO: result: yes" >&5
1512 echo "${ECHO_T}yes" >&6
1513 test "$program_prefix" != NONE &&
1514   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1515 # Use a double $ so make ignores it.
1516 test "$program_suffix" != NONE &&
1517   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1518 # Double any \ or $.  echo might interpret backslashes.
1519 # By default was `s,x,x', remove it if useless.
1520 cat <<\_ACEOF >conftest.sed
1521 s/[\\$]/&&/g;s/;s,x,x,$//
1522 _ACEOF
1523 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1524 rm conftest.sed
1525
1526
1527 # expand $ac_aux_dir to an absolute path
1528 am_aux_dir=`cd $ac_aux_dir && pwd`
1529
1530 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1531 # Use eval to expand $SHELL
1532 if eval "$MISSING --run true"; then
1533   am_missing_run="$MISSING --run "
1534 else
1535   am_missing_run=
1536   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1537 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1538 fi
1539
1540 for ac_prog in gawk mawk nawk awk
1541 do
1542   # Extract the first word of "$ac_prog", so it can be a program name with args.
1543 set dummy $ac_prog; ac_word=$2
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_AWK+set}" = set; then
1547   echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549   if test -n "$AWK"; then
1550   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1551 else
1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553 for as_dir in $PATH
1554 do
1555   IFS=$as_save_IFS
1556   test -z "$as_dir" && as_dir=.
1557   for ac_exec_ext in '' $ac_executable_extensions; do
1558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559     ac_cv_prog_AWK="$ac_prog"
1560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561     break 2
1562   fi
1563 done
1564 done
1565
1566 fi
1567 fi
1568 AWK=$ac_cv_prog_AWK
1569 if test -n "$AWK"; then
1570   echo "$as_me:$LINENO: result: $AWK" >&5
1571 echo "${ECHO_T}$AWK" >&6
1572 else
1573   echo "$as_me:$LINENO: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1575 fi
1576
1577   test -n "$AWK" && break
1578 done
1579
1580 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1581 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1582 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1583 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1584   echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586   cat >conftest.make <<\_ACEOF
1587 all:
1588         @echo 'ac_maketemp="$(MAKE)"'
1589 _ACEOF
1590 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1591 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1592 if test -n "$ac_maketemp"; then
1593   eval ac_cv_prog_make_${ac_make}_set=yes
1594 else
1595   eval ac_cv_prog_make_${ac_make}_set=no
1596 fi
1597 rm -f conftest.make
1598 fi
1599 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1600   echo "$as_me:$LINENO: result: yes" >&5
1601 echo "${ECHO_T}yes" >&6
1602   SET_MAKE=
1603 else
1604   echo "$as_me:$LINENO: result: no" >&5
1605 echo "${ECHO_T}no" >&6
1606   SET_MAKE="MAKE=${MAKE-make}"
1607 fi
1608
1609 rm -rf .tst 2>/dev/null
1610 mkdir .tst 2>/dev/null
1611 if test -d .tst; then
1612   am__leading_dot=.
1613 else
1614   am__leading_dot=_
1615 fi
1616 rmdir .tst 2>/dev/null
1617
1618  # test to see if srcdir already configured
1619 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1620    test -f $srcdir/config.status; then
1621   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1622 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1623    { (exit 1); exit 1; }; }
1624 fi
1625
1626 # test whether we have cygpath
1627 if test -z "$CYGPATH_W"; then
1628   if (cygpath --version) >/dev/null 2>/dev/null; then
1629     CYGPATH_W='cygpath -w'
1630   else
1631     CYGPATH_W=echo
1632   fi
1633 fi
1634
1635
1636 # Define the identity of the package.
1637  PACKAGE=ctsim
1638  VERSION=4.3.4
1639
1640
1641 cat >>confdefs.h <<_ACEOF
1642 #define PACKAGE "$PACKAGE"
1643 _ACEOF
1644
1645
1646 cat >>confdefs.h <<_ACEOF
1647 #define VERSION "$VERSION"
1648 _ACEOF
1649
1650 # Some tools Automake needs.
1651
1652 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1653
1654
1655 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1656
1657
1658 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1659
1660
1661 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1662
1663
1664 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1665
1666
1667 AMTAR=${AMTAR-"${am_missing_run}tar"}
1668
1669 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1670
1671 # Installed binaries are usually stripped using `strip' when the user
1672 # run `make install-strip'.  However `strip' might not be the right
1673 # tool to use in cross-compilation environments, therefore Automake
1674 # will honor the `STRIP' environment variable to overrule this program.
1675 if test "$cross_compiling" != no; then
1676   if test -n "$ac_tool_prefix"; then
1677   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1678 set dummy ${ac_tool_prefix}strip; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_STRIP+set}" = set; then
1682   echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684   if test -n "$STRIP"; then
1685   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1686 else
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1689 do
1690   IFS=$as_save_IFS
1691   test -z "$as_dir" && as_dir=.
1692   for ac_exec_ext in '' $ac_executable_extensions; do
1693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696     break 2
1697   fi
1698 done
1699 done
1700
1701 fi
1702 fi
1703 STRIP=$ac_cv_prog_STRIP
1704 if test -n "$STRIP"; then
1705   echo "$as_me:$LINENO: result: $STRIP" >&5
1706 echo "${ECHO_T}$STRIP" >&6
1707 else
1708   echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1710 fi
1711
1712 fi
1713 if test -z "$ac_cv_prog_STRIP"; then
1714   ac_ct_STRIP=$STRIP
1715   # Extract the first word of "strip", so it can be a program name with args.
1716 set dummy strip; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1720   echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722   if test -n "$ac_ct_STRIP"; then
1723   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1727 do
1728   IFS=$as_save_IFS
1729   test -z "$as_dir" && as_dir=.
1730   for ac_exec_ext in '' $ac_executable_extensions; do
1731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732     ac_cv_prog_ac_ct_STRIP="strip"
1733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734     break 2
1735   fi
1736 done
1737 done
1738
1739   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1740 fi
1741 fi
1742 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1743 if test -n "$ac_ct_STRIP"; then
1744   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1745 echo "${ECHO_T}$ac_ct_STRIP" >&6
1746 else
1747   echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1749 fi
1750
1751   STRIP=$ac_ct_STRIP
1752 else
1753   STRIP="$ac_cv_prog_STRIP"
1754 fi
1755
1756 fi
1757 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1758
1759 # We need awk for the "check" target.  The system "awk" is bad on
1760 # some platforms.
1761
1762
1763
1764           ac_config_headers="$ac_config_headers config.h"
1765
1766
1767 for ac_prog in gawk mawk nawk awk
1768 do
1769   # Extract the first word of "$ac_prog", so it can be a program name with args.
1770 set dummy $ac_prog; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_AWK+set}" = set; then
1774   echo $ECHO_N "(cached) $ECHO_C" >&6
1775 else
1776   if test -n "$AWK"; then
1777   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1778 else
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1781 do
1782   IFS=$as_save_IFS
1783   test -z "$as_dir" && as_dir=.
1784   for ac_exec_ext in '' $ac_executable_extensions; do
1785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786     ac_cv_prog_AWK="$ac_prog"
1787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788     break 2
1789   fi
1790 done
1791 done
1792
1793 fi
1794 fi
1795 AWK=$ac_cv_prog_AWK
1796 if test -n "$AWK"; then
1797   echo "$as_me:$LINENO: result: $AWK" >&5
1798 echo "${ECHO_T}$AWK" >&6
1799 else
1800   echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1802 fi
1803
1804   test -n "$AWK" && break
1805 done
1806
1807 # Find a good install program.  We prefer a C program (faster),
1808 # so one script is as good as another.  But avoid the broken or
1809 # incompatible versions:
1810 # SysV /etc/install, /usr/sbin/install
1811 # SunOS /usr/etc/install
1812 # IRIX /sbin/install
1813 # AIX /bin/install
1814 # AmigaOS /C/install, which installs bootblocks on floppy discs
1815 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1816 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1817 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1818 # OS/2's system install, which has a completely different semantic
1819 # ./install, which can be erroneously created by make from ./install.sh.
1820 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1821 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1822 if test -z "$INSTALL"; then
1823 if test "${ac_cv_path_install+set}" = set; then
1824   echo $ECHO_N "(cached) $ECHO_C" >&6
1825 else
1826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1828 do
1829   IFS=$as_save_IFS
1830   test -z "$as_dir" && as_dir=.
1831   # Account for people who put trailing slashes in PATH elements.
1832 case $as_dir/ in
1833   ./ | .// | /cC/* | \
1834   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1835   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1836   /usr/ucb/* ) ;;
1837   *)
1838     # OSF1 and SCO ODT 3.0 have their own names for install.
1839     # Don't use installbsd from OSF since it installs stuff as root
1840     # by default.
1841     for ac_prog in ginstall scoinst install; do
1842       for ac_exec_ext in '' $ac_executable_extensions; do
1843         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1844           if test $ac_prog = install &&
1845             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1846             # AIX install.  It has an incompatible calling convention.
1847             :
1848           elif test $ac_prog = install &&
1849             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1850             # program-specific install script used by HP pwplus--don't use.
1851             :
1852           else
1853             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1854             break 3
1855           fi
1856         fi
1857       done
1858     done
1859     ;;
1860 esac
1861 done
1862
1863
1864 fi
1865   if test "${ac_cv_path_install+set}" = set; then
1866     INSTALL=$ac_cv_path_install
1867   else
1868     # As a last resort, use the slow shell script.  We don't cache a
1869     # path for INSTALL within a source directory, because that will
1870     # break other packages using the cache if that directory is
1871     # removed, or if the path is relative.
1872     INSTALL=$ac_install_sh
1873   fi
1874 fi
1875 echo "$as_me:$LINENO: result: $INSTALL" >&5
1876 echo "${ECHO_T}$INSTALL" >&6
1877
1878 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1879 # It thinks the first close brace ends the variable substitution.
1880 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1881
1882 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1883
1884 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1885
1886 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1887 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1888 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1889 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1890   echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892   cat >conftest.make <<\_ACEOF
1893 all:
1894         @echo 'ac_maketemp="$(MAKE)"'
1895 _ACEOF
1896 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1897 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1898 if test -n "$ac_maketemp"; then
1899   eval ac_cv_prog_make_${ac_make}_set=yes
1900 else
1901   eval ac_cv_prog_make_${ac_make}_set=no
1902 fi
1903 rm -f conftest.make
1904 fi
1905 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1906   echo "$as_me:$LINENO: result: yes" >&5
1907 echo "${ECHO_T}yes" >&6
1908   SET_MAKE=
1909 else
1910   echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1912   SET_MAKE="MAKE=${MAKE-make}"
1913 fi
1914
1915 if test -n "$ac_tool_prefix"; then
1916   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1917 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_RANLIB+set}" = set; then
1921   echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923   if test -n "$RANLIB"; then
1924   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1925 else
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929   IFS=$as_save_IFS
1930   test -z "$as_dir" && as_dir=.
1931   for ac_exec_ext in '' $ac_executable_extensions; do
1932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935     break 2
1936   fi
1937 done
1938 done
1939
1940 fi
1941 fi
1942 RANLIB=$ac_cv_prog_RANLIB
1943 if test -n "$RANLIB"; then
1944   echo "$as_me:$LINENO: result: $RANLIB" >&5
1945 echo "${ECHO_T}$RANLIB" >&6
1946 else
1947   echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949 fi
1950
1951 fi
1952 if test -z "$ac_cv_prog_RANLIB"; then
1953   ac_ct_RANLIB=$RANLIB
1954   # Extract the first word of "ranlib", so it can be a program name with args.
1955 set dummy ranlib; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test -n "$ac_ct_RANLIB"; then
1962   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969   for ac_exec_ext in '' $ac_executable_extensions; do
1970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971     ac_cv_prog_ac_ct_RANLIB="ranlib"
1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973     break 2
1974   fi
1975 done
1976 done
1977
1978   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1979 fi
1980 fi
1981 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1982 if test -n "$ac_ct_RANLIB"; then
1983   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1984 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1985 else
1986   echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6
1988 fi
1989
1990   RANLIB=$ac_ct_RANLIB
1991 else
1992   RANLIB="$ac_cv_prog_RANLIB"
1993 fi
1994
1995
1996 ac_ext=c
1997 ac_cpp='$CPP $CPPFLAGS'
1998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001 if test -n "$ac_tool_prefix"; then
2002   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   if test -n "$CC"; then
2010   ac_cv_prog_CC="$CC" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015   IFS=$as_save_IFS
2016   test -z "$as_dir" && as_dir=.
2017   for ac_exec_ext in '' $ac_executable_extensions; do
2018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021     break 2
2022   fi
2023 done
2024 done
2025
2026 fi
2027 fi
2028 CC=$ac_cv_prog_CC
2029 if test -n "$CC"; then
2030   echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6
2032 else
2033   echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2035 fi
2036
2037 fi
2038 if test -z "$ac_cv_prog_CC"; then
2039   ac_ct_CC=$CC
2040   # Extract the first word of "gcc", so it can be a program name with args.
2041 set dummy gcc; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2045   echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047   if test -n "$ac_ct_CC"; then
2048   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2052 do
2053   IFS=$as_save_IFS
2054   test -z "$as_dir" && as_dir=.
2055   for ac_exec_ext in '' $ac_executable_extensions; do
2056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057     ac_cv_prog_ac_ct_CC="gcc"
2058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059     break 2
2060   fi
2061 done
2062 done
2063
2064 fi
2065 fi
2066 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2067 if test -n "$ac_ct_CC"; then
2068   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2069 echo "${ECHO_T}$ac_ct_CC" >&6
2070 else
2071   echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2073 fi
2074
2075   CC=$ac_ct_CC
2076 else
2077   CC="$ac_cv_prog_CC"
2078 fi
2079
2080 if test -z "$CC"; then
2081   if test -n "$ac_tool_prefix"; then
2082   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2083 set dummy ${ac_tool_prefix}cc; ac_word=$2
2084 echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2086 if test "${ac_cv_prog_CC+set}" = set; then
2087   echo $ECHO_N "(cached) $ECHO_C" >&6
2088 else
2089   if test -n "$CC"; then
2090   ac_cv_prog_CC="$CC" # Let the user override the test.
2091 else
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 for as_dir in $PATH
2094 do
2095   IFS=$as_save_IFS
2096   test -z "$as_dir" && as_dir=.
2097   for ac_exec_ext in '' $ac_executable_extensions; do
2098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2099     ac_cv_prog_CC="${ac_tool_prefix}cc"
2100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101     break 2
2102   fi
2103 done
2104 done
2105
2106 fi
2107 fi
2108 CC=$ac_cv_prog_CC
2109 if test -n "$CC"; then
2110   echo "$as_me:$LINENO: result: $CC" >&5
2111 echo "${ECHO_T}$CC" >&6
2112 else
2113   echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6
2115 fi
2116
2117 fi
2118 if test -z "$ac_cv_prog_CC"; then
2119   ac_ct_CC=$CC
2120   # Extract the first word of "cc", so it can be a program name with args.
2121 set dummy cc; ac_word=$2
2122 echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2124 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2125   echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127   if test -n "$ac_ct_CC"; then
2128   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2129 else
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH
2132 do
2133   IFS=$as_save_IFS
2134   test -z "$as_dir" && as_dir=.
2135   for ac_exec_ext in '' $ac_executable_extensions; do
2136   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2137     ac_cv_prog_ac_ct_CC="cc"
2138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139     break 2
2140   fi
2141 done
2142 done
2143
2144 fi
2145 fi
2146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2147 if test -n "$ac_ct_CC"; then
2148   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2149 echo "${ECHO_T}$ac_ct_CC" >&6
2150 else
2151   echo "$as_me:$LINENO: result: no" >&5
2152 echo "${ECHO_T}no" >&6
2153 fi
2154
2155   CC=$ac_ct_CC
2156 else
2157   CC="$ac_cv_prog_CC"
2158 fi
2159
2160 fi
2161 if test -z "$CC"; then
2162   # Extract the first word of "cc", so it can be a program name with args.
2163 set dummy cc; ac_word=$2
2164 echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2166 if test "${ac_cv_prog_CC+set}" = set; then
2167   echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169   if test -n "$CC"; then
2170   ac_cv_prog_CC="$CC" # Let the user override the test.
2171 else
2172   ac_prog_rejected=no
2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 for as_dir in $PATH
2175 do
2176   IFS=$as_save_IFS
2177   test -z "$as_dir" && as_dir=.
2178   for ac_exec_ext in '' $ac_executable_extensions; do
2179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2180     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2181        ac_prog_rejected=yes
2182        continue
2183      fi
2184     ac_cv_prog_CC="cc"
2185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186     break 2
2187   fi
2188 done
2189 done
2190
2191 if test $ac_prog_rejected = yes; then
2192   # We found a bogon in the path, so make sure we never use it.
2193   set dummy $ac_cv_prog_CC
2194   shift
2195   if test $# != 0; then
2196     # We chose a different compiler from the bogus one.
2197     # However, it has the same basename, so the bogon will be chosen
2198     # first if we set CC to just the basename; use the full file name.
2199     shift
2200     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2201   fi
2202 fi
2203 fi
2204 fi
2205 CC=$ac_cv_prog_CC
2206 if test -n "$CC"; then
2207   echo "$as_me:$LINENO: result: $CC" >&5
2208 echo "${ECHO_T}$CC" >&6
2209 else
2210   echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2212 fi
2213
2214 fi
2215 if test -z "$CC"; then
2216   if test -n "$ac_tool_prefix"; then
2217   for ac_prog in cl
2218   do
2219     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2221 echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223 if test "${ac_cv_prog_CC+set}" = set; then
2224   echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226   if test -n "$CC"; then
2227   ac_cv_prog_CC="$CC" # Let the user override the test.
2228 else
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2231 do
2232   IFS=$as_save_IFS
2233   test -z "$as_dir" && as_dir=.
2234   for ac_exec_ext in '' $ac_executable_extensions; do
2235   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238     break 2
2239   fi
2240 done
2241 done
2242
2243 fi
2244 fi
2245 CC=$ac_cv_prog_CC
2246 if test -n "$CC"; then
2247   echo "$as_me:$LINENO: result: $CC" >&5
2248 echo "${ECHO_T}$CC" >&6
2249 else
2250   echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6
2252 fi
2253
2254     test -n "$CC" && break
2255   done
2256 fi
2257 if test -z "$CC"; then
2258   ac_ct_CC=$CC
2259   for ac_prog in cl
2260 do
2261   # Extract the first word of "$ac_prog", so it can be a program name with args.
2262 set dummy $ac_prog; ac_word=$2
2263 echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2265 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2266   echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268   if test -n "$ac_ct_CC"; then
2269   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2270 else
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2273 do
2274   IFS=$as_save_IFS
2275   test -z "$as_dir" && as_dir=.
2276   for ac_exec_ext in '' $ac_executable_extensions; do
2277   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2278     ac_cv_prog_ac_ct_CC="$ac_prog"
2279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280     break 2
2281   fi
2282 done
2283 done
2284
2285 fi
2286 fi
2287 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2288 if test -n "$ac_ct_CC"; then
2289   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2290 echo "${ECHO_T}$ac_ct_CC" >&6
2291 else
2292   echo "$as_me:$LINENO: result: no" >&5
2293 echo "${ECHO_T}no" >&6
2294 fi
2295
2296   test -n "$ac_ct_CC" && break
2297 done
2298
2299   CC=$ac_ct_CC
2300 fi
2301
2302 fi
2303
2304
2305 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: no acceptable C compiler found in \$PATH
2308 See \`config.log' for more details." >&2;}
2309    { (exit 1); exit 1; }; }
2310
2311 # Provide some information about the compiler.
2312 echo "$as_me:$LINENO:" \
2313      "checking for C compiler version" >&5
2314 ac_compiler=`set X $ac_compile; echo $2`
2315 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2316   (eval $ac_compiler --version </dev/null >&5) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }
2320 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2321   (eval $ac_compiler -v </dev/null >&5) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }
2325 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2326   (eval $ac_compiler -V </dev/null >&5) 2>&5
2327   ac_status=$?
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); }
2330
2331 cat >conftest.$ac_ext <<_ACEOF
2332 /* confdefs.h.  */
2333 _ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h.  */
2337
2338 int
2339 main ()
2340 {
2341
2342   ;
2343   return 0;
2344 }
2345 _ACEOF
2346 ac_clean_files_save=$ac_clean_files
2347 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2348 # Try to create an executable without -o first, disregard a.out.
2349 # It will help us diagnose broken compilers, and finding out an intuition
2350 # of exeext.
2351 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2352 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2353 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2354 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2355   (eval $ac_link_default) 2>&5
2356   ac_status=$?
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); }; then
2359   # Find the output, starting from the most likely.  This scheme is
2360 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2361 # resort.
2362
2363 # Be careful to initialize this variable, since it used to be cached.
2364 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2365 ac_cv_exeext=
2366 # b.out is created by i960 compilers.
2367 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2368 do
2369   test -f "$ac_file" || continue
2370   case $ac_file in
2371     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2372         ;;
2373     conftest.$ac_ext )
2374         # This is the source file.
2375         ;;
2376     [ab].out )
2377         # We found the default executable, but exeext='' is most
2378         # certainly right.
2379         break;;
2380     *.* )
2381         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2382         # FIXME: I believe we export ac_cv_exeext for Libtool,
2383         # but it would be cool to find out if it's true.  Does anybody
2384         # maintain Libtool? --akim.
2385         export ac_cv_exeext
2386         break;;
2387     * )
2388         break;;
2389   esac
2390 done
2391 else
2392   echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2394
2395 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2396 See \`config.log' for more details." >&5
2397 echo "$as_me: error: C compiler cannot create executables
2398 See \`config.log' for more details." >&2;}
2399    { (exit 77); exit 77; }; }
2400 fi
2401
2402 ac_exeext=$ac_cv_exeext
2403 echo "$as_me:$LINENO: result: $ac_file" >&5
2404 echo "${ECHO_T}$ac_file" >&6
2405
2406 # Check the compiler produces executables we can run.  If not, either
2407 # the compiler is broken, or we cross compile.
2408 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2409 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2410 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2411 # If not cross compiling, check that we can run a simple program.
2412 if test "$cross_compiling" != yes; then
2413   if { ac_try='./$ac_file'
2414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415   (eval $ac_try) 2>&5
2416   ac_status=$?
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); }; }; then
2419     cross_compiling=no
2420   else
2421     if test "$cross_compiling" = maybe; then
2422         cross_compiling=yes
2423     else
2424         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2425 If you meant to cross compile, use \`--host'.
2426 See \`config.log' for more details." >&5
2427 echo "$as_me: error: cannot run C compiled programs.
2428 If you meant to cross compile, use \`--host'.
2429 See \`config.log' for more details." >&2;}
2430    { (exit 1); exit 1; }; }
2431     fi
2432   fi
2433 fi
2434 echo "$as_me:$LINENO: result: yes" >&5
2435 echo "${ECHO_T}yes" >&6
2436
2437 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2438 ac_clean_files=$ac_clean_files_save
2439 # Check the compiler produces executables we can run.  If not, either
2440 # the compiler is broken, or we cross compile.
2441 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2442 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2443 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2444 echo "${ECHO_T}$cross_compiling" >&6
2445
2446 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2447 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2449   (eval $ac_link) 2>&5
2450   ac_status=$?
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); }; then
2453   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2454 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2455 # work properly (i.e., refer to `conftest.exe'), while it won't with
2456 # `rm'.
2457 for ac_file in conftest.exe conftest conftest.*; do
2458   test -f "$ac_file" || continue
2459   case $ac_file in
2460     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2461     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2462           export ac_cv_exeext
2463           break;;
2464     * ) break;;
2465   esac
2466 done
2467 else
2468   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2469 See \`config.log' for more details." >&5
2470 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2471 See \`config.log' for more details." >&2;}
2472    { (exit 1); exit 1; }; }
2473 fi
2474
2475 rm -f conftest$ac_cv_exeext
2476 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2477 echo "${ECHO_T}$ac_cv_exeext" >&6
2478
2479 rm -f conftest.$ac_ext
2480 EXEEXT=$ac_cv_exeext
2481 ac_exeext=$EXEEXT
2482 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2483 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2484 if test "${ac_cv_objext+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493
2494 int
2495 main ()
2496 {
2497
2498   ;
2499   return 0;
2500 }
2501 _ACEOF
2502 rm -f conftest.o conftest.obj
2503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504   (eval $ac_compile) 2>&5
2505   ac_status=$?
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); }; then
2508   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2509   case $ac_file in
2510     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2511     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2512        break;;
2513   esac
2514 done
2515 else
2516   echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2518
2519 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2520 See \`config.log' for more details." >&5
2521 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2522 See \`config.log' for more details." >&2;}
2523    { (exit 1); exit 1; }; }
2524 fi
2525
2526 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2527 fi
2528 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2529 echo "${ECHO_T}$ac_cv_objext" >&6
2530 OBJEXT=$ac_cv_objext
2531 ac_objext=$OBJEXT
2532 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2533 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2534 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2535   echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537   cat >conftest.$ac_ext <<_ACEOF
2538 /* confdefs.h.  */
2539 _ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h.  */
2543
2544 int
2545 main ()
2546 {
2547 #ifndef __GNUC__
2548        choke me
2549 #endif
2550
2551   ;
2552   return 0;
2553 }
2554 _ACEOF
2555 rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557   (eval $ac_compile) 2>conftest.er1
2558   ac_status=$?
2559   grep -v '^ *+' conftest.er1 >conftest.err
2560   rm -f conftest.er1
2561   cat conftest.err >&5
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); } &&
2564          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566   (eval $ac_try) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; } &&
2570          { ac_try='test -s conftest.$ac_objext'
2571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572   (eval $ac_try) 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }; }; then
2576   ac_compiler_gnu=yes
2577 else
2578   echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2580
2581 ac_compiler_gnu=no
2582 fi
2583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2584 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2585
2586 fi
2587 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2588 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2589 GCC=`test $ac_compiler_gnu = yes && echo yes`
2590 ac_test_CFLAGS=${CFLAGS+set}
2591 ac_save_CFLAGS=$CFLAGS
2592 CFLAGS="-g"
2593 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2594 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2595 if test "${ac_cv_prog_cc_g+set}" = set; then
2596   echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598   cat >conftest.$ac_ext <<_ACEOF
2599 /* confdefs.h.  */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h.  */
2604
2605 int
2606 main ()
2607 {
2608
2609   ;
2610   return 0;
2611 }
2612 _ACEOF
2613 rm -f conftest.$ac_objext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615   (eval $ac_compile) 2>conftest.er1
2616   ac_status=$?
2617   grep -v '^ *+' conftest.er1 >conftest.err
2618   rm -f conftest.er1
2619   cat conftest.err >&5
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); } &&
2622          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624   (eval $ac_try) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }; } &&
2628          { ac_try='test -s conftest.$ac_objext'
2629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630   (eval $ac_try) 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }; }; then
2634   ac_cv_prog_cc_g=yes
2635 else
2636   echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639 ac_cv_prog_cc_g=no
2640 fi
2641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2642 fi
2643 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2645 if test "$ac_test_CFLAGS" = set; then
2646   CFLAGS=$ac_save_CFLAGS
2647 elif test $ac_cv_prog_cc_g = yes; then
2648   if test "$GCC" = yes; then
2649     CFLAGS="-g -O2"
2650   else
2651     CFLAGS="-g"
2652   fi
2653 else
2654   if test "$GCC" = yes; then
2655     CFLAGS="-O2"
2656   else
2657     CFLAGS=
2658   fi
2659 fi
2660 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2661 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2662 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2663   echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665   ac_cv_prog_cc_stdc=no
2666 ac_save_CC=$CC
2667 cat >conftest.$ac_ext <<_ACEOF
2668 /* confdefs.h.  */
2669 _ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h.  */
2673 #include <stdarg.h>
2674 #include <stdio.h>
2675 #include <sys/types.h>
2676 #include <sys/stat.h>
2677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2678 struct buf { int x; };
2679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2680 static char *e (p, i)
2681      char **p;
2682      int i;
2683 {
2684   return p[i];
2685 }
2686 static char *f (char * (*g) (char **, int), char **p, ...)
2687 {
2688   char *s;
2689   va_list v;
2690   va_start (v,p);
2691   s = g (p, va_arg (v,int));
2692   va_end (v);
2693   return s;
2694 }
2695
2696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2697    function prototypes and stuff, but not '\xHH' hex character constants.
2698    These don't provoke an error unfortunately, instead are silently treated
2699    as 'x'.  The following induces an error, until -std1 is added to get
2700    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2701    array size at least.  It's necessary to write '\x00'==0 to get something
2702    that's true only with -std1.  */
2703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2704
2705 int test (int i, double x);
2706 struct s1 {int (*f) (int a);};
2707 struct s2 {int (*f) (double a);};
2708 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2709 int argc;
2710 char **argv;
2711 int
2712 main ()
2713 {
2714 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2715   ;
2716   return 0;
2717 }
2718 _ACEOF
2719 # Don't try gcc -ansi; that turns off useful extensions and
2720 # breaks some systems' header files.
2721 # AIX                   -qlanglvl=ansi
2722 # Ultrix and OSF/1      -std1
2723 # HP-UX 10.20 and later -Ae
2724 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2725 # SVR4                  -Xc -D__EXTENSIONS__
2726 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2727 do
2728   CC="$ac_save_CC $ac_arg"
2729   rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731   (eval $ac_compile) 2>conftest.er1
2732   ac_status=$?
2733   grep -v '^ *+' conftest.er1 >conftest.err
2734   rm -f conftest.er1
2735   cat conftest.err >&5
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); } &&
2738          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740   (eval $ac_try) 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); }; } &&
2744          { ac_try='test -s conftest.$ac_objext'
2745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746   (eval $ac_try) 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); }; }; then
2750   ac_cv_prog_cc_stdc=$ac_arg
2751 break
2752 else
2753   echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2755
2756 fi
2757 rm -f conftest.err conftest.$ac_objext
2758 done
2759 rm -f conftest.$ac_ext conftest.$ac_objext
2760 CC=$ac_save_CC
2761
2762 fi
2763
2764 case "x$ac_cv_prog_cc_stdc" in
2765   x|xno)
2766     echo "$as_me:$LINENO: result: none needed" >&5
2767 echo "${ECHO_T}none needed" >&6 ;;
2768   *)
2769     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2771     CC="$CC $ac_cv_prog_cc_stdc" ;;
2772 esac
2773
2774 # Some people use a C++ compiler to compile C.  Since we use `exit',
2775 # in C++ we need to declare it.  In case someone uses the same compiler
2776 # for both compiling C and C++ we need to have the C++ compiler decide
2777 # the declaration of exit, since it's the most demanding environment.
2778 cat >conftest.$ac_ext <<_ACEOF
2779 #ifndef __cplusplus
2780   choke me
2781 #endif
2782 _ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785   (eval $ac_compile) 2>conftest.er1
2786   ac_status=$?
2787   grep -v '^ *+' conftest.er1 >conftest.err
2788   rm -f conftest.er1
2789   cat conftest.err >&5
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); } &&
2792          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; } &&
2798          { ac_try='test -s conftest.$ac_objext'
2799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800   (eval $ac_try) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; }; then
2804   for ac_declaration in \
2805    '' \
2806    'extern "C" void std::exit (int) throw (); using std::exit;' \
2807    'extern "C" void std::exit (int); using std::exit;' \
2808    'extern "C" void exit (int) throw ();' \
2809    'extern "C" void exit (int);' \
2810    'void exit (int);'
2811 do
2812   cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h.  */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h.  */
2818 $ac_declaration
2819 #include <stdlib.h>
2820 int
2821 main ()
2822 {
2823 exit (42);
2824   ;
2825   return 0;
2826 }
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830   (eval $ac_compile) 2>conftest.er1
2831   ac_status=$?
2832   grep -v '^ *+' conftest.er1 >conftest.err
2833   rm -f conftest.er1
2834   cat conftest.err >&5
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); } &&
2837          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839   (eval $ac_try) 2>&5
2840   ac_status=$?
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); }; } &&
2843          { ac_try='test -s conftest.$ac_objext'
2844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845   (eval $ac_try) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; }; then
2849   :
2850 else
2851   echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854 continue
2855 fi
2856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2857   cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h.  */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h.  */
2863 $ac_declaration
2864 int
2865 main ()
2866 {
2867 exit (42);
2868   ;
2869   return 0;
2870 }
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874   (eval $ac_compile) 2>conftest.er1
2875   ac_status=$?
2876   grep -v '^ *+' conftest.er1 >conftest.err
2877   rm -f conftest.er1
2878   cat conftest.err >&5
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); } &&
2881          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883   (eval $ac_try) 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }; } &&
2887          { ac_try='test -s conftest.$ac_objext'
2888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889   (eval $ac_try) 2>&5
2890   ac_status=$?
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); }; }; then
2893   break
2894 else
2895   echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898 fi
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900 done
2901 rm -f conftest*
2902 if test -n "$ac_declaration"; then
2903   echo '#ifdef __cplusplus' >>confdefs.h
2904   echo $ac_declaration      >>confdefs.h
2905   echo '#endif'             >>confdefs.h
2906 fi
2907
2908 else
2909   echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 fi
2913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2914 ac_ext=c
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919 DEPDIR="${am__leading_dot}deps"
2920
2921           ac_config_commands="$ac_config_commands depfiles"
2922
2923
2924 am_make=${MAKE-make}
2925 cat > confinc << 'END'
2926 am__doit:
2927         @echo done
2928 .PHONY: am__doit
2929 END
2930 # If we don't find an include directive, just comment out the code.
2931 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2932 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2933 am__include="#"
2934 am__quote=
2935 _am_result=none
2936 # First try GNU make style include.
2937 echo "include confinc" > confmf
2938 # We grep out `Entering directory' and `Leaving directory'
2939 # messages which can occur if `w' ends up in MAKEFLAGS.
2940 # In particular we don't look at `^make:' because GNU make might
2941 # be invoked under some other name (usually "gmake"), in which
2942 # case it prints its new name instead of `make'.
2943 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2944    am__include=include
2945    am__quote=
2946    _am_result=GNU
2947 fi
2948 # Now try BSD make style include.
2949 if test "$am__include" = "#"; then
2950    echo '.include "confinc"' > confmf
2951    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2952       am__include=.include
2953       am__quote="\""
2954       _am_result=BSD
2955    fi
2956 fi
2957
2958
2959 echo "$as_me:$LINENO: result: $_am_result" >&5
2960 echo "${ECHO_T}$_am_result" >&6
2961 rm -f confinc confmf
2962
2963 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2964 if test "${enable_dependency_tracking+set}" = set; then
2965   enableval="$enable_dependency_tracking"
2966
2967 fi;
2968 if test "x$enable_dependency_tracking" != xno; then
2969   am_depcomp="$ac_aux_dir/depcomp"
2970   AMDEPBACKSLASH='\'
2971 fi
2972
2973
2974 if test "x$enable_dependency_tracking" != xno; then
2975   AMDEP_TRUE=
2976   AMDEP_FALSE='#'
2977 else
2978   AMDEP_TRUE='#'
2979   AMDEP_FALSE=
2980 fi
2981
2982
2983
2984
2985 depcc="$CC"   am_compiler_list=
2986
2987 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2988 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2989 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2990   echo $ECHO_N "(cached) $ECHO_C" >&6
2991 else
2992   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2993   # We make a subdir and do the tests there.  Otherwise we can end up
2994   # making bogus files that we don't know about and never remove.  For
2995   # instance it was reported that on HP-UX the gcc test will end up
2996   # making a dummy file named `D' -- because `-MD' means `put the output
2997   # in D'.
2998   mkdir conftest.dir
2999   # Copy depcomp to subdir because otherwise we won't find it if we're
3000   # using a relative directory.
3001   cp "$am_depcomp" conftest.dir
3002   cd conftest.dir
3003   # We will build objects and dependencies in a subdirectory because
3004   # it helps to detect inapplicable dependency modes.  For instance
3005   # both Tru64's cc and ICC support -MD to output dependencies as a
3006   # side effect of compilation, but ICC will put the dependencies in
3007   # the current directory while Tru64 will put them in the object
3008   # directory.
3009   mkdir sub
3010
3011   am_cv_CC_dependencies_compiler_type=none
3012   if test "$am_compiler_list" = ""; then
3013      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3014   fi
3015   for depmode in $am_compiler_list; do
3016     # Setup a source with many dependencies, because some compilers
3017     # like to wrap large dependency lists on column 80 (with \), and
3018     # we should not choose a depcomp mode which is confused by this.
3019     #
3020     # We need to recreate these files for each test, as the compiler may
3021     # overwrite some of them when testing with obscure command lines.
3022     # This happens at least with the AIX C compiler.
3023     : > sub/conftest.c
3024     for i in 1 2 3 4 5 6; do
3025       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3026       : > sub/conftst$i.h
3027     done
3028     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3029
3030     case $depmode in
3031     nosideeffect)
3032       # after this tag, mechanisms are not by side-effect, so they'll
3033       # only be used when explicitly requested
3034       if test "x$enable_dependency_tracking" = xyes; then
3035         continue
3036       else
3037         break
3038       fi
3039       ;;
3040     none) break ;;
3041     esac
3042     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3043     # mode.  It turns out that the SunPro C++ compiler does not properly
3044     # handle `-M -o', and we need to detect this.
3045     if depmode=$depmode \
3046        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3047        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3048        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3049          >/dev/null 2>conftest.err &&
3050        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3051        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3052        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3053       # icc doesn't choke on unknown options, it will just issue warnings
3054       # (even with -Werror).  So we grep stderr for any message
3055       # that says an option was ignored.
3056       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3057         am_cv_CC_dependencies_compiler_type=$depmode
3058         break
3059       fi
3060     fi
3061   done
3062
3063   cd ..
3064   rm -rf conftest.dir
3065 else
3066   am_cv_CC_dependencies_compiler_type=none
3067 fi
3068
3069 fi
3070 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3071 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3072 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3073
3074
3075
3076 if
3077   test "x$enable_dependency_tracking" != xno \
3078   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3079   am__fastdepCC_TRUE=
3080   am__fastdepCC_FALSE='#'
3081 else
3082   am__fastdepCC_TRUE='#'
3083   am__fastdepCC_FALSE=
3084 fi
3085
3086
3087 ac_ext=cc
3088 ac_cpp='$CXXCPP $CPPFLAGS'
3089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3092 if test -n "$ac_tool_prefix"; then
3093   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3094   do
3095     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3097 echo "$as_me:$LINENO: checking for $ac_word" >&5
3098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3099 if test "${ac_cv_prog_CXX+set}" = set; then
3100   echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102   if test -n "$CXX"; then
3103   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108   IFS=$as_save_IFS
3109   test -z "$as_dir" && as_dir=.
3110   for ac_exec_ext in '' $ac_executable_extensions; do
3111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114     break 2
3115   fi
3116 done
3117 done
3118
3119 fi
3120 fi
3121 CXX=$ac_cv_prog_CXX
3122 if test -n "$CXX"; then
3123   echo "$as_me:$LINENO: result: $CXX" >&5
3124 echo "${ECHO_T}$CXX" >&6
3125 else
3126   echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6
3128 fi
3129
3130     test -n "$CXX" && break
3131   done
3132 fi
3133 if test -z "$CXX"; then
3134   ac_ct_CXX=$CXX
3135   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3136 do
3137   # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3141 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3142   echo $ECHO_N "(cached) $ECHO_C" >&6
3143 else
3144   if test -n "$ac_ct_CXX"; then
3145   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150   IFS=$as_save_IFS
3151   test -z "$as_dir" && as_dir=.
3152   for ac_exec_ext in '' $ac_executable_extensions; do
3153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154     ac_cv_prog_ac_ct_CXX="$ac_prog"
3155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156     break 2
3157   fi
3158 done
3159 done
3160
3161 fi
3162 fi
3163 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3164 if test -n "$ac_ct_CXX"; then
3165   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3166 echo "${ECHO_T}$ac_ct_CXX" >&6
3167 else
3168   echo "$as_me:$LINENO: result: no" >&5
3169 echo "${ECHO_T}no" >&6
3170 fi
3171
3172   test -n "$ac_ct_CXX" && break
3173 done
3174 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3175
3176   CXX=$ac_ct_CXX
3177 fi
3178
3179
3180 # Provide some information about the compiler.
3181 echo "$as_me:$LINENO:" \
3182      "checking for C++ compiler version" >&5
3183 ac_compiler=`set X $ac_compile; echo $2`
3184 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3185   (eval $ac_compiler --version </dev/null >&5) 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }
3189 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3190   (eval $ac_compiler -v </dev/null >&5) 2>&5
3191   ac_status=$?
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); }
3194 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3195   (eval $ac_compiler -V </dev/null >&5) 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }
3199
3200 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3201 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3202 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205   cat >conftest.$ac_ext <<_ACEOF
3206 /* confdefs.h.  */
3207 _ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h.  */
3211
3212 int
3213 main ()
3214 {
3215 #ifndef __GNUC__
3216        choke me
3217 #endif
3218
3219   ;
3220   return 0;
3221 }
3222 _ACEOF
3223 rm -f conftest.$ac_objext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225   (eval $ac_compile) 2>conftest.er1
3226   ac_status=$?
3227   grep -v '^ *+' conftest.er1 >conftest.err
3228   rm -f conftest.er1
3229   cat conftest.err >&5
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); } &&
3232          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234   (eval $ac_try) 2>&5
3235   ac_status=$?
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); }; } &&
3238          { ac_try='test -s conftest.$ac_objext'
3239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240   (eval $ac_try) 2>&5
3241   ac_status=$?
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); }; }; then
3244   ac_compiler_gnu=yes
3245 else
3246   echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3248
3249 ac_compiler_gnu=no
3250 fi
3251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3252 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3253
3254 fi
3255 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3256 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3257 GXX=`test $ac_compiler_gnu = yes && echo yes`
3258 ac_test_CXXFLAGS=${CXXFLAGS+set}
3259 ac_save_CXXFLAGS=$CXXFLAGS
3260 CXXFLAGS="-g"
3261 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3262 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3263 if test "${ac_cv_prog_cxx_g+set}" = set; then
3264   echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266   cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272
3273 int
3274 main ()
3275 {
3276
3277   ;
3278   return 0;
3279 }
3280 _ACEOF
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283   (eval $ac_compile) 2>conftest.er1
3284   ac_status=$?
3285   grep -v '^ *+' conftest.er1 >conftest.err
3286   rm -f conftest.er1
3287   cat conftest.err >&5
3288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289   (exit $ac_status); } &&
3290          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292   (eval $ac_try) 2>&5
3293   ac_status=$?
3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295   (exit $ac_status); }; } &&
3296          { ac_try='test -s conftest.$ac_objext'
3297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298   (eval $ac_try) 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); }; }; then
3302   ac_cv_prog_cxx_g=yes
3303 else
3304   echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3306
3307 ac_cv_prog_cxx_g=no
3308 fi
3309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3310 fi
3311 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3312 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3313 if test "$ac_test_CXXFLAGS" = set; then
3314   CXXFLAGS=$ac_save_CXXFLAGS
3315 elif test $ac_cv_prog_cxx_g = yes; then
3316   if test "$GXX" = yes; then
3317     CXXFLAGS="-g -O2"
3318   else
3319     CXXFLAGS="-g"
3320   fi
3321 else
3322   if test "$GXX" = yes; then
3323     CXXFLAGS="-O2"
3324   else
3325     CXXFLAGS=
3326   fi
3327 fi
3328 for ac_declaration in \
3329    '' \
3330    'extern "C" void std::exit (int) throw (); using std::exit;' \
3331    'extern "C" void std::exit (int); using std::exit;' \
3332    'extern "C" void exit (int) throw ();' \
3333    'extern "C" void exit (int);' \
3334    'void exit (int);'
3335 do
3336   cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h.  */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h.  */
3342 $ac_declaration
3343 #include <stdlib.h>
3344 int
3345 main ()
3346 {
3347 exit (42);
3348   ;
3349   return 0;
3350 }
3351 _ACEOF
3352 rm -f conftest.$ac_objext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3354   (eval $ac_compile) 2>conftest.er1
3355   ac_status=$?
3356   grep -v '^ *+' conftest.er1 >conftest.err
3357   rm -f conftest.er1
3358   cat conftest.err >&5
3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); } &&
3361          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363   (eval $ac_try) 2>&5
3364   ac_status=$?
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); }; } &&
3367          { ac_try='test -s conftest.$ac_objext'
3368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369   (eval $ac_try) 2>&5
3370   ac_status=$?
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); }; }; then
3373   :
3374 else
3375   echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3377
3378 continue
3379 fi
3380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3381   cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h.  */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h.  */
3387 $ac_declaration
3388 int
3389 main ()
3390 {
3391 exit (42);
3392   ;
3393   return 0;
3394 }
3395 _ACEOF
3396 rm -f conftest.$ac_objext
3397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3398   (eval $ac_compile) 2>conftest.er1
3399   ac_status=$?
3400   grep -v '^ *+' conftest.er1 >conftest.err
3401   rm -f conftest.er1
3402   cat conftest.err >&5
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); } &&
3405          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407   (eval $ac_try) 2>&5
3408   ac_status=$?
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); }; } &&
3411          { ac_try='test -s conftest.$ac_objext'
3412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413   (eval $ac_try) 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); }; }; then
3417   break
3418 else
3419   echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422 fi
3423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3424 done
3425 rm -f conftest*
3426 if test -n "$ac_declaration"; then
3427   echo '#ifdef __cplusplus' >>confdefs.h
3428   echo $ac_declaration      >>confdefs.h
3429   echo '#endif'             >>confdefs.h
3430 fi
3431
3432 ac_ext=c
3433 ac_cpp='$CPP $CPPFLAGS'
3434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437
3438 depcc="$CXX"  am_compiler_list=
3439
3440 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3441 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3442 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3443   echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3446   # We make a subdir and do the tests there.  Otherwise we can end up
3447   # making bogus files that we don't know about and never remove.  For
3448   # instance it was reported that on HP-UX the gcc test will end up
3449   # making a dummy file named `D' -- because `-MD' means `put the output
3450   # in D'.
3451   mkdir conftest.dir
3452   # Copy depcomp to subdir because otherwise we won't find it if we're
3453   # using a relative directory.
3454   cp "$am_depcomp" conftest.dir
3455   cd conftest.dir
3456   # We will build objects and dependencies in a subdirectory because
3457   # it helps to detect inapplicable dependency modes.  For instance
3458   # both Tru64's cc and ICC support -MD to output dependencies as a
3459   # side effect of compilation, but ICC will put the dependencies in
3460   # the current directory while Tru64 will put them in the object
3461   # directory.
3462   mkdir sub
3463
3464   am_cv_CXX_dependencies_compiler_type=none
3465   if test "$am_compiler_list" = ""; then
3466      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3467   fi
3468   for depmode in $am_compiler_list; do
3469     # Setup a source with many dependencies, because some compilers
3470     # like to wrap large dependency lists on column 80 (with \), and
3471     # we should not choose a depcomp mode which is confused by this.
3472     #
3473     # We need to recreate these files for each test, as the compiler may
3474     # overwrite some of them when testing with obscure command lines.
3475     # This happens at least with the AIX C compiler.
3476     : > sub/conftest.c
3477     for i in 1 2 3 4 5 6; do
3478       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3479       : > sub/conftst$i.h
3480     done
3481     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3482
3483     case $depmode in
3484     nosideeffect)
3485       # after this tag, mechanisms are not by side-effect, so they'll
3486       # only be used when explicitly requested
3487       if test "x$enable_dependency_tracking" = xyes; then
3488         continue
3489       else
3490         break
3491       fi
3492       ;;
3493     none) break ;;
3494     esac
3495     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3496     # mode.  It turns out that the SunPro C++ compiler does not properly
3497     # handle `-M -o', and we need to detect this.
3498     if depmode=$depmode \
3499        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3500        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3501        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3502          >/dev/null 2>conftest.err &&
3503        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3504        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3505        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3506       # icc doesn't choke on unknown options, it will just issue warnings
3507       # (even with -Werror).  So we grep stderr for any message
3508       # that says an option was ignored.
3509       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3510         am_cv_CXX_dependencies_compiler_type=$depmode
3511         break
3512       fi
3513     fi
3514   done
3515
3516   cd ..
3517   rm -rf conftest.dir
3518 else
3519   am_cv_CXX_dependencies_compiler_type=none
3520 fi
3521
3522 fi
3523 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3524 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3525 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3526
3527
3528
3529 if
3530   test "x$enable_dependency_tracking" != xno \
3531   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3532   am__fastdepCXX_TRUE=
3533   am__fastdepCXX_FALSE='#'
3534 else
3535   am__fastdepCXX_TRUE='#'
3536   am__fastdepCXX_FALSE=
3537 fi
3538
3539
3540
3541 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3542 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3543 if test "${ac_cv_c_bigendian+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   # See if sys/param.h defines the BYTE_ORDER macro.
3547 cat >conftest.$ac_ext <<_ACEOF
3548 /* confdefs.h.  */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h.  */
3553 #include <sys/types.h>
3554 #include <sys/param.h>
3555
3556 int
3557 main ()
3558 {
3559 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3560  bogus endian macros
3561 #endif
3562
3563   ;
3564   return 0;
3565 }
3566 _ACEOF
3567 rm -f conftest.$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569   (eval $ac_compile) 2>conftest.er1
3570   ac_status=$?
3571   grep -v '^ *+' conftest.er1 >conftest.err
3572   rm -f conftest.er1
3573   cat conftest.err >&5
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); } &&
3576          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578   (eval $ac_try) 2>&5
3579   ac_status=$?
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); }; } &&
3582          { ac_try='test -s conftest.$ac_objext'
3583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584   (eval $ac_try) 2>&5
3585   ac_status=$?
3586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); }; }; then
3588   # It does; now see whether it defined to BIG_ENDIAN or not.
3589 cat >conftest.$ac_ext <<_ACEOF
3590 /* confdefs.h.  */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h.  */
3595 #include <sys/types.h>
3596 #include <sys/param.h>
3597
3598 int
3599 main ()
3600 {
3601 #if BYTE_ORDER != BIG_ENDIAN
3602  not big endian
3603 #endif
3604
3605   ;
3606   return 0;
3607 }
3608 _ACEOF
3609 rm -f conftest.$ac_objext
3610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3611   (eval $ac_compile) 2>conftest.er1
3612   ac_status=$?
3613   grep -v '^ *+' conftest.er1 >conftest.err
3614   rm -f conftest.er1
3615   cat conftest.err >&5
3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617   (exit $ac_status); } &&
3618          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620   (eval $ac_try) 2>&5
3621   ac_status=$?
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); }; } &&
3624          { ac_try='test -s conftest.$ac_objext'
3625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626   (eval $ac_try) 2>&5
3627   ac_status=$?
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); }; }; then
3630   ac_cv_c_bigendian=yes
3631 else
3632   echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635 ac_cv_c_bigendian=no
3636 fi
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638 else
3639   echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3641
3642 # It does not; compile a test program.
3643 if test "$cross_compiling" = yes; then
3644   # try to guess the endianness by grepping values into an object file
3645   ac_cv_c_bigendian=unknown
3646   cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h.  */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h.  */
3652 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3653 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3654 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3655 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3656 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3657 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3658 int
3659 main ()
3660 {
3661  _ascii (); _ebcdic ();
3662   ;
3663   return 0;
3664 }
3665 _ACEOF
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668   (eval $ac_compile) 2>conftest.er1
3669   ac_status=$?
3670   grep -v '^ *+' conftest.er1 >conftest.err
3671   rm -f conftest.er1
3672   cat conftest.err >&5
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); } &&
3675          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677   (eval $ac_try) 2>&5
3678   ac_status=$?
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); }; } &&
3681          { ac_try='test -s conftest.$ac_objext'
3682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683   (eval $ac_try) 2>&5
3684   ac_status=$?
3685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686   (exit $ac_status); }; }; then
3687   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3688   ac_cv_c_bigendian=yes
3689 fi
3690 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3691   if test "$ac_cv_c_bigendian" = unknown; then
3692     ac_cv_c_bigendian=no
3693   else
3694     # finding both strings is unlikely to happen, but who knows?
3695     ac_cv_c_bigendian=unknown
3696   fi
3697 fi
3698 else
3699   echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3701
3702 fi
3703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3704 else
3705   cat >conftest.$ac_ext <<_ACEOF
3706 /* confdefs.h.  */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h.  */
3711 int
3712 main ()
3713 {
3714   /* Are we little or big endian?  From Harbison&Steele.  */
3715   union
3716   {
3717     long l;
3718     char c[sizeof (long)];
3719   } u;
3720   u.l = 1;
3721   exit (u.c[sizeof (long) - 1] == 1);
3722 }
3723 _ACEOF
3724 rm -f conftest$ac_exeext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3726   (eval $ac_link) 2>&5
3727   ac_status=$?
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731   (eval $ac_try) 2>&5
3732   ac_status=$?
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); }; }; then
3735   ac_cv_c_bigendian=no
3736 else
3737   echo "$as_me: program exited with status $ac_status" >&5
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 ( exit $ac_status )
3742 ac_cv_c_bigendian=yes
3743 fi
3744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3745 fi
3746 fi
3747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3748 fi
3749 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3750 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3751 case $ac_cv_c_bigendian in
3752   yes)
3753
3754 cat >>confdefs.h <<\_ACEOF
3755 #define WORDS_BIGENDIAN 1
3756 _ACEOF
3757  ;;
3758   no)
3759      ;;
3760   *)
3761     { { echo "$as_me:$LINENO: error: unknown endianness
3762 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3763 echo "$as_me: error: unknown endianness
3764 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3765    { (exit 1); exit 1; }; } ;;
3766 esac
3767
3768
3769 # Extract the first word of "wxgtk-2.4-config", so it can be a program name with args.
3770 set dummy wxgtk-2.4-config; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_path_wxconfig+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   case $wxconfig in
3777   [\\/]* | ?:[\\/]*)
3778   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3779   ;;
3780   *)
3781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784   IFS=$as_save_IFS
3785   test -z "$as_dir" && as_dir=.
3786   for ac_exec_ext in '' $ac_executable_extensions; do
3787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3790     break 2
3791   fi
3792 done
3793 done
3794
3795   ;;
3796 esac
3797 fi
3798 wxconfig=$ac_cv_path_wxconfig
3799
3800 if test -n "$wxconfig"; then
3801   echo "$as_me:$LINENO: result: $wxconfig" >&5
3802 echo "${ECHO_T}$wxconfig" >&6
3803 else
3804   echo "$as_me:$LINENO: result: no" >&5
3805 echo "${ECHO_T}no" >&6
3806 fi
3807
3808 if  ! "$wxconfig" ; then
3809   # Extract the first word of "wx-config", so it can be a program name with args.
3810 set dummy wx-config; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_path_wxconfig+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   case $wxconfig in
3817   [\\/]* | ?:[\\/]*)
3818   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3819   ;;
3820   *)
3821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824   IFS=$as_save_IFS
3825   test -z "$as_dir" && as_dir=.
3826   for ac_exec_ext in '' $ac_executable_extensions; do
3827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3830     break 2
3831   fi
3832 done
3833 done
3834
3835   ;;
3836 esac
3837 fi
3838 wxconfig=$ac_cv_path_wxconfig
3839
3840 if test -n "$wxconfig"; then
3841   echo "$as_me:$LINENO: result: $wxconfig" >&5
3842 echo "${ECHO_T}$wxconfig" >&6
3843 else
3844   echo "$as_me:$LINENO: result: no" >&5
3845 echo "${ECHO_T}no" >&6
3846 fi
3847
3848 fi
3849
3850 # Make sure we can run config.sub.
3851 $ac_config_sub sun4 >/dev/null 2>&1 ||
3852   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3853 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3854    { (exit 1); exit 1; }; }
3855
3856 echo "$as_me:$LINENO: checking build system type" >&5
3857 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3858 if test "${ac_cv_build+set}" = set; then
3859   echo $ECHO_N "(cached) $ECHO_C" >&6
3860 else
3861   ac_cv_build_alias=$build_alias
3862 test -z "$ac_cv_build_alias" &&
3863   ac_cv_build_alias=`$ac_config_guess`
3864 test -z "$ac_cv_build_alias" &&
3865   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3866 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3867    { (exit 1); exit 1; }; }
3868 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3869   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3870 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3871    { (exit 1); exit 1; }; }
3872
3873 fi
3874 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3875 echo "${ECHO_T}$ac_cv_build" >&6
3876 build=$ac_cv_build
3877 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3878 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3879 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3880
3881
3882 echo "$as_me:$LINENO: checking host system type" >&5
3883 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3884 if test "${ac_cv_host+set}" = set; then
3885   echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887   ac_cv_host_alias=$host_alias
3888 test -z "$ac_cv_host_alias" &&
3889   ac_cv_host_alias=$ac_cv_build_alias
3890 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3891   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3892 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3893    { (exit 1); exit 1; }; }
3894
3895 fi
3896 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3897 echo "${ECHO_T}$ac_cv_host" >&6
3898 host=$ac_cv_host
3899 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3900 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3901 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3902
3903
3904 echo "$as_me:$LINENO: checking for inline" >&5
3905 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3906 if test "${ac_cv_c_inline+set}" = set; then
3907   echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909   ac_cv_c_inline=no
3910 for ac_kw in inline __inline__ __inline; do
3911   cat >conftest.$ac_ext <<_ACEOF
3912 /* confdefs.h.  */
3913 _ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h.  */
3917 #ifndef __cplusplus
3918 typedef int foo_t;
3919 static $ac_kw foo_t static_foo () {return 0; }
3920 $ac_kw foo_t foo () {return 0; }
3921 #endif
3922
3923 _ACEOF
3924 rm -f conftest.$ac_objext
3925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3926   (eval $ac_compile) 2>conftest.er1
3927   ac_status=$?
3928   grep -v '^ *+' conftest.er1 >conftest.err
3929   rm -f conftest.er1
3930   cat conftest.err >&5
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); } &&
3933          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935   (eval $ac_try) 2>&5
3936   ac_status=$?
3937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938   (exit $ac_status); }; } &&
3939          { ac_try='test -s conftest.$ac_objext'
3940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941   (eval $ac_try) 2>&5
3942   ac_status=$?
3943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944   (exit $ac_status); }; }; then
3945   ac_cv_c_inline=$ac_kw; break
3946 else
3947   echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950 fi
3951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3952 done
3953
3954 fi
3955 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3956 echo "${ECHO_T}$ac_cv_c_inline" >&6
3957
3958
3959 case $ac_cv_c_inline in
3960   inline | yes) ;;
3961   *)
3962     case $ac_cv_c_inline in
3963       no) ac_val=;;
3964       *) ac_val=$ac_cv_c_inline;;
3965     esac
3966     cat >>confdefs.h <<_ACEOF
3967 #ifndef __cplusplus
3968 #define inline $ac_val
3969 #endif
3970 _ACEOF
3971     ;;
3972 esac
3973
3974 ac_ext=c
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3980 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3981 # On Suns, sometimes $CPP names a directory.
3982 if test -n "$CPP" && test -d "$CPP"; then
3983   CPP=
3984 fi
3985 if test -z "$CPP"; then
3986   if test "${ac_cv_prog_CPP+set}" = set; then
3987   echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989       # Double quotes because CPP needs to be expanded
3990     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3991     do
3992       ac_preproc_ok=false
3993 for ac_c_preproc_warn_flag in '' yes
3994 do
3995   # Use a header file that comes with gcc, so configuring glibc
3996   # with a fresh cross-compiler works.
3997   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3998   # <limits.h> exists even on freestanding compilers.
3999   # On the NeXT, cc -E runs the code through the compiler's parser,
4000   # not just through cpp. "Syntax error" is here to catch this case.
4001   cat >conftest.$ac_ext <<_ACEOF
4002 /* confdefs.h.  */
4003 _ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h.  */
4007 #ifdef __STDC__
4008 # include <limits.h>
4009 #else
4010 # include <assert.h>
4011 #endif
4012                      Syntax error
4013 _ACEOF
4014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4015   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4016   ac_status=$?
4017   grep -v '^ *+' conftest.er1 >conftest.err
4018   rm -f conftest.er1
4019   cat conftest.err >&5
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); } >/dev/null; then
4022   if test -s conftest.err; then
4023     ac_cpp_err=$ac_c_preproc_warn_flag
4024     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4025   else
4026     ac_cpp_err=
4027   fi
4028 else
4029   ac_cpp_err=yes
4030 fi
4031 if test -z "$ac_cpp_err"; then
4032   :
4033 else
4034   echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4036
4037   # Broken: fails on valid input.
4038 continue
4039 fi
4040 rm -f conftest.err conftest.$ac_ext
4041
4042   # OK, works on sane cases.  Now check whether non-existent headers
4043   # can be detected and how.
4044   cat >conftest.$ac_ext <<_ACEOF
4045 /* confdefs.h.  */
4046 _ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h.  */
4050 #include <ac_nonexistent.h>
4051 _ACEOF
4052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4054   ac_status=$?
4055   grep -v '^ *+' conftest.er1 >conftest.err
4056   rm -f conftest.er1
4057   cat conftest.err >&5
4058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059   (exit $ac_status); } >/dev/null; then
4060   if test -s conftest.err; then
4061     ac_cpp_err=$ac_c_preproc_warn_flag
4062     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4063   else
4064     ac_cpp_err=
4065   fi
4066 else
4067   ac_cpp_err=yes
4068 fi
4069 if test -z "$ac_cpp_err"; then
4070   # Broken: success on invalid input.
4071 continue
4072 else
4073   echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4075
4076   # Passes both tests.
4077 ac_preproc_ok=:
4078 break
4079 fi
4080 rm -f conftest.err conftest.$ac_ext
4081
4082 done
4083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4084 rm -f conftest.err conftest.$ac_ext
4085 if $ac_preproc_ok; then
4086   break
4087 fi
4088
4089     done
4090     ac_cv_prog_CPP=$CPP
4091
4092 fi
4093   CPP=$ac_cv_prog_CPP
4094 else
4095   ac_cv_prog_CPP=$CPP
4096 fi
4097 echo "$as_me:$LINENO: result: $CPP" >&5
4098 echo "${ECHO_T}$CPP" >&6
4099 ac_preproc_ok=false
4100 for ac_c_preproc_warn_flag in '' yes
4101 do
4102   # Use a header file that comes with gcc, so configuring glibc
4103   # with a fresh cross-compiler works.
4104   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4105   # <limits.h> exists even on freestanding compilers.
4106   # On the NeXT, cc -E runs the code through the compiler's parser,
4107   # not just through cpp. "Syntax error" is here to catch this case.
4108   cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h.  */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h.  */
4114 #ifdef __STDC__
4115 # include <limits.h>
4116 #else
4117 # include <assert.h>
4118 #endif
4119                      Syntax error
4120 _ACEOF
4121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4123   ac_status=$?
4124   grep -v '^ *+' conftest.er1 >conftest.err
4125   rm -f conftest.er1
4126   cat conftest.err >&5
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); } >/dev/null; then
4129   if test -s conftest.err; then
4130     ac_cpp_err=$ac_c_preproc_warn_flag
4131     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4132   else
4133     ac_cpp_err=
4134   fi
4135 else
4136   ac_cpp_err=yes
4137 fi
4138 if test -z "$ac_cpp_err"; then
4139   :
4140 else
4141   echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4143
4144   # Broken: fails on valid input.
4145 continue
4146 fi
4147 rm -f conftest.err conftest.$ac_ext
4148
4149   # OK, works on sane cases.  Now check whether non-existent headers
4150   # can be detected and how.
4151   cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h.  */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h.  */
4157 #include <ac_nonexistent.h>
4158 _ACEOF
4159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4160   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4161   ac_status=$?
4162   grep -v '^ *+' conftest.er1 >conftest.err
4163   rm -f conftest.er1
4164   cat conftest.err >&5
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); } >/dev/null; then
4167   if test -s conftest.err; then
4168     ac_cpp_err=$ac_c_preproc_warn_flag
4169     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4170   else
4171     ac_cpp_err=
4172   fi
4173 else
4174   ac_cpp_err=yes
4175 fi
4176 if test -z "$ac_cpp_err"; then
4177   # Broken: success on invalid input.
4178 continue
4179 else
4180   echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4182
4183   # Passes both tests.
4184 ac_preproc_ok=:
4185 break
4186 fi
4187 rm -f conftest.err conftest.$ac_ext
4188
4189 done
4190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4191 rm -f conftest.err conftest.$ac_ext
4192 if $ac_preproc_ok; then
4193   :
4194 else
4195   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4196 See \`config.log' for more details." >&5
4197 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4198 See \`config.log' for more details." >&2;}
4199    { (exit 1); exit 1; }; }
4200 fi
4201
4202 ac_ext=c
4203 ac_cpp='$CPP $CPPFLAGS'
4204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207
4208
4209 echo "$as_me:$LINENO: checking for egrep" >&5
4210 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4211 if test "${ac_cv_prog_egrep+set}" = set; then
4212   echo $ECHO_N "(cached) $ECHO_C" >&6
4213 else
4214   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4215     then ac_cv_prog_egrep='grep -E'
4216     else ac_cv_prog_egrep='egrep'
4217     fi
4218 fi
4219 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4220 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4221  EGREP=$ac_cv_prog_egrep
4222
4223
4224 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4225 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4226 if test "${ac_cv_header_stdc+set}" = set; then
4227   echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229   cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h.  */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h.  */
4235 #include <stdlib.h>
4236 #include <stdarg.h>
4237 #include <string.h>
4238 #include <float.h>
4239
4240 int
4241 main ()
4242 {
4243
4244   ;
4245   return 0;
4246 }
4247 _ACEOF
4248 rm -f conftest.$ac_objext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4250   (eval $ac_compile) 2>conftest.er1
4251   ac_status=$?
4252   grep -v '^ *+' conftest.er1 >conftest.err
4253   rm -f conftest.er1
4254   cat conftest.err >&5
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); } &&
4257          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259   (eval $ac_try) 2>&5
4260   ac_status=$?
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); }; } &&
4263          { ac_try='test -s conftest.$ac_objext'
4264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265   (eval $ac_try) 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); }; }; then
4269   ac_cv_header_stdc=yes
4270 else
4271   echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4273
4274 ac_cv_header_stdc=no
4275 fi
4276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4277
4278 if test $ac_cv_header_stdc = yes; then
4279   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4280   cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h.  */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h.  */
4286 #include <string.h>
4287
4288 _ACEOF
4289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4290   $EGREP "memchr" >/dev/null 2>&1; then
4291   :
4292 else
4293   ac_cv_header_stdc=no
4294 fi
4295 rm -f conftest*
4296
4297 fi
4298
4299 if test $ac_cv_header_stdc = yes; then
4300   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4301   cat >conftest.$ac_ext <<_ACEOF
4302 /* confdefs.h.  */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h.  */
4307 #include <stdlib.h>
4308
4309 _ACEOF
4310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4311   $EGREP "free" >/dev/null 2>&1; then
4312   :
4313 else
4314   ac_cv_header_stdc=no
4315 fi
4316 rm -f conftest*
4317
4318 fi
4319
4320 if test $ac_cv_header_stdc = yes; then
4321   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4322   if test "$cross_compiling" = yes; then
4323   :
4324 else
4325   cat >conftest.$ac_ext <<_ACEOF
4326 /* confdefs.h.  */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h.  */
4331 #include <ctype.h>
4332 #if ((' ' & 0x0FF) == 0x020)
4333 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4334 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4335 #else
4336 # define ISLOWER(c) \
4337                    (('a' <= (c) && (c) <= 'i') \
4338                      || ('j' <= (c) && (c) <= 'r') \
4339                      || ('s' <= (c) && (c) <= 'z'))
4340 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4341 #endif
4342
4343 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4344 int
4345 main ()
4346 {
4347   int i;
4348   for (i = 0; i < 256; i++)
4349     if (XOR (islower (i), ISLOWER (i))
4350         || toupper (i) != TOUPPER (i))
4351       exit(2);
4352   exit (0);
4353 }
4354 _ACEOF
4355 rm -f conftest$ac_exeext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4357   (eval $ac_link) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362   (eval $ac_try) 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }; }; then
4366   :
4367 else
4368   echo "$as_me: program exited with status $ac_status" >&5
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4371
4372 ( exit $ac_status )
4373 ac_cv_header_stdc=no
4374 fi
4375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4376 fi
4377 fi
4378 fi
4379 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4380 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4381 if test $ac_cv_header_stdc = yes; then
4382
4383 cat >>confdefs.h <<\_ACEOF
4384 #define STDC_HEADERS 1
4385 _ACEOF
4386
4387 fi
4388
4389 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4400                   inttypes.h stdint.h unistd.h
4401 do
4402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4403 echo "$as_me:$LINENO: checking for $ac_header" >&5
4404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4406   echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408   cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h.  */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h.  */
4414 $ac_includes_default
4415
4416 #include <$ac_header>
4417 _ACEOF
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420   (eval $ac_compile) 2>conftest.er1
4421   ac_status=$?
4422   grep -v '^ *+' conftest.er1 >conftest.err
4423   rm -f conftest.er1
4424   cat conftest.err >&5
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); } &&
4427          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429   (eval $ac_try) 2>&5
4430   ac_status=$?
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); }; } &&
4433          { ac_try='test -s conftest.$ac_objext'
4434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435   (eval $ac_try) 2>&5
4436   ac_status=$?
4437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438   (exit $ac_status); }; }; then
4439   eval "$as_ac_Header=yes"
4440 else
4441   echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4443
4444 eval "$as_ac_Header=no"
4445 fi
4446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4447 fi
4448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4451   cat >>confdefs.h <<_ACEOF
4452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4453 _ACEOF
4454
4455 fi
4456
4457 done
4458
4459
4460 echo "$as_me:$LINENO: checking for short" >&5
4461 echo $ECHO_N "checking for short... $ECHO_C" >&6
4462 if test "${ac_cv_type_short+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   cat >conftest.$ac_ext <<_ACEOF
4466 /* confdefs.h.  */
4467 _ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h.  */
4471 $ac_includes_default
4472 int
4473 main ()
4474 {
4475 if ((short *) 0)
4476   return 0;
4477 if (sizeof (short))
4478   return 0;
4479   ;
4480   return 0;
4481 }
4482 _ACEOF
4483 rm -f conftest.$ac_objext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4485   (eval $ac_compile) 2>conftest.er1
4486   ac_status=$?
4487   grep -v '^ *+' conftest.er1 >conftest.err
4488   rm -f conftest.er1
4489   cat conftest.err >&5
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); } &&
4492          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494   (eval $ac_try) 2>&5
4495   ac_status=$?
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); }; } &&
4498          { ac_try='test -s conftest.$ac_objext'
4499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500   (eval $ac_try) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; }; then
4504   ac_cv_type_short=yes
4505 else
4506   echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4508
4509 ac_cv_type_short=no
4510 fi
4511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4512 fi
4513 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4514 echo "${ECHO_T}$ac_cv_type_short" >&6
4515
4516 echo "$as_me:$LINENO: checking size of short" >&5
4517 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4518 if test "${ac_cv_sizeof_short+set}" = set; then
4519   echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521   if test "$ac_cv_type_short" = yes; then
4522   # The cast to unsigned long works around a bug in the HP C Compiler
4523   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4524   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4525   # This bug is HP SR number 8606223364.
4526   if test "$cross_compiling" = yes; then
4527   # Depending upon the size, compute the lo and hi bounds.
4528 cat >conftest.$ac_ext <<_ACEOF
4529 /* confdefs.h.  */
4530 _ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h.  */
4534 $ac_includes_default
4535 int
4536 main ()
4537 {
4538 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4539 test_array [0] = 0
4540
4541   ;
4542   return 0;
4543 }
4544 _ACEOF
4545 rm -f conftest.$ac_objext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547   (eval $ac_compile) 2>conftest.er1
4548   ac_status=$?
4549   grep -v '^ *+' conftest.er1 >conftest.err
4550   rm -f conftest.er1
4551   cat conftest.err >&5
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } &&
4554          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556   (eval $ac_try) 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); }; } &&
4560          { ac_try='test -s conftest.$ac_objext'
4561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562   (eval $ac_try) 2>&5
4563   ac_status=$?
4564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565   (exit $ac_status); }; }; then
4566   ac_lo=0 ac_mid=0
4567   while :; do
4568     cat >conftest.$ac_ext <<_ACEOF
4569 /* confdefs.h.  */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h.  */
4574 $ac_includes_default
4575 int
4576 main ()
4577 {
4578 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4579 test_array [0] = 0
4580
4581   ;
4582   return 0;
4583 }
4584 _ACEOF
4585 rm -f conftest.$ac_objext
4586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4587   (eval $ac_compile) 2>conftest.er1
4588   ac_status=$?
4589   grep -v '^ *+' conftest.er1 >conftest.err
4590   rm -f conftest.er1
4591   cat conftest.err >&5
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); } &&
4594          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596   (eval $ac_try) 2>&5
4597   ac_status=$?
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); }; } &&
4600          { ac_try='test -s conftest.$ac_objext'
4601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602   (eval $ac_try) 2>&5
4603   ac_status=$?
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); }; }; then
4606   ac_hi=$ac_mid; break
4607 else
4608   echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4610
4611 ac_lo=`expr $ac_mid + 1`
4612                     if test $ac_lo -le $ac_mid; then
4613                       ac_lo= ac_hi=
4614                       break
4615                     fi
4616                     ac_mid=`expr 2 '*' $ac_mid + 1`
4617 fi
4618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4619   done
4620 else
4621   echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4623
4624 cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h.  */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h.  */
4630 $ac_includes_default
4631 int
4632 main ()
4633 {
4634 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4635 test_array [0] = 0
4636
4637   ;
4638   return 0;
4639 }
4640 _ACEOF
4641 rm -f conftest.$ac_objext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643   (eval $ac_compile) 2>conftest.er1
4644   ac_status=$?
4645   grep -v '^ *+' conftest.er1 >conftest.err
4646   rm -f conftest.er1
4647   cat conftest.err >&5
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); } &&
4650          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652   (eval $ac_try) 2>&5
4653   ac_status=$?
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); }; } &&
4656          { ac_try='test -s conftest.$ac_objext'
4657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658   (eval $ac_try) 2>&5
4659   ac_status=$?
4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); }; }; then
4662   ac_hi=-1 ac_mid=-1
4663   while :; do
4664     cat >conftest.$ac_ext <<_ACEOF
4665 /* confdefs.h.  */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h.  */
4670 $ac_includes_default
4671 int
4672 main ()
4673 {
4674 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4675 test_array [0] = 0
4676
4677   ;
4678   return 0;
4679 }
4680 _ACEOF
4681 rm -f conftest.$ac_objext
4682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4683   (eval $ac_compile) 2>conftest.er1
4684   ac_status=$?
4685   grep -v '^ *+' conftest.er1 >conftest.err
4686   rm -f conftest.er1
4687   cat conftest.err >&5
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); } &&
4690          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692   (eval $ac_try) 2>&5
4693   ac_status=$?
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); }; } &&
4696          { ac_try='test -s conftest.$ac_objext'
4697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698   (eval $ac_try) 2>&5
4699   ac_status=$?
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); }; }; then
4702   ac_lo=$ac_mid; break
4703 else
4704   echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4706
4707 ac_hi=`expr '(' $ac_mid ')' - 1`
4708                        if test $ac_mid -le $ac_hi; then
4709                          ac_lo= ac_hi=
4710                          break
4711                        fi
4712                        ac_mid=`expr 2 '*' $ac_mid`
4713 fi
4714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4715   done
4716 else
4717   echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4719
4720 ac_lo= ac_hi=
4721 fi
4722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4723 fi
4724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4725 # Binary search between lo and hi bounds.
4726 while test "x$ac_lo" != "x$ac_hi"; do
4727   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4728   cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h.  */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h.  */
4734 $ac_includes_default
4735 int
4736 main ()
4737 {
4738 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4739 test_array [0] = 0
4740
4741   ;
4742   return 0;
4743 }
4744 _ACEOF
4745 rm -f conftest.$ac_objext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747   (eval $ac_compile) 2>conftest.er1
4748   ac_status=$?
4749   grep -v '^ *+' conftest.er1 >conftest.err
4750   rm -f conftest.er1
4751   cat conftest.err >&5
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); } &&
4754          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756   (eval $ac_try) 2>&5
4757   ac_status=$?
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); }; } &&
4760          { ac_try='test -s conftest.$ac_objext'
4761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762   (eval $ac_try) 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }; }; then
4766   ac_hi=$ac_mid
4767 else
4768   echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4770
4771 ac_lo=`expr '(' $ac_mid ')' + 1`
4772 fi
4773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4774 done
4775 case $ac_lo in
4776 ?*) ac_cv_sizeof_short=$ac_lo;;
4777 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4778 See \`config.log' for more details." >&5
4779 echo "$as_me: error: cannot compute sizeof (short), 77
4780 See \`config.log' for more details." >&2;}
4781    { (exit 1); exit 1; }; } ;;
4782 esac
4783 else
4784   if test "$cross_compiling" = yes; then
4785   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4786 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4787    { (exit 1); exit 1; }; }
4788 else
4789   cat >conftest.$ac_ext <<_ACEOF
4790 /* confdefs.h.  */
4791 _ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h.  */
4795 $ac_includes_default
4796 long longval () { return (long) (sizeof (short)); }
4797 unsigned long ulongval () { return (long) (sizeof (short)); }
4798 #include <stdio.h>
4799 #include <stdlib.h>
4800 int
4801 main ()
4802 {
4803
4804   FILE *f = fopen ("conftest.val", "w");
4805   if (! f)
4806     exit (1);
4807   if (((long) (sizeof (short))) < 0)
4808     {
4809       long i = longval ();
4810       if (i != ((long) (sizeof (short))))
4811         exit (1);
4812       fprintf (f, "%ld\n", i);
4813     }
4814   else
4815     {
4816       unsigned long i = ulongval ();
4817       if (i != ((long) (sizeof (short))))
4818         exit (1);
4819       fprintf (f, "%lu\n", i);
4820     }
4821   exit (ferror (f) || fclose (f) != 0);
4822
4823   ;
4824   return 0;
4825 }
4826 _ACEOF
4827 rm -f conftest$ac_exeext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4829   (eval $ac_link) 2>&5
4830   ac_status=$?
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834   (eval $ac_try) 2>&5
4835   ac_status=$?
4836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837   (exit $ac_status); }; }; then
4838   ac_cv_sizeof_short=`cat conftest.val`
4839 else
4840   echo "$as_me: program exited with status $ac_status" >&5
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4843
4844 ( exit $ac_status )
4845 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4846 See \`config.log' for more details." >&5
4847 echo "$as_me: error: cannot compute sizeof (short), 77
4848 See \`config.log' for more details." >&2;}
4849    { (exit 1); exit 1; }; }
4850 fi
4851 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4852 fi
4853 fi
4854 rm -f conftest.val
4855 else
4856   ac_cv_sizeof_short=0
4857 fi
4858 fi
4859 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4860 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4861 cat >>confdefs.h <<_ACEOF
4862 #define SIZEOF_SHORT $ac_cv_sizeof_short
4863 _ACEOF
4864
4865
4866 echo "$as_me:$LINENO: checking for int" >&5
4867 echo $ECHO_N "checking for int... $ECHO_C" >&6
4868 if test "${ac_cv_type_int+set}" = set; then
4869   echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871   cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h.  */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h.  */
4877 $ac_includes_default
4878 int
4879 main ()
4880 {
4881 if ((int *) 0)
4882   return 0;
4883 if (sizeof (int))
4884   return 0;
4885   ;
4886   return 0;
4887 }
4888 _ACEOF
4889 rm -f conftest.$ac_objext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891   (eval $ac_compile) 2>conftest.er1
4892   ac_status=$?
4893   grep -v '^ *+' conftest.er1 >conftest.err
4894   rm -f conftest.er1
4895   cat conftest.err >&5
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); } &&
4898          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900   (eval $ac_try) 2>&5
4901   ac_status=$?
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); }; } &&
4904          { ac_try='test -s conftest.$ac_objext'
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_type_int=yes
4911 else
4912   echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4914
4915 ac_cv_type_int=no
4916 fi
4917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4918 fi
4919 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4920 echo "${ECHO_T}$ac_cv_type_int" >&6
4921
4922 echo "$as_me:$LINENO: checking size of int" >&5
4923 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4924 if test "${ac_cv_sizeof_int+set}" = set; then
4925   echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927   if test "$ac_cv_type_int" = yes; then
4928   # The cast to unsigned long works around a bug in the HP C Compiler
4929   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4930   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4931   # This bug is HP SR number 8606223364.
4932   if test "$cross_compiling" = yes; then
4933   # Depending upon the size, compute the lo and hi bounds.
4934 cat >conftest.$ac_ext <<_ACEOF
4935 /* confdefs.h.  */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h.  */
4940 $ac_includes_default
4941 int
4942 main ()
4943 {
4944 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4945 test_array [0] = 0
4946
4947   ;
4948   return 0;
4949 }
4950 _ACEOF
4951 rm -f conftest.$ac_objext
4952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4953   (eval $ac_compile) 2>conftest.er1
4954   ac_status=$?
4955   grep -v '^ *+' conftest.er1 >conftest.err
4956   rm -f conftest.er1
4957   cat conftest.err >&5
4958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959   (exit $ac_status); } &&
4960          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962   (eval $ac_try) 2>&5
4963   ac_status=$?
4964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965   (exit $ac_status); }; } &&
4966          { ac_try='test -s conftest.$ac_objext'
4967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968   (eval $ac_try) 2>&5
4969   ac_status=$?
4970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971   (exit $ac_status); }; }; then
4972   ac_lo=0 ac_mid=0
4973   while :; do
4974     cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h.  */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h.  */
4980 $ac_includes_default
4981 int
4982 main ()
4983 {
4984 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4985 test_array [0] = 0
4986
4987   ;
4988   return 0;
4989 }
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993   (eval $ac_compile) 2>conftest.er1
4994   ac_status=$?
4995   grep -v '^ *+' conftest.er1 >conftest.err
4996   rm -f conftest.er1
4997   cat conftest.err >&5
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); } &&
5000          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002   (eval $ac_try) 2>&5
5003   ac_status=$?
5004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005   (exit $ac_status); }; } &&
5006          { ac_try='test -s conftest.$ac_objext'
5007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008   (eval $ac_try) 2>&5
5009   ac_status=$?
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); }; }; then
5012   ac_hi=$ac_mid; break
5013 else
5014   echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5016
5017 ac_lo=`expr $ac_mid + 1`
5018                     if test $ac_lo -le $ac_mid; then
5019                       ac_lo= ac_hi=
5020                       break
5021                     fi
5022                     ac_mid=`expr 2 '*' $ac_mid + 1`
5023 fi
5024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5025   done
5026 else
5027   echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5029
5030 cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h.  */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h.  */
5036 $ac_includes_default
5037 int
5038 main ()
5039 {
5040 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5041 test_array [0] = 0
5042
5043   ;
5044   return 0;
5045 }
5046 _ACEOF
5047 rm -f conftest.$ac_objext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5049   (eval $ac_compile) 2>conftest.er1
5050   ac_status=$?
5051   grep -v '^ *+' conftest.er1 >conftest.err
5052   rm -f conftest.er1
5053   cat conftest.err >&5
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); } &&
5056          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058   (eval $ac_try) 2>&5
5059   ac_status=$?
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); }; } &&
5062          { ac_try='test -s conftest.$ac_objext'
5063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064   (eval $ac_try) 2>&5
5065   ac_status=$?
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); }; }; then
5068   ac_hi=-1 ac_mid=-1
5069   while :; do
5070     cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h.  */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h.  */
5076 $ac_includes_default
5077 int
5078 main ()
5079 {
5080 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5081 test_array [0] = 0
5082
5083   ;
5084   return 0;
5085 }
5086 _ACEOF
5087 rm -f conftest.$ac_objext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5089   (eval $ac_compile) 2>conftest.er1
5090   ac_status=$?
5091   grep -v '^ *+' conftest.er1 >conftest.err
5092   rm -f conftest.er1
5093   cat conftest.err >&5
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); } &&
5096          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098   (eval $ac_try) 2>&5
5099   ac_status=$?
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); }; } &&
5102          { ac_try='test -s conftest.$ac_objext'
5103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104   (eval $ac_try) 2>&5
5105   ac_status=$?
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); }; }; then
5108   ac_lo=$ac_mid; break
5109 else
5110   echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112
5113 ac_hi=`expr '(' $ac_mid ')' - 1`
5114                        if test $ac_mid -le $ac_hi; then
5115                          ac_lo= ac_hi=
5116                          break
5117                        fi
5118                        ac_mid=`expr 2 '*' $ac_mid`
5119 fi
5120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5121   done
5122 else
5123   echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5125
5126 ac_lo= ac_hi=
5127 fi
5128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5129 fi
5130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5131 # Binary search between lo and hi bounds.
5132 while test "x$ac_lo" != "x$ac_hi"; do
5133   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5134   cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h.  */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h.  */
5140 $ac_includes_default
5141 int
5142 main ()
5143 {
5144 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5145 test_array [0] = 0
5146
5147   ;
5148   return 0;
5149 }
5150 _ACEOF
5151 rm -f conftest.$ac_objext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5153   (eval $ac_compile) 2>conftest.er1
5154   ac_status=$?
5155   grep -v '^ *+' conftest.er1 >conftest.err
5156   rm -f conftest.er1
5157   cat conftest.err >&5
5158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159   (exit $ac_status); } &&
5160          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162   (eval $ac_try) 2>&5
5163   ac_status=$?
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); }; } &&
5166          { ac_try='test -s conftest.$ac_objext'
5167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168   (eval $ac_try) 2>&5
5169   ac_status=$?
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); }; }; then
5172   ac_hi=$ac_mid
5173 else
5174   echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5176
5177 ac_lo=`expr '(' $ac_mid ')' + 1`
5178 fi
5179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5180 done
5181 case $ac_lo in
5182 ?*) ac_cv_sizeof_int=$ac_lo;;
5183 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5184 See \`config.log' for more details." >&5
5185 echo "$as_me: error: cannot compute sizeof (int), 77
5186 See \`config.log' for more details." >&2;}
5187    { (exit 1); exit 1; }; } ;;
5188 esac
5189 else
5190   if test "$cross_compiling" = yes; then
5191   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5192 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5193    { (exit 1); exit 1; }; }
5194 else
5195   cat >conftest.$ac_ext <<_ACEOF
5196 /* confdefs.h.  */
5197 _ACEOF
5198 cat confdefs.h >>conftest.$ac_ext
5199 cat >>conftest.$ac_ext <<_ACEOF
5200 /* end confdefs.h.  */
5201 $ac_includes_default
5202 long longval () { return (long) (sizeof (int)); }
5203 unsigned long ulongval () { return (long) (sizeof (int)); }
5204 #include <stdio.h>
5205 #include <stdlib.h>
5206 int
5207 main ()
5208 {
5209
5210   FILE *f = fopen ("conftest.val", "w");
5211   if (! f)
5212     exit (1);
5213   if (((long) (sizeof (int))) < 0)
5214     {
5215       long i = longval ();
5216       if (i != ((long) (sizeof (int))))
5217         exit (1);
5218       fprintf (f, "%ld\n", i);
5219     }
5220   else
5221     {
5222       unsigned long i = ulongval ();
5223       if (i != ((long) (sizeof (int))))
5224         exit (1);
5225       fprintf (f, "%lu\n", i);
5226     }
5227   exit (ferror (f) || fclose (f) != 0);
5228
5229   ;
5230   return 0;
5231 }
5232 _ACEOF
5233 rm -f conftest$ac_exeext
5234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5235   (eval $ac_link) 2>&5
5236   ac_status=$?
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240   (eval $ac_try) 2>&5
5241   ac_status=$?
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); }; }; then
5244   ac_cv_sizeof_int=`cat conftest.val`
5245 else
5246   echo "$as_me: program exited with status $ac_status" >&5
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250 ( exit $ac_status )
5251 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5252 See \`config.log' for more details." >&5
5253 echo "$as_me: error: cannot compute sizeof (int), 77
5254 See \`config.log' for more details." >&2;}
5255    { (exit 1); exit 1; }; }
5256 fi
5257 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5258 fi
5259 fi
5260 rm -f conftest.val
5261 else
5262   ac_cv_sizeof_int=0
5263 fi
5264 fi
5265 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5266 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5267 cat >>confdefs.h <<_ACEOF
5268 #define SIZEOF_INT $ac_cv_sizeof_int
5269 _ACEOF
5270
5271
5272 echo "$as_me:$LINENO: checking for long" >&5
5273 echo $ECHO_N "checking for long... $ECHO_C" >&6
5274 if test "${ac_cv_type_long+set}" = set; then
5275   echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277   cat >conftest.$ac_ext <<_ACEOF
5278 /* confdefs.h.  */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h.  */
5283 $ac_includes_default
5284 int
5285 main ()
5286 {
5287 if ((long *) 0)
5288   return 0;
5289 if (sizeof (long))
5290   return 0;
5291   ;
5292   return 0;
5293 }
5294 _ACEOF
5295 rm -f conftest.$ac_objext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5297   (eval $ac_compile) 2>conftest.er1
5298   ac_status=$?
5299   grep -v '^ *+' conftest.er1 >conftest.err
5300   rm -f conftest.er1
5301   cat conftest.err >&5
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); } &&
5304          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306   (eval $ac_try) 2>&5
5307   ac_status=$?
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); }; } &&
5310          { ac_try='test -s conftest.$ac_objext'
5311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312   (eval $ac_try) 2>&5
5313   ac_status=$?
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); }; }; then
5316   ac_cv_type_long=yes
5317 else
5318   echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5320
5321 ac_cv_type_long=no
5322 fi
5323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5324 fi
5325 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5326 echo "${ECHO_T}$ac_cv_type_long" >&6
5327
5328 echo "$as_me:$LINENO: checking size of long" >&5
5329 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5330 if test "${ac_cv_sizeof_long+set}" = set; then
5331   echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333   if test "$ac_cv_type_long" = yes; then
5334   # The cast to unsigned long works around a bug in the HP C Compiler
5335   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5336   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5337   # This bug is HP SR number 8606223364.
5338   if test "$cross_compiling" = yes; then
5339   # Depending upon the size, compute the lo and hi bounds.
5340 cat >conftest.$ac_ext <<_ACEOF
5341 /* confdefs.h.  */
5342 _ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h.  */
5346 $ac_includes_default
5347 int
5348 main ()
5349 {
5350 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5351 test_array [0] = 0
5352
5353   ;
5354   return 0;
5355 }
5356 _ACEOF
5357 rm -f conftest.$ac_objext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5359   (eval $ac_compile) 2>conftest.er1
5360   ac_status=$?
5361   grep -v '^ *+' conftest.er1 >conftest.err
5362   rm -f conftest.er1
5363   cat conftest.err >&5
5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365   (exit $ac_status); } &&
5366          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368   (eval $ac_try) 2>&5
5369   ac_status=$?
5370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371   (exit $ac_status); }; } &&
5372          { ac_try='test -s conftest.$ac_objext'
5373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374   (eval $ac_try) 2>&5
5375   ac_status=$?
5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); }; }; then
5378   ac_lo=0 ac_mid=0
5379   while :; do
5380     cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h.  */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h.  */
5386 $ac_includes_default
5387 int
5388 main ()
5389 {
5390 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5391 test_array [0] = 0
5392
5393   ;
5394   return 0;
5395 }
5396 _ACEOF
5397 rm -f conftest.$ac_objext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5399   (eval $ac_compile) 2>conftest.er1
5400   ac_status=$?
5401   grep -v '^ *+' conftest.er1 >conftest.err
5402   rm -f conftest.er1
5403   cat conftest.err >&5
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); } &&
5406          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408   (eval $ac_try) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); }; } &&
5412          { ac_try='test -s conftest.$ac_objext'
5413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414   (eval $ac_try) 2>&5
5415   ac_status=$?
5416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417   (exit $ac_status); }; }; then
5418   ac_hi=$ac_mid; break
5419 else
5420   echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5422
5423 ac_lo=`expr $ac_mid + 1`
5424                     if test $ac_lo -le $ac_mid; then
5425                       ac_lo= ac_hi=
5426                       break
5427                     fi
5428                     ac_mid=`expr 2 '*' $ac_mid + 1`
5429 fi
5430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5431   done
5432 else
5433   echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5435
5436 cat >conftest.$ac_ext <<_ACEOF
5437 /* confdefs.h.  */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h.  */
5442 $ac_includes_default
5443 int
5444 main ()
5445 {
5446 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5447 test_array [0] = 0
5448
5449   ;
5450   return 0;
5451 }
5452 _ACEOF
5453 rm -f conftest.$ac_objext
5454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5455   (eval $ac_compile) 2>conftest.er1
5456   ac_status=$?
5457   grep -v '^ *+' conftest.er1 >conftest.err
5458   rm -f conftest.er1
5459   cat conftest.err >&5
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); } &&
5462          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464   (eval $ac_try) 2>&5
5465   ac_status=$?
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); }; } &&
5468          { ac_try='test -s conftest.$ac_objext'
5469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470   (eval $ac_try) 2>&5
5471   ac_status=$?
5472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473   (exit $ac_status); }; }; then
5474   ac_hi=-1 ac_mid=-1
5475   while :; do
5476     cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h.  */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h.  */
5482 $ac_includes_default
5483 int
5484 main ()
5485 {
5486 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5487 test_array [0] = 0
5488
5489   ;
5490   return 0;
5491 }
5492 _ACEOF
5493 rm -f conftest.$ac_objext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5495   (eval $ac_compile) 2>conftest.er1
5496   ac_status=$?
5497   grep -v '^ *+' conftest.er1 >conftest.err
5498   rm -f conftest.er1
5499   cat conftest.err >&5
5500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501   (exit $ac_status); } &&
5502          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504   (eval $ac_try) 2>&5
5505   ac_status=$?
5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); }; } &&
5508          { ac_try='test -s conftest.$ac_objext'
5509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510   (eval $ac_try) 2>&5
5511   ac_status=$?
5512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513   (exit $ac_status); }; }; then
5514   ac_lo=$ac_mid; break
5515 else
5516   echo "$as_me: failed program was:" >&5
5517 sed 's/^/| /' conftest.$ac_ext >&5
5518
5519 ac_hi=`expr '(' $ac_mid ')' - 1`
5520                        if test $ac_mid -le $ac_hi; then
5521                          ac_lo= ac_hi=
5522                          break
5523                        fi
5524                        ac_mid=`expr 2 '*' $ac_mid`
5525 fi
5526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5527   done
5528 else
5529   echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5531
5532 ac_lo= ac_hi=
5533 fi
5534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5535 fi
5536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5537 # Binary search between lo and hi bounds.
5538 while test "x$ac_lo" != "x$ac_hi"; do
5539   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5540   cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h.  */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h.  */
5546 $ac_includes_default
5547 int
5548 main ()
5549 {
5550 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5551 test_array [0] = 0
5552
5553   ;
5554   return 0;
5555 }
5556 _ACEOF
5557 rm -f conftest.$ac_objext
5558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5559   (eval $ac_compile) 2>conftest.er1
5560   ac_status=$?
5561   grep -v '^ *+' conftest.er1 >conftest.err
5562   rm -f conftest.er1
5563   cat conftest.err >&5
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); } &&
5566          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568   (eval $ac_try) 2>&5
5569   ac_status=$?
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); }; } &&
5572          { ac_try='test -s conftest.$ac_objext'
5573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574   (eval $ac_try) 2>&5
5575   ac_status=$?
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); }; }; then
5578   ac_hi=$ac_mid
5579 else
5580   echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5582
5583 ac_lo=`expr '(' $ac_mid ')' + 1`
5584 fi
5585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5586 done
5587 case $ac_lo in
5588 ?*) ac_cv_sizeof_long=$ac_lo;;
5589 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5590 See \`config.log' for more details." >&5
5591 echo "$as_me: error: cannot compute sizeof (long), 77
5592 See \`config.log' for more details." >&2;}
5593    { (exit 1); exit 1; }; } ;;
5594 esac
5595 else
5596   if test "$cross_compiling" = yes; then
5597   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5598 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5599    { (exit 1); exit 1; }; }
5600 else
5601   cat >conftest.$ac_ext <<_ACEOF
5602 /* confdefs.h.  */
5603 _ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h.  */
5607 $ac_includes_default
5608 long longval () { return (long) (sizeof (long)); }
5609 unsigned long ulongval () { return (long) (sizeof (long)); }
5610 #include <stdio.h>
5611 #include <stdlib.h>
5612 int
5613 main ()
5614 {
5615
5616   FILE *f = fopen ("conftest.val", "w");
5617   if (! f)
5618     exit (1);
5619   if (((long) (sizeof (long))) < 0)
5620     {
5621       long i = longval ();
5622       if (i != ((long) (sizeof (long))))
5623         exit (1);
5624       fprintf (f, "%ld\n", i);
5625     }
5626   else
5627     {
5628       unsigned long i = ulongval ();
5629       if (i != ((long) (sizeof (long))))
5630         exit (1);
5631       fprintf (f, "%lu\n", i);
5632     }
5633   exit (ferror (f) || fclose (f) != 0);
5634
5635   ;
5636   return 0;
5637 }
5638 _ACEOF
5639 rm -f conftest$ac_exeext
5640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5641   (eval $ac_link) 2>&5
5642   ac_status=$?
5643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646   (eval $ac_try) 2>&5
5647   ac_status=$?
5648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649   (exit $ac_status); }; }; then
5650   ac_cv_sizeof_long=`cat conftest.val`
5651 else
5652   echo "$as_me: program exited with status $ac_status" >&5
5653 echo "$as_me: failed program was:" >&5
5654 sed 's/^/| /' conftest.$ac_ext >&5
5655
5656 ( exit $ac_status )
5657 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5658 See \`config.log' for more details." >&5
5659 echo "$as_me: error: cannot compute sizeof (long), 77
5660 See \`config.log' for more details." >&2;}
5661    { (exit 1); exit 1; }; }
5662 fi
5663 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5664 fi
5665 fi
5666 rm -f conftest.val
5667 else
5668   ac_cv_sizeof_long=0
5669 fi
5670 fi
5671 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5672 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5673 cat >>confdefs.h <<_ACEOF
5674 #define SIZEOF_LONG $ac_cv_sizeof_long
5675 _ACEOF
5676
5677
5678 echo "$as_me:$LINENO: checking for float" >&5
5679 echo $ECHO_N "checking for float... $ECHO_C" >&6
5680 if test "${ac_cv_type_float+set}" = set; then
5681   echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683   cat >conftest.$ac_ext <<_ACEOF
5684 /* confdefs.h.  */
5685 _ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h.  */
5689 $ac_includes_default
5690 int
5691 main ()
5692 {
5693 if ((float *) 0)
5694   return 0;
5695 if (sizeof (float))
5696   return 0;
5697   ;
5698   return 0;
5699 }
5700 _ACEOF
5701 rm -f conftest.$ac_objext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703   (eval $ac_compile) 2>conftest.er1
5704   ac_status=$?
5705   grep -v '^ *+' conftest.er1 >conftest.err
5706   rm -f conftest.er1
5707   cat conftest.err >&5
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } &&
5710          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712   (eval $ac_try) 2>&5
5713   ac_status=$?
5714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715   (exit $ac_status); }; } &&
5716          { ac_try='test -s conftest.$ac_objext'
5717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718   (eval $ac_try) 2>&5
5719   ac_status=$?
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); }; }; then
5722   ac_cv_type_float=yes
5723 else
5724   echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.$ac_ext >&5
5726
5727 ac_cv_type_float=no
5728 fi
5729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5730 fi
5731 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
5732 echo "${ECHO_T}$ac_cv_type_float" >&6
5733
5734 echo "$as_me:$LINENO: checking size of float" >&5
5735 echo $ECHO_N "checking size of float... $ECHO_C" >&6
5736 if test "${ac_cv_sizeof_float+set}" = set; then
5737   echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739   if test "$ac_cv_type_float" = yes; then
5740   # The cast to unsigned long works around a bug in the HP C Compiler
5741   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5742   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5743   # This bug is HP SR number 8606223364.
5744   if test "$cross_compiling" = yes; then
5745   # Depending upon the size, compute the lo and hi bounds.
5746 cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h.  */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h.  */
5752 $ac_includes_default
5753 int
5754 main ()
5755 {
5756 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5757 test_array [0] = 0
5758
5759   ;
5760   return 0;
5761 }
5762 _ACEOF
5763 rm -f conftest.$ac_objext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5765   (eval $ac_compile) 2>conftest.er1
5766   ac_status=$?
5767   grep -v '^ *+' conftest.er1 >conftest.err
5768   rm -f conftest.er1
5769   cat conftest.err >&5
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); } &&
5772          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774   (eval $ac_try) 2>&5
5775   ac_status=$?
5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777   (exit $ac_status); }; } &&
5778          { ac_try='test -s conftest.$ac_objext'
5779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780   (eval $ac_try) 2>&5
5781   ac_status=$?
5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783   (exit $ac_status); }; }; then
5784   ac_lo=0 ac_mid=0
5785   while :; do
5786     cat >conftest.$ac_ext <<_ACEOF
5787 /* confdefs.h.  */
5788 _ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h.  */
5792 $ac_includes_default
5793 int
5794 main ()
5795 {
5796 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5797 test_array [0] = 0
5798
5799   ;
5800   return 0;
5801 }
5802 _ACEOF
5803 rm -f conftest.$ac_objext
5804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5805   (eval $ac_compile) 2>conftest.er1
5806   ac_status=$?
5807   grep -v '^ *+' conftest.er1 >conftest.err
5808   rm -f conftest.er1
5809   cat conftest.err >&5
5810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811   (exit $ac_status); } &&
5812          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814   (eval $ac_try) 2>&5
5815   ac_status=$?
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); }; } &&
5818          { ac_try='test -s conftest.$ac_objext'
5819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820   (eval $ac_try) 2>&5
5821   ac_status=$?
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); }; }; then
5824   ac_hi=$ac_mid; break
5825 else
5826   echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829 ac_lo=`expr $ac_mid + 1`
5830                     if test $ac_lo -le $ac_mid; then
5831                       ac_lo= ac_hi=
5832                       break
5833                     fi
5834                     ac_mid=`expr 2 '*' $ac_mid + 1`
5835 fi
5836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5837   done
5838 else
5839   echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h.  */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h.  */
5848 $ac_includes_default
5849 int
5850 main ()
5851 {
5852 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5853 test_array [0] = 0
5854
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861   (eval $ac_compile) 2>conftest.er1
5862   ac_status=$?
5863   grep -v '^ *+' conftest.er1 >conftest.err
5864   rm -f conftest.er1
5865   cat conftest.err >&5
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); } &&
5868          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870   (eval $ac_try) 2>&5
5871   ac_status=$?
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); }; } &&
5874          { ac_try='test -s conftest.$ac_objext'
5875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876   (eval $ac_try) 2>&5
5877   ac_status=$?
5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); }; }; then
5880   ac_hi=-1 ac_mid=-1
5881   while :; do
5882     cat >conftest.$ac_ext <<_ACEOF
5883 /* confdefs.h.  */
5884 _ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h.  */
5888 $ac_includes_default
5889 int
5890 main ()
5891 {
5892 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5893 test_array [0] = 0
5894
5895   ;
5896   return 0;
5897 }
5898 _ACEOF
5899 rm -f conftest.$ac_objext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5901   (eval $ac_compile) 2>conftest.er1
5902   ac_status=$?
5903   grep -v '^ *+' conftest.er1 >conftest.err
5904   rm -f conftest.er1
5905   cat conftest.err >&5
5906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907   (exit $ac_status); } &&
5908          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910   (eval $ac_try) 2>&5
5911   ac_status=$?
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); }; } &&
5914          { ac_try='test -s conftest.$ac_objext'
5915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916   (eval $ac_try) 2>&5
5917   ac_status=$?
5918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919   (exit $ac_status); }; }; then
5920   ac_lo=$ac_mid; break
5921 else
5922   echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5924
5925 ac_hi=`expr '(' $ac_mid ')' - 1`
5926                        if test $ac_mid -le $ac_hi; then
5927                          ac_lo= ac_hi=
5928                          break
5929                        fi
5930                        ac_mid=`expr 2 '*' $ac_mid`
5931 fi
5932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5933   done
5934 else
5935   echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5937
5938 ac_lo= ac_hi=
5939 fi
5940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5941 fi
5942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5943 # Binary search between lo and hi bounds.
5944 while test "x$ac_lo" != "x$ac_hi"; do
5945   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5946   cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h.  */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h.  */
5952 $ac_includes_default
5953 int
5954 main ()
5955 {
5956 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5957 test_array [0] = 0
5958
5959   ;
5960   return 0;
5961 }
5962 _ACEOF
5963 rm -f conftest.$ac_objext
5964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965   (eval $ac_compile) 2>conftest.er1
5966   ac_status=$?
5967   grep -v '^ *+' conftest.er1 >conftest.err
5968   rm -f conftest.er1
5969   cat conftest.err >&5
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); } &&
5972          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974   (eval $ac_try) 2>&5
5975   ac_status=$?
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); }; } &&
5978          { ac_try='test -s conftest.$ac_objext'
5979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980   (eval $ac_try) 2>&5
5981   ac_status=$?
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); }; }; then
5984   ac_hi=$ac_mid
5985 else
5986   echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5988
5989 ac_lo=`expr '(' $ac_mid ')' + 1`
5990 fi
5991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5992 done
5993 case $ac_lo in
5994 ?*) ac_cv_sizeof_float=$ac_lo;;
5995 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5996 See \`config.log' for more details." >&5
5997 echo "$as_me: error: cannot compute sizeof (float), 77
5998 See \`config.log' for more details." >&2;}
5999    { (exit 1); exit 1; }; } ;;
6000 esac
6001 else
6002   if test "$cross_compiling" = yes; then
6003   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6004 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6005    { (exit 1); exit 1; }; }
6006 else
6007   cat >conftest.$ac_ext <<_ACEOF
6008 /* confdefs.h.  */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h.  */
6013 $ac_includes_default
6014 long longval () { return (long) (sizeof (float)); }
6015 unsigned long ulongval () { return (long) (sizeof (float)); }
6016 #include <stdio.h>
6017 #include <stdlib.h>
6018 int
6019 main ()
6020 {
6021
6022   FILE *f = fopen ("conftest.val", "w");
6023   if (! f)
6024     exit (1);
6025   if (((long) (sizeof (float))) < 0)
6026     {
6027       long i = longval ();
6028       if (i != ((long) (sizeof (float))))
6029         exit (1);
6030       fprintf (f, "%ld\n", i);
6031     }
6032   else
6033     {
6034       unsigned long i = ulongval ();
6035       if (i != ((long) (sizeof (float))))
6036         exit (1);
6037       fprintf (f, "%lu\n", i);
6038     }
6039   exit (ferror (f) || fclose (f) != 0);
6040
6041   ;
6042   return 0;
6043 }
6044 _ACEOF
6045 rm -f conftest$ac_exeext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6047   (eval $ac_link) 2>&5
6048   ac_status=$?
6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052   (eval $ac_try) 2>&5
6053   ac_status=$?
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); }; }; then
6056   ac_cv_sizeof_float=`cat conftest.val`
6057 else
6058   echo "$as_me: program exited with status $ac_status" >&5
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6061
6062 ( exit $ac_status )
6063 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
6064 See \`config.log' for more details." >&5
6065 echo "$as_me: error: cannot compute sizeof (float), 77
6066 See \`config.log' for more details." >&2;}
6067    { (exit 1); exit 1; }; }
6068 fi
6069 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6070 fi
6071 fi
6072 rm -f conftest.val
6073 else
6074   ac_cv_sizeof_float=0
6075 fi
6076 fi
6077 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
6078 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
6079 cat >>confdefs.h <<_ACEOF
6080 #define SIZEOF_FLOAT $ac_cv_sizeof_float
6081 _ACEOF
6082
6083
6084 echo "$as_me:$LINENO: checking for double" >&5
6085 echo $ECHO_N "checking for double... $ECHO_C" >&6
6086 if test "${ac_cv_type_double+set}" = set; then
6087   echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089   cat >conftest.$ac_ext <<_ACEOF
6090 /* confdefs.h.  */
6091 _ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h.  */
6095 $ac_includes_default
6096 int
6097 main ()
6098 {
6099 if ((double *) 0)
6100   return 0;
6101 if (sizeof (double))
6102   return 0;
6103   ;
6104   return 0;
6105 }
6106 _ACEOF
6107 rm -f conftest.$ac_objext
6108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6109   (eval $ac_compile) 2>conftest.er1
6110   ac_status=$?
6111   grep -v '^ *+' conftest.er1 >conftest.err
6112   rm -f conftest.er1
6113   cat conftest.err >&5
6114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115   (exit $ac_status); } &&
6116          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118   (eval $ac_try) 2>&5
6119   ac_status=$?
6120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121   (exit $ac_status); }; } &&
6122          { ac_try='test -s conftest.$ac_objext'
6123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124   (eval $ac_try) 2>&5
6125   ac_status=$?
6126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127   (exit $ac_status); }; }; then
6128   ac_cv_type_double=yes
6129 else
6130   echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6132
6133 ac_cv_type_double=no
6134 fi
6135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6136 fi
6137 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
6138 echo "${ECHO_T}$ac_cv_type_double" >&6
6139
6140 echo "$as_me:$LINENO: checking size of double" >&5
6141 echo $ECHO_N "checking size of double... $ECHO_C" >&6
6142 if test "${ac_cv_sizeof_double+set}" = set; then
6143   echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145   if test "$ac_cv_type_double" = yes; then
6146   # The cast to unsigned long works around a bug in the HP C Compiler
6147   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6148   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6149   # This bug is HP SR number 8606223364.
6150   if test "$cross_compiling" = yes; then
6151   # Depending upon the size, compute the lo and hi bounds.
6152 cat >conftest.$ac_ext <<_ACEOF
6153 /* confdefs.h.  */
6154 _ACEOF
6155 cat confdefs.h >>conftest.$ac_ext
6156 cat >>conftest.$ac_ext <<_ACEOF
6157 /* end confdefs.h.  */
6158 $ac_includes_default
6159 int
6160 main ()
6161 {
6162 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
6163 test_array [0] = 0
6164
6165   ;
6166   return 0;
6167 }
6168 _ACEOF
6169 rm -f conftest.$ac_objext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6171   (eval $ac_compile) 2>conftest.er1
6172   ac_status=$?
6173   grep -v '^ *+' conftest.er1 >conftest.err
6174   rm -f conftest.er1
6175   cat conftest.err >&5
6176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177   (exit $ac_status); } &&
6178          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
6184          { ac_try='test -s conftest.$ac_objext'
6185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186   (eval $ac_try) 2>&5
6187   ac_status=$?
6188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189   (exit $ac_status); }; }; then
6190   ac_lo=0 ac_mid=0
6191   while :; do
6192     cat >conftest.$ac_ext <<_ACEOF
6193 /* confdefs.h.  */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h.  */
6198 $ac_includes_default
6199 int
6200 main ()
6201 {
6202 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6203 test_array [0] = 0
6204
6205   ;
6206   return 0;
6207 }
6208 _ACEOF
6209 rm -f conftest.$ac_objext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6211   (eval $ac_compile) 2>conftest.er1
6212   ac_status=$?
6213   grep -v '^ *+' conftest.er1 >conftest.err
6214   rm -f conftest.er1
6215   cat conftest.err >&5
6216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217   (exit $ac_status); } &&
6218          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220   (eval $ac_try) 2>&5
6221   ac_status=$?
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); }; } &&
6224          { ac_try='test -s conftest.$ac_objext'
6225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226   (eval $ac_try) 2>&5
6227   ac_status=$?
6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229   (exit $ac_status); }; }; then
6230   ac_hi=$ac_mid; break
6231 else
6232   echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6234
6235 ac_lo=`expr $ac_mid + 1`
6236                     if test $ac_lo -le $ac_mid; then
6237                       ac_lo= ac_hi=
6238                       break
6239                     fi
6240                     ac_mid=`expr 2 '*' $ac_mid + 1`
6241 fi
6242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6243   done
6244 else
6245   echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6247
6248 cat >conftest.$ac_ext <<_ACEOF
6249 /* confdefs.h.  */
6250 _ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h.  */
6254 $ac_includes_default
6255 int
6256 main ()
6257 {
6258 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
6259 test_array [0] = 0
6260
6261   ;
6262   return 0;
6263 }
6264 _ACEOF
6265 rm -f conftest.$ac_objext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6267   (eval $ac_compile) 2>conftest.er1
6268   ac_status=$?
6269   grep -v '^ *+' conftest.er1 >conftest.err
6270   rm -f conftest.er1
6271   cat conftest.err >&5
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); } &&
6274          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276   (eval $ac_try) 2>&5
6277   ac_status=$?
6278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279   (exit $ac_status); }; } &&
6280          { ac_try='test -s conftest.$ac_objext'
6281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282   (eval $ac_try) 2>&5
6283   ac_status=$?
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); }; }; then
6286   ac_hi=-1 ac_mid=-1
6287   while :; do
6288     cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h.  */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h.  */
6294 $ac_includes_default
6295 int
6296 main ()
6297 {
6298 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
6299 test_array [0] = 0
6300
6301   ;
6302   return 0;
6303 }
6304 _ACEOF
6305 rm -f conftest.$ac_objext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6307   (eval $ac_compile) 2>conftest.er1
6308   ac_status=$?
6309   grep -v '^ *+' conftest.er1 >conftest.err
6310   rm -f conftest.er1
6311   cat conftest.err >&5
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); } &&
6314          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316   (eval $ac_try) 2>&5
6317   ac_status=$?
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); }; } &&
6320          { ac_try='test -s conftest.$ac_objext'
6321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322   (eval $ac_try) 2>&5
6323   ac_status=$?
6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); }; }; then
6326   ac_lo=$ac_mid; break
6327 else
6328   echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6330
6331 ac_hi=`expr '(' $ac_mid ')' - 1`
6332                        if test $ac_mid -le $ac_hi; then
6333                          ac_lo= ac_hi=
6334                          break
6335                        fi
6336                        ac_mid=`expr 2 '*' $ac_mid`
6337 fi
6338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6339   done
6340 else
6341   echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6343
6344 ac_lo= ac_hi=
6345 fi
6346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6347 fi
6348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6349 # Binary search between lo and hi bounds.
6350 while test "x$ac_lo" != "x$ac_hi"; do
6351   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6352   cat >conftest.$ac_ext <<_ACEOF
6353 /* confdefs.h.  */
6354 _ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h.  */
6358 $ac_includes_default
6359 int
6360 main ()
6361 {
6362 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6363 test_array [0] = 0
6364
6365   ;
6366   return 0;
6367 }
6368 _ACEOF
6369 rm -f conftest.$ac_objext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371   (eval $ac_compile) 2>conftest.er1
6372   ac_status=$?
6373   grep -v '^ *+' conftest.er1 >conftest.err
6374   rm -f conftest.er1
6375   cat conftest.err >&5
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); } &&
6378          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380   (eval $ac_try) 2>&5
6381   ac_status=$?
6382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383   (exit $ac_status); }; } &&
6384          { ac_try='test -s conftest.$ac_objext'
6385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386   (eval $ac_try) 2>&5
6387   ac_status=$?
6388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389   (exit $ac_status); }; }; then
6390   ac_hi=$ac_mid
6391 else
6392   echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6394
6395 ac_lo=`expr '(' $ac_mid ')' + 1`
6396 fi
6397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6398 done
6399 case $ac_lo in
6400 ?*) ac_cv_sizeof_double=$ac_lo;;
6401 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6402 See \`config.log' for more details." >&5
6403 echo "$as_me: error: cannot compute sizeof (double), 77
6404 See \`config.log' for more details." >&2;}
6405    { (exit 1); exit 1; }; } ;;
6406 esac
6407 else
6408   if test "$cross_compiling" = yes; then
6409   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6410 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6411    { (exit 1); exit 1; }; }
6412 else
6413   cat >conftest.$ac_ext <<_ACEOF
6414 /* confdefs.h.  */
6415 _ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h.  */
6419 $ac_includes_default
6420 long longval () { return (long) (sizeof (double)); }
6421 unsigned long ulongval () { return (long) (sizeof (double)); }
6422 #include <stdio.h>
6423 #include <stdlib.h>
6424 int
6425 main ()
6426 {
6427
6428   FILE *f = fopen ("conftest.val", "w");
6429   if (! f)
6430     exit (1);
6431   if (((long) (sizeof (double))) < 0)
6432     {
6433       long i = longval ();
6434       if (i != ((long) (sizeof (double))))
6435         exit (1);
6436       fprintf (f, "%ld\n", i);
6437     }
6438   else
6439     {
6440       unsigned long i = ulongval ();
6441       if (i != ((long) (sizeof (double))))
6442         exit (1);
6443       fprintf (f, "%lu\n", i);
6444     }
6445   exit (ferror (f) || fclose (f) != 0);
6446
6447   ;
6448   return 0;
6449 }
6450 _ACEOF
6451 rm -f conftest$ac_exeext
6452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6453   (eval $ac_link) 2>&5
6454   ac_status=$?
6455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458   (eval $ac_try) 2>&5
6459   ac_status=$?
6460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); }; }; then
6462   ac_cv_sizeof_double=`cat conftest.val`
6463 else
6464   echo "$as_me: program exited with status $ac_status" >&5
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6467
6468 ( exit $ac_status )
6469 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6470 See \`config.log' for more details." >&5
6471 echo "$as_me: error: cannot compute sizeof (double), 77
6472 See \`config.log' for more details." >&2;}
6473    { (exit 1); exit 1; }; }
6474 fi
6475 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6476 fi
6477 fi
6478 rm -f conftest.val
6479 else
6480   ac_cv_sizeof_double=0
6481 fi
6482 fi
6483 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6484 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6485 cat >>confdefs.h <<_ACEOF
6486 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6487 _ACEOF
6488
6489
6490
6491
6492 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
6493 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
6494 if test "${ac_cv_lib_z_deflate+set}" = set; then
6495   echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497   ac_check_lib_save_LIBS=$LIBS
6498 LIBS="-lz  $LIBS"
6499 cat >conftest.$ac_ext <<_ACEOF
6500 /* confdefs.h.  */
6501 _ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h.  */
6505
6506 /* Override any gcc2 internal prototype to avoid an error.  */
6507 #ifdef __cplusplus
6508 extern "C"
6509 #endif
6510 /* We use char because int might match the return type of a gcc2
6511    builtin and then its argument prototype would still apply.  */
6512 char deflate ();
6513 int
6514 main ()
6515 {
6516 deflate ();
6517   ;
6518   return 0;
6519 }
6520 _ACEOF
6521 rm -f conftest.$ac_objext conftest$ac_exeext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6523   (eval $ac_link) 2>conftest.er1
6524   ac_status=$?
6525   grep -v '^ *+' conftest.er1 >conftest.err
6526   rm -f conftest.er1
6527   cat conftest.err >&5
6528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529   (exit $ac_status); } &&
6530          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532   (eval $ac_try) 2>&5
6533   ac_status=$?
6534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535   (exit $ac_status); }; } &&
6536          { ac_try='test -s conftest$ac_exeext'
6537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538   (eval $ac_try) 2>&5
6539   ac_status=$?
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); }; }; then
6542   ac_cv_lib_z_deflate=yes
6543 else
6544   echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6546
6547 ac_cv_lib_z_deflate=no
6548 fi
6549 rm -f conftest.err conftest.$ac_objext \
6550       conftest$ac_exeext conftest.$ac_ext
6551 LIBS=$ac_check_lib_save_LIBS
6552 fi
6553 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
6554 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
6555 if test $ac_cv_lib_z_deflate = yes; then
6556    zlib="true"
6557 else
6558    zlib="false" ;  { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
6559 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
6560 fi
6561
6562
6563 echo "$as_me:$LINENO: checking for sin in -lm" >&5
6564 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6565 if test "${ac_cv_lib_m_sin+set}" = set; then
6566   echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568   ac_check_lib_save_LIBS=$LIBS
6569 LIBS="-lm  $LIBS"
6570 cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h.  */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h.  */
6576
6577 /* Override any gcc2 internal prototype to avoid an error.  */
6578 #ifdef __cplusplus
6579 extern "C"
6580 #endif
6581 /* We use char because int might match the return type of a gcc2
6582    builtin and then its argument prototype would still apply.  */
6583 char sin ();
6584 int
6585 main ()
6586 {
6587 sin ();
6588   ;
6589   return 0;
6590 }
6591 _ACEOF
6592 rm -f conftest.$ac_objext conftest$ac_exeext
6593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6594   (eval $ac_link) 2>conftest.er1
6595   ac_status=$?
6596   grep -v '^ *+' conftest.er1 >conftest.err
6597   rm -f conftest.er1
6598   cat conftest.err >&5
6599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600   (exit $ac_status); } &&
6601          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603   (eval $ac_try) 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); }; } &&
6607          { ac_try='test -s conftest$ac_exeext'
6608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609   (eval $ac_try) 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); }; }; then
6613   ac_cv_lib_m_sin=yes
6614 else
6615   echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 ac_cv_lib_m_sin=no
6619 fi
6620 rm -f conftest.err conftest.$ac_objext \
6621       conftest$ac_exeext conftest.$ac_ext
6622 LIBS=$ac_check_lib_save_LIBS
6623 fi
6624 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6625 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6626 if test $ac_cv_lib_m_sin = yes; then
6627   cat >>confdefs.h <<_ACEOF
6628 #define HAVE_LIBM 1
6629 _ACEOF
6630
6631   LIBS="-lm $LIBS"
6632
6633 fi
6634
6635 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
6636 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
6637 if test "${ac_cv_lib_curses_main+set}" = set; then
6638   echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640   ac_check_lib_save_LIBS=$LIBS
6641 LIBS="-lcurses  $LIBS"
6642 cat >conftest.$ac_ext <<_ACEOF
6643 /* confdefs.h.  */
6644 _ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h.  */
6648
6649
6650 int
6651 main ()
6652 {
6653 main ();
6654   ;
6655   return 0;
6656 }
6657 _ACEOF
6658 rm -f conftest.$ac_objext conftest$ac_exeext
6659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6660   (eval $ac_link) 2>conftest.er1
6661   ac_status=$?
6662   grep -v '^ *+' conftest.er1 >conftest.err
6663   rm -f conftest.er1
6664   cat conftest.err >&5
6665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666   (exit $ac_status); } &&
6667          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669   (eval $ac_try) 2>&5
6670   ac_status=$?
6671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672   (exit $ac_status); }; } &&
6673          { ac_try='test -s conftest$ac_exeext'
6674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675   (eval $ac_try) 2>&5
6676   ac_status=$?
6677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678   (exit $ac_status); }; }; then
6679   ac_cv_lib_curses_main=yes
6680 else
6681   echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6683
6684 ac_cv_lib_curses_main=no
6685 fi
6686 rm -f conftest.err conftest.$ac_objext \
6687       conftest$ac_exeext conftest.$ac_ext
6688 LIBS=$ac_check_lib_save_LIBS
6689 fi
6690 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
6691 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
6692 if test $ac_cv_lib_curses_main = yes; then
6693   curses=true
6694 else
6695   curses=false
6696 fi
6697
6698 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6699 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
6700 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   ac_check_lib_save_LIBS=$LIBS
6704 LIBS="-lncurses  $LIBS"
6705 cat >conftest.$ac_ext <<_ACEOF
6706 /* confdefs.h.  */
6707 _ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h.  */
6711
6712
6713 int
6714 main ()
6715 {
6716 main ();
6717   ;
6718   return 0;
6719 }
6720 _ACEOF
6721 rm -f conftest.$ac_objext conftest$ac_exeext
6722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6723   (eval $ac_link) 2>conftest.er1
6724   ac_status=$?
6725   grep -v '^ *+' conftest.er1 >conftest.err
6726   rm -f conftest.er1
6727   cat conftest.err >&5
6728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729   (exit $ac_status); } &&
6730          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732   (eval $ac_try) 2>&5
6733   ac_status=$?
6734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735   (exit $ac_status); }; } &&
6736          { ac_try='test -s conftest$ac_exeext'
6737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738   (eval $ac_try) 2>&5
6739   ac_status=$?
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); }; }; then
6742   ac_cv_lib_ncurses_main=yes
6743 else
6744   echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.$ac_ext >&5
6746
6747 ac_cv_lib_ncurses_main=no
6748 fi
6749 rm -f conftest.err conftest.$ac_objext \
6750       conftest$ac_exeext conftest.$ac_ext
6751 LIBS=$ac_check_lib_save_LIBS
6752 fi
6753 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6754 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
6755 if test $ac_cv_lib_ncurses_main = yes; then
6756   ncurses=true
6757 else
6758   ncurses=false
6759 fi
6760
6761 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
6762 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
6763 if test "${ac_cv_lib_readline_main+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   ac_check_lib_save_LIBS=$LIBS
6767 LIBS="-lreadline -lcurses $LIBS"
6768 cat >conftest.$ac_ext <<_ACEOF
6769 /* confdefs.h.  */
6770 _ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h.  */
6774
6775
6776 int
6777 main ()
6778 {
6779 main ();
6780   ;
6781   return 0;
6782 }
6783 _ACEOF
6784 rm -f conftest.$ac_objext conftest$ac_exeext
6785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6786   (eval $ac_link) 2>conftest.er1
6787   ac_status=$?
6788   grep -v '^ *+' conftest.er1 >conftest.err
6789   rm -f conftest.er1
6790   cat conftest.err >&5
6791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792   (exit $ac_status); } &&
6793          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
6799          { ac_try='test -s conftest$ac_exeext'
6800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801   (eval $ac_try) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); }; }; then
6805   ac_cv_lib_readline_main=yes
6806 else
6807   echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6809
6810 ac_cv_lib_readline_main=no
6811 fi
6812 rm -f conftest.err conftest.$ac_objext \
6813       conftest$ac_exeext conftest.$ac_ext
6814 LIBS=$ac_check_lib_save_LIBS
6815 fi
6816 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
6817 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
6818 if test $ac_cv_lib_readline_main = yes; then
6819   readline=true;
6820
6821 cat >>confdefs.h <<\_ACEOF
6822 #define HAVE_READLINE 1
6823 _ACEOF
6824
6825 else
6826   readline=false
6827 fi
6828
6829 wxwin=false
6830 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
6831 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
6832 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
6833   echo $ECHO_N "(cached) $ECHO_C" >&6
6834 else
6835   ac_check_lib_save_LIBS=$LIBS
6836 LIBS="-lwx_gtk-2.4 -L/usr/lib64 -L/usr/lib `gtk-config --libs` `glib-config --libs glib gmodule gthread`  $LIBS"
6837 cat >conftest.$ac_ext <<_ACEOF
6838 /* confdefs.h.  */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h.  */
6843
6844
6845 int
6846 main ()
6847 {
6848 main ();
6849   ;
6850   return 0;
6851 }
6852 _ACEOF
6853 rm -f conftest.$ac_objext conftest$ac_exeext
6854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6855   (eval $ac_link) 2>conftest.er1
6856   ac_status=$?
6857   grep -v '^ *+' conftest.er1 >conftest.err
6858   rm -f conftest.er1
6859   cat conftest.err >&5
6860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861   (exit $ac_status); } &&
6862          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864   (eval $ac_try) 2>&5
6865   ac_status=$?
6866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867   (exit $ac_status); }; } &&
6868          { ac_try='test -s conftest$ac_exeext'
6869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870   (eval $ac_try) 2>&5
6871   ac_status=$?
6872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873   (exit $ac_status); }; }; then
6874   ac_cv_lib_wx_gtk_2_4_main=yes
6875 else
6876   echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6878
6879 ac_cv_lib_wx_gtk_2_4_main=no
6880 fi
6881 rm -f conftest.err conftest.$ac_objext \
6882       conftest$ac_exeext conftest.$ac_ext
6883 LIBS=$ac_check_lib_save_LIBS
6884 fi
6885 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
6886 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
6887 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
6888   wxwin=true; wx_gtk=true;
6889 cat >>confdefs.h <<\_ACEOF
6890 #define HAVE_WXWINDOWS 1
6891 _ACEOF
6892
6893 fi
6894
6895 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
6896 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
6897 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
6898   echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900   ac_check_lib_save_LIBS=$LIBS
6901 LIBS="-lwx_mac-2.4  $LIBS"
6902 cat >conftest.$ac_ext <<_ACEOF
6903 /* confdefs.h.  */
6904 _ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h.  */
6908
6909
6910 int
6911 main ()
6912 {
6913 main ();
6914   ;
6915   return 0;
6916 }
6917 _ACEOF
6918 rm -f conftest.$ac_objext conftest$ac_exeext
6919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6920   (eval $ac_link) 2>conftest.er1
6921   ac_status=$?
6922   grep -v '^ *+' conftest.er1 >conftest.err
6923   rm -f conftest.er1
6924   cat conftest.err >&5
6925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926   (exit $ac_status); } &&
6927          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929   (eval $ac_try) 2>&5
6930   ac_status=$?
6931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932   (exit $ac_status); }; } &&
6933          { ac_try='test -s conftest$ac_exeext'
6934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6935   (eval $ac_try) 2>&5
6936   ac_status=$?
6937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938   (exit $ac_status); }; }; then
6939   ac_cv_lib_wx_mac_2_4_main=yes
6940 else
6941   echo "$as_me: failed program was:" >&5
6942 sed 's/^/| /' conftest.$ac_ext >&5
6943
6944 ac_cv_lib_wx_mac_2_4_main=no
6945 fi
6946 rm -f conftest.err conftest.$ac_objext \
6947       conftest$ac_exeext conftest.$ac_ext
6948 LIBS=$ac_check_lib_save_LIBS
6949 fi
6950 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
6951 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
6952 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
6953   wxwin=true; wx_mac=true;
6954 cat >>confdefs.h <<\_ACEOF
6955 #define HAVE_WXWINDOWS 1
6956 _ACEOF
6957
6958 fi
6959
6960 echo "$as_me:$LINENO: checking for fftw_malloc in -lfftw3" >&5
6961 echo $ECHO_N "checking for fftw_malloc in -lfftw3... $ECHO_C" >&6
6962 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then
6963   echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965   ac_check_lib_save_LIBS=$LIBS
6966 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
6967 cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h.  */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h.  */
6973
6974 /* Override any gcc2 internal prototype to avoid an error.  */
6975 #ifdef __cplusplus
6976 extern "C"
6977 #endif
6978 /* We use char because int might match the return type of a gcc2
6979    builtin and then its argument prototype would still apply.  */
6980 char fftw_malloc ();
6981 int
6982 main ()
6983 {
6984 fftw_malloc ();
6985   ;
6986   return 0;
6987 }
6988 _ACEOF
6989 rm -f conftest.$ac_objext conftest$ac_exeext
6990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6991   (eval $ac_link) 2>conftest.er1
6992   ac_status=$?
6993   grep -v '^ *+' conftest.er1 >conftest.err
6994   rm -f conftest.er1
6995   cat conftest.err >&5
6996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997   (exit $ac_status); } &&
6998          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000   (eval $ac_try) 2>&5
7001   ac_status=$?
7002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003   (exit $ac_status); }; } &&
7004          { ac_try='test -s conftest$ac_exeext'
7005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006   (eval $ac_try) 2>&5
7007   ac_status=$?
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); }; }; then
7010   ac_cv_lib_fftw3_fftw_malloc=yes
7011 else
7012   echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7014
7015 ac_cv_lib_fftw3_fftw_malloc=no
7016 fi
7017 rm -f conftest.err conftest.$ac_objext \
7018       conftest$ac_exeext conftest.$ac_ext
7019 LIBS=$ac_check_lib_save_LIBS
7020 fi
7021 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
7022 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_malloc" >&6
7023 if test $ac_cv_lib_fftw3_fftw_malloc = yes; then
7024   fftw=true;
7025 cat >>confdefs.h <<\_ACEOF
7026 #define HAVE_FFTW 1
7027 _ACEOF
7028
7029 else
7030   fftw=false
7031 fi
7032
7033 echo "$as_me:$LINENO: checking for main in -lGL" >&5
7034 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
7035 if test "${ac_cv_lib_GL_main+set}" = set; then
7036   echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038   ac_check_lib_save_LIBS=$LIBS
7039 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
7040 cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h.  */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h.  */
7046
7047
7048 int
7049 main ()
7050 {
7051 main ();
7052   ;
7053   return 0;
7054 }
7055 _ACEOF
7056 rm -f conftest.$ac_objext conftest$ac_exeext
7057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7058   (eval $ac_link) 2>conftest.er1
7059   ac_status=$?
7060   grep -v '^ *+' conftest.er1 >conftest.err
7061   rm -f conftest.er1
7062   cat conftest.err >&5
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); } &&
7065          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067   (eval $ac_try) 2>&5
7068   ac_status=$?
7069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070   (exit $ac_status); }; } &&
7071          { ac_try='test -s conftest$ac_exeext'
7072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073   (eval $ac_try) 2>&5
7074   ac_status=$?
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); }; }; then
7077   ac_cv_lib_GL_main=yes
7078 else
7079   echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7081
7082 ac_cv_lib_GL_main=no
7083 fi
7084 rm -f conftest.err conftest.$ac_objext \
7085       conftest$ac_exeext conftest.$ac_ext
7086 LIBS=$ac_check_lib_save_LIBS
7087 fi
7088 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
7089 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
7090 if test $ac_cv_lib_GL_main = yes; then
7091   libgl=true
7092 else
7093   libgl=false
7094 fi
7095
7096 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
7097 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
7098 if test "${ac_cv_lib_pthread_main+set}" = set; then
7099   echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101   ac_check_lib_save_LIBS=$LIBS
7102 LIBS="-lpthread  $LIBS"
7103 cat >conftest.$ac_ext <<_ACEOF
7104 /* confdefs.h.  */
7105 _ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h.  */
7109
7110
7111 int
7112 main ()
7113 {
7114 main ();
7115   ;
7116   return 0;
7117 }
7118 _ACEOF
7119 rm -f conftest.$ac_objext conftest$ac_exeext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121   (eval $ac_link) 2>conftest.er1
7122   ac_status=$?
7123   grep -v '^ *+' conftest.er1 >conftest.err
7124   rm -f conftest.er1
7125   cat conftest.err >&5
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); } &&
7128          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130   (eval $ac_try) 2>&5
7131   ac_status=$?
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); }; } &&
7134          { ac_try='test -s conftest$ac_exeext'
7135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136   (eval $ac_try) 2>&5
7137   ac_status=$?
7138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139   (exit $ac_status); }; }; then
7140   ac_cv_lib_pthread_main=yes
7141 else
7142   echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7144
7145 ac_cv_lib_pthread_main=no
7146 fi
7147 rm -f conftest.err conftest.$ac_objext \
7148       conftest$ac_exeext conftest.$ac_ext
7149 LIBS=$ac_check_lib_save_LIBS
7150 fi
7151 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
7152 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
7153 if test $ac_cv_lib_pthread_main = yes; then
7154   pthread=true
7155 else
7156   pthread=false
7157 fi
7158
7159
7160 if test "$zlib" = "true" ; then
7161   echo "$as_me:$LINENO: checking for main in -lpng" >&5
7162 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
7163 if test "${ac_cv_lib_png_main+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   ac_check_lib_save_LIBS=$LIBS
7167 LIBS="-lpng -lz -lm $LIBS"
7168 cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h.  */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h.  */
7174
7175
7176 int
7177 main ()
7178 {
7179 main ();
7180   ;
7181   return 0;
7182 }
7183 _ACEOF
7184 rm -f conftest.$ac_objext conftest$ac_exeext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7186   (eval $ac_link) 2>conftest.er1
7187   ac_status=$?
7188   grep -v '^ *+' conftest.er1 >conftest.err
7189   rm -f conftest.er1
7190   cat conftest.err >&5
7191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192   (exit $ac_status); } &&
7193          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195   (eval $ac_try) 2>&5
7196   ac_status=$?
7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); }; } &&
7199          { ac_try='test -s conftest$ac_exeext'
7200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201   (eval $ac_try) 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); }; }; then
7205   ac_cv_lib_png_main=yes
7206 else
7207   echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7209
7210 ac_cv_lib_png_main=no
7211 fi
7212 rm -f conftest.err conftest.$ac_objext \
7213       conftest$ac_exeext conftest.$ac_ext
7214 LIBS=$ac_check_lib_save_LIBS
7215 fi
7216 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
7217 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
7218 if test $ac_cv_lib_png_main = yes; then
7219   png=true ;
7220 cat >>confdefs.h <<\_ACEOF
7221 #define HAVE_PNG 1
7222 _ACEOF
7223
7224 else
7225   png=false
7226 fi
7227
7228 fi
7229
7230 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7231 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7232 if test "${ac_cv_header_stdc+set}" = set; then
7233   echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235   cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h.  */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h.  */
7241 #include <stdlib.h>
7242 #include <stdarg.h>
7243 #include <string.h>
7244 #include <float.h>
7245
7246 int
7247 main ()
7248 {
7249
7250   ;
7251   return 0;
7252 }
7253 _ACEOF
7254 rm -f conftest.$ac_objext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7256   (eval $ac_compile) 2>conftest.er1
7257   ac_status=$?
7258   grep -v '^ *+' conftest.er1 >conftest.err
7259   rm -f conftest.er1
7260   cat conftest.err >&5
7261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262   (exit $ac_status); } &&
7263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265   (eval $ac_try) 2>&5
7266   ac_status=$?
7267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268   (exit $ac_status); }; } &&
7269          { ac_try='test -s conftest.$ac_objext'
7270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271   (eval $ac_try) 2>&5
7272   ac_status=$?
7273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274   (exit $ac_status); }; }; then
7275   ac_cv_header_stdc=yes
7276 else
7277   echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7279
7280 ac_cv_header_stdc=no
7281 fi
7282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7283
7284 if test $ac_cv_header_stdc = yes; then
7285   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7286   cat >conftest.$ac_ext <<_ACEOF
7287 /* confdefs.h.  */
7288 _ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h.  */
7292 #include <string.h>
7293
7294 _ACEOF
7295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7296   $EGREP "memchr" >/dev/null 2>&1; then
7297   :
7298 else
7299   ac_cv_header_stdc=no
7300 fi
7301 rm -f conftest*
7302
7303 fi
7304
7305 if test $ac_cv_header_stdc = yes; then
7306   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7307   cat >conftest.$ac_ext <<_ACEOF
7308 /* confdefs.h.  */
7309 _ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h.  */
7313 #include <stdlib.h>
7314
7315 _ACEOF
7316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7317   $EGREP "free" >/dev/null 2>&1; then
7318   :
7319 else
7320   ac_cv_header_stdc=no
7321 fi
7322 rm -f conftest*
7323
7324 fi
7325
7326 if test $ac_cv_header_stdc = yes; then
7327   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7328   if test "$cross_compiling" = yes; then
7329   :
7330 else
7331   cat >conftest.$ac_ext <<_ACEOF
7332 /* confdefs.h.  */
7333 _ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h.  */
7337 #include <ctype.h>
7338 #if ((' ' & 0x0FF) == 0x020)
7339 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7340 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7341 #else
7342 # define ISLOWER(c) \
7343                    (('a' <= (c) && (c) <= 'i') \
7344                      || ('j' <= (c) && (c) <= 'r') \
7345                      || ('s' <= (c) && (c) <= 'z'))
7346 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7347 #endif
7348
7349 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7350 int
7351 main ()
7352 {
7353   int i;
7354   for (i = 0; i < 256; i++)
7355     if (XOR (islower (i), ISLOWER (i))
7356         || toupper (i) != TOUPPER (i))
7357       exit(2);
7358   exit (0);
7359 }
7360 _ACEOF
7361 rm -f conftest$ac_exeext
7362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7363   (eval $ac_link) 2>&5
7364   ac_status=$?
7365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368   (eval $ac_try) 2>&5
7369   ac_status=$?
7370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); }; }; then
7372   :
7373 else
7374   echo "$as_me: program exited with status $ac_status" >&5
7375 echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7377
7378 ( exit $ac_status )
7379 ac_cv_header_stdc=no
7380 fi
7381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7382 fi
7383 fi
7384 fi
7385 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7386 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7387 if test $ac_cv_header_stdc = yes; then
7388
7389 cat >>confdefs.h <<\_ACEOF
7390 #define STDC_HEADERS 1
7391 _ACEOF
7392
7393 fi
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419 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
7420 do
7421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7423   echo "$as_me:$LINENO: checking for $ac_header" >&5
7424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7426   echo $ECHO_N "(cached) $ECHO_C" >&6
7427 fi
7428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7430 else
7431   # Is the header compilable?
7432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7434 cat >conftest.$ac_ext <<_ACEOF
7435 /* confdefs.h.  */
7436 _ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h.  */
7440 $ac_includes_default
7441 #include <$ac_header>
7442 _ACEOF
7443 rm -f conftest.$ac_objext
7444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445   (eval $ac_compile) 2>conftest.er1
7446   ac_status=$?
7447   grep -v '^ *+' conftest.er1 >conftest.err
7448   rm -f conftest.er1
7449   cat conftest.err >&5
7450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451   (exit $ac_status); } &&
7452          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454   (eval $ac_try) 2>&5
7455   ac_status=$?
7456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457   (exit $ac_status); }; } &&
7458          { ac_try='test -s conftest.$ac_objext'
7459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460   (eval $ac_try) 2>&5
7461   ac_status=$?
7462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463   (exit $ac_status); }; }; then
7464   ac_header_compiler=yes
7465 else
7466   echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469 ac_header_compiler=no
7470 fi
7471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7473 echo "${ECHO_T}$ac_header_compiler" >&6
7474
7475 # Is the header present?
7476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h.  */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h.  */
7484 #include <$ac_header>
7485 _ACEOF
7486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7487   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7488   ac_status=$?
7489   grep -v '^ *+' conftest.er1 >conftest.err
7490   rm -f conftest.er1
7491   cat conftest.err >&5
7492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493   (exit $ac_status); } >/dev/null; then
7494   if test -s conftest.err; then
7495     ac_cpp_err=$ac_c_preproc_warn_flag
7496     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7497   else
7498     ac_cpp_err=
7499   fi
7500 else
7501   ac_cpp_err=yes
7502 fi
7503 if test -z "$ac_cpp_err"; then
7504   ac_header_preproc=yes
7505 else
7506   echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7508
7509   ac_header_preproc=no
7510 fi
7511 rm -f conftest.err conftest.$ac_ext
7512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7513 echo "${ECHO_T}$ac_header_preproc" >&6
7514
7515 # So?  What about this header?
7516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7517   yes:no: )
7518     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7520     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7522     ac_header_preproc=yes
7523     ;;
7524   no:yes:* )
7525     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7527     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7528 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7529     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7531     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7532 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7533     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7535     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7537     (
7538       cat <<\_ASBOX
7539 ## ------------------------------------------ ##
7540 ## Report this to the AC_PACKAGE_NAME lists.  ##
7541 ## ------------------------------------------ ##
7542 _ASBOX
7543     ) |
7544       sed "s/^/$as_me: WARNING:     /" >&2
7545     ;;
7546 esac
7547 echo "$as_me:$LINENO: checking for $ac_header" >&5
7548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7550   echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552   eval "$as_ac_Header=\$ac_header_preproc"
7553 fi
7554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7556
7557 fi
7558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7559   cat >>confdefs.h <<_ACEOF
7560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7561 _ACEOF
7562
7563 fi
7564
7565 done
7566
7567
7568 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7569 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7570 if test "${ac_cv_c_const+set}" = set; then
7571   echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573   cat >conftest.$ac_ext <<_ACEOF
7574 /* confdefs.h.  */
7575 _ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h.  */
7579
7580 int
7581 main ()
7582 {
7583 /* FIXME: Include the comments suggested by Paul. */
7584 #ifndef __cplusplus
7585   /* Ultrix mips cc rejects this.  */
7586   typedef int charset[2];
7587   const charset x;
7588   /* SunOS 4.1.1 cc rejects this.  */
7589   char const *const *ccp;
7590   char **p;
7591   /* NEC SVR4.0.2 mips cc rejects this.  */
7592   struct point {int x, y;};
7593   static struct point const zero = {0,0};
7594   /* AIX XL C 1.02.0.0 rejects this.
7595      It does not let you subtract one const X* pointer from another in
7596      an arm of an if-expression whose if-part is not a constant
7597      expression */
7598   const char *g = "string";
7599   ccp = &g + (g ? g-g : 0);
7600   /* HPUX 7.0 cc rejects these. */
7601   ++ccp;
7602   p = (char**) ccp;
7603   ccp = (char const *const *) p;
7604   { /* SCO 3.2v4 cc rejects this.  */
7605     char *t;
7606     char const *s = 0 ? (char *) 0 : (char const *) 0;
7607
7608     *t++ = 0;
7609   }
7610   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7611     int x[] = {25, 17};
7612     const int *foo = &x[0];
7613     ++foo;
7614   }
7615   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7616     typedef const int *iptr;
7617     iptr p = 0;
7618     ++p;
7619   }
7620   { /* AIX XL C 1.02.0.0 rejects this saying
7621        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7622     struct s { int j; const int *ap[3]; };
7623     struct s *b; b->j = 5;
7624   }
7625   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7626     const int foo = 10;
7627   }
7628 #endif
7629
7630   ;
7631   return 0;
7632 }
7633 _ACEOF
7634 rm -f conftest.$ac_objext
7635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7636   (eval $ac_compile) 2>conftest.er1
7637   ac_status=$?
7638   grep -v '^ *+' conftest.er1 >conftest.err
7639   rm -f conftest.er1
7640   cat conftest.err >&5
7641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642   (exit $ac_status); } &&
7643          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645   (eval $ac_try) 2>&5
7646   ac_status=$?
7647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648   (exit $ac_status); }; } &&
7649          { ac_try='test -s conftest.$ac_objext'
7650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651   (eval $ac_try) 2>&5
7652   ac_status=$?
7653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654   (exit $ac_status); }; }; then
7655   ac_cv_c_const=yes
7656 else
7657   echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7659
7660 ac_cv_c_const=no
7661 fi
7662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7663 fi
7664 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7665 echo "${ECHO_T}$ac_cv_c_const" >&6
7666 if test $ac_cv_c_const = no; then
7667
7668 cat >>confdefs.h <<\_ACEOF
7669 #define const
7670 _ACEOF
7671
7672 fi
7673
7674 echo "$as_me:$LINENO: checking for off_t" >&5
7675 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7676 if test "${ac_cv_type_off_t+set}" = set; then
7677   echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679   cat >conftest.$ac_ext <<_ACEOF
7680 /* confdefs.h.  */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h.  */
7685 $ac_includes_default
7686 int
7687 main ()
7688 {
7689 if ((off_t *) 0)
7690   return 0;
7691 if (sizeof (off_t))
7692   return 0;
7693   ;
7694   return 0;
7695 }
7696 _ACEOF
7697 rm -f conftest.$ac_objext
7698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7699   (eval $ac_compile) 2>conftest.er1
7700   ac_status=$?
7701   grep -v '^ *+' conftest.er1 >conftest.err
7702   rm -f conftest.er1
7703   cat conftest.err >&5
7704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705   (exit $ac_status); } &&
7706          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708   (eval $ac_try) 2>&5
7709   ac_status=$?
7710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711   (exit $ac_status); }; } &&
7712          { ac_try='test -s conftest.$ac_objext'
7713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714   (eval $ac_try) 2>&5
7715   ac_status=$?
7716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717   (exit $ac_status); }; }; then
7718   ac_cv_type_off_t=yes
7719 else
7720   echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7722
7723 ac_cv_type_off_t=no
7724 fi
7725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7726 fi
7727 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7728 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7729 if test $ac_cv_type_off_t = yes; then
7730   :
7731 else
7732
7733 cat >>confdefs.h <<_ACEOF
7734 #define off_t long
7735 _ACEOF
7736
7737 fi
7738
7739 echo "$as_me:$LINENO: checking for size_t" >&5
7740 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7741 if test "${ac_cv_type_size_t+set}" = set; then
7742   echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744   cat >conftest.$ac_ext <<_ACEOF
7745 /* confdefs.h.  */
7746 _ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h.  */
7750 $ac_includes_default
7751 int
7752 main ()
7753 {
7754 if ((size_t *) 0)
7755   return 0;
7756 if (sizeof (size_t))
7757   return 0;
7758   ;
7759   return 0;
7760 }
7761 _ACEOF
7762 rm -f conftest.$ac_objext
7763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7764   (eval $ac_compile) 2>conftest.er1
7765   ac_status=$?
7766   grep -v '^ *+' conftest.er1 >conftest.err
7767   rm -f conftest.er1
7768   cat conftest.err >&5
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); } &&
7771          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773   (eval $ac_try) 2>&5
7774   ac_status=$?
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); }; } &&
7777          { ac_try='test -s conftest.$ac_objext'
7778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779   (eval $ac_try) 2>&5
7780   ac_status=$?
7781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782   (exit $ac_status); }; }; then
7783   ac_cv_type_size_t=yes
7784 else
7785   echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7787
7788 ac_cv_type_size_t=no
7789 fi
7790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7791 fi
7792 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7793 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7794 if test $ac_cv_type_size_t = yes; then
7795   :
7796 else
7797
7798 cat >>confdefs.h <<_ACEOF
7799 #define size_t unsigned
7800 _ACEOF
7801
7802 fi
7803
7804 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7805 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7806 if test "${ac_cv_struct_tm+set}" = set; then
7807   echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809   cat >conftest.$ac_ext <<_ACEOF
7810 /* confdefs.h.  */
7811 _ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h.  */
7815 #include <sys/types.h>
7816 #include <time.h>
7817
7818 int
7819 main ()
7820 {
7821 struct tm *tp; tp->tm_sec;
7822   ;
7823   return 0;
7824 }
7825 _ACEOF
7826 rm -f conftest.$ac_objext
7827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7828   (eval $ac_compile) 2>conftest.er1
7829   ac_status=$?
7830   grep -v '^ *+' conftest.er1 >conftest.err
7831   rm -f conftest.er1
7832   cat conftest.err >&5
7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   (exit $ac_status); } &&
7835          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837   (eval $ac_try) 2>&5
7838   ac_status=$?
7839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840   (exit $ac_status); }; } &&
7841          { ac_try='test -s conftest.$ac_objext'
7842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843   (eval $ac_try) 2>&5
7844   ac_status=$?
7845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846   (exit $ac_status); }; }; then
7847   ac_cv_struct_tm=time.h
7848 else
7849   echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7851
7852 ac_cv_struct_tm=sys/time.h
7853 fi
7854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7855 fi
7856 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7857 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7858 if test $ac_cv_struct_tm = sys/time.h; then
7859
7860 cat >>confdefs.h <<\_ACEOF
7861 #define TM_IN_SYS_TIME 1
7862 _ACEOF
7863
7864 fi
7865
7866
7867
7868 for ac_func in vprintf
7869 do
7870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7871 echo "$as_me:$LINENO: checking for $ac_func" >&5
7872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7873 if eval "test \"\${$as_ac_var+set}\" = set"; then
7874   echo $ECHO_N "(cached) $ECHO_C" >&6
7875 else
7876   cat >conftest.$ac_ext <<_ACEOF
7877 /* confdefs.h.  */
7878 _ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h.  */
7882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7884 #define $ac_func innocuous_$ac_func
7885
7886 /* System header to define __stub macros and hopefully few prototypes,
7887     which can conflict with char $ac_func (); below.
7888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7889     <limits.h> exists even on freestanding compilers.  */
7890
7891 #ifdef __STDC__
7892 # include <limits.h>
7893 #else
7894 # include <assert.h>
7895 #endif
7896
7897 #undef $ac_func
7898
7899 /* Override any gcc2 internal prototype to avoid an error.  */
7900 #ifdef __cplusplus
7901 extern "C"
7902 {
7903 #endif
7904 /* We use char because int might match the return type of a gcc2
7905    builtin and then its argument prototype would still apply.  */
7906 char $ac_func ();
7907 /* The GNU C library defines this for functions which it implements
7908     to always fail with ENOSYS.  Some functions are actually named
7909     something starting with __ and the normal name is an alias.  */
7910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7911 choke me
7912 #else
7913 char (*f) () = $ac_func;
7914 #endif
7915 #ifdef __cplusplus
7916 }
7917 #endif
7918
7919 int
7920 main ()
7921 {
7922 return f != $ac_func;
7923   ;
7924   return 0;
7925 }
7926 _ACEOF
7927 rm -f conftest.$ac_objext conftest$ac_exeext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7929   (eval $ac_link) 2>conftest.er1
7930   ac_status=$?
7931   grep -v '^ *+' conftest.er1 >conftest.err
7932   rm -f conftest.er1
7933   cat conftest.err >&5
7934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935   (exit $ac_status); } &&
7936          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938   (eval $ac_try) 2>&5
7939   ac_status=$?
7940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941   (exit $ac_status); }; } &&
7942          { ac_try='test -s conftest$ac_exeext'
7943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944   (eval $ac_try) 2>&5
7945   ac_status=$?
7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); }; }; then
7948   eval "$as_ac_var=yes"
7949 else
7950   echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7952
7953 eval "$as_ac_var=no"
7954 fi
7955 rm -f conftest.err conftest.$ac_objext \
7956       conftest$ac_exeext conftest.$ac_ext
7957 fi
7958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7960 if test `eval echo '${'$as_ac_var'}'` = yes; then
7961   cat >>confdefs.h <<_ACEOF
7962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7963 _ACEOF
7964
7965 echo "$as_me:$LINENO: checking for _doprnt" >&5
7966 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7967 if test "${ac_cv_func__doprnt+set}" = set; then
7968   echo $ECHO_N "(cached) $ECHO_C" >&6
7969 else
7970   cat >conftest.$ac_ext <<_ACEOF
7971 /* confdefs.h.  */
7972 _ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h.  */
7976 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
7977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7978 #define _doprnt innocuous__doprnt
7979
7980 /* System header to define __stub macros and hopefully few prototypes,
7981     which can conflict with char _doprnt (); below.
7982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7983     <limits.h> exists even on freestanding compilers.  */
7984
7985 #ifdef __STDC__
7986 # include <limits.h>
7987 #else
7988 # include <assert.h>
7989 #endif
7990
7991 #undef _doprnt
7992
7993 /* Override any gcc2 internal prototype to avoid an error.  */
7994 #ifdef __cplusplus
7995 extern "C"
7996 {
7997 #endif
7998 /* We use char because int might match the return type of a gcc2
7999    builtin and then its argument prototype would still apply.  */
8000 char _doprnt ();
8001 /* The GNU C library defines this for functions which it implements
8002     to always fail with ENOSYS.  Some functions are actually named
8003     something starting with __ and the normal name is an alias.  */
8004 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8005 choke me
8006 #else
8007 char (*f) () = _doprnt;
8008 #endif
8009 #ifdef __cplusplus
8010 }
8011 #endif
8012
8013 int
8014 main ()
8015 {
8016 return f != _doprnt;
8017   ;
8018   return 0;
8019 }
8020 _ACEOF
8021 rm -f conftest.$ac_objext conftest$ac_exeext
8022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8023   (eval $ac_link) 2>conftest.er1
8024   ac_status=$?
8025   grep -v '^ *+' conftest.er1 >conftest.err
8026   rm -f conftest.er1
8027   cat conftest.err >&5
8028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029   (exit $ac_status); } &&
8030          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032   (eval $ac_try) 2>&5
8033   ac_status=$?
8034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035   (exit $ac_status); }; } &&
8036          { ac_try='test -s conftest$ac_exeext'
8037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038   (eval $ac_try) 2>&5
8039   ac_status=$?
8040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041   (exit $ac_status); }; }; then
8042   ac_cv_func__doprnt=yes
8043 else
8044   echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8046
8047 ac_cv_func__doprnt=no
8048 fi
8049 rm -f conftest.err conftest.$ac_objext \
8050       conftest$ac_exeext conftest.$ac_ext
8051 fi
8052 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8053 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
8054 if test $ac_cv_func__doprnt = yes; then
8055
8056 cat >>confdefs.h <<\_ACEOF
8057 #define HAVE_DOPRNT 1
8058 _ACEOF
8059
8060 fi
8061
8062 fi
8063 done
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
8080 do
8081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8082 echo "$as_me:$LINENO: checking for $ac_func" >&5
8083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8084 if eval "test \"\${$as_ac_var+set}\" = set"; then
8085   echo $ECHO_N "(cached) $ECHO_C" >&6
8086 else
8087   cat >conftest.$ac_ext <<_ACEOF
8088 /* confdefs.h.  */
8089 _ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h.  */
8093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8095 #define $ac_func innocuous_$ac_func
8096
8097 /* System header to define __stub macros and hopefully few prototypes,
8098     which can conflict with char $ac_func (); below.
8099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8100     <limits.h> exists even on freestanding compilers.  */
8101
8102 #ifdef __STDC__
8103 # include <limits.h>
8104 #else
8105 # include <assert.h>
8106 #endif
8107
8108 #undef $ac_func
8109
8110 /* Override any gcc2 internal prototype to avoid an error.  */
8111 #ifdef __cplusplus
8112 extern "C"
8113 {
8114 #endif
8115 /* We use char because int might match the return type of a gcc2
8116    builtin and then its argument prototype would still apply.  */
8117 char $ac_func ();
8118 /* The GNU C library defines this for functions which it implements
8119     to always fail with ENOSYS.  Some functions are actually named
8120     something starting with __ and the normal name is an alias.  */
8121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8122 choke me
8123 #else
8124 char (*f) () = $ac_func;
8125 #endif
8126 #ifdef __cplusplus
8127 }
8128 #endif
8129
8130 int
8131 main ()
8132 {
8133 return f != $ac_func;
8134   ;
8135   return 0;
8136 }
8137 _ACEOF
8138 rm -f conftest.$ac_objext conftest$ac_exeext
8139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8140   (eval $ac_link) 2>conftest.er1
8141   ac_status=$?
8142   grep -v '^ *+' conftest.er1 >conftest.err
8143   rm -f conftest.er1
8144   cat conftest.err >&5
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); } &&
8147          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149   (eval $ac_try) 2>&5
8150   ac_status=$?
8151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152   (exit $ac_status); }; } &&
8153          { ac_try='test -s conftest$ac_exeext'
8154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155   (eval $ac_try) 2>&5
8156   ac_status=$?
8157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158   (exit $ac_status); }; }; then
8159   eval "$as_ac_var=yes"
8160 else
8161   echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8163
8164 eval "$as_ac_var=no"
8165 fi
8166 rm -f conftest.err conftest.$ac_objext \
8167       conftest$ac_exeext conftest.$ac_ext
8168 fi
8169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8171 if test `eval echo '${'$as_ac_var'}'` = yes; then
8172   cat >>confdefs.h <<_ACEOF
8173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8174 _ACEOF
8175
8176 fi
8177 done
8178
8179 echo "$as_me:$LINENO: checking for basename" >&5
8180 echo $ECHO_N "checking for basename... $ECHO_C" >&6
8181 if test "${ac_cv_func_basename+set}" = set; then
8182   echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184   cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h.  */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h.  */
8190 /* Define basename to an innocuous variant, in case <limits.h> declares basename.
8191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8192 #define basename innocuous_basename
8193
8194 /* System header to define __stub macros and hopefully few prototypes,
8195     which can conflict with char basename (); below.
8196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8197     <limits.h> exists even on freestanding compilers.  */
8198
8199 #ifdef __STDC__
8200 # include <limits.h>
8201 #else
8202 # include <assert.h>
8203 #endif
8204
8205 #undef basename
8206
8207 /* Override any gcc2 internal prototype to avoid an error.  */
8208 #ifdef __cplusplus
8209 extern "C"
8210 {
8211 #endif
8212 /* We use char because int might match the return type of a gcc2
8213    builtin and then its argument prototype would still apply.  */
8214 char basename ();
8215 /* The GNU C library defines this for functions which it implements
8216     to always fail with ENOSYS.  Some functions are actually named
8217     something starting with __ and the normal name is an alias.  */
8218 #if defined (__stub_basename) || defined (__stub___basename)
8219 choke me
8220 #else
8221 char (*f) () = basename;
8222 #endif
8223 #ifdef __cplusplus
8224 }
8225 #endif
8226
8227 int
8228 main ()
8229 {
8230 return f != basename;
8231   ;
8232   return 0;
8233 }
8234 _ACEOF
8235 rm -f conftest.$ac_objext conftest$ac_exeext
8236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8237   (eval $ac_link) 2>conftest.er1
8238   ac_status=$?
8239   grep -v '^ *+' conftest.er1 >conftest.err
8240   rm -f conftest.er1
8241   cat conftest.err >&5
8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243   (exit $ac_status); } &&
8244          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246   (eval $ac_try) 2>&5
8247   ac_status=$?
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); }; } &&
8250          { ac_try='test -s conftest$ac_exeext'
8251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252   (eval $ac_try) 2>&5
8253   ac_status=$?
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); }; }; then
8256   ac_cv_func_basename=yes
8257 else
8258   echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8260
8261 ac_cv_func_basename=no
8262 fi
8263 rm -f conftest.err conftest.$ac_objext \
8264       conftest$ac_exeext conftest.$ac_ext
8265 fi
8266 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
8267 echo "${ECHO_T}$ac_cv_func_basename" >&6
8268
8269 echo "$as_me:$LINENO: checking for setjmp" >&5
8270 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
8271 if test "${ac_cv_func_setjmp+set}" = set; then
8272   echo $ECHO_N "(cached) $ECHO_C" >&6
8273 else
8274   cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h.  */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h.  */
8280 /* Define setjmp to an innocuous variant, in case <limits.h> declares setjmp.
8281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8282 #define setjmp innocuous_setjmp
8283
8284 /* System header to define __stub macros and hopefully few prototypes,
8285     which can conflict with char setjmp (); below.
8286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8287     <limits.h> exists even on freestanding compilers.  */
8288
8289 #ifdef __STDC__
8290 # include <limits.h>
8291 #else
8292 # include <assert.h>
8293 #endif
8294
8295 #undef setjmp
8296
8297 /* Override any gcc2 internal prototype to avoid an error.  */
8298 #ifdef __cplusplus
8299 extern "C"
8300 {
8301 #endif
8302 /* We use char because int might match the return type of a gcc2
8303    builtin and then its argument prototype would still apply.  */
8304 char setjmp ();
8305 /* The GNU C library defines this for functions which it implements
8306     to always fail with ENOSYS.  Some functions are actually named
8307     something starting with __ and the normal name is an alias.  */
8308 #if defined (__stub_setjmp) || defined (__stub___setjmp)
8309 choke me
8310 #else
8311 char (*f) () = setjmp;
8312 #endif
8313 #ifdef __cplusplus
8314 }
8315 #endif
8316
8317 int
8318 main ()
8319 {
8320 return f != setjmp;
8321   ;
8322   return 0;
8323 }
8324 _ACEOF
8325 rm -f conftest.$ac_objext conftest$ac_exeext
8326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8327   (eval $ac_link) 2>conftest.er1
8328   ac_status=$?
8329   grep -v '^ *+' conftest.er1 >conftest.err
8330   rm -f conftest.er1
8331   cat conftest.err >&5
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); } &&
8334          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336   (eval $ac_try) 2>&5
8337   ac_status=$?
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); }; } &&
8340          { ac_try='test -s conftest$ac_exeext'
8341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342   (eval $ac_try) 2>&5
8343   ac_status=$?
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); }; }; then
8346   ac_cv_func_setjmp=yes
8347 else
8348   echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8350
8351 ac_cv_func_setjmp=no
8352 fi
8353 rm -f conftest.err conftest.$ac_objext \
8354       conftest$ac_exeext conftest.$ac_ext
8355 fi
8356 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
8357 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
8358
8359 echo "$as_me:$LINENO: checking for setpriority" >&5
8360 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
8361 if test "${ac_cv_func_setpriority+set}" = set; then
8362   echo $ECHO_N "(cached) $ECHO_C" >&6
8363 else
8364   cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h.  */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h.  */
8370 /* Define setpriority to an innocuous variant, in case <limits.h> declares setpriority.
8371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8372 #define setpriority innocuous_setpriority
8373
8374 /* System header to define __stub macros and hopefully few prototypes,
8375     which can conflict with char setpriority (); below.
8376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8377     <limits.h> exists even on freestanding compilers.  */
8378
8379 #ifdef __STDC__
8380 # include <limits.h>
8381 #else
8382 # include <assert.h>
8383 #endif
8384
8385 #undef setpriority
8386
8387 /* Override any gcc2 internal prototype to avoid an error.  */
8388 #ifdef __cplusplus
8389 extern "C"
8390 {
8391 #endif
8392 /* We use char because int might match the return type of a gcc2
8393    builtin and then its argument prototype would still apply.  */
8394 char setpriority ();
8395 /* The GNU C library defines this for functions which it implements
8396     to always fail with ENOSYS.  Some functions are actually named
8397     something starting with __ and the normal name is an alias.  */
8398 #if defined (__stub_setpriority) || defined (__stub___setpriority)
8399 choke me
8400 #else
8401 char (*f) () = setpriority;
8402 #endif
8403 #ifdef __cplusplus
8404 }
8405 #endif
8406
8407 int
8408 main ()
8409 {
8410 return f != setpriority;
8411   ;
8412   return 0;
8413 }
8414 _ACEOF
8415 rm -f conftest.$ac_objext conftest$ac_exeext
8416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8417   (eval $ac_link) 2>conftest.er1
8418   ac_status=$?
8419   grep -v '^ *+' conftest.er1 >conftest.err
8420   rm -f conftest.er1
8421   cat conftest.err >&5
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); } &&
8424          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426   (eval $ac_try) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); }; } &&
8430          { ac_try='test -s conftest$ac_exeext'
8431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432   (eval $ac_try) 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); }; }; then
8436   ac_cv_func_setpriority=yes
8437 else
8438   echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441 ac_cv_func_setpriority=no
8442 fi
8443 rm -f conftest.err conftest.$ac_objext \
8444       conftest$ac_exeext conftest.$ac_ext
8445 fi
8446 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
8447 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
8448
8449 echo "$as_me:$LINENO: checking for time" >&5
8450 echo $ECHO_N "checking for time... $ECHO_C" >&6
8451 if test "${ac_cv_func_time+set}" = set; then
8452   echo $ECHO_N "(cached) $ECHO_C" >&6
8453 else
8454   cat >conftest.$ac_ext <<_ACEOF
8455 /* confdefs.h.  */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h.  */
8460 /* Define time to an innocuous variant, in case <limits.h> declares time.
8461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8462 #define time innocuous_time
8463
8464 /* System header to define __stub macros and hopefully few prototypes,
8465     which can conflict with char time (); below.
8466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8467     <limits.h> exists even on freestanding compilers.  */
8468
8469 #ifdef __STDC__
8470 # include <limits.h>
8471 #else
8472 # include <assert.h>
8473 #endif
8474
8475 #undef time
8476
8477 /* Override any gcc2 internal prototype to avoid an error.  */
8478 #ifdef __cplusplus
8479 extern "C"
8480 {
8481 #endif
8482 /* We use char because int might match the return type of a gcc2
8483    builtin and then its argument prototype would still apply.  */
8484 char time ();
8485 /* The GNU C library defines this for functions which it implements
8486     to always fail with ENOSYS.  Some functions are actually named
8487     something starting with __ and the normal name is an alias.  */
8488 #if defined (__stub_time) || defined (__stub___time)
8489 choke me
8490 #else
8491 char (*f) () = time;
8492 #endif
8493 #ifdef __cplusplus
8494 }
8495 #endif
8496
8497 int
8498 main ()
8499 {
8500 return f != time;
8501   ;
8502   return 0;
8503 }
8504 _ACEOF
8505 rm -f conftest.$ac_objext conftest$ac_exeext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8507   (eval $ac_link) 2>conftest.er1
8508   ac_status=$?
8509   grep -v '^ *+' conftest.er1 >conftest.err
8510   rm -f conftest.er1
8511   cat conftest.err >&5
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); } &&
8514          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516   (eval $ac_try) 2>&5
8517   ac_status=$?
8518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519   (exit $ac_status); }; } &&
8520          { ac_try='test -s conftest$ac_exeext'
8521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522   (eval $ac_try) 2>&5
8523   ac_status=$?
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); }; }; then
8526   ac_cv_func_time=yes
8527 else
8528   echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8530
8531 ac_cv_func_time=no
8532 fi
8533 rm -f conftest.err conftest.$ac_objext \
8534       conftest$ac_exeext conftest.$ac_ext
8535 fi
8536 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
8537 echo "${ECHO_T}$ac_cv_func_time" >&6
8538
8539 echo "$as_me:$LINENO: checking for gettimeofday" >&5
8540 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
8541 if test "${ac_cv_func_gettimeofday+set}" = set; then
8542   echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544   cat >conftest.$ac_ext <<_ACEOF
8545 /* confdefs.h.  */
8546 _ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h.  */
8550 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
8551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8552 #define gettimeofday innocuous_gettimeofday
8553
8554 /* System header to define __stub macros and hopefully few prototypes,
8555     which can conflict with char gettimeofday (); below.
8556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8557     <limits.h> exists even on freestanding compilers.  */
8558
8559 #ifdef __STDC__
8560 # include <limits.h>
8561 #else
8562 # include <assert.h>
8563 #endif
8564
8565 #undef gettimeofday
8566
8567 /* Override any gcc2 internal prototype to avoid an error.  */
8568 #ifdef __cplusplus
8569 extern "C"
8570 {
8571 #endif
8572 /* We use char because int might match the return type of a gcc2
8573    builtin and then its argument prototype would still apply.  */
8574 char gettimeofday ();
8575 /* The GNU C library defines this for functions which it implements
8576     to always fail with ENOSYS.  Some functions are actually named
8577     something starting with __ and the normal name is an alias.  */
8578 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
8579 choke me
8580 #else
8581 char (*f) () = gettimeofday;
8582 #endif
8583 #ifdef __cplusplus
8584 }
8585 #endif
8586
8587 int
8588 main ()
8589 {
8590 return f != gettimeofday;
8591   ;
8592   return 0;
8593 }
8594 _ACEOF
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597   (eval $ac_link) 2>conftest.er1
8598   ac_status=$?
8599   grep -v '^ *+' conftest.er1 >conftest.err
8600   rm -f conftest.er1
8601   cat conftest.err >&5
8602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603   (exit $ac_status); } &&
8604          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606   (eval $ac_try) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); }; } &&
8610          { ac_try='test -s conftest$ac_exeext'
8611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612   (eval $ac_try) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); }; }; then
8616   ac_cv_func_gettimeofday=yes
8617 else
8618   echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8620
8621 ac_cv_func_gettimeofday=no
8622 fi
8623 rm -f conftest.err conftest.$ac_objext \
8624       conftest$ac_exeext conftest.$ac_ext
8625 fi
8626 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
8627 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
8628
8629 echo "$as_me:$LINENO: checking for getopt" >&5
8630 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
8631 if test "${ac_cv_func_getopt+set}" = set; then
8632   echo $ECHO_N "(cached) $ECHO_C" >&6
8633 else
8634   cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h.  */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h.  */
8640 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
8641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8642 #define getopt innocuous_getopt
8643
8644 /* System header to define __stub macros and hopefully few prototypes,
8645     which can conflict with char getopt (); below.
8646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8647     <limits.h> exists even on freestanding compilers.  */
8648
8649 #ifdef __STDC__
8650 # include <limits.h>
8651 #else
8652 # include <assert.h>
8653 #endif
8654
8655 #undef getopt
8656
8657 /* Override any gcc2 internal prototype to avoid an error.  */
8658 #ifdef __cplusplus
8659 extern "C"
8660 {
8661 #endif
8662 /* We use char because int might match the return type of a gcc2
8663    builtin and then its argument prototype would still apply.  */
8664 char getopt ();
8665 /* The GNU C library defines this for functions which it implements
8666     to always fail with ENOSYS.  Some functions are actually named
8667     something starting with __ and the normal name is an alias.  */
8668 #if defined (__stub_getopt) || defined (__stub___getopt)
8669 choke me
8670 #else
8671 char (*f) () = getopt;
8672 #endif
8673 #ifdef __cplusplus
8674 }
8675 #endif
8676
8677 int
8678 main ()
8679 {
8680 return f != getopt;
8681   ;
8682   return 0;
8683 }
8684 _ACEOF
8685 rm -f conftest.$ac_objext conftest$ac_exeext
8686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8687   (eval $ac_link) 2>conftest.er1
8688   ac_status=$?
8689   grep -v '^ *+' conftest.er1 >conftest.err
8690   rm -f conftest.er1
8691   cat conftest.err >&5
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); } &&
8694          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696   (eval $ac_try) 2>&5
8697   ac_status=$?
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); }; } &&
8700          { ac_try='test -s conftest$ac_exeext'
8701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702   (eval $ac_try) 2>&5
8703   ac_status=$?
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); }; }; then
8706   ac_cv_func_getopt=yes
8707 else
8708   echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8710
8711 ac_cv_func_getopt=no
8712 fi
8713 rm -f conftest.err conftest.$ac_objext \
8714       conftest$ac_exeext conftest.$ac_ext
8715 fi
8716 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
8717 echo "${ECHO_T}$ac_cv_func_getopt" >&6
8718 if test $ac_cv_func_getopt = yes; then
8719    getopt=true
8720 else
8721    getopt=false
8722 fi
8723
8724
8725 if test "${OSTYPE}" = "cygwin" ; then
8726   getopt_long=false
8727 else
8728   echo "$as_me:$LINENO: checking for getopt_long" >&5
8729 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
8730 if test "${ac_cv_func_getopt_long+set}" = set; then
8731   echo $ECHO_N "(cached) $ECHO_C" >&6
8732 else
8733   cat >conftest.$ac_ext <<_ACEOF
8734 /* confdefs.h.  */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h.  */
8739 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
8740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8741 #define getopt_long innocuous_getopt_long
8742
8743 /* System header to define __stub macros and hopefully few prototypes,
8744     which can conflict with char getopt_long (); below.
8745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8746     <limits.h> exists even on freestanding compilers.  */
8747
8748 #ifdef __STDC__
8749 # include <limits.h>
8750 #else
8751 # include <assert.h>
8752 #endif
8753
8754 #undef getopt_long
8755
8756 /* Override any gcc2 internal prototype to avoid an error.  */
8757 #ifdef __cplusplus
8758 extern "C"
8759 {
8760 #endif
8761 /* We use char because int might match the return type of a gcc2
8762    builtin and then its argument prototype would still apply.  */
8763 char getopt_long ();
8764 /* The GNU C library defines this for functions which it implements
8765     to always fail with ENOSYS.  Some functions are actually named
8766     something starting with __ and the normal name is an alias.  */
8767 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
8768 choke me
8769 #else
8770 char (*f) () = getopt_long;
8771 #endif
8772 #ifdef __cplusplus
8773 }
8774 #endif
8775
8776 int
8777 main ()
8778 {
8779 return f != getopt_long;
8780   ;
8781   return 0;
8782 }
8783 _ACEOF
8784 rm -f conftest.$ac_objext conftest$ac_exeext
8785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8786   (eval $ac_link) 2>conftest.er1
8787   ac_status=$?
8788   grep -v '^ *+' conftest.er1 >conftest.err
8789   rm -f conftest.er1
8790   cat conftest.err >&5
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); } &&
8793          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795   (eval $ac_try) 2>&5
8796   ac_status=$?
8797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); }; } &&
8799          { ac_try='test -s conftest$ac_exeext'
8800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801   (eval $ac_try) 2>&5
8802   ac_status=$?
8803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804   (exit $ac_status); }; }; then
8805   ac_cv_func_getopt_long=yes
8806 else
8807   echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8809
8810 ac_cv_func_getopt_long=no
8811 fi
8812 rm -f conftest.err conftest.$ac_objext \
8813       conftest$ac_exeext conftest.$ac_ext
8814 fi
8815 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
8816 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
8817 if test $ac_cv_func_getopt_long = yes; then
8818    getopt_long=true
8819 else
8820    getopt_long=false
8821 fi
8822
8823 fi
8824
8825 if test "${getopt_long}" = "false" ; then
8826   my_includes="$my_includes -I../getopt"
8827
8828 cat >>confdefs.h <<\_ACEOF
8829 #define HAVE_GETOPT_LONG 1
8830 _ACEOF
8831
8832   ctlibs_base="$ctlibs_base -lgetopt"
8833   LDFLAGS="$LDFLAGS -L../getopt"
8834   GETOPTLONG=1
8835 fi
8836
8837
8838 if test "$GETOPTLONG"="1"; then
8839   INCLUDED_GETOPT_LONG_TRUE=
8840   INCLUDED_GETOPT_LONG_FALSE='#'
8841 else
8842   INCLUDED_GETOPT_LONG_TRUE='#'
8843   INCLUDED_GETOPT_LONG_FALSE=
8844 fi
8845
8846
8847 if test "${readline}" = "true" ; then
8848   ctlibs_base="$ctlibs_base -lreadline"
8849   if test "${ncurses}" = "true"; then
8850     ctlibs_base="$ctlibs_base -lncurses"
8851   elif test "${curses}" = "true"; then
8852     ctlibs_base="$ctlibs_base -lcurses"
8853   fi
8854 fi
8855
8856 echo "$as_me:$LINENO: checking debug" >&5
8857 echo $ECHO_N "checking debug... $ECHO_C" >&6
8858 # Check whether --enable-debug or --disable-debug was given.
8859 if test "${enable_debug+set}" = set; then
8860   enableval="$enable_debug"
8861   case "${enableval}" in
8862   yes) debug=true
8863        echo "$as_me:$LINENO: result: yes" >&5
8864 echo "${ECHO_T}yes" >&6
8865        ;;
8866   no)  debug=false
8867        echo "$as_me:$LINENO: result: no" >&5
8868 echo "${ECHO_T}no" >&6
8869        ;;
8870   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
8871 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
8872        ;;
8873 esac
8874 else
8875   debug=false; echo "$as_me:$LINENO: result: no" >&5
8876 echo "${ECHO_T}no" >&6
8877 fi;
8878
8879
8880 if test "$debug" = "true"; then
8881   DEBUG_TRUE=
8882   DEBUG_FALSE='#'
8883 else
8884   DEBUG_TRUE='#'
8885   DEBUG_FALSE=
8886 fi
8887
8888
8889 if test "$datadir" != "" ; then
8890   CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
8891 fi
8892
8893 if test "$debug" = "true" ; then
8894   CFLAGS="$CFLAGS -g -DDEBUG"
8895
8896 cat >>confdefs.h <<\_ACEOF
8897 #define DEBUG 1
8898 _ACEOF
8899
8900 else
8901   CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
8902
8903 cat >>confdefs.h <<\_ACEOF
8904 #define NDEBUG 1
8905 _ACEOF
8906
8907 fi
8908
8909 if test "${pthread}" = "true" ; then
8910
8911 cat >>confdefs.h <<\_ACEOF
8912 #define HAVE_WXTHREADS 1
8913 _ACEOF
8914
8915 fi
8916
8917 echo "$as_me:$LINENO: checking sstream" >&5
8918 echo $ECHO_N "checking sstream... $ECHO_C" >&6
8919  if  test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
8920      test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
8921      test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
8922
8923 cat >>confdefs.h <<\_ACEOF
8924 #define HAVE_SSTREAM 1
8925 _ACEOF
8926
8927    echo "$as_me:$LINENO: result: yes" >&5
8928 echo "${ECHO_T}yes" >&6
8929   else
8930    echo "$as_me:$LINENO: result: no" >&5
8931 echo "${ECHO_T}no" >&6
8932  fi
8933
8934
8935 CFLAGS="$CFLAGS -Wall"
8936 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
8937 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
8938 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
8939 if test "${enable_verbose_warnings+set}" = set; then
8940   enableval="$enable_verbose_warnings"
8941    case "$enableval" in
8942   yes)
8943     echo "$as_me:$LINENO: result: yes" >&5
8944 echo "${ECHO_T}yes" >&6
8945     CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
8946     ;;
8947   *)
8948     echo "$as_me:$LINENO: result: no" >&5
8949 echo "${ECHO_T}no" >&6
8950     ;;
8951   esac
8952 else
8953   echo "$as_me:$LINENO: result: no" >&5
8954 echo "${ECHO_T}no" >&6
8955
8956 fi;
8957
8958 echo "$as_me:$LINENO: checking static executables" >&5
8959 echo $ECHO_N "checking static executables... $ECHO_C" >&6
8960 # Check whether --enable-static or --disable-static was given.
8961 if test "${enable_static+set}" = set; then
8962   enableval="$enable_static"
8963    case "$enableval" in
8964   yes)
8965     echo "$as_me:$LINENO: result: yes" >&5
8966 echo "${ECHO_T}yes" >&6
8967     CFLAGS="$CFLAGS --static"
8968     ;;
8969   *)
8970     echo "$as_me:$LINENO: result: no" >&5
8971 echo "${ECHO_T}no" >&6
8972     ;;
8973   esac
8974 else
8975   echo "$as_me:$LINENO: result: no" >&5
8976 echo "${ECHO_T}no" >&6
8977
8978 fi;
8979
8980
8981 # Check whether --with-lam or --without-lam was given.
8982 if test "${with_lam+set}" = set; then
8983   withval="$with_lam"
8984       if test "$withval" != "no" ; then
8985          trylamdir=$withval
8986      fi
8987
8988 fi;
8989
8990 if test "$withval" != "no" ; then
8991   if test "$prefix" != "NONE" ; then
8992      trylamdir="$trylamdir $prefix"
8993   fi
8994
8995   echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
8996 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
8997   for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
8998     if test -x "$testlamdir/bin/hcp" ; then
8999       if test "$testlamdir" != "/usr"; then
9000         LDFLAGS="$LDFLAGS -L$testlamdir/lib"
9001         CFLAGS="$CFLAGS -I$testlamdir/include"
9002       fi
9003       CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
9004       lamdir="$testlamdir"
9005
9006       mpienable="true"
9007
9008       break
9009     fi
9010   done
9011   echo "$as_me:$LINENO: result: $lamdir" >&5
9012 echo "${ECHO_T}$lamdir" >&6
9013 else
9014   echo "$as_me:$LINENO: result: no" >&5
9015 echo "${ECHO_T}no" >&6
9016 fi
9017
9018
9019
9020 # Check whether --with-ctn or --without-ctn was given.
9021 if test "${with_ctn+set}" = set; then
9022   withval="$with_ctn"
9023       if test "$withval" != "no" ; then
9024          tryctndir=$withval
9025      fi
9026
9027 fi;
9028
9029 if test "$withval" == "no" -o "$withval" == "NONE" ; then
9030   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
9031 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
9032   echo "$as_me:$LINENO: result: disabled" >&5
9033 echo "${ECHO_T}disabled" >&6
9034 else
9035   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
9036 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
9037   for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
9038     if test -f "$testctndir/libctn.a" ; then
9039       LDFLAGS="$LDFLAGS -L$testctndir"
9040       ctnlib="true"
9041       break
9042     fi
9043   done
9044   for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
9045     if test -f "$testctndir/ctn_os.h" ; then
9046       CFLAGS="$CFLAGS -I$testctndir"
9047       ctninclude="true"
9048       break
9049     fi
9050   done
9051   if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
9052       ctn="true"
9053
9054 cat >>confdefs.h <<\_ACEOF
9055 #define HAVE_CTN_DICOM 1
9056 _ACEOF
9057
9058       echo "$as_me:$LINENO: result: yes" >&5
9059 echo "${ECHO_T}yes" >&6
9060   else
9061     echo "$as_me:$LINENO: result: no" >&5
9062 echo "${ECHO_T}no" >&6
9063   fi
9064 fi
9065
9066 echo "$as_me:$LINENO: checking for CPU specification" >&5
9067 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6
9068
9069 # Check whether --with-mcpu or --without-mcpu was given.
9070 if test "${with_mcpu+set}" = set; then
9071   withval="$with_mcpu"
9072
9073 fi;
9074
9075 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
9076   echo "$as_me:$LINENO: result: no" >&5
9077 echo "${ECHO_T}no" >&6
9078 else
9079   echo "$as_me:$LINENO: result: $withval" >&5
9080 echo "${ECHO_T}$withval" >&6
9081   CFLAGS="$CFLAGS -mcpu=$withval"
9082 fi
9083
9084 echo "$as_me:$LINENO: checking for web access" >&5
9085 echo $ECHO_N "checking for web access... $ECHO_C" >&6
9086
9087 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
9088 if test "${with_cgibin_dir+set}" = set; then
9089   withval="$with_cgibin_dir"
9090    cgibindir=$withval ;
9091 fi;
9092
9093
9094 # Check whether --with-cgibin-url or --without-cgibin-url was given.
9095 if test "${with_cgibin_url+set}" = set; then
9096   withval="$with_cgibin_url"
9097    cgibinurl=$withval ;
9098 fi;
9099
9100
9101 # Check whether --with-webdata-dir or --without-webdata-dir was given.
9102 if test "${with_webdata_dir+set}" = set; then
9103   withval="$with_webdata_dir"
9104    webdatadir=$withval ;
9105 fi;
9106
9107
9108 # Check whether --with-webdata-url or --without-webdata-url was given.
9109 if test "${with_webdata_url+set}" = set; then
9110   withval="$with_webdata_url"
9111    webdataurl=$withval ;
9112 fi;
9113
9114
9115 # Check whether --with-html-dir or --without-html-dir was given.
9116 if test "${with_html_dir+set}" = set; then
9117   withval="$with_html_dir"
9118    htmldir=$withval ;
9119 fi;
9120
9121 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
9122   cgiprograms="ctsim.cgi ctsim.conf"
9123
9124 fi
9125
9126 if test -n "$htmldir" ; then
9127   htmldata=simulate.html
9128
9129 fi
9130
9131
9132 if test -n "$htmldir"; then
9133   USE_HTML_TRUE=
9134   USE_HTML_FALSE='#'
9135 else
9136   USE_HTML_TRUE='#'
9137   USE_HTML_FALSE=
9138 fi
9139
9140
9141 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
9142   webenabled=true
9143
9144   echo "$as_me:$LINENO: result: yes" >&5
9145 echo "${ECHO_T}yes" >&6
9146   if test -z "$cgibindir" ; then
9147     { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
9148 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
9149    { (exit 1); exit 1; }; }
9150   elif test -z "$cgibinurl" ; then
9151     { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
9152 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
9153    { (exit 1); exit 1; }; }
9154   elif test -z "$webdatadir" ; then
9155     { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
9156 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
9157    { (exit 1); exit 1; }; }
9158   elif test -z "$webdataurl" ; then
9159     { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
9160 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
9161    { (exit 1); exit 1; }; }
9162   elif test -z "$htmldir" ; then
9163     { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
9164 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
9165    { (exit 1); exit 1; }; }
9166   fi
9167 else
9168   echo "$as_me:$LINENO: result: no" >&5
9169 echo "${ECHO_T}no" >&6
9170 fi
9171
9172
9173
9174 if test -n "$lamdir"; then
9175   USE_LAM_TRUE=
9176   USE_LAM_FALSE='#'
9177 else
9178   USE_LAM_TRUE='#'
9179   USE_LAM_FALSE=
9180 fi
9181
9182
9183
9184 if test "x$ac_path_x_has_been_run" != xyes; then
9185   echo "$as_me:$LINENO: checking for X" >&5
9186 echo $ECHO_N "checking for X... $ECHO_C" >&6
9187
9188 ac_path_x_has_been_run=yes
9189
9190 # Check whether --with-x or --without-x was given.
9191 if test "${with_x+set}" = set; then
9192   withval="$with_x"
9193
9194 fi;
9195 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9196 if test "x$with_x" = xno; then
9197   # The user explicitly disabled X.
9198   have_x=disabled
9199 else
9200   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9201     # Both variables are already set.
9202     have_x=yes
9203   else
9204     if test "${ac_cv_have_x+set}" = set; then
9205   echo $ECHO_N "(cached) $ECHO_C" >&6
9206 else
9207   # One or both of the vars are not set, and there is no cached value.
9208 ac_x_includes=no ac_x_libraries=no
9209 rm -fr conftest.dir
9210 if mkdir conftest.dir; then
9211   cd conftest.dir
9212   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9213   cat >Imakefile <<'_ACEOF'
9214 acfindx:
9215         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9216 _ACEOF
9217   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9218     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9219     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9220     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9221     for ac_extension in a so sl; do
9222       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9223          test -f $ac_im_libdir/libX11.$ac_extension; then
9224         ac_im_usrlibdir=$ac_im_libdir; break
9225       fi
9226     done
9227     # Screen out bogus values from the imake configuration.  They are
9228     # bogus both because they are the default anyway, and because
9229     # using them would break gcc on systems where it needs fixed includes.
9230     case $ac_im_incroot in
9231         /usr/include) ;;
9232         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9233     esac
9234     case $ac_im_usrlibdir in
9235         /usr/lib | /lib) ;;
9236         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9237     esac
9238   fi
9239   cd ..
9240   rm -fr conftest.dir
9241 fi
9242
9243 # Standard set of common directories for X headers.
9244 # Check X11 before X11Rn because it is often a symlink to the current release.
9245 ac_x_header_dirs='
9246 /usr/X11/include
9247 /usr/X11R6/include
9248 /usr/X11R5/include
9249 /usr/X11R4/include
9250
9251 /usr/include/X11
9252 /usr/include/X11R6
9253 /usr/include/X11R5
9254 /usr/include/X11R4
9255
9256 /usr/local/X11/include
9257 /usr/local/X11R6/include
9258 /usr/local/X11R5/include
9259 /usr/local/X11R4/include
9260
9261 /usr/local/include/X11
9262 /usr/local/include/X11R6
9263 /usr/local/include/X11R5
9264 /usr/local/include/X11R4
9265
9266 /usr/X386/include
9267 /usr/x386/include
9268 /usr/XFree86/include/X11
9269
9270 /usr/include
9271 /usr/local/include
9272 /usr/unsupported/include
9273 /usr/athena/include
9274 /usr/local/x11r5/include
9275 /usr/lpp/Xamples/include
9276
9277 /usr/openwin/include
9278 /usr/openwin/share/include'
9279
9280 if test "$ac_x_includes" = no; then
9281   # Guess where to find include files, by looking for a specified header file.
9282   # First, try using that file with no special directory specified.
9283   cat >conftest.$ac_ext <<_ACEOF
9284 /* confdefs.h.  */
9285 _ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h.  */
9289 #include <X11/Xlib.h>
9290 _ACEOF
9291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9292   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9293   ac_status=$?
9294   grep -v '^ *+' conftest.er1 >conftest.err
9295   rm -f conftest.er1
9296   cat conftest.err >&5
9297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298   (exit $ac_status); } >/dev/null; then
9299   if test -s conftest.err; then
9300     ac_cpp_err=$ac_c_preproc_warn_flag
9301     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9302   else
9303     ac_cpp_err=
9304   fi
9305 else
9306   ac_cpp_err=yes
9307 fi
9308 if test -z "$ac_cpp_err"; then
9309   # We can compile using X headers with no special include directory.
9310 ac_x_includes=
9311 else
9312   echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9314
9315   for ac_dir in $ac_x_header_dirs; do
9316   if test -r "$ac_dir/X11/Xlib.h"; then
9317     ac_x_includes=$ac_dir
9318     break
9319   fi
9320 done
9321 fi
9322 rm -f conftest.err conftest.$ac_ext
9323 fi # $ac_x_includes = no
9324
9325 if test "$ac_x_libraries" = no; then
9326   # Check for the libraries.
9327   # See if we find them without any special options.
9328   # Don't add to $LIBS permanently.
9329   ac_save_LIBS=$LIBS
9330   LIBS="-lX11 $LIBS"
9331   cat >conftest.$ac_ext <<_ACEOF
9332 /* confdefs.h.  */
9333 _ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h.  */
9337 #include <X11/Xlib.h>
9338 int
9339 main ()
9340 {
9341 XrmInitialize ()
9342   ;
9343   return 0;
9344 }
9345 _ACEOF
9346 rm -f conftest.$ac_objext conftest$ac_exeext
9347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9348   (eval $ac_link) 2>conftest.er1
9349   ac_status=$?
9350   grep -v '^ *+' conftest.er1 >conftest.err
9351   rm -f conftest.er1
9352   cat conftest.err >&5
9353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); } &&
9355          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357   (eval $ac_try) 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); }; } &&
9361          { ac_try='test -s conftest$ac_exeext'
9362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363   (eval $ac_try) 2>&5
9364   ac_status=$?
9365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366   (exit $ac_status); }; }; then
9367   LIBS=$ac_save_LIBS
9368 # We can link X programs with no special library path.
9369 ac_x_libraries=
9370 else
9371   echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9373
9374 LIBS=$ac_save_LIBS
9375 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9376 do
9377   # Don't even attempt the hair of trying to link an X program!
9378   for ac_extension in a so sl; do
9379     if test -r $ac_dir/libX11.$ac_extension; then
9380       ac_x_libraries=$ac_dir
9381       break 2
9382     fi
9383   done
9384 done
9385 fi
9386 rm -f conftest.err conftest.$ac_objext \
9387       conftest$ac_exeext conftest.$ac_ext
9388 fi # $ac_x_libraries = no
9389
9390 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9391   # Didn't find X anywhere.  Cache the known absence of X.
9392   ac_cv_have_x="have_x=no"
9393 else
9394   # Record where we found X for the cache.
9395   ac_cv_have_x="have_x=yes \
9396                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9397 fi
9398 fi
9399
9400   fi
9401   eval "$ac_cv_have_x"
9402 fi # $with_x != no
9403
9404 if test "$have_x" != yes; then
9405   echo "$as_me:$LINENO: result: $have_x" >&5
9406 echo "${ECHO_T}$have_x" >&6
9407   no_x=yes
9408 else
9409   # If each of the values was on the command line, it overrides each guess.
9410   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9411   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9412   # Update the cache value to reflect the command line values.
9413   ac_cv_have_x="have_x=yes \
9414                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9415   # It might be that x_includes is empty (headers are found in the
9416   # standard search path. Then output the corresponding message
9417   ac_out_x_includes=$x_includes
9418   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
9419   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
9420 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
9421 fi
9422
9423 fi
9424 if test "$no_x" = yes; then
9425   # Not all programs may use this symbol, but it does not hurt to define it.
9426
9427 cat >>confdefs.h <<\_ACEOF
9428 #define X_DISPLAY_MISSING 1
9429 _ACEOF
9430
9431   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9432 else
9433   if test -n "$x_includes"; then
9434     X_CFLAGS="$X_CFLAGS -I$x_includes"
9435   fi
9436
9437   # It would also be nice to do this for all -L options, not just this one.
9438   if test -n "$x_libraries"; then
9439     X_LIBS="$X_LIBS -L$x_libraries"
9440     # For Solaris; some versions of Sun CC require a space after -R and
9441     # others require no space.  Words are not sufficient . . . .
9442     case `(uname -sr) 2>/dev/null` in
9443     "SunOS 5"*)
9444       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9445 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9446       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9447       cat >conftest.$ac_ext <<_ACEOF
9448 /* confdefs.h.  */
9449 _ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h.  */
9453
9454 int
9455 main ()
9456 {
9457
9458   ;
9459   return 0;
9460 }
9461 _ACEOF
9462 rm -f conftest.$ac_objext conftest$ac_exeext
9463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9464   (eval $ac_link) 2>conftest.er1
9465   ac_status=$?
9466   grep -v '^ *+' conftest.er1 >conftest.err
9467   rm -f conftest.er1
9468   cat conftest.err >&5
9469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470   (exit $ac_status); } &&
9471          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473   (eval $ac_try) 2>&5
9474   ac_status=$?
9475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476   (exit $ac_status); }; } &&
9477          { ac_try='test -s conftest$ac_exeext'
9478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479   (eval $ac_try) 2>&5
9480   ac_status=$?
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); }; }; then
9483   ac_R_nospace=yes
9484 else
9485   echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.$ac_ext >&5
9487
9488 ac_R_nospace=no
9489 fi
9490 rm -f conftest.err conftest.$ac_objext \
9491       conftest$ac_exeext conftest.$ac_ext
9492       if test $ac_R_nospace = yes; then
9493         echo "$as_me:$LINENO: result: no" >&5
9494 echo "${ECHO_T}no" >&6
9495         X_LIBS="$X_LIBS -R$x_libraries"
9496       else
9497         LIBS="$ac_xsave_LIBS -R $x_libraries"
9498         cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h.  */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h.  */
9504
9505 int
9506 main ()
9507 {
9508
9509   ;
9510   return 0;
9511 }
9512 _ACEOF
9513 rm -f conftest.$ac_objext conftest$ac_exeext
9514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9515   (eval $ac_link) 2>conftest.er1
9516   ac_status=$?
9517   grep -v '^ *+' conftest.er1 >conftest.err
9518   rm -f conftest.er1
9519   cat conftest.err >&5
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   (exit $ac_status); } &&
9522          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524   (eval $ac_try) 2>&5
9525   ac_status=$?
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); }; } &&
9528          { ac_try='test -s conftest$ac_exeext'
9529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530   (eval $ac_try) 2>&5
9531   ac_status=$?
9532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533   (exit $ac_status); }; }; then
9534   ac_R_space=yes
9535 else
9536   echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9538
9539 ac_R_space=no
9540 fi
9541 rm -f conftest.err conftest.$ac_objext \
9542       conftest$ac_exeext conftest.$ac_ext
9543         if test $ac_R_space = yes; then
9544           echo "$as_me:$LINENO: result: yes" >&5
9545 echo "${ECHO_T}yes" >&6
9546           X_LIBS="$X_LIBS -R $x_libraries"
9547         else
9548           echo "$as_me:$LINENO: result: neither works" >&5
9549 echo "${ECHO_T}neither works" >&6
9550         fi
9551       fi
9552       LIBS=$ac_xsave_LIBS
9553     esac
9554   fi
9555
9556   # Check for system-dependent libraries X programs must link with.
9557   # Do this before checking for the system-independent R6 libraries
9558   # (-lICE), since we may need -lsocket or whatever for X linking.
9559
9560   if test "$ISC" = yes; then
9561     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9562   else
9563     # Martyn Johnson says this is needed for Ultrix, if the X
9564     # libraries were built with DECnet support.  And Karl Berry says
9565     # the Alpha needs dnet_stub (dnet does not exist).
9566     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9567     cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h.  */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h.  */
9573
9574 /* Override any gcc2 internal prototype to avoid an error.  */
9575 #ifdef __cplusplus
9576 extern "C"
9577 #endif
9578 /* We use char because int might match the return type of a gcc2
9579    builtin and then its argument prototype would still apply.  */
9580 char XOpenDisplay ();
9581 int
9582 main ()
9583 {
9584 XOpenDisplay ();
9585   ;
9586   return 0;
9587 }
9588 _ACEOF
9589 rm -f conftest.$ac_objext conftest$ac_exeext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9591   (eval $ac_link) 2>conftest.er1
9592   ac_status=$?
9593   grep -v '^ *+' conftest.er1 >conftest.err
9594   rm -f conftest.er1
9595   cat conftest.err >&5
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); } &&
9598          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600   (eval $ac_try) 2>&5
9601   ac_status=$?
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); }; } &&
9604          { ac_try='test -s conftest$ac_exeext'
9605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606   (eval $ac_try) 2>&5
9607   ac_status=$?
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); }; }; then
9610   :
9611 else
9612   echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9614
9615 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9616 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9617 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9618   echo $ECHO_N "(cached) $ECHO_C" >&6
9619 else
9620   ac_check_lib_save_LIBS=$LIBS
9621 LIBS="-ldnet  $LIBS"
9622 cat >conftest.$ac_ext <<_ACEOF
9623 /* confdefs.h.  */
9624 _ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h.  */
9628
9629 /* Override any gcc2 internal prototype to avoid an error.  */
9630 #ifdef __cplusplus
9631 extern "C"
9632 #endif
9633 /* We use char because int might match the return type of a gcc2
9634    builtin and then its argument prototype would still apply.  */
9635 char dnet_ntoa ();
9636 int
9637 main ()
9638 {
9639 dnet_ntoa ();
9640   ;
9641   return 0;
9642 }
9643 _ACEOF
9644 rm -f conftest.$ac_objext conftest$ac_exeext
9645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9646   (eval $ac_link) 2>conftest.er1
9647   ac_status=$?
9648   grep -v '^ *+' conftest.er1 >conftest.err
9649   rm -f conftest.er1
9650   cat conftest.err >&5
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); } &&
9653          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655   (eval $ac_try) 2>&5
9656   ac_status=$?
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); }; } &&
9659          { ac_try='test -s conftest$ac_exeext'
9660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661   (eval $ac_try) 2>&5
9662   ac_status=$?
9663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); }; }; then
9665   ac_cv_lib_dnet_dnet_ntoa=yes
9666 else
9667   echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9669
9670 ac_cv_lib_dnet_dnet_ntoa=no
9671 fi
9672 rm -f conftest.err conftest.$ac_objext \
9673       conftest$ac_exeext conftest.$ac_ext
9674 LIBS=$ac_check_lib_save_LIBS
9675 fi
9676 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9677 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9678 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9679   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9680 fi
9681
9682     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9683       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9684 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9685 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9686   echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688   ac_check_lib_save_LIBS=$LIBS
9689 LIBS="-ldnet_stub  $LIBS"
9690 cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h.  */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h.  */
9696
9697 /* Override any gcc2 internal prototype to avoid an error.  */
9698 #ifdef __cplusplus
9699 extern "C"
9700 #endif
9701 /* We use char because int might match the return type of a gcc2
9702    builtin and then its argument prototype would still apply.  */
9703 char dnet_ntoa ();
9704 int
9705 main ()
9706 {
9707 dnet_ntoa ();
9708   ;
9709   return 0;
9710 }
9711 _ACEOF
9712 rm -f conftest.$ac_objext conftest$ac_exeext
9713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9714   (eval $ac_link) 2>conftest.er1
9715   ac_status=$?
9716   grep -v '^ *+' conftest.er1 >conftest.err
9717   rm -f conftest.er1
9718   cat conftest.err >&5
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); } &&
9721          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723   (eval $ac_try) 2>&5
9724   ac_status=$?
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); }; } &&
9727          { ac_try='test -s conftest$ac_exeext'
9728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729   (eval $ac_try) 2>&5
9730   ac_status=$?
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); }; }; then
9733   ac_cv_lib_dnet_stub_dnet_ntoa=yes
9734 else
9735   echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9737
9738 ac_cv_lib_dnet_stub_dnet_ntoa=no
9739 fi
9740 rm -f conftest.err conftest.$ac_objext \
9741       conftest$ac_exeext conftest.$ac_ext
9742 LIBS=$ac_check_lib_save_LIBS
9743 fi
9744 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9745 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9746 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9747   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9748 fi
9749
9750     fi
9751 fi
9752 rm -f conftest.err conftest.$ac_objext \
9753       conftest$ac_exeext conftest.$ac_ext
9754     LIBS="$ac_xsave_LIBS"
9755
9756     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9757     # to get the SysV transport functions.
9758     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9759     # needs -lnsl.
9760     # The nsl library prevents programs from opening the X display
9761     # on Irix 5.2, according to T.E. Dickey.
9762     # The functions gethostbyname, getservbyname, and inet_addr are
9763     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9764     echo "$as_me:$LINENO: checking for gethostbyname" >&5
9765 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9766 if test "${ac_cv_func_gethostbyname+set}" = set; then
9767   echo $ECHO_N "(cached) $ECHO_C" >&6
9768 else
9769   cat >conftest.$ac_ext <<_ACEOF
9770 /* confdefs.h.  */
9771 _ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h.  */
9775 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9777 #define gethostbyname innocuous_gethostbyname
9778
9779 /* System header to define __stub macros and hopefully few prototypes,
9780     which can conflict with char gethostbyname (); below.
9781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9782     <limits.h> exists even on freestanding compilers.  */
9783
9784 #ifdef __STDC__
9785 # include <limits.h>
9786 #else
9787 # include <assert.h>
9788 #endif
9789
9790 #undef gethostbyname
9791
9792 /* Override any gcc2 internal prototype to avoid an error.  */
9793 #ifdef __cplusplus
9794 extern "C"
9795 {
9796 #endif
9797 /* We use char because int might match the return type of a gcc2
9798    builtin and then its argument prototype would still apply.  */
9799 char gethostbyname ();
9800 /* The GNU C library defines this for functions which it implements
9801     to always fail with ENOSYS.  Some functions are actually named
9802     something starting with __ and the normal name is an alias.  */
9803 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9804 choke me
9805 #else
9806 char (*f) () = gethostbyname;
9807 #endif
9808 #ifdef __cplusplus
9809 }
9810 #endif
9811
9812 int
9813 main ()
9814 {
9815 return f != gethostbyname;
9816   ;
9817   return 0;
9818 }
9819 _ACEOF
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822   (eval $ac_link) 2>conftest.er1
9823   ac_status=$?
9824   grep -v '^ *+' conftest.er1 >conftest.err
9825   rm -f conftest.er1
9826   cat conftest.err >&5
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); } &&
9829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831   (eval $ac_try) 2>&5
9832   ac_status=$?
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); }; } &&
9835          { ac_try='test -s conftest$ac_exeext'
9836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837   (eval $ac_try) 2>&5
9838   ac_status=$?
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); }; }; then
9841   ac_cv_func_gethostbyname=yes
9842 else
9843   echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9845
9846 ac_cv_func_gethostbyname=no
9847 fi
9848 rm -f conftest.err conftest.$ac_objext \
9849       conftest$ac_exeext conftest.$ac_ext
9850 fi
9851 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9852 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9853
9854     if test $ac_cv_func_gethostbyname = no; then
9855       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9856 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9857 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9858   echo $ECHO_N "(cached) $ECHO_C" >&6
9859 else
9860   ac_check_lib_save_LIBS=$LIBS
9861 LIBS="-lnsl  $LIBS"
9862 cat >conftest.$ac_ext <<_ACEOF
9863 /* confdefs.h.  */
9864 _ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h.  */
9868
9869 /* Override any gcc2 internal prototype to avoid an error.  */
9870 #ifdef __cplusplus
9871 extern "C"
9872 #endif
9873 /* We use char because int might match the return type of a gcc2
9874    builtin and then its argument prototype would still apply.  */
9875 char gethostbyname ();
9876 int
9877 main ()
9878 {
9879 gethostbyname ();
9880   ;
9881   return 0;
9882 }
9883 _ACEOF
9884 rm -f conftest.$ac_objext conftest$ac_exeext
9885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9886   (eval $ac_link) 2>conftest.er1
9887   ac_status=$?
9888   grep -v '^ *+' conftest.er1 >conftest.err
9889   rm -f conftest.er1
9890   cat conftest.err >&5
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); } &&
9893          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895   (eval $ac_try) 2>&5
9896   ac_status=$?
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); }; } &&
9899          { ac_try='test -s conftest$ac_exeext'
9900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901   (eval $ac_try) 2>&5
9902   ac_status=$?
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); }; }; then
9905   ac_cv_lib_nsl_gethostbyname=yes
9906 else
9907   echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9909
9910 ac_cv_lib_nsl_gethostbyname=no
9911 fi
9912 rm -f conftest.err conftest.$ac_objext \
9913       conftest$ac_exeext conftest.$ac_ext
9914 LIBS=$ac_check_lib_save_LIBS
9915 fi
9916 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9917 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9918 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9919   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9920 fi
9921
9922       if test $ac_cv_lib_nsl_gethostbyname = no; then
9923         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9924 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9925 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9926   echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928   ac_check_lib_save_LIBS=$LIBS
9929 LIBS="-lbsd  $LIBS"
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h.  */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h.  */
9936
9937 /* Override any gcc2 internal prototype to avoid an error.  */
9938 #ifdef __cplusplus
9939 extern "C"
9940 #endif
9941 /* We use char because int might match the return type of a gcc2
9942    builtin and then its argument prototype would still apply.  */
9943 char gethostbyname ();
9944 int
9945 main ()
9946 {
9947 gethostbyname ();
9948   ;
9949   return 0;
9950 }
9951 _ACEOF
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9954   (eval $ac_link) 2>conftest.er1
9955   ac_status=$?
9956   grep -v '^ *+' conftest.er1 >conftest.err
9957   rm -f conftest.er1
9958   cat conftest.err >&5
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); } &&
9961          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963   (eval $ac_try) 2>&5
9964   ac_status=$?
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   (exit $ac_status); }; } &&
9967          { ac_try='test -s conftest$ac_exeext'
9968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969   (eval $ac_try) 2>&5
9970   ac_status=$?
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); }; }; then
9973   ac_cv_lib_bsd_gethostbyname=yes
9974 else
9975   echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9977
9978 ac_cv_lib_bsd_gethostbyname=no
9979 fi
9980 rm -f conftest.err conftest.$ac_objext \
9981       conftest$ac_exeext conftest.$ac_ext
9982 LIBS=$ac_check_lib_save_LIBS
9983 fi
9984 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9985 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9986 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9987   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9988 fi
9989
9990       fi
9991     fi
9992
9993     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9994     # socket/setsockopt and other routines are undefined under SCO ODT
9995     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9996     # on later versions), says Simon Leinen: it contains gethostby*
9997     # variants that don't use the name server (or something).  -lsocket
9998     # must be given before -lnsl if both are needed.  We assume that
9999     # if connect needs -lnsl, so does gethostbyname.
10000     echo "$as_me:$LINENO: checking for connect" >&5
10001 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10002 if test "${ac_cv_func_connect+set}" = set; then
10003   echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005   cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h.  */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h.  */
10011 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10013 #define connect innocuous_connect
10014
10015 /* System header to define __stub macros and hopefully few prototypes,
10016     which can conflict with char connect (); below.
10017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018     <limits.h> exists even on freestanding compilers.  */
10019
10020 #ifdef __STDC__
10021 # include <limits.h>
10022 #else
10023 # include <assert.h>
10024 #endif
10025
10026 #undef connect
10027
10028 /* Override any gcc2 internal prototype to avoid an error.  */
10029 #ifdef __cplusplus
10030 extern "C"
10031 {
10032 #endif
10033 /* We use char because int might match the return type of a gcc2
10034    builtin and then its argument prototype would still apply.  */
10035 char connect ();
10036 /* The GNU C library defines this for functions which it implements
10037     to always fail with ENOSYS.  Some functions are actually named
10038     something starting with __ and the normal name is an alias.  */
10039 #if defined (__stub_connect) || defined (__stub___connect)
10040 choke me
10041 #else
10042 char (*f) () = connect;
10043 #endif
10044 #ifdef __cplusplus
10045 }
10046 #endif
10047
10048 int
10049 main ()
10050 {
10051 return f != connect;
10052   ;
10053   return 0;
10054 }
10055 _ACEOF
10056 rm -f conftest.$ac_objext conftest$ac_exeext
10057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10058   (eval $ac_link) 2>conftest.er1
10059   ac_status=$?
10060   grep -v '^ *+' conftest.er1 >conftest.err
10061   rm -f conftest.er1
10062   cat conftest.err >&5
10063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064   (exit $ac_status); } &&
10065          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067   (eval $ac_try) 2>&5
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); }; } &&
10071          { ac_try='test -s conftest$ac_exeext'
10072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073   (eval $ac_try) 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); }; }; then
10077   ac_cv_func_connect=yes
10078 else
10079   echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10081
10082 ac_cv_func_connect=no
10083 fi
10084 rm -f conftest.err conftest.$ac_objext \
10085       conftest$ac_exeext conftest.$ac_ext
10086 fi
10087 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10088 echo "${ECHO_T}$ac_cv_func_connect" >&6
10089
10090     if test $ac_cv_func_connect = no; then
10091       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10092 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10093 if test "${ac_cv_lib_socket_connect+set}" = set; then
10094   echo $ECHO_N "(cached) $ECHO_C" >&6
10095 else
10096   ac_check_lib_save_LIBS=$LIBS
10097 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h.  */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h.  */
10104
10105 /* Override any gcc2 internal prototype to avoid an error.  */
10106 #ifdef __cplusplus
10107 extern "C"
10108 #endif
10109 /* We use char because int might match the return type of a gcc2
10110    builtin and then its argument prototype would still apply.  */
10111 char connect ();
10112 int
10113 main ()
10114 {
10115 connect ();
10116   ;
10117   return 0;
10118 }
10119 _ACEOF
10120 rm -f conftest.$ac_objext conftest$ac_exeext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122   (eval $ac_link) 2>conftest.er1
10123   ac_status=$?
10124   grep -v '^ *+' conftest.er1 >conftest.err
10125   rm -f conftest.er1
10126   cat conftest.err >&5
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); } &&
10129          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131   (eval $ac_try) 2>&5
10132   ac_status=$?
10133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134   (exit $ac_status); }; } &&
10135          { ac_try='test -s conftest$ac_exeext'
10136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137   (eval $ac_try) 2>&5
10138   ac_status=$?
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); }; }; then
10141   ac_cv_lib_socket_connect=yes
10142 else
10143   echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10145
10146 ac_cv_lib_socket_connect=no
10147 fi
10148 rm -f conftest.err conftest.$ac_objext \
10149       conftest$ac_exeext conftest.$ac_ext
10150 LIBS=$ac_check_lib_save_LIBS
10151 fi
10152 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10153 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10154 if test $ac_cv_lib_socket_connect = yes; then
10155   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10156 fi
10157
10158     fi
10159
10160     # Guillermo Gomez says -lposix is necessary on A/UX.
10161     echo "$as_me:$LINENO: checking for remove" >&5
10162 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10163 if test "${ac_cv_func_remove+set}" = set; then
10164   echo $ECHO_N "(cached) $ECHO_C" >&6
10165 else
10166   cat >conftest.$ac_ext <<_ACEOF
10167 /* confdefs.h.  */
10168 _ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h.  */
10172 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10174 #define remove innocuous_remove
10175
10176 /* System header to define __stub macros and hopefully few prototypes,
10177     which can conflict with char remove (); below.
10178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10179     <limits.h> exists even on freestanding compilers.  */
10180
10181 #ifdef __STDC__
10182 # include <limits.h>
10183 #else
10184 # include <assert.h>
10185 #endif
10186
10187 #undef remove
10188
10189 /* Override any gcc2 internal prototype to avoid an error.  */
10190 #ifdef __cplusplus
10191 extern "C"
10192 {
10193 #endif
10194 /* We use char because int might match the return type of a gcc2
10195    builtin and then its argument prototype would still apply.  */
10196 char remove ();
10197 /* The GNU C library defines this for functions which it implements
10198     to always fail with ENOSYS.  Some functions are actually named
10199     something starting with __ and the normal name is an alias.  */
10200 #if defined (__stub_remove) || defined (__stub___remove)
10201 choke me
10202 #else
10203 char (*f) () = remove;
10204 #endif
10205 #ifdef __cplusplus
10206 }
10207 #endif
10208
10209 int
10210 main ()
10211 {
10212 return f != remove;
10213   ;
10214   return 0;
10215 }
10216 _ACEOF
10217 rm -f conftest.$ac_objext conftest$ac_exeext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10219   (eval $ac_link) 2>conftest.er1
10220   ac_status=$?
10221   grep -v '^ *+' conftest.er1 >conftest.err
10222   rm -f conftest.er1
10223   cat conftest.err >&5
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); } &&
10226          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228   (eval $ac_try) 2>&5
10229   ac_status=$?
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); }; } &&
10232          { ac_try='test -s conftest$ac_exeext'
10233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234   (eval $ac_try) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); }; }; then
10238   ac_cv_func_remove=yes
10239 else
10240   echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10242
10243 ac_cv_func_remove=no
10244 fi
10245 rm -f conftest.err conftest.$ac_objext \
10246       conftest$ac_exeext conftest.$ac_ext
10247 fi
10248 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10249 echo "${ECHO_T}$ac_cv_func_remove" >&6
10250
10251     if test $ac_cv_func_remove = no; then
10252       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10253 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10254 if test "${ac_cv_lib_posix_remove+set}" = set; then
10255   echo $ECHO_N "(cached) $ECHO_C" >&6
10256 else
10257   ac_check_lib_save_LIBS=$LIBS
10258 LIBS="-lposix  $LIBS"
10259 cat >conftest.$ac_ext <<_ACEOF
10260 /* confdefs.h.  */
10261 _ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h.  */
10265
10266 /* Override any gcc2 internal prototype to avoid an error.  */
10267 #ifdef __cplusplus
10268 extern "C"
10269 #endif
10270 /* We use char because int might match the return type of a gcc2
10271    builtin and then its argument prototype would still apply.  */
10272 char remove ();
10273 int
10274 main ()
10275 {
10276 remove ();
10277   ;
10278   return 0;
10279 }
10280 _ACEOF
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283   (eval $ac_link) 2>conftest.er1
10284   ac_status=$?
10285   grep -v '^ *+' conftest.er1 >conftest.err
10286   rm -f conftest.er1
10287   cat conftest.err >&5
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } &&
10290          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292   (eval $ac_try) 2>&5
10293   ac_status=$?
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); }; } &&
10296          { ac_try='test -s conftest$ac_exeext'
10297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298   (eval $ac_try) 2>&5
10299   ac_status=$?
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); }; }; then
10302   ac_cv_lib_posix_remove=yes
10303 else
10304   echo "$as_me: failed program was:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10306
10307 ac_cv_lib_posix_remove=no
10308 fi
10309 rm -f conftest.err conftest.$ac_objext \
10310       conftest$ac_exeext conftest.$ac_ext
10311 LIBS=$ac_check_lib_save_LIBS
10312 fi
10313 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10314 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10315 if test $ac_cv_lib_posix_remove = yes; then
10316   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10317 fi
10318
10319     fi
10320
10321     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10322     echo "$as_me:$LINENO: checking for shmat" >&5
10323 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10324 if test "${ac_cv_func_shmat+set}" = set; then
10325   echo $ECHO_N "(cached) $ECHO_C" >&6
10326 else
10327   cat >conftest.$ac_ext <<_ACEOF
10328 /* confdefs.h.  */
10329 _ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h.  */
10333 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10335 #define shmat innocuous_shmat
10336
10337 /* System header to define __stub macros and hopefully few prototypes,
10338     which can conflict with char shmat (); below.
10339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10340     <limits.h> exists even on freestanding compilers.  */
10341
10342 #ifdef __STDC__
10343 # include <limits.h>
10344 #else
10345 # include <assert.h>
10346 #endif
10347
10348 #undef shmat
10349
10350 /* Override any gcc2 internal prototype to avoid an error.  */
10351 #ifdef __cplusplus
10352 extern "C"
10353 {
10354 #endif
10355 /* We use char because int might match the return type of a gcc2
10356    builtin and then its argument prototype would still apply.  */
10357 char shmat ();
10358 /* The GNU C library defines this for functions which it implements
10359     to always fail with ENOSYS.  Some functions are actually named
10360     something starting with __ and the normal name is an alias.  */
10361 #if defined (__stub_shmat) || defined (__stub___shmat)
10362 choke me
10363 #else
10364 char (*f) () = shmat;
10365 #endif
10366 #ifdef __cplusplus
10367 }
10368 #endif
10369
10370 int
10371 main ()
10372 {
10373 return f != shmat;
10374   ;
10375   return 0;
10376 }
10377 _ACEOF
10378 rm -f conftest.$ac_objext conftest$ac_exeext
10379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10380   (eval $ac_link) 2>conftest.er1
10381   ac_status=$?
10382   grep -v '^ *+' conftest.er1 >conftest.err
10383   rm -f conftest.er1
10384   cat conftest.err >&5
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); } &&
10387          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389   (eval $ac_try) 2>&5
10390   ac_status=$?
10391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); }; } &&
10393          { ac_try='test -s conftest$ac_exeext'
10394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395   (eval $ac_try) 2>&5
10396   ac_status=$?
10397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398   (exit $ac_status); }; }; then
10399   ac_cv_func_shmat=yes
10400 else
10401   echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10403
10404 ac_cv_func_shmat=no
10405 fi
10406 rm -f conftest.err conftest.$ac_objext \
10407       conftest$ac_exeext conftest.$ac_ext
10408 fi
10409 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10410 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10411
10412     if test $ac_cv_func_shmat = no; then
10413       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10414 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10415 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10416   echo $ECHO_N "(cached) $ECHO_C" >&6
10417 else
10418   ac_check_lib_save_LIBS=$LIBS
10419 LIBS="-lipc  $LIBS"
10420 cat >conftest.$ac_ext <<_ACEOF
10421 /* confdefs.h.  */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h.  */
10426
10427 /* Override any gcc2 internal prototype to avoid an error.  */
10428 #ifdef __cplusplus
10429 extern "C"
10430 #endif
10431 /* We use char because int might match the return type of a gcc2
10432    builtin and then its argument prototype would still apply.  */
10433 char shmat ();
10434 int
10435 main ()
10436 {
10437 shmat ();
10438   ;
10439   return 0;
10440 }
10441 _ACEOF
10442 rm -f conftest.$ac_objext conftest$ac_exeext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10444   (eval $ac_link) 2>conftest.er1
10445   ac_status=$?
10446   grep -v '^ *+' conftest.er1 >conftest.err
10447   rm -f conftest.er1
10448   cat conftest.err >&5
10449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450   (exit $ac_status); } &&
10451          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453   (eval $ac_try) 2>&5
10454   ac_status=$?
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); }; } &&
10457          { ac_try='test -s conftest$ac_exeext'
10458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459   (eval $ac_try) 2>&5
10460   ac_status=$?
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); }; }; then
10463   ac_cv_lib_ipc_shmat=yes
10464 else
10465   echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10467
10468 ac_cv_lib_ipc_shmat=no
10469 fi
10470 rm -f conftest.err conftest.$ac_objext \
10471       conftest$ac_exeext conftest.$ac_ext
10472 LIBS=$ac_check_lib_save_LIBS
10473 fi
10474 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10475 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10476 if test $ac_cv_lib_ipc_shmat = yes; then
10477   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10478 fi
10479
10480     fi
10481   fi
10482
10483   # Check for libraries that X11R6 Xt/Xaw programs need.
10484   ac_save_LDFLAGS=$LDFLAGS
10485   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10486   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10487   # check for ICE first), but we must link in the order -lSM -lICE or
10488   # we get undefined symbols.  So assume we have SM if we have ICE.
10489   # These have to be linked with before -lX11, unlike the other
10490   # libraries we check for below, so use a different variable.
10491   # John Interrante, Karl Berry
10492   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10493 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10494 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10495   echo $ECHO_N "(cached) $ECHO_C" >&6
10496 else
10497   ac_check_lib_save_LIBS=$LIBS
10498 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10499 cat >conftest.$ac_ext <<_ACEOF
10500 /* confdefs.h.  */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h.  */
10505
10506 /* Override any gcc2 internal prototype to avoid an error.  */
10507 #ifdef __cplusplus
10508 extern "C"
10509 #endif
10510 /* We use char because int might match the return type of a gcc2
10511    builtin and then its argument prototype would still apply.  */
10512 char IceConnectionNumber ();
10513 int
10514 main ()
10515 {
10516 IceConnectionNumber ();
10517   ;
10518   return 0;
10519 }
10520 _ACEOF
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10523   (eval $ac_link) 2>conftest.er1
10524   ac_status=$?
10525   grep -v '^ *+' conftest.er1 >conftest.err
10526   rm -f conftest.er1
10527   cat conftest.err >&5
10528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529   (exit $ac_status); } &&
10530          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532   (eval $ac_try) 2>&5
10533   ac_status=$?
10534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535   (exit $ac_status); }; } &&
10536          { ac_try='test -s conftest$ac_exeext'
10537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538   (eval $ac_try) 2>&5
10539   ac_status=$?
10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   (exit $ac_status); }; }; then
10542   ac_cv_lib_ICE_IceConnectionNumber=yes
10543 else
10544   echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10546
10547 ac_cv_lib_ICE_IceConnectionNumber=no
10548 fi
10549 rm -f conftest.err conftest.$ac_objext \
10550       conftest$ac_exeext conftest.$ac_ext
10551 LIBS=$ac_check_lib_save_LIBS
10552 fi
10553 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10554 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10555 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10556   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10557 fi
10558
10559   LDFLAGS=$ac_save_LDFLAGS
10560
10561 fi
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572 if test "x$with_x" = "xno"; then
10573   NO_X_TRUE=
10574   NO_X_FALSE='#'
10575 else
10576   NO_X_TRUE='#'
10577   NO_X_FALSE=
10578 fi
10579
10580
10581 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
10582
10583
10584 LDFLAGS="$LDFLAGS -L/usr/local/lib"
10585
10586 echo "$as_me:$LINENO: checking for X" >&5
10587 echo $ECHO_N "checking for X... $ECHO_C" >&6
10588 if test "$with_x" != "no" && test "$wxwin" = "true"; then
10589
10590 cat >>confdefs.h <<\_ACEOF
10591 #define HAVE_X11 1
10592 _ACEOF
10593
10594   LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
10595   my_includes="$my_includes -I/usr/X11R6/include"
10596   ctlib_graphics="$ctlibs_base -lctgraphics"
10597   echo "$as_me:$LINENO: result: yes" >&5
10598 echo "${ECHO_T}yes" >&6
10599   ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
10600   if test "$libgl" = "true" ; then
10601     # Removed "-lglut" for Mac OS X compilation
10602     ctlib_graphics="$ctlib_graphics -lGL -lGLU"
10603     if test "$wxwin" = "true" ; then
10604       if  "$wx_gtk" ; then
10605         ctlib_graphics="$ctlib_graphics `wx-config --libs` -lwx_gtk_gl-2.4 `gtk-config --libs` `glib-config --libs glib gmodule gthread`"
10606       elif  "$wx_mac" ; then
10607         ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
10608       fi
10609     fi
10610   fi
10611   if test "$wxwin" = "true" ; then
10612
10613 cat >>confdefs.h <<\_ACEOF
10614 #define HAVE_SGP 1
10615 _ACEOF
10616
10617   fi
10618 else
10619   echo "$as_me:$LINENO: result: no" >&5
10620 echo "${ECHO_T}no" >&6
10621 fi
10622
10623
10624
10625 if test "$wxwin" = "true"; then
10626   HAVE_SGP_TRUE=
10627   HAVE_SGP_FALSE='#'
10628 else
10629   HAVE_SGP_TRUE='#'
10630   HAVE_SGP_FALSE=
10631 fi
10632
10633
10634 if test "$png" = "true" ; then
10635   ctlibs_tools="$ctlibs_tools -lpng"
10636 fi
10637 if test "$zlib" = "true" ; then
10638   ctlibs_tools="$ctlibs_tools -lz"
10639 fi
10640 if test "$fftw" = "true" ; then
10641   ctlibs_tools="$ctlibs_tools -lfftw3"
10642 fi
10643 if test "$ctn" = "true"; then
10644   ctlibs_tools="$ctlibs_tools -lctn"
10645 fi
10646
10647 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
10648 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
10649 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
10650   echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652   ac_check_lib_save_LIBS=$LIBS
10653 LIBS="-ldmallocxx  $LIBS"
10654 cat >conftest.$ac_ext <<_ACEOF
10655 /* confdefs.h.  */
10656 _ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h.  */
10660
10661
10662 int
10663 main ()
10664 {
10665 main ();
10666   ;
10667   return 0;
10668 }
10669 _ACEOF
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672   (eval $ac_link) 2>conftest.er1
10673   ac_status=$?
10674   grep -v '^ *+' conftest.er1 >conftest.err
10675   rm -f conftest.er1
10676   cat conftest.err >&5
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); } &&
10679          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681   (eval $ac_try) 2>&5
10682   ac_status=$?
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); }; } &&
10685          { ac_try='test -s conftest$ac_exeext'
10686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687   (eval $ac_try) 2>&5
10688   ac_status=$?
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); }; }; then
10691   ac_cv_lib_dmallocxx_main=yes
10692 else
10693   echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10695
10696 ac_cv_lib_dmallocxx_main=no
10697 fi
10698 rm -f conftest.err conftest.$ac_objext \
10699       conftest$ac_exeext conftest.$ac_ext
10700 LIBS=$ac_check_lib_save_LIBS
10701 fi
10702 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
10703 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
10704 if test $ac_cv_lib_dmallocxx_main = yes; then
10705   dmallocxx=true
10706 else
10707   dmallocxx=false
10708 fi
10709
10710 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
10711 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
10712 # Check whether --enable-dmalloc or --disable-dmalloc was given.
10713 if test "${enable_dmalloc+set}" = set; then
10714   enableval="$enable_dmalloc"
10715   case "${enableval}" in
10716   yes) usedmalloc=true
10717        echo "$as_me:$LINENO: result: yes" >&5
10718 echo "${ECHO_T}yes" >&6
10719        ;;
10720   no)  usedmalloc=false
10721        echo "$as_me:$LINENO: result: no" >&5
10722 echo "${ECHO_T}no" >&6
10723        ;;
10724   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
10725 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
10726        ;;
10727 esac
10728 else
10729   usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
10730 echo "${ECHO_T}no" >&6
10731 fi;
10732
10733 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
10734   ctlibs_tools="$ctlibs_tools -ldmallocxx"
10735
10736 cat >>confdefs.h <<\_ACEOF
10737 #define HAVE_DMALLOC 1
10738 _ACEOF
10739
10740   echo "$as_me:$LINENO: result: Using dmalloc" >&5
10741 echo "${ECHO_T}Using dmalloc" >&6
10742 fi
10743
10744 echo "$as_me:$LINENO: checking for main in -lefence" >&5
10745 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
10746 if test "${ac_cv_lib_efence_main+set}" = set; then
10747   echo $ECHO_N "(cached) $ECHO_C" >&6
10748 else
10749   ac_check_lib_save_LIBS=$LIBS
10750 LIBS="-lefence  $LIBS"
10751 cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h.  */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h.  */
10757
10758
10759 int
10760 main ()
10761 {
10762 main ();
10763   ;
10764   return 0;
10765 }
10766 _ACEOF
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769   (eval $ac_link) 2>conftest.er1
10770   ac_status=$?
10771   grep -v '^ *+' conftest.er1 >conftest.err
10772   rm -f conftest.er1
10773   cat conftest.err >&5
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); } &&
10776          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778   (eval $ac_try) 2>&5
10779   ac_status=$?
10780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781   (exit $ac_status); }; } &&
10782          { ac_try='test -s conftest$ac_exeext'
10783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784   (eval $ac_try) 2>&5
10785   ac_status=$?
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); }; }; then
10788   ac_cv_lib_efence_main=yes
10789 else
10790   echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793 ac_cv_lib_efence_main=no
10794 fi
10795 rm -f conftest.err conftest.$ac_objext \
10796       conftest$ac_exeext conftest.$ac_ext
10797 LIBS=$ac_check_lib_save_LIBS
10798 fi
10799 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
10800 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
10801 if test $ac_cv_lib_efence_main = yes; then
10802   efence=true
10803 else
10804   efence=false
10805 fi
10806
10807 echo "$as_me:$LINENO: checking for enable-efence" >&5
10808 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
10809 # Check whether --enable-efence or --disable-efence was given.
10810 if test "${enable_efence+set}" = set; then
10811   enableval="$enable_efence"
10812   case "${enableval}" in
10813   yes) useefence=true
10814        echo "$as_me:$LINENO: result: yes" >&5
10815 echo "${ECHO_T}yes" >&6
10816        ;;
10817   no)  useefence=false
10818        echo "$as_me:$LINENO: result: no" >&5
10819 echo "${ECHO_T}no" >&6
10820        ;;
10821   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
10822 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
10823        ;;
10824 esac
10825 else
10826   useefence=false; echo "$as_me:$LINENO: result: no" >&5
10827 echo "${ECHO_T}no" >&6
10828 fi;
10829
10830 if test "$efence" = "true" -a "$useefence" = "true" ; then
10831   ctlibs_tools="$ctlibs_tools -lefence"
10832
10833 cat >>confdefs.h <<\_ACEOF
10834 #define HAVE_EFENCE 1
10835 _ACEOF
10836
10837   echo "$as_me:$LINENO: result: Using efence" >&5
10838 echo "${ECHO_T}Using efence" >&6
10839 fi
10840
10841 if test "$wxwin" = "true" ; then
10842   if  "$wx_gtk" = "true"  ||  "$wx_mac" == "true"  ; then
10843     wxcflags=`$wxconfig --cflags`
10844     wxlibs=`$wxconfig --libs`
10845   else
10846         wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
10847         wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
10848   fi
10849   CFLAGS="$CFLAGS -I../include $wxcflags"
10850   ctlib_graphics="$ctlib_graphics $wxlibs"
10851 fi
10852
10853
10854
10855
10856 if test "$wxwin"="true"; then
10857   HAVE_WXWINDOWS_TRUE=
10858   HAVE_WXWINDOWS_FALSE='#'
10859 else
10860   HAVE_WXWINDOWS_TRUE='#'
10861   HAVE_WXWINDOWS_FALSE=
10862 fi
10863
10864
10865 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
10866 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
10867
10868
10869 if test -n "$lamdir" ; then
10870   lamprograms="ctsimtext-lam"
10871
10872   lamdefs="$CFLAGS"
10873
10874 fi
10875
10876 CXXFLAGS="$CFLAGS"
10877
10878                                                                                                                                                                           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"
10879
10880
10881 cat >confcache <<\_ACEOF
10882 # This file is a shell script that caches the results of configure
10883 # tests run on this system so they can be shared between configure
10884 # scripts and configure runs, see configure's option --config-cache.
10885 # It is not useful on other systems.  If it contains results you don't
10886 # want to keep, you may remove or edit it.
10887 #
10888 # config.status only pays attention to the cache file if you give it
10889 # the --recheck option to rerun configure.
10890 #
10891 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10892 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10893 # following values.
10894
10895 _ACEOF
10896
10897 # The following way of writing the cache mishandles newlines in values,
10898 # but we know of no workaround that is simple, portable, and efficient.
10899 # So, don't put newlines in cache variables' values.
10900 # Ultrix sh set writes to stderr and can't be redirected directly,
10901 # and sets the high bit in the cache file unless we assign to the vars.
10902 {
10903   (set) 2>&1 |
10904     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10905     *ac_space=\ *)
10906       # `set' does not quote correctly, so add quotes (double-quote
10907       # substitution turns \\\\ into \\, and sed turns \\ into \).
10908       sed -n \
10909         "s/'/'\\\\''/g;
10910           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10911       ;;
10912     *)
10913       # `set' quotes correctly as required by POSIX, so do not add quotes.
10914       sed -n \
10915         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10916       ;;
10917     esac;
10918 } |
10919   sed '
10920      t clear
10921      : clear
10922      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10923      t end
10924      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10925      : end' >>confcache
10926 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10927   if test -w $cache_file; then
10928     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10929     cat confcache >$cache_file
10930   else
10931     echo "not updating unwritable cache $cache_file"
10932   fi
10933 fi
10934 rm -f confcache
10935
10936 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10937 # Let make expand exec_prefix.
10938 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10939
10940 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10941 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10942 # trailing colons and then remove the whole line if VPATH becomes empty
10943 # (actually we leave an empty line to preserve line numbers).
10944 if test "x$srcdir" = x.; then
10945   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10946 s/:*\$(srcdir):*/:/;
10947 s/:*\${srcdir}:*/:/;
10948 s/:*@srcdir@:*/:/;
10949 s/^\([^=]*=[     ]*\):*/\1/;
10950 s/:*$//;
10951 s/^[^=]*=[       ]*$//;
10952 }'
10953 fi
10954
10955 DEFS=-DHAVE_CONFIG_H
10956
10957 ac_libobjs=
10958 ac_ltlibobjs=
10959 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10960   # 1. Remove the extension, and $U if already installed.
10961   ac_i=`echo "$ac_i" |
10962          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10963   # 2. Add them.
10964   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10965   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10966 done
10967 LIBOBJS=$ac_libobjs
10968
10969 LTLIBOBJS=$ac_ltlibobjs
10970
10971
10972 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10973   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10974 Usually this means the macro was only invoked conditionally." >&5
10975 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10976 Usually this means the macro was only invoked conditionally." >&2;}
10977    { (exit 1); exit 1; }; }
10978 fi
10979 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10980   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10981 Usually this means the macro was only invoked conditionally." >&5
10982 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10983 Usually this means the macro was only invoked conditionally." >&2;}
10984    { (exit 1); exit 1; }; }
10985 fi
10986 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10987   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10988 Usually this means the macro was only invoked conditionally." >&5
10989 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10990 Usually this means the macro was only invoked conditionally." >&2;}
10991    { (exit 1); exit 1; }; }
10992 fi
10993 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10994   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10995 Usually this means the macro was only invoked conditionally." >&5
10996 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10997 Usually this means the macro was only invoked conditionally." >&2;}
10998    { (exit 1); exit 1; }; }
10999 fi
11000 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
11001   { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
11002 Usually this means the macro was only invoked conditionally." >&5
11003 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
11004 Usually this means the macro was only invoked conditionally." >&2;}
11005    { (exit 1); exit 1; }; }
11006 fi
11007 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
11008   { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
11009 Usually this means the macro was only invoked conditionally." >&5
11010 echo "$as_me: error: conditional \"DEBUG\" was never defined.
11011 Usually this means the macro was only invoked conditionally." >&2;}
11012    { (exit 1); exit 1; }; }
11013 fi
11014 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
11015   { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
11016 Usually this means the macro was only invoked conditionally." >&5
11017 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
11018 Usually this means the macro was only invoked conditionally." >&2;}
11019    { (exit 1); exit 1; }; }
11020 fi
11021 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
11022   { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
11023 Usually this means the macro was only invoked conditionally." >&5
11024 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
11025 Usually this means the macro was only invoked conditionally." >&2;}
11026    { (exit 1); exit 1; }; }
11027 fi
11028 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
11029   { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
11030 Usually this means the macro was only invoked conditionally." >&5
11031 echo "$as_me: error: conditional \"NO_X\" was never defined.
11032 Usually this means the macro was only invoked conditionally." >&2;}
11033    { (exit 1); exit 1; }; }
11034 fi
11035 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
11036   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
11037 Usually this means the macro was only invoked conditionally." >&5
11038 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
11039 Usually this means the macro was only invoked conditionally." >&2;}
11040    { (exit 1); exit 1; }; }
11041 fi
11042 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
11043   { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
11044 Usually this means the macro was only invoked conditionally." >&5
11045 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
11046 Usually this means the macro was only invoked conditionally." >&2;}
11047    { (exit 1); exit 1; }; }
11048 fi
11049
11050 : ${CONFIG_STATUS=./config.status}
11051 ac_clean_files_save=$ac_clean_files
11052 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11053 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11054 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11055 cat >$CONFIG_STATUS <<_ACEOF
11056 #! $SHELL
11057 # Generated by $as_me.
11058 # Run this file to recreate the current configuration.
11059 # Compiler output produced by configure, useful for debugging
11060 # configure, is in config.log if it exists.
11061
11062 debug=false
11063 ac_cs_recheck=false
11064 ac_cs_silent=false
11065 SHELL=\${CONFIG_SHELL-$SHELL}
11066 _ACEOF
11067
11068 cat >>$CONFIG_STATUS <<\_ACEOF
11069 ## --------------------- ##
11070 ## M4sh Initialization.  ##
11071 ## --------------------- ##
11072
11073 # Be Bourne compatible
11074 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11075   emulate sh
11076   NULLCMD=:
11077   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11078   # is contrary to our usage.  Disable this feature.
11079   alias -g '${1+"$@"}'='"$@"'
11080 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11081   set -o posix
11082 fi
11083 DUALCASE=1; export DUALCASE # for MKS sh
11084
11085 # Support unset when possible.
11086 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11087   as_unset=unset
11088 else
11089   as_unset=false
11090 fi
11091
11092
11093 # Work around bugs in pre-3.0 UWIN ksh.
11094 $as_unset ENV MAIL MAILPATH
11095 PS1='$ '
11096 PS2='> '
11097 PS4='+ '
11098
11099 # NLS nuisances.
11100 for as_var in \
11101   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11102   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11103   LC_TELEPHONE LC_TIME
11104 do
11105   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11106     eval $as_var=C; export $as_var
11107   else
11108     $as_unset $as_var
11109   fi
11110 done
11111
11112 # Required to use basename.
11113 if expr a : '\(a\)' >/dev/null 2>&1; then
11114   as_expr=expr
11115 else
11116   as_expr=false
11117 fi
11118
11119 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11120   as_basename=basename
11121 else
11122   as_basename=false
11123 fi
11124
11125
11126 # Name of the executable.
11127 as_me=`$as_basename "$0" ||
11128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11129          X"$0" : 'X\(//\)$' \| \
11130          X"$0" : 'X\(/\)$' \| \
11131          .     : '\(.\)' 2>/dev/null ||
11132 echo X/"$0" |
11133     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11134           /^X\/\(\/\/\)$/{ s//\1/; q; }
11135           /^X\/\(\/\).*/{ s//\1/; q; }
11136           s/.*/./; q'`
11137
11138
11139 # PATH needs CR, and LINENO needs CR and PATH.
11140 # Avoid depending upon Character Ranges.
11141 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11142 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11143 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11144 as_cr_digits='0123456789'
11145 as_cr_alnum=$as_cr_Letters$as_cr_digits
11146
11147 # The user is always right.
11148 if test "${PATH_SEPARATOR+set}" != set; then
11149   echo "#! /bin/sh" >conf$$.sh
11150   echo  "exit 0"   >>conf$$.sh
11151   chmod +x conf$$.sh
11152   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11153     PATH_SEPARATOR=';'
11154   else
11155     PATH_SEPARATOR=:
11156   fi
11157   rm -f conf$$.sh
11158 fi
11159
11160
11161   as_lineno_1=$LINENO
11162   as_lineno_2=$LINENO
11163   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11164   test "x$as_lineno_1" != "x$as_lineno_2" &&
11165   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11166   # Find who we are.  Look in the path if we contain no path at all
11167   # relative or not.
11168   case $0 in
11169     *[\\/]* ) as_myself=$0 ;;
11170     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11171 for as_dir in $PATH
11172 do
11173   IFS=$as_save_IFS
11174   test -z "$as_dir" && as_dir=.
11175   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11176 done
11177
11178        ;;
11179   esac
11180   # We did not find ourselves, most probably we were run as `sh COMMAND'
11181   # in which case we are not to be found in the path.
11182   if test "x$as_myself" = x; then
11183     as_myself=$0
11184   fi
11185   if test ! -f "$as_myself"; then
11186     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11187 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11188    { (exit 1); exit 1; }; }
11189   fi
11190   case $CONFIG_SHELL in
11191   '')
11192     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11194 do
11195   IFS=$as_save_IFS
11196   test -z "$as_dir" && as_dir=.
11197   for as_base in sh bash ksh sh5; do
11198          case $as_dir in
11199          /*)
11200            if ("$as_dir/$as_base" -c '
11201   as_lineno_1=$LINENO
11202   as_lineno_2=$LINENO
11203   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11204   test "x$as_lineno_1" != "x$as_lineno_2" &&
11205   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11206              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11207              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11208              CONFIG_SHELL=$as_dir/$as_base
11209              export CONFIG_SHELL
11210              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11211            fi;;
11212          esac
11213        done
11214 done
11215 ;;
11216   esac
11217
11218   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11219   # uniformly replaced by the line number.  The first 'sed' inserts a
11220   # line-number line before each line; the second 'sed' does the real
11221   # work.  The second script uses 'N' to pair each line-number line
11222   # with the numbered line, and appends trailing '-' during
11223   # substitution so that $LINENO is not a special case at line end.
11224   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11225   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11226   sed '=' <$as_myself |
11227     sed '
11228       N
11229       s,$,-,
11230       : loop
11231       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11232       t loop
11233       s,-$,,
11234       s,^['$as_cr_digits']*\n,,
11235     ' >$as_me.lineno &&
11236   chmod +x $as_me.lineno ||
11237     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11238 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11239    { (exit 1); exit 1; }; }
11240
11241   # Don't try to exec as it changes $[0], causing all sort of problems
11242   # (the dirname of $[0] is not the place where we might find the
11243   # original and so on.  Autoconf is especially sensible to this).
11244   . ./$as_me.lineno
11245   # Exit status is that of the last command.
11246   exit
11247 }
11248
11249
11250 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11251   *c*,-n*) ECHO_N= ECHO_C='
11252 ' ECHO_T='      ' ;;
11253   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11254   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11255 esac
11256
11257 if expr a : '\(a\)' >/dev/null 2>&1; then
11258   as_expr=expr
11259 else
11260   as_expr=false
11261 fi
11262
11263 rm -f conf$$ conf$$.exe conf$$.file
11264 echo >conf$$.file
11265 if ln -s conf$$.file conf$$ 2>/dev/null; then
11266   # We could just check for DJGPP; but this test a) works b) is more generic
11267   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11268   if test -f conf$$.exe; then
11269     # Don't use ln at all; we don't have any links
11270     as_ln_s='cp -p'
11271   else
11272     as_ln_s='ln -s'
11273   fi
11274 elif ln conf$$.file conf$$ 2>/dev/null; then
11275   as_ln_s=ln
11276 else
11277   as_ln_s='cp -p'
11278 fi
11279 rm -f conf$$ conf$$.exe conf$$.file
11280
11281 if mkdir -p . 2>/dev/null; then
11282   as_mkdir_p=:
11283 else
11284   test -d ./-p && rmdir ./-p
11285   as_mkdir_p=false
11286 fi
11287
11288 as_executable_p="test -f"
11289
11290 # Sed expression to map a string onto a valid CPP name.
11291 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11292
11293 # Sed expression to map a string onto a valid variable name.
11294 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11295
11296
11297 # IFS
11298 # We need space, tab and new line, in precisely that order.
11299 as_nl='
11300 '
11301 IFS="   $as_nl"
11302
11303 # CDPATH.
11304 $as_unset CDPATH
11305
11306 exec 6>&1
11307
11308 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11309 # report actual input values of CONFIG_FILES etc. instead of their
11310 # values after options handling.  Logging --version etc. is OK.
11311 exec 5>>config.log
11312 {
11313   echo
11314   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11315 ## Running $as_me. ##
11316 _ASBOX
11317 } >&5
11318 cat >&5 <<_CSEOF
11319
11320 This file was extended by $as_me, which was
11321 generated by GNU Autoconf 2.59.  Invocation command line was
11322
11323   CONFIG_FILES    = $CONFIG_FILES
11324   CONFIG_HEADERS  = $CONFIG_HEADERS
11325   CONFIG_LINKS    = $CONFIG_LINKS
11326   CONFIG_COMMANDS = $CONFIG_COMMANDS
11327   $ $0 $@
11328
11329 _CSEOF
11330 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11331 echo >&5
11332 _ACEOF
11333
11334 # Files that config.status was made for.
11335 if test -n "$ac_config_files"; then
11336   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11337 fi
11338
11339 if test -n "$ac_config_headers"; then
11340   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11341 fi
11342
11343 if test -n "$ac_config_links"; then
11344   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11345 fi
11346
11347 if test -n "$ac_config_commands"; then
11348   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11349 fi
11350
11351 cat >>$CONFIG_STATUS <<\_ACEOF
11352
11353 ac_cs_usage="\
11354 \`$as_me' instantiates files from templates according to the
11355 current configuration.
11356
11357 Usage: $0 [OPTIONS] [FILE]...
11358
11359   -h, --help       print this help, then exit
11360   -V, --version    print version number, then exit
11361   -q, --quiet      do not print progress messages
11362   -d, --debug      don't remove temporary files
11363       --recheck    update $as_me by reconfiguring in the same conditions
11364   --file=FILE[:TEMPLATE]
11365                    instantiate the configuration file FILE
11366   --header=FILE[:TEMPLATE]
11367                    instantiate the configuration header FILE
11368
11369 Configuration files:
11370 $config_files
11371
11372 Configuration headers:
11373 $config_headers
11374
11375 Configuration commands:
11376 $config_commands
11377
11378 Report bugs to <bug-autoconf@gnu.org>."
11379 _ACEOF
11380
11381 cat >>$CONFIG_STATUS <<_ACEOF
11382 ac_cs_version="\\
11383 config.status
11384 configured by $0, generated by GNU Autoconf 2.59,
11385   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11386
11387 Copyright (C) 2003 Free Software Foundation, Inc.
11388 This config.status script is free software; the Free Software Foundation
11389 gives unlimited permission to copy, distribute and modify it."
11390 srcdir=$srcdir
11391 INSTALL="$INSTALL"
11392 _ACEOF
11393
11394 cat >>$CONFIG_STATUS <<\_ACEOF
11395 # If no file are specified by the user, then we need to provide default
11396 # value.  By we need to know if files were specified by the user.
11397 ac_need_defaults=:
11398 while test $# != 0
11399 do
11400   case $1 in
11401   --*=*)
11402     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11403     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11404     ac_shift=:
11405     ;;
11406   -*)
11407     ac_option=$1
11408     ac_optarg=$2
11409     ac_shift=shift
11410     ;;
11411   *) # This is not an option, so the user has probably given explicit
11412      # arguments.
11413      ac_option=$1
11414      ac_need_defaults=false;;
11415   esac
11416
11417   case $ac_option in
11418   # Handling of the options.
11419 _ACEOF
11420 cat >>$CONFIG_STATUS <<\_ACEOF
11421   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11422     ac_cs_recheck=: ;;
11423   --version | --vers* | -V )
11424     echo "$ac_cs_version"; exit 0 ;;
11425   --he | --h)
11426     # Conflict between --help and --header
11427     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11428 Try \`$0 --help' for more information." >&5
11429 echo "$as_me: error: ambiguous option: $1
11430 Try \`$0 --help' for more information." >&2;}
11431    { (exit 1); exit 1; }; };;
11432   --help | --hel | -h )
11433     echo "$ac_cs_usage"; exit 0 ;;
11434   --debug | --d* | -d )
11435     debug=: ;;
11436   --file | --fil | --fi | --f )
11437     $ac_shift
11438     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11439     ac_need_defaults=false;;
11440   --header | --heade | --head | --hea )
11441     $ac_shift
11442     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11443     ac_need_defaults=false;;
11444   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11445   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11446     ac_cs_silent=: ;;
11447
11448   # This is an error.
11449   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11450 Try \`$0 --help' for more information." >&5
11451 echo "$as_me: error: unrecognized option: $1
11452 Try \`$0 --help' for more information." >&2;}
11453    { (exit 1); exit 1; }; } ;;
11454
11455   *) ac_config_targets="$ac_config_targets $1" ;;
11456
11457   esac
11458   shift
11459 done
11460
11461 ac_configure_extra_args=
11462
11463 if $ac_cs_silent; then
11464   exec 6>/dev/null
11465   ac_configure_extra_args="$ac_configure_extra_args --silent"
11466 fi
11467
11468 _ACEOF
11469 cat >>$CONFIG_STATUS <<_ACEOF
11470 if \$ac_cs_recheck; then
11471   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11472   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11473 fi
11474
11475 _ACEOF
11476
11477 cat >>$CONFIG_STATUS <<_ACEOF
11478 #
11479 # INIT-COMMANDS section.
11480 #
11481
11482 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11483
11484 _ACEOF
11485
11486
11487
11488 cat >>$CONFIG_STATUS <<\_ACEOF
11489 for ac_config_target in $ac_config_targets
11490 do
11491   case "$ac_config_target" in
11492   # Handling of arguments.
11493   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11494   "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
11495   "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
11496   "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
11497   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11498   "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
11499   "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
11500   "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
11501   "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
11502   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11503   "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
11504   "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
11505   "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
11506   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11507   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11508   "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
11509   "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
11510   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11511   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11512   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11513 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11514    { (exit 1); exit 1; }; };;
11515   esac
11516 done
11517
11518 # If the user did not use the arguments to specify the items to instantiate,
11519 # then the envvar interface is used.  Set only those that are not.
11520 # We use the long form for the default assignment because of an extremely
11521 # bizarre bug on SunOS 4.1.3.
11522 if $ac_need_defaults; then
11523   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11524   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11525   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11526 fi
11527
11528 # Have a temporary directory for convenience.  Make it in the build tree
11529 # simply because there is no reason to put it here, and in addition,
11530 # creating and moving files from /tmp can sometimes cause problems.
11531 # Create a temporary directory, and hook for its removal unless debugging.
11532 $debug ||
11533 {
11534   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11535   trap '{ (exit 1); exit 1; }' 1 2 13 15
11536 }
11537
11538 # Create a (secure) tmp directory for tmp files.
11539
11540 {
11541   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11542   test -n "$tmp" && test -d "$tmp"
11543 }  ||
11544 {
11545   tmp=./confstat$$-$RANDOM
11546   (umask 077 && mkdir $tmp)
11547 } ||
11548 {
11549    echo "$me: cannot create a temporary directory in ." >&2
11550    { (exit 1); exit 1; }
11551 }
11552
11553 _ACEOF
11554
11555 cat >>$CONFIG_STATUS <<_ACEOF
11556
11557 #
11558 # CONFIG_FILES section.
11559 #
11560
11561 # No need to generate the scripts if there are no CONFIG_FILES.
11562 # This happens for instance when ./config.status config.h
11563 if test -n "\$CONFIG_FILES"; then
11564   # Protect against being on the right side of a sed subst in config.status.
11565   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11566    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11567 s,@SHELL@,$SHELL,;t t
11568 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11569 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11570 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11571 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11572 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11573 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11574 s,@exec_prefix@,$exec_prefix,;t t
11575 s,@prefix@,$prefix,;t t
11576 s,@program_transform_name@,$program_transform_name,;t t
11577 s,@bindir@,$bindir,;t t
11578 s,@sbindir@,$sbindir,;t t
11579 s,@libexecdir@,$libexecdir,;t t
11580 s,@datadir@,$datadir,;t t
11581 s,@sysconfdir@,$sysconfdir,;t t
11582 s,@sharedstatedir@,$sharedstatedir,;t t
11583 s,@localstatedir@,$localstatedir,;t t
11584 s,@libdir@,$libdir,;t t
11585 s,@includedir@,$includedir,;t t
11586 s,@oldincludedir@,$oldincludedir,;t t
11587 s,@infodir@,$infodir,;t t
11588 s,@mandir@,$mandir,;t t
11589 s,@build_alias@,$build_alias,;t t
11590 s,@host_alias@,$host_alias,;t t
11591 s,@target_alias@,$target_alias,;t t
11592 s,@DEFS@,$DEFS,;t t
11593 s,@ECHO_C@,$ECHO_C,;t t
11594 s,@ECHO_N@,$ECHO_N,;t t
11595 s,@ECHO_T@,$ECHO_T,;t t
11596 s,@LIBS@,$LIBS,;t t
11597 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11598 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11599 s,@MAINT@,$MAINT,;t t
11600 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11601 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11602 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11603 s,@CYGPATH_W@,$CYGPATH_W,;t t
11604 s,@PACKAGE@,$PACKAGE,;t t
11605 s,@VERSION@,$VERSION,;t t
11606 s,@ACLOCAL@,$ACLOCAL,;t t
11607 s,@AUTOCONF@,$AUTOCONF,;t t
11608 s,@AUTOMAKE@,$AUTOMAKE,;t t
11609 s,@AUTOHEADER@,$AUTOHEADER,;t t
11610 s,@MAKEINFO@,$MAKEINFO,;t t
11611 s,@AMTAR@,$AMTAR,;t t
11612 s,@install_sh@,$install_sh,;t t
11613 s,@STRIP@,$STRIP,;t t
11614 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11615 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11616 s,@AWK@,$AWK,;t t
11617 s,@SET_MAKE@,$SET_MAKE,;t t
11618 s,@am__leading_dot@,$am__leading_dot,;t t
11619 s,@RANLIB@,$RANLIB,;t t
11620 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11621 s,@CC@,$CC,;t t
11622 s,@CFLAGS@,$CFLAGS,;t t
11623 s,@LDFLAGS@,$LDFLAGS,;t t
11624 s,@CPPFLAGS@,$CPPFLAGS,;t t
11625 s,@ac_ct_CC@,$ac_ct_CC,;t t
11626 s,@EXEEXT@,$EXEEXT,;t t
11627 s,@OBJEXT@,$OBJEXT,;t t
11628 s,@DEPDIR@,$DEPDIR,;t t
11629 s,@am__include@,$am__include,;t t
11630 s,@am__quote@,$am__quote,;t t
11631 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11632 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11633 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11634 s,@CCDEPMODE@,$CCDEPMODE,;t t
11635 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11636 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11637 s,@CXX@,$CXX,;t t
11638 s,@CXXFLAGS@,$CXXFLAGS,;t t
11639 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11640 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
11641 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
11642 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
11643 s,@wxconfig@,$wxconfig,;t t
11644 s,@build@,$build,;t t
11645 s,@build_cpu@,$build_cpu,;t t
11646 s,@build_vendor@,$build_vendor,;t t
11647 s,@build_os@,$build_os,;t t
11648 s,@host@,$host,;t t
11649 s,@host_cpu@,$host_cpu,;t t
11650 s,@host_vendor@,$host_vendor,;t t
11651 s,@host_os@,$host_os,;t t
11652 s,@CPP@,$CPP,;t t
11653 s,@EGREP@,$EGREP,;t t
11654 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
11655 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
11656 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
11657 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
11658 s,@lamdir@,$lamdir,;t t
11659 s,@mpienable@,$mpienable,;t t
11660 s,@cgibindir@,$cgibindir,;t t
11661 s,@cgibinurl@,$cgibinurl,;t t
11662 s,@webdatadir@,$webdatadir,;t t
11663 s,@webdataurl@,$webdataurl,;t t
11664 s,@htmldir@,$htmldir,;t t
11665 s,@cgiprograms@,$cgiprograms,;t t
11666 s,@htmldata@,$htmldata,;t t
11667 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
11668 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
11669 s,@webenabled@,$webenabled,;t t
11670 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
11671 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
11672 s,@X_CFLAGS@,$X_CFLAGS,;t t
11673 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
11674 s,@X_LIBS@,$X_LIBS,;t t
11675 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
11676 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
11677 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
11678 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
11679 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
11680 s,@my_includes@,$my_includes,;t t
11681 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
11682 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
11683 s,@wxcflags@,$wxcflags,;t t
11684 s,@wxlibs@,$wxlibs,;t t
11685 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
11686 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
11687 s,@ctlibs@,$ctlibs,;t t
11688 s,@lamprograms@,$lamprograms,;t t
11689 s,@lamdefs@,$lamdefs,;t t
11690 s,@LIBOBJS@,$LIBOBJS,;t t
11691 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11692 CEOF
11693
11694 _ACEOF
11695
11696   cat >>$CONFIG_STATUS <<\_ACEOF
11697   # Split the substitutions into bite-sized pieces for seds with
11698   # small command number limits, like on Digital OSF/1 and HP-UX.
11699   ac_max_sed_lines=48
11700   ac_sed_frag=1 # Number of current file.
11701   ac_beg=1 # First line for current file.
11702   ac_end=$ac_max_sed_lines # Line after last line for current file.
11703   ac_more_lines=:
11704   ac_sed_cmds=
11705   while $ac_more_lines; do
11706     if test $ac_beg -gt 1; then
11707       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11708     else
11709       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11710     fi
11711     if test ! -s $tmp/subs.frag; then
11712       ac_more_lines=false
11713     else
11714       # The purpose of the label and of the branching condition is to
11715       # speed up the sed processing (if there are no `@' at all, there
11716       # is no need to browse any of the substitutions).
11717       # These are the two extra sed commands mentioned above.
11718       (echo ':t
11719   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11720       if test -z "$ac_sed_cmds"; then
11721         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11722       else
11723         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11724       fi
11725       ac_sed_frag=`expr $ac_sed_frag + 1`
11726       ac_beg=$ac_end
11727       ac_end=`expr $ac_end + $ac_max_sed_lines`
11728     fi
11729   done
11730   if test -z "$ac_sed_cmds"; then
11731     ac_sed_cmds=cat
11732   fi
11733 fi # test -n "$CONFIG_FILES"
11734
11735 _ACEOF
11736 cat >>$CONFIG_STATUS <<\_ACEOF
11737 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11738   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11739   case $ac_file in
11740   - | *:- | *:-:* ) # input from stdin
11741         cat >$tmp/stdin
11742         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11743         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11744   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11745         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11746   * )   ac_file_in=$ac_file.in ;;
11747   esac
11748
11749   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11750   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11751 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11752          X"$ac_file" : 'X\(//\)[^/]' \| \
11753          X"$ac_file" : 'X\(//\)$' \| \
11754          X"$ac_file" : 'X\(/\)' \| \
11755          .     : '\(.\)' 2>/dev/null ||
11756 echo X"$ac_file" |
11757     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11758           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11759           /^X\(\/\/\)$/{ s//\1/; q; }
11760           /^X\(\/\).*/{ s//\1/; q; }
11761           s/.*/./; q'`
11762   { if $as_mkdir_p; then
11763     mkdir -p "$ac_dir"
11764   else
11765     as_dir="$ac_dir"
11766     as_dirs=
11767     while test ! -d "$as_dir"; do
11768       as_dirs="$as_dir $as_dirs"
11769       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11770 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11771          X"$as_dir" : 'X\(//\)[^/]' \| \
11772          X"$as_dir" : 'X\(//\)$' \| \
11773          X"$as_dir" : 'X\(/\)' \| \
11774          .     : '\(.\)' 2>/dev/null ||
11775 echo X"$as_dir" |
11776     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11777           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11778           /^X\(\/\/\)$/{ s//\1/; q; }
11779           /^X\(\/\).*/{ s//\1/; q; }
11780           s/.*/./; q'`
11781     done
11782     test ! -n "$as_dirs" || mkdir $as_dirs
11783   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11784 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11785    { (exit 1); exit 1; }; }; }
11786
11787   ac_builddir=.
11788
11789 if test "$ac_dir" != .; then
11790   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11791   # A "../" for each directory in $ac_dir_suffix.
11792   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11793 else
11794   ac_dir_suffix= ac_top_builddir=
11795 fi
11796
11797 case $srcdir in
11798   .)  # No --srcdir option.  We are building in place.
11799     ac_srcdir=.
11800     if test -z "$ac_top_builddir"; then
11801        ac_top_srcdir=.
11802     else
11803        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11804     fi ;;
11805   [\\/]* | ?:[\\/]* )  # Absolute path.
11806     ac_srcdir=$srcdir$ac_dir_suffix;
11807     ac_top_srcdir=$srcdir ;;
11808   *) # Relative path.
11809     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11810     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11811 esac
11812
11813 # Do not use `cd foo && pwd` to compute absolute paths, because
11814 # the directories may not exist.
11815 case `pwd` in
11816 .) ac_abs_builddir="$ac_dir";;
11817 *)
11818   case "$ac_dir" in
11819   .) ac_abs_builddir=`pwd`;;
11820   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11821   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11822   esac;;
11823 esac
11824 case $ac_abs_builddir in
11825 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11826 *)
11827   case ${ac_top_builddir}. in
11828   .) ac_abs_top_builddir=$ac_abs_builddir;;
11829   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11830   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11831   esac;;
11832 esac
11833 case $ac_abs_builddir in
11834 .) ac_abs_srcdir=$ac_srcdir;;
11835 *)
11836   case $ac_srcdir in
11837   .) ac_abs_srcdir=$ac_abs_builddir;;
11838   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11839   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11840   esac;;
11841 esac
11842 case $ac_abs_builddir in
11843 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11844 *)
11845   case $ac_top_srcdir in
11846   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11847   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11848   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11849   esac;;
11850 esac
11851
11852
11853   case $INSTALL in
11854   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11855   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11856   esac
11857
11858   # Let's still pretend it is `configure' which instantiates (i.e., don't
11859   # use $as_me), people would be surprised to read:
11860   #    /* config.h.  Generated by config.status.  */
11861   if test x"$ac_file" = x-; then
11862     configure_input=
11863   else
11864     configure_input="$ac_file.  "
11865   fi
11866   configure_input=$configure_input"Generated from `echo $ac_file_in |
11867                                      sed 's,.*/,,'` by configure."
11868
11869   # First look for the input files in the build tree, otherwise in the
11870   # src tree.
11871   ac_file_inputs=`IFS=:
11872     for f in $ac_file_in; do
11873       case $f in
11874       -) echo $tmp/stdin ;;
11875       [\\/$]*)
11876          # Absolute (can't be DOS-style, as IFS=:)
11877          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11878 echo "$as_me: error: cannot find input file: $f" >&2;}
11879    { (exit 1); exit 1; }; }
11880          echo "$f";;
11881       *) # Relative
11882          if test -f "$f"; then
11883            # Build tree
11884            echo "$f"
11885          elif test -f "$srcdir/$f"; then
11886            # Source tree
11887            echo "$srcdir/$f"
11888          else
11889            # /dev/null tree
11890            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11891 echo "$as_me: error: cannot find input file: $f" >&2;}
11892    { (exit 1); exit 1; }; }
11893          fi;;
11894       esac
11895     done` || { (exit 1); exit 1; }
11896
11897   if test x"$ac_file" != x-; then
11898     { echo "$as_me:$LINENO: creating $ac_file" >&5
11899 echo "$as_me: creating $ac_file" >&6;}
11900     rm -f "$ac_file"
11901   fi
11902 _ACEOF
11903 cat >>$CONFIG_STATUS <<_ACEOF
11904   sed "$ac_vpsub
11905 $extrasub
11906 _ACEOF
11907 cat >>$CONFIG_STATUS <<\_ACEOF
11908 :t
11909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11910 s,@configure_input@,$configure_input,;t t
11911 s,@srcdir@,$ac_srcdir,;t t
11912 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11913 s,@top_srcdir@,$ac_top_srcdir,;t t
11914 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11915 s,@builddir@,$ac_builddir,;t t
11916 s,@abs_builddir@,$ac_abs_builddir,;t t
11917 s,@top_builddir@,$ac_top_builddir,;t t
11918 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11919 s,@INSTALL@,$ac_INSTALL,;t t
11920 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11921   rm -f $tmp/stdin
11922   if test x"$ac_file" != x-; then
11923     mv $tmp/out $ac_file
11924   else
11925     cat $tmp/out
11926     rm -f $tmp/out
11927   fi
11928
11929 done
11930 _ACEOF
11931 cat >>$CONFIG_STATUS <<\_ACEOF
11932
11933 #
11934 # CONFIG_HEADER section.
11935 #
11936
11937 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11938 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11939 #
11940 # ac_d sets the value in "#define NAME VALUE" lines.
11941 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11942 ac_dB='[         ].*$,\1#\2'
11943 ac_dC=' '
11944 ac_dD=',;t'
11945 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11946 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11947 ac_uB='$,\1#\2define\3'
11948 ac_uC=' '
11949 ac_uD=',;t'
11950
11951 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11952   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11953   case $ac_file in
11954   - | *:- | *:-:* ) # input from stdin
11955         cat >$tmp/stdin
11956         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11957         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11958   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11959         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11960   * )   ac_file_in=$ac_file.in ;;
11961   esac
11962
11963   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11964 echo "$as_me: creating $ac_file" >&6;}
11965
11966   # First look for the input files in the build tree, otherwise in the
11967   # src tree.
11968   ac_file_inputs=`IFS=:
11969     for f in $ac_file_in; do
11970       case $f in
11971       -) echo $tmp/stdin ;;
11972       [\\/$]*)
11973          # Absolute (can't be DOS-style, as IFS=:)
11974          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11975 echo "$as_me: error: cannot find input file: $f" >&2;}
11976    { (exit 1); exit 1; }; }
11977          # Do quote $f, to prevent DOS paths from being IFS'd.
11978          echo "$f";;
11979       *) # Relative
11980          if test -f "$f"; then
11981            # Build tree
11982            echo "$f"
11983          elif test -f "$srcdir/$f"; then
11984            # Source tree
11985            echo "$srcdir/$f"
11986          else
11987            # /dev/null tree
11988            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11989 echo "$as_me: error: cannot find input file: $f" >&2;}
11990    { (exit 1); exit 1; }; }
11991          fi;;
11992       esac
11993     done` || { (exit 1); exit 1; }
11994   # Remove the trailing spaces.
11995   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11996
11997 _ACEOF
11998
11999 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12000 # `conftest.undefs', that substitutes the proper values into
12001 # config.h.in to produce config.h.  The first handles `#define'
12002 # templates, and the second `#undef' templates.
12003 # And first: Protect against being on the right side of a sed subst in
12004 # config.status.  Protect against being in an unquoted here document
12005 # in config.status.
12006 rm -f conftest.defines conftest.undefs
12007 # Using a here document instead of a string reduces the quoting nightmare.
12008 # Putting comments in sed scripts is not portable.
12009 #
12010 # `end' is used to avoid that the second main sed command (meant for
12011 # 0-ary CPP macros) applies to n-ary macro definitions.
12012 # See the Autoconf documentation for `clear'.
12013 cat >confdef2sed.sed <<\_ACEOF
12014 s/[\\&,]/\\&/g
12015 s,[\\$`],\\&,g
12016 t clear
12017 : clear
12018 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12019 t end
12020 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12021 : end
12022 _ACEOF
12023 # If some macros were called several times there might be several times
12024 # the same #defines, which is useless.  Nevertheless, we may not want to
12025 # sort them, since we want the *last* AC-DEFINE to be honored.
12026 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12027 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12028 rm -f confdef2sed.sed
12029
12030 # This sed command replaces #undef with comments.  This is necessary, for
12031 # example, in the case of _POSIX_SOURCE, which is predefined and required
12032 # on some systems where configure will not decide to define it.
12033 cat >>conftest.undefs <<\_ACEOF
12034 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12035 _ACEOF
12036
12037 # Break up conftest.defines because some shells have a limit on the size
12038 # of here documents, and old seds have small limits too (100 cmds).
12039 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12040 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12041 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12042 echo '  :' >>$CONFIG_STATUS
12043 rm -f conftest.tail
12044 while grep . conftest.defines >/dev/null
12045 do
12046   # Write a limited-size here document to $tmp/defines.sed.
12047   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12048   # Speed up: don't consider the non `#define' lines.
12049   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12050   # Work around the forget-to-reset-the-flag bug.
12051   echo 't clr' >>$CONFIG_STATUS
12052   echo ': clr' >>$CONFIG_STATUS
12053   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12054   echo 'CEOF
12055   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12056   rm -f $tmp/in
12057   mv $tmp/out $tmp/in
12058 ' >>$CONFIG_STATUS
12059   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12060   rm -f conftest.defines
12061   mv conftest.tail conftest.defines
12062 done
12063 rm -f conftest.defines
12064 echo '  fi # grep' >>$CONFIG_STATUS
12065 echo >>$CONFIG_STATUS
12066
12067 # Break up conftest.undefs because some shells have a limit on the size
12068 # of here documents, and old seds have small limits too (100 cmds).
12069 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12070 rm -f conftest.tail
12071 while grep . conftest.undefs >/dev/null
12072 do
12073   # Write a limited-size here document to $tmp/undefs.sed.
12074   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12075   # Speed up: don't consider the non `#undef'
12076   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12077   # Work around the forget-to-reset-the-flag bug.
12078   echo 't clr' >>$CONFIG_STATUS
12079   echo ': clr' >>$CONFIG_STATUS
12080   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12081   echo 'CEOF
12082   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12083   rm -f $tmp/in
12084   mv $tmp/out $tmp/in
12085 ' >>$CONFIG_STATUS
12086   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12087   rm -f conftest.undefs
12088   mv conftest.tail conftest.undefs
12089 done
12090 rm -f conftest.undefs
12091
12092 cat >>$CONFIG_STATUS <<\_ACEOF
12093   # Let's still pretend it is `configure' which instantiates (i.e., don't
12094   # use $as_me), people would be surprised to read:
12095   #    /* config.h.  Generated by config.status.  */
12096   if test x"$ac_file" = x-; then
12097     echo "/* Generated by configure.  */" >$tmp/config.h
12098   else
12099     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12100   fi
12101   cat $tmp/in >>$tmp/config.h
12102   rm -f $tmp/in
12103   if test x"$ac_file" != x-; then
12104     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12105       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12106 echo "$as_me: $ac_file is unchanged" >&6;}
12107     else
12108       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12109 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12110          X"$ac_file" : 'X\(//\)[^/]' \| \
12111          X"$ac_file" : 'X\(//\)$' \| \
12112          X"$ac_file" : 'X\(/\)' \| \
12113          .     : '\(.\)' 2>/dev/null ||
12114 echo X"$ac_file" |
12115     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12116           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12117           /^X\(\/\/\)$/{ s//\1/; q; }
12118           /^X\(\/\).*/{ s//\1/; q; }
12119           s/.*/./; q'`
12120       { if $as_mkdir_p; then
12121     mkdir -p "$ac_dir"
12122   else
12123     as_dir="$ac_dir"
12124     as_dirs=
12125     while test ! -d "$as_dir"; do
12126       as_dirs="$as_dir $as_dirs"
12127       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12129          X"$as_dir" : 'X\(//\)[^/]' \| \
12130          X"$as_dir" : 'X\(//\)$' \| \
12131          X"$as_dir" : 'X\(/\)' \| \
12132          .     : '\(.\)' 2>/dev/null ||
12133 echo X"$as_dir" |
12134     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12135           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12136           /^X\(\/\/\)$/{ s//\1/; q; }
12137           /^X\(\/\).*/{ s//\1/; q; }
12138           s/.*/./; q'`
12139     done
12140     test ! -n "$as_dirs" || mkdir $as_dirs
12141   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12142 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12143    { (exit 1); exit 1; }; }; }
12144
12145       rm -f $ac_file
12146       mv $tmp/config.h $ac_file
12147     fi
12148   else
12149     cat $tmp/config.h
12150     rm -f $tmp/config.h
12151   fi
12152 # Compute $ac_file's index in $config_headers.
12153 _am_stamp_count=1
12154 for _am_header in $config_headers :; do
12155   case $_am_header in
12156     $ac_file | $ac_file:* )
12157       break ;;
12158     * )
12159       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12160   esac
12161 done
12162 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12163 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12164          X$ac_file : 'X\(//\)[^/]' \| \
12165          X$ac_file : 'X\(//\)$' \| \
12166          X$ac_file : 'X\(/\)' \| \
12167          .     : '\(.\)' 2>/dev/null ||
12168 echo X$ac_file |
12169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12170           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12171           /^X\(\/\/\)$/{ s//\1/; q; }
12172           /^X\(\/\).*/{ s//\1/; q; }
12173           s/.*/./; q'`/stamp-h$_am_stamp_count
12174 done
12175 _ACEOF
12176 cat >>$CONFIG_STATUS <<\_ACEOF
12177
12178 #
12179 # CONFIG_COMMANDS section.
12180 #
12181 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12182   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12183   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12184   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12185 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12186          X"$ac_dest" : 'X\(//\)[^/]' \| \
12187          X"$ac_dest" : 'X\(//\)$' \| \
12188          X"$ac_dest" : 'X\(/\)' \| \
12189          .     : '\(.\)' 2>/dev/null ||
12190 echo X"$ac_dest" |
12191     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12192           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12193           /^X\(\/\/\)$/{ s//\1/; q; }
12194           /^X\(\/\).*/{ s//\1/; q; }
12195           s/.*/./; q'`
12196   { if $as_mkdir_p; then
12197     mkdir -p "$ac_dir"
12198   else
12199     as_dir="$ac_dir"
12200     as_dirs=
12201     while test ! -d "$as_dir"; do
12202       as_dirs="$as_dir $as_dirs"
12203       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12205          X"$as_dir" : 'X\(//\)[^/]' \| \
12206          X"$as_dir" : 'X\(//\)$' \| \
12207          X"$as_dir" : 'X\(/\)' \| \
12208          .     : '\(.\)' 2>/dev/null ||
12209 echo X"$as_dir" |
12210     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12211           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12212           /^X\(\/\/\)$/{ s//\1/; q; }
12213           /^X\(\/\).*/{ s//\1/; q; }
12214           s/.*/./; q'`
12215     done
12216     test ! -n "$as_dirs" || mkdir $as_dirs
12217   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12218 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12219    { (exit 1); exit 1; }; }; }
12220
12221   ac_builddir=.
12222
12223 if test "$ac_dir" != .; then
12224   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12225   # A "../" for each directory in $ac_dir_suffix.
12226   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12227 else
12228   ac_dir_suffix= ac_top_builddir=
12229 fi
12230
12231 case $srcdir in
12232   .)  # No --srcdir option.  We are building in place.
12233     ac_srcdir=.
12234     if test -z "$ac_top_builddir"; then
12235        ac_top_srcdir=.
12236     else
12237        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12238     fi ;;
12239   [\\/]* | ?:[\\/]* )  # Absolute path.
12240     ac_srcdir=$srcdir$ac_dir_suffix;
12241     ac_top_srcdir=$srcdir ;;
12242   *) # Relative path.
12243     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12244     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12245 esac
12246
12247 # Do not use `cd foo && pwd` to compute absolute paths, because
12248 # the directories may not exist.
12249 case `pwd` in
12250 .) ac_abs_builddir="$ac_dir";;
12251 *)
12252   case "$ac_dir" in
12253   .) ac_abs_builddir=`pwd`;;
12254   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12255   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12256   esac;;
12257 esac
12258 case $ac_abs_builddir in
12259 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12260 *)
12261   case ${ac_top_builddir}. in
12262   .) ac_abs_top_builddir=$ac_abs_builddir;;
12263   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12264   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12265   esac;;
12266 esac
12267 case $ac_abs_builddir in
12268 .) ac_abs_srcdir=$ac_srcdir;;
12269 *)
12270   case $ac_srcdir in
12271   .) ac_abs_srcdir=$ac_abs_builddir;;
12272   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12273   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12274   esac;;
12275 esac
12276 case $ac_abs_builddir in
12277 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12278 *)
12279   case $ac_top_srcdir in
12280   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12281   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12282   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12283   esac;;
12284 esac
12285
12286
12287   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12288 echo "$as_me: executing $ac_dest commands" >&6;}
12289   case $ac_dest in
12290     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12291   # Strip MF so we end up with the name of the file.
12292   mf=`echo "$mf" | sed -e 's/:.*$//'`
12293   # Check whether this is an Automake generated Makefile or not.
12294   # We used to match only the files named `Makefile.in', but
12295   # some people rename them; so instead we look at the file content.
12296   # Grep'ing the first line is not enough: some people post-process
12297   # each Makefile.in and add a new line on top of each file to say so.
12298   # So let's grep whole file.
12299   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12300     dirpart=`(dirname "$mf") 2>/dev/null ||
12301 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12302          X"$mf" : 'X\(//\)[^/]' \| \
12303          X"$mf" : 'X\(//\)$' \| \
12304          X"$mf" : 'X\(/\)' \| \
12305          .     : '\(.\)' 2>/dev/null ||
12306 echo X"$mf" |
12307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12308           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12309           /^X\(\/\/\)$/{ s//\1/; q; }
12310           /^X\(\/\).*/{ s//\1/; q; }
12311           s/.*/./; q'`
12312   else
12313     continue
12314   fi
12315   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12316   # Extract the definition of DEP_FILES from the Makefile without
12317   # running `make'.
12318   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12319   test -z "$DEPDIR" && continue
12320   # When using ansi2knr, U may be empty or an underscore; expand it
12321   U=`sed -n -e '/^U = / s///p' < "$mf"`
12322   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12323   # We invoke sed twice because it is the simplest approach to
12324   # changing $(DEPDIR) to its actual value in the expansion.
12325   for file in `sed -n -e '
12326     /^DEP_FILES = .*\\\\$/ {
12327       s/^DEP_FILES = //
12328       :loop
12329         s/\\\\$//
12330         p
12331         n
12332         /\\\\$/ b loop
12333       p
12334     }
12335     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12336        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12337     # Make sure the directory exists.
12338     test -f "$dirpart/$file" && continue
12339     fdir=`(dirname "$file") 2>/dev/null ||
12340 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12341          X"$file" : 'X\(//\)[^/]' \| \
12342          X"$file" : 'X\(//\)$' \| \
12343          X"$file" : 'X\(/\)' \| \
12344          .     : '\(.\)' 2>/dev/null ||
12345 echo X"$file" |
12346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12347           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12348           /^X\(\/\/\)$/{ s//\1/; q; }
12349           /^X\(\/\).*/{ s//\1/; q; }
12350           s/.*/./; q'`
12351     { if $as_mkdir_p; then
12352     mkdir -p $dirpart/$fdir
12353   else
12354     as_dir=$dirpart/$fdir
12355     as_dirs=
12356     while test ! -d "$as_dir"; do
12357       as_dirs="$as_dir $as_dirs"
12358       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12360          X"$as_dir" : 'X\(//\)[^/]' \| \
12361          X"$as_dir" : 'X\(//\)$' \| \
12362          X"$as_dir" : 'X\(/\)' \| \
12363          .     : '\(.\)' 2>/dev/null ||
12364 echo X"$as_dir" |
12365     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12366           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12367           /^X\(\/\/\)$/{ s//\1/; q; }
12368           /^X\(\/\).*/{ s//\1/; q; }
12369           s/.*/./; q'`
12370     done
12371     test ! -n "$as_dirs" || mkdir $as_dirs
12372   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12373 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12374    { (exit 1); exit 1; }; }; }
12375
12376     # echo "creating $dirpart/$file"
12377     echo '# dummy' > "$dirpart/$file"
12378   done
12379 done
12380  ;;
12381   esac
12382 done
12383 _ACEOF
12384
12385 cat >>$CONFIG_STATUS <<\_ACEOF
12386
12387 { (exit 0); exit 0; }
12388 _ACEOF
12389 chmod +x $CONFIG_STATUS
12390 ac_clean_files=$ac_clean_files_save
12391
12392
12393 # configure is writing to config.log, and then calls config.status.
12394 # config.status does its own redirection, appending to config.log.
12395 # Unfortunately, on DOS this fails, as config.log is still kept open
12396 # by configure, so config.status won't be able to write to it; its
12397 # output is simply discarded.  So we exec the FD to /dev/null,
12398 # effectively closing config.log, so it can be properly (re)opened and
12399 # appended to by config.status.  When coming back to configure, we
12400 # need to make the FD available again.
12401 if test "$no_create" != yes; then
12402   ac_cs_success=:
12403   ac_config_status_args=
12404   test "$silent" = yes &&
12405     ac_config_status_args="$ac_config_status_args --quiet"
12406   exec 5>/dev/null
12407   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12408   exec 5>>config.log
12409   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12410   # would make configure fail if this is the last instruction.
12411   $ac_cs_success || { (exit 1); exit 1; }
12412 fi
12413