Update build system to Autoconf 2.58, Automake 1.7, gettext 0.12.1.
[pspp-builds.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58 for pspp 0.3.1.
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='pspp'
269 PACKAGE_TARNAME='pspp'
270 PACKAGE_VERSION='0.3.1'
271 PACKAGE_STRING='pspp 0.3.1'
272 PACKAGE_BUGREPORT=''
273
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA 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 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 MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os RANLIB ac_ct_RANLIB CPP EGREP ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS LN_S LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures pspp 0.3.1 to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841 _ACEOF
842 fi
843
844 if test -n "$ac_init_help"; then
845   case $ac_init_help in
846      short | recursive ) echo "Configuration of pspp 0.3.1:";;
847    esac
848   cat <<\_ACEOF
849
850 Optional Features:
851   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
852   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
853   --disable-dependency-tracking Speeds up one-time builds
854   --enable-dependency-tracking  Do not reject slow dependency extractors
855   --disable-nls           do not use Native Language Support
856   --disable-rpath         do not hardcode runtime library paths
857
858 Optional Packages:
859   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
860   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
861   --with-gnu-ld           assume the C compiler uses GNU ld default=no
862   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
863   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
864   --with-included-gettext use the GNU gettext library included here
865   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
866   --without-libintl-prefix     don't search for libintl in includedir and libdir
867
868 Some influential environment variables:
869   CC
870               C compiler command
871   CFLAGS
872               C compiler flags
873   LDFLAGS
874               linker flags, e.g. -L<lib dir> if you have
875               libraries in a nonstandard directory <lib dir>
876   CPPFLAGS
877               C/C++ preprocessor flags, e.g. -I<include dir> if you
878               have headers in a nonstandard directory <include dir>
879   CPP
880               C preprocessor
881
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
884
885 _ACEOF
886 fi
887
888 if test "$ac_init_help" = "recursive"; then
889   # If there are subdirs, report their specific --help.
890   ac_popdir=`pwd`
891   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892     test -d $ac_dir || continue
893     ac_builddir=.
894
895 if test "$ac_dir" != .; then
896   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897   # A "../" for each directory in $ac_dir_suffix.
898   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899 else
900   ac_dir_suffix= ac_top_builddir=
901 fi
902
903 case $srcdir in
904   .)  # No --srcdir option.  We are building in place.
905     ac_srcdir=.
906     if test -z "$ac_top_builddir"; then
907        ac_top_srcdir=.
908     else
909        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910     fi ;;
911   [\\/]* | ?:[\\/]* )  # Absolute path.
912     ac_srcdir=$srcdir$ac_dir_suffix;
913     ac_top_srcdir=$srcdir ;;
914   *) # Relative path.
915     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916     ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 esac
918
919 # Do not use `cd foo && pwd` to compute absolute paths, because
920 # the directories may not exist.
921 case `pwd` in
922 .) ac_abs_builddir="$ac_dir";;
923 *)
924   case "$ac_dir" in
925   .) ac_abs_builddir=`pwd`;;
926   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927   *) ac_abs_builddir=`pwd`/"$ac_dir";;
928   esac;;
929 esac
930 case $ac_abs_builddir in
931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *)
933   case ${ac_top_builddir}. in
934   .) ac_abs_top_builddir=$ac_abs_builddir;;
935   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937   esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_srcdir=$ac_srcdir;;
941 *)
942   case $ac_srcdir in
943   .) ac_abs_srcdir=$ac_abs_builddir;;
944   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946   esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *)
951   case $ac_top_srcdir in
952   .) ac_abs_top_srcdir=$ac_abs_builddir;;
953   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955   esac;;
956 esac
957
958     cd $ac_dir
959     # Check for guested configure; otherwise get Cygnus style configure.
960     if test -f $ac_srcdir/configure.gnu; then
961       echo
962       $SHELL $ac_srcdir/configure.gnu  --help=recursive
963     elif test -f $ac_srcdir/configure; then
964       echo
965       $SHELL $ac_srcdir/configure  --help=recursive
966     elif test -f $ac_srcdir/configure.ac ||
967            test -f $ac_srcdir/configure.in; then
968       echo
969       $ac_configure --help
970     else
971       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972     fi
973     cd "$ac_popdir"
974   done
975 fi
976
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
979   cat <<\_ACEOF
980 pspp configure 0.3.1
981 generated by GNU Autoconf 2.58
982
983 Copyright (C) 2003 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
986 _ACEOF
987   exit 0
988 fi
989 exec 5>config.log
990 cat >&5 <<_ACEOF
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
993
994 It was created by pspp $as_me 0.3.1, which was
995 generated by GNU Autoconf 2.58.  Invocation command line was
996
997   $ $0 $@
998
999 _ACEOF
1000 {
1001 cat <<_ASUNAME
1002 ## --------- ##
1003 ## Platform. ##
1004 ## --------- ##
1005
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011
1012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1014
1015 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1016 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1019 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1020 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1021 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1022
1023 _ASUNAME
1024
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026 for as_dir in $PATH
1027 do
1028   IFS=$as_save_IFS
1029   test -z "$as_dir" && as_dir=.
1030   echo "PATH: $as_dir"
1031 done
1032
1033 } >&5
1034
1035 cat >&5 <<_ACEOF
1036
1037
1038 ## ----------- ##
1039 ## Core tests. ##
1040 ## ----------- ##
1041
1042 _ACEOF
1043
1044
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1050 ac_configure_args=
1051 ac_configure_args0=
1052 ac_configure_args1=
1053 ac_sep=
1054 ac_must_keep_next=false
1055 for ac_pass in 1 2
1056 do
1057   for ac_arg
1058   do
1059     case $ac_arg in
1060     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062     | -silent | --silent | --silen | --sile | --sil)
1063       continue ;;
1064     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066     esac
1067     case $ac_pass in
1068     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069     2)
1070       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071       if test $ac_must_keep_next = true; then
1072         ac_must_keep_next=false # Got value, back to normal.
1073       else
1074         case $ac_arg in
1075           *=* | --config-cache | -C | -disable-* | --disable-* \
1076           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078           | -with-* | --with-* | -without-* | --without-* | --x)
1079             case "$ac_configure_args0 " in
1080               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081             esac
1082             ;;
1083           -* ) ac_must_keep_next=true ;;
1084         esac
1085       fi
1086       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087       # Get rid of the leading space.
1088       ac_sep=" "
1089       ;;
1090     esac
1091   done
1092 done
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log.  We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close' the trap.
1101 trap 'exit_status=$?
1102   # Save into config.log some information that might help in debugging.
1103   {
1104     echo
1105
1106     cat <<\_ASBOX
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1110 _ASBOX
1111     echo
1112     # The following way of writing the cache mishandles newlines in values,
1113 {
1114   (set) 2>&1 |
1115     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116     *ac_space=\ *)
1117       sed -n \
1118         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1120       ;;
1121     *)
1122       sed -n \
1123         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124       ;;
1125     esac;
1126 }
1127     echo
1128
1129     cat <<\_ASBOX
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1133 _ASBOX
1134     echo
1135     for ac_var in $ac_subst_vars
1136     do
1137       eval ac_val=$`echo $ac_var`
1138       echo "$ac_var='"'"'$ac_val'"'"'"
1139     done | sort
1140     echo
1141
1142     if test -n "$ac_subst_files"; then
1143       cat <<\_ASBOX
1144 ## ------------- ##
1145 ## Output files. ##
1146 ## ------------- ##
1147 _ASBOX
1148       echo
1149       for ac_var in $ac_subst_files
1150       do
1151         eval ac_val=$`echo $ac_var`
1152         echo "$ac_var='"'"'$ac_val'"'"'"
1153       done | sort
1154       echo
1155     fi
1156
1157     if test -s confdefs.h; then
1158       cat <<\_ASBOX
1159 ## ----------- ##
1160 ## confdefs.h. ##
1161 ## ----------- ##
1162 _ASBOX
1163       echo
1164       sed "/^$/d" confdefs.h | sort
1165       echo
1166     fi
1167     test "$ac_signal" != 0 &&
1168       echo "$as_me: caught signal $ac_signal"
1169     echo "$as_me: exit $exit_status"
1170   } >&5
1171   rm -f core *.core &&
1172   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173     exit $exit_status
1174      ' 0
1175 for ac_signal in 1 2 13 15; do
1176   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177 done
1178 ac_signal=0
1179
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183 echo >confdefs.h
1184
1185 # Predefined preprocessor variables.
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209 _ACEOF
1210
1211
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215   if test "x$prefix" != xNONE; then
1216     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217   else
1218     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219   fi
1220 fi
1221 for ac_site_file in $CONFIG_SITE; do
1222   if test -r "$ac_site_file"; then
1223     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225     sed 's/^/| /' "$ac_site_file" >&5
1226     . "$ac_site_file"
1227   fi
1228 done
1229
1230 if test -r "$cache_file"; then
1231   # Some versions of bash will fail to source /dev/null (special
1232   # files actually), so we avoid doing that.
1233   if test -f "$cache_file"; then
1234     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1236     case $cache_file in
1237       [\\/]* | ?:[\\/]* ) . $cache_file;;
1238       *)                      . ./$cache_file;;
1239     esac
1240   fi
1241 else
1242   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1244   >$cache_file
1245 fi
1246
1247 # Check that the precious variables saved in the cache have kept the same
1248 # value.
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253   eval ac_new_set=\$ac_env_${ac_var}_set
1254   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255   eval ac_new_val="\$ac_env_${ac_var}_value"
1256   case $ac_old_set,$ac_new_set in
1257     set,)
1258       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260       ac_cache_corrupted=: ;;
1261     ,set)
1262       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264       ac_cache_corrupted=: ;;
1265     ,);;
1266     *)
1267       if test "x$ac_old_val" != "x$ac_new_val"; then
1268         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1271 echo "$as_me:   former value:  $ac_old_val" >&2;}
1272         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1273 echo "$as_me:   current value: $ac_new_val" >&2;}
1274         ac_cache_corrupted=:
1275       fi;;
1276   esac
1277   # Pass precious variables to config.status.
1278   if test "$ac_new_set" = set; then
1279     case $ac_new_val in
1280     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282     *) ac_arg=$ac_var=$ac_new_val ;;
1283     esac
1284     case " $ac_configure_args " in
1285       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1286       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287     esac
1288   fi
1289 done
1290 if $ac_cache_corrupted; then
1291   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295    { (exit 1); exit 1; }; }
1296 fi
1297
1298 ac_ext=c
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330           ac_config_headers="$ac_config_headers config.h"
1331
1332 am__api_version="1.7"
1333 ac_aux_dir=
1334 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1335   if test -f $ac_dir/install-sh; then
1336     ac_aux_dir=$ac_dir
1337     ac_install_sh="$ac_aux_dir/install-sh -c"
1338     break
1339   elif test -f $ac_dir/install.sh; then
1340     ac_aux_dir=$ac_dir
1341     ac_install_sh="$ac_aux_dir/install.sh -c"
1342     break
1343   elif test -f $ac_dir/shtool; then
1344     ac_aux_dir=$ac_dir
1345     ac_install_sh="$ac_aux_dir/shtool install -c"
1346     break
1347   fi
1348 done
1349 if test -z "$ac_aux_dir"; then
1350   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1351 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1352    { (exit 1); exit 1; }; }
1353 fi
1354 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1355 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1356 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1357
1358 # Find a good install program.  We prefer a C program (faster),
1359 # so one script is as good as another.  But avoid the broken or
1360 # incompatible versions:
1361 # SysV /etc/install, /usr/sbin/install
1362 # SunOS /usr/etc/install
1363 # IRIX /sbin/install
1364 # AIX /bin/install
1365 # AmigaOS /C/install, which installs bootblocks on floppy discs
1366 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1367 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1368 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1369 # OS/2's system install, which has a completely different semantic
1370 # ./install, which can be erroneously created by make from ./install.sh.
1371 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1372 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1373 if test -z "$INSTALL"; then
1374 if test "${ac_cv_path_install+set}" = set; then
1375   echo $ECHO_N "(cached) $ECHO_C" >&6
1376 else
1377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1378 for as_dir in $PATH
1379 do
1380   IFS=$as_save_IFS
1381   test -z "$as_dir" && as_dir=.
1382   # Account for people who put trailing slashes in PATH elements.
1383 case $as_dir/ in
1384   ./ | .// | /cC/* | \
1385   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1386   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1387   /usr/ucb/* ) ;;
1388   *)
1389     # OSF1 and SCO ODT 3.0 have their own names for install.
1390     # Don't use installbsd from OSF since it installs stuff as root
1391     # by default.
1392     for ac_prog in ginstall scoinst install; do
1393       for ac_exec_ext in '' $ac_executable_extensions; do
1394         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1395           if test $ac_prog = install &&
1396             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1397             # AIX install.  It has an incompatible calling convention.
1398             :
1399           elif test $ac_prog = install &&
1400             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1401             # program-specific install script used by HP pwplus--don't use.
1402             :
1403           else
1404             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1405             break 3
1406           fi
1407         fi
1408       done
1409     done
1410     ;;
1411 esac
1412 done
1413
1414
1415 fi
1416   if test "${ac_cv_path_install+set}" = set; then
1417     INSTALL=$ac_cv_path_install
1418   else
1419     # As a last resort, use the slow shell script.  We don't cache a
1420     # path for INSTALL within a source directory, because that will
1421     # break other packages using the cache if that directory is
1422     # removed, or if the path is relative.
1423     INSTALL=$ac_install_sh
1424   fi
1425 fi
1426 echo "$as_me:$LINENO: result: $INSTALL" >&5
1427 echo "${ECHO_T}$INSTALL" >&6
1428
1429 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1430 # It thinks the first close brace ends the variable substitution.
1431 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1432
1433 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1434
1435 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1436
1437 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1438 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1439 # Just in case
1440 sleep 1
1441 echo timestamp > conftest.file
1442 # Do `set' in a subshell so we don't clobber the current shell's
1443 # arguments.  Must try -L first in case configure is actually a
1444 # symlink; some systems play weird games with the mod time of symlinks
1445 # (eg FreeBSD returns the mod time of the symlink's containing
1446 # directory).
1447 if (
1448    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1449    if test "$*" = "X"; then
1450       # -L didn't work.
1451       set X `ls -t $srcdir/configure conftest.file`
1452    fi
1453    rm -f conftest.file
1454    if test "$*" != "X $srcdir/configure conftest.file" \
1455       && test "$*" != "X conftest.file $srcdir/configure"; then
1456
1457       # If neither matched, then we have a broken ls.  This can happen
1458       # if, for instance, CONFIG_SHELL is bash and it inherits a
1459       # broken ls alias from the environment.  This has actually
1460       # happened.  Such a system could not be considered "sane".
1461       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1462 alias in your environment" >&5
1463 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1464 alias in your environment" >&2;}
1465    { (exit 1); exit 1; }; }
1466    fi
1467
1468    test "$2" = conftest.file
1469    )
1470 then
1471    # Ok.
1472    :
1473 else
1474    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1475 Check your system clock" >&5
1476 echo "$as_me: error: newly created file is older than distributed files!
1477 Check your system clock" >&2;}
1478    { (exit 1); exit 1; }; }
1479 fi
1480 echo "$as_me:$LINENO: result: yes" >&5
1481 echo "${ECHO_T}yes" >&6
1482 test "$program_prefix" != NONE &&
1483   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1484 # Use a double $ so make ignores it.
1485 test "$program_suffix" != NONE &&
1486   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1487 # Double any \ or $.  echo might interpret backslashes.
1488 # By default was `s,x,x', remove it if useless.
1489 cat <<\_ACEOF >conftest.sed
1490 s/[\\$]/&&/g;s/;s,x,x,$//
1491 _ACEOF
1492 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1493 rm conftest.sed
1494
1495
1496 # expand $ac_aux_dir to an absolute path
1497 am_aux_dir=`cd $ac_aux_dir && pwd`
1498
1499 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1500 # Use eval to expand $SHELL
1501 if eval "$MISSING --run true"; then
1502   am_missing_run="$MISSING --run "
1503 else
1504   am_missing_run=
1505   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1506 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1507 fi
1508
1509 for ac_prog in gawk mawk nawk awk
1510 do
1511   # Extract the first word of "$ac_prog", so it can be a program name with args.
1512 set dummy $ac_prog; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_AWK+set}" = set; then
1516   echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518   if test -n "$AWK"; then
1519   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1520 else
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1523 do
1524   IFS=$as_save_IFS
1525   test -z "$as_dir" && as_dir=.
1526   for ac_exec_ext in '' $ac_executable_extensions; do
1527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528     ac_cv_prog_AWK="$ac_prog"
1529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530     break 2
1531   fi
1532 done
1533 done
1534
1535 fi
1536 fi
1537 AWK=$ac_cv_prog_AWK
1538 if test -n "$AWK"; then
1539   echo "$as_me:$LINENO: result: $AWK" >&5
1540 echo "${ECHO_T}$AWK" >&6
1541 else
1542   echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1544 fi
1545
1546   test -n "$AWK" && break
1547 done
1548
1549 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1550 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1551 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1552 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1553   echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555   cat >conftest.make <<\_ACEOF
1556 all:
1557         @echo 'ac_maketemp="$(MAKE)"'
1558 _ACEOF
1559 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1560 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1561 if test -n "$ac_maketemp"; then
1562   eval ac_cv_prog_make_${ac_make}_set=yes
1563 else
1564   eval ac_cv_prog_make_${ac_make}_set=no
1565 fi
1566 rm -f conftest.make
1567 fi
1568 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1569   echo "$as_me:$LINENO: result: yes" >&5
1570 echo "${ECHO_T}yes" >&6
1571   SET_MAKE=
1572 else
1573   echo "$as_me:$LINENO: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1575   SET_MAKE="MAKE=${MAKE-make}"
1576 fi
1577
1578 rm -rf .tst 2>/dev/null
1579 mkdir .tst 2>/dev/null
1580 if test -d .tst; then
1581   am__leading_dot=.
1582 else
1583   am__leading_dot=_
1584 fi
1585 rmdir .tst 2>/dev/null
1586
1587  # test to see if srcdir already configured
1588 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1589    test -f $srcdir/config.status; then
1590   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1591 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1592    { (exit 1); exit 1; }; }
1593 fi
1594
1595 # test whether we have cygpath
1596 if test -z "$CYGPATH_W"; then
1597   if (cygpath --version) >/dev/null 2>/dev/null; then
1598     CYGPATH_W='cygpath -w'
1599   else
1600     CYGPATH_W=echo
1601   fi
1602 fi
1603
1604
1605 # Define the identity of the package.
1606  PACKAGE='pspp'
1607  VERSION='0.3.1'
1608
1609
1610 cat >>confdefs.h <<_ACEOF
1611 #define PACKAGE "$PACKAGE"
1612 _ACEOF
1613
1614
1615 cat >>confdefs.h <<_ACEOF
1616 #define VERSION "$VERSION"
1617 _ACEOF
1618
1619 # Some tools Automake needs.
1620
1621 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1622
1623
1624 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1625
1626
1627 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1628
1629
1630 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1631
1632
1633 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1634
1635
1636 AMTAR=${AMTAR-"${am_missing_run}tar"}
1637
1638 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1639
1640 # Installed binaries are usually stripped using `strip' when the user
1641 # run `make install-strip'.  However `strip' might not be the right
1642 # tool to use in cross-compilation environments, therefore Automake
1643 # will honor the `STRIP' environment variable to overrule this program.
1644 if test "$cross_compiling" != no; then
1645   if test -n "$ac_tool_prefix"; then
1646   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1647 set dummy ${ac_tool_prefix}strip; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_STRIP+set}" = set; then
1651   echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653   if test -n "$STRIP"; then
1654   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1655 else
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 for as_dir in $PATH
1658 do
1659   IFS=$as_save_IFS
1660   test -z "$as_dir" && as_dir=.
1661   for ac_exec_ext in '' $ac_executable_extensions; do
1662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665     break 2
1666   fi
1667 done
1668 done
1669
1670 fi
1671 fi
1672 STRIP=$ac_cv_prog_STRIP
1673 if test -n "$STRIP"; then
1674   echo "$as_me:$LINENO: result: $STRIP" >&5
1675 echo "${ECHO_T}$STRIP" >&6
1676 else
1677   echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1679 fi
1680
1681 fi
1682 if test -z "$ac_cv_prog_STRIP"; then
1683   ac_ct_STRIP=$STRIP
1684   # Extract the first word of "strip", so it can be a program name with args.
1685 set dummy strip; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1689   echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691   if test -n "$ac_ct_STRIP"; then
1692   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1693 else
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695 for as_dir in $PATH
1696 do
1697   IFS=$as_save_IFS
1698   test -z "$as_dir" && as_dir=.
1699   for ac_exec_ext in '' $ac_executable_extensions; do
1700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701     ac_cv_prog_ac_ct_STRIP="strip"
1702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703     break 2
1704   fi
1705 done
1706 done
1707
1708   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1709 fi
1710 fi
1711 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1712 if test -n "$ac_ct_STRIP"; then
1713   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1714 echo "${ECHO_T}$ac_ct_STRIP" >&6
1715 else
1716   echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1718 fi
1719
1720   STRIP=$ac_ct_STRIP
1721 else
1722   STRIP="$ac_cv_prog_STRIP"
1723 fi
1724
1725 fi
1726 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1727
1728 # We need awk for the "check" target.  The system "awk" is bad on
1729 # some platforms.
1730
1731
1732
1733
1734
1735 cat >>confdefs.h <<\_ACEOF
1736 #define _GNU_SOURCE 1
1737 _ACEOF
1738
1739
1740 ac_ext=c
1741 ac_cpp='$CPP $CPPFLAGS'
1742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1745 if test -n "$ac_tool_prefix"; then
1746   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1747 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_CC+set}" = set; then
1751   echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753   if test -n "$CC"; then
1754   ac_cv_prog_CC="$CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1758 do
1759   IFS=$as_save_IFS
1760   test -z "$as_dir" && as_dir=.
1761   for ac_exec_ext in '' $ac_executable_extensions; do
1762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765     break 2
1766   fi
1767 done
1768 done
1769
1770 fi
1771 fi
1772 CC=$ac_cv_prog_CC
1773 if test -n "$CC"; then
1774   echo "$as_me:$LINENO: result: $CC" >&5
1775 echo "${ECHO_T}$CC" >&6
1776 else
1777   echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779 fi
1780
1781 fi
1782 if test -z "$ac_cv_prog_CC"; then
1783   ac_ct_CC=$CC
1784   # Extract the first word of "gcc", so it can be a program name with args.
1785 set dummy gcc; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789   echo $ECHO_N "(cached) $ECHO_C" >&6
1790 else
1791   if test -n "$ac_ct_CC"; then
1792   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 else
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 for as_dir in $PATH
1796 do
1797   IFS=$as_save_IFS
1798   test -z "$as_dir" && as_dir=.
1799   for ac_exec_ext in '' $ac_executable_extensions; do
1800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801     ac_cv_prog_ac_ct_CC="gcc"
1802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803     break 2
1804   fi
1805 done
1806 done
1807
1808 fi
1809 fi
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1814 else
1815   echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1817 fi
1818
1819   CC=$ac_ct_CC
1820 else
1821   CC="$ac_cv_prog_CC"
1822 fi
1823
1824 if test -z "$CC"; then
1825   if test -n "$ac_tool_prefix"; then
1826   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1827 set dummy ${ac_tool_prefix}cc; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831   echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833   if test -n "$CC"; then
1834   ac_cv_prog_CC="$CC" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839   IFS=$as_save_IFS
1840   test -z "$as_dir" && as_dir=.
1841   for ac_exec_ext in '' $ac_executable_extensions; do
1842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843     ac_cv_prog_CC="${ac_tool_prefix}cc"
1844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845     break 2
1846   fi
1847 done
1848 done
1849
1850 fi
1851 fi
1852 CC=$ac_cv_prog_CC
1853 if test -n "$CC"; then
1854   echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861 fi
1862 if test -z "$ac_cv_prog_CC"; then
1863   ac_ct_CC=$CC
1864   # Extract the first word of "cc", so it can be a program name with args.
1865 set dummy cc; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869   echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871   if test -n "$ac_ct_CC"; then
1872   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873 else
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1876 do
1877   IFS=$as_save_IFS
1878   test -z "$as_dir" && as_dir=.
1879   for ac_exec_ext in '' $ac_executable_extensions; do
1880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881     ac_cv_prog_ac_ct_CC="cc"
1882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883     break 2
1884   fi
1885 done
1886 done
1887
1888 fi
1889 fi
1890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1891 if test -n "$ac_ct_CC"; then
1892   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1893 echo "${ECHO_T}$ac_ct_CC" >&6
1894 else
1895   echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1897 fi
1898
1899   CC=$ac_ct_CC
1900 else
1901   CC="$ac_cv_prog_CC"
1902 fi
1903
1904 fi
1905 if test -z "$CC"; then
1906   # Extract the first word of "cc", so it can be a program name with args.
1907 set dummy cc; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_CC+set}" = set; then
1911   echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913   if test -n "$CC"; then
1914   ac_cv_prog_CC="$CC" # Let the user override the test.
1915 else
1916   ac_prog_rejected=no
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1919 do
1920   IFS=$as_save_IFS
1921   test -z "$as_dir" && as_dir=.
1922   for ac_exec_ext in '' $ac_executable_extensions; do
1923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1925        ac_prog_rejected=yes
1926        continue
1927      fi
1928     ac_cv_prog_CC="cc"
1929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930     break 2
1931   fi
1932 done
1933 done
1934
1935 if test $ac_prog_rejected = yes; then
1936   # We found a bogon in the path, so make sure we never use it.
1937   set dummy $ac_cv_prog_CC
1938   shift
1939   if test $# != 0; then
1940     # We chose a different compiler from the bogus one.
1941     # However, it has the same basename, so the bogon will be chosen
1942     # first if we set CC to just the basename; use the full file name.
1943     shift
1944     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1945   fi
1946 fi
1947 fi
1948 fi
1949 CC=$ac_cv_prog_CC
1950 if test -n "$CC"; then
1951   echo "$as_me:$LINENO: result: $CC" >&5
1952 echo "${ECHO_T}$CC" >&6
1953 else
1954   echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6
1956 fi
1957
1958 fi
1959 if test -z "$CC"; then
1960   if test -n "$ac_tool_prefix"; then
1961   for ac_prog in cl
1962   do
1963     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1964 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   if test -n "$CC"; then
1971   ac_cv_prog_CC="$CC" # Let the user override the test.
1972 else
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1975 do
1976   IFS=$as_save_IFS
1977   test -z "$as_dir" && as_dir=.
1978   for ac_exec_ext in '' $ac_executable_extensions; do
1979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982     break 2
1983   fi
1984 done
1985 done
1986
1987 fi
1988 fi
1989 CC=$ac_cv_prog_CC
1990 if test -n "$CC"; then
1991   echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6
1993 else
1994   echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1996 fi
1997
1998     test -n "$CC" && break
1999   done
2000 fi
2001 if test -z "$CC"; then
2002   ac_ct_CC=$CC
2003   for ac_prog in cl
2004 do
2005   # Extract the first word of "$ac_prog", so it can be a program name with args.
2006 set dummy $ac_prog; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2010   echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012   if test -n "$ac_ct_CC"; then
2013   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2014 else
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 for as_dir in $PATH
2017 do
2018   IFS=$as_save_IFS
2019   test -z "$as_dir" && as_dir=.
2020   for ac_exec_ext in '' $ac_executable_extensions; do
2021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022     ac_cv_prog_ac_ct_CC="$ac_prog"
2023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024     break 2
2025   fi
2026 done
2027 done
2028
2029 fi
2030 fi
2031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2032 if test -n "$ac_ct_CC"; then
2033   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2034 echo "${ECHO_T}$ac_ct_CC" >&6
2035 else
2036   echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2038 fi
2039
2040   test -n "$ac_ct_CC" && break
2041 done
2042
2043   CC=$ac_ct_CC
2044 fi
2045
2046 fi
2047
2048
2049 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2050 See \`config.log' for more details." >&5
2051 echo "$as_me: error: no acceptable C compiler found in \$PATH
2052 See \`config.log' for more details." >&2;}
2053    { (exit 1); exit 1; }; }
2054
2055 # Provide some information about the compiler.
2056 echo "$as_me:$LINENO:" \
2057      "checking for C compiler version" >&5
2058 ac_compiler=`set X $ac_compile; echo $2`
2059 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2060   (eval $ac_compiler --version </dev/null >&5) 2>&5
2061   ac_status=$?
2062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063   (exit $ac_status); }
2064 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2065   (eval $ac_compiler -v </dev/null >&5) 2>&5
2066   ac_status=$?
2067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068   (exit $ac_status); }
2069 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2070   (eval $ac_compiler -V </dev/null >&5) 2>&5
2071   ac_status=$?
2072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073   (exit $ac_status); }
2074
2075 cat >conftest.$ac_ext <<_ACEOF
2076 /* confdefs.h.  */
2077 _ACEOF
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h.  */
2081
2082 int
2083 main ()
2084 {
2085
2086   ;
2087   return 0;
2088 }
2089 _ACEOF
2090 ac_clean_files_save=$ac_clean_files
2091 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2092 # Try to create an executable without -o first, disregard a.out.
2093 # It will help us diagnose broken compilers, and finding out an intuition
2094 # of exeext.
2095 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2096 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2097 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2098 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2099   (eval $ac_link_default) 2>&5
2100   ac_status=$?
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); }; then
2103   # Find the output, starting from the most likely.  This scheme is
2104 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2105 # resort.
2106
2107 # Be careful to initialize this variable, since it used to be cached.
2108 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2109 ac_cv_exeext=
2110 # b.out is created by i960 compilers.
2111 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2112 do
2113   test -f "$ac_file" || continue
2114   case $ac_file in
2115     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2116         ;;
2117     conftest.$ac_ext )
2118         # This is the source file.
2119         ;;
2120     [ab].out )
2121         # We found the default executable, but exeext='' is most
2122         # certainly right.
2123         break;;
2124     *.* )
2125         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2126         # FIXME: I believe we export ac_cv_exeext for Libtool,
2127         # but it would be cool to find out if it's true.  Does anybody
2128         # maintain Libtool? --akim.
2129         export ac_cv_exeext
2130         break;;
2131     * )
2132         break;;
2133   esac
2134 done
2135 else
2136   echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2138
2139 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: C compiler cannot create executables
2142 See \`config.log' for more details." >&2;}
2143    { (exit 77); exit 77; }; }
2144 fi
2145
2146 ac_exeext=$ac_cv_exeext
2147 echo "$as_me:$LINENO: result: $ac_file" >&5
2148 echo "${ECHO_T}$ac_file" >&6
2149
2150 # Check the compiler produces executables we can run.  If not, either
2151 # the compiler is broken, or we cross compile.
2152 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2153 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2154 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2155 # If not cross compiling, check that we can run a simple program.
2156 if test "$cross_compiling" != yes; then
2157   if { ac_try='./$ac_file'
2158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159   (eval $ac_try) 2>&5
2160   ac_status=$?
2161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162   (exit $ac_status); }; }; then
2163     cross_compiling=no
2164   else
2165     if test "$cross_compiling" = maybe; then
2166         cross_compiling=yes
2167     else
2168         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2169 If you meant to cross compile, use \`--host'.
2170 See \`config.log' for more details." >&5
2171 echo "$as_me: error: cannot run C compiled programs.
2172 If you meant to cross compile, use \`--host'.
2173 See \`config.log' for more details." >&2;}
2174    { (exit 1); exit 1; }; }
2175     fi
2176   fi
2177 fi
2178 echo "$as_me:$LINENO: result: yes" >&5
2179 echo "${ECHO_T}yes" >&6
2180
2181 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2182 ac_clean_files=$ac_clean_files_save
2183 # Check the compiler produces executables we can run.  If not, either
2184 # the compiler is broken, or we cross compile.
2185 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2186 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2187 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2188 echo "${ECHO_T}$cross_compiling" >&6
2189
2190 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2191 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2193   (eval $ac_link) 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); }; then
2197   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2198 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2199 # work properly (i.e., refer to `conftest.exe'), while it won't with
2200 # `rm'.
2201 for ac_file in conftest.exe conftest conftest.*; do
2202   test -f "$ac_file" || continue
2203   case $ac_file in
2204     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2205     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2206           export ac_cv_exeext
2207           break;;
2208     * ) break;;
2209   esac
2210 done
2211 else
2212   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2213 See \`config.log' for more details." >&5
2214 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2215 See \`config.log' for more details." >&2;}
2216    { (exit 1); exit 1; }; }
2217 fi
2218
2219 rm -f conftest$ac_cv_exeext
2220 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2221 echo "${ECHO_T}$ac_cv_exeext" >&6
2222
2223 rm -f conftest.$ac_ext
2224 EXEEXT=$ac_cv_exeext
2225 ac_exeext=$EXEEXT
2226 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2227 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2228 if test "${ac_cv_objext+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   cat >conftest.$ac_ext <<_ACEOF
2232 /* confdefs.h.  */
2233 _ACEOF
2234 cat confdefs.h >>conftest.$ac_ext
2235 cat >>conftest.$ac_ext <<_ACEOF
2236 /* end confdefs.h.  */
2237
2238 int
2239 main ()
2240 {
2241
2242   ;
2243   return 0;
2244 }
2245 _ACEOF
2246 rm -f conftest.o conftest.obj
2247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2248   (eval $ac_compile) 2>&5
2249   ac_status=$?
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); }; then
2252   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2253   case $ac_file in
2254     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2255     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2256        break;;
2257   esac
2258 done
2259 else
2260   echo "$as_me: failed program was:" >&5
2261 sed 's/^/| /' conftest.$ac_ext >&5
2262
2263 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2266 See \`config.log' for more details." >&2;}
2267    { (exit 1); exit 1; }; }
2268 fi
2269
2270 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2271 fi
2272 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2273 echo "${ECHO_T}$ac_cv_objext" >&6
2274 OBJEXT=$ac_cv_objext
2275 ac_objext=$OBJEXT
2276 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2277 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2278 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2279   echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281   cat >conftest.$ac_ext <<_ACEOF
2282 /* confdefs.h.  */
2283 _ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h.  */
2287
2288 int
2289 main ()
2290 {
2291 #ifndef __GNUC__
2292        choke me
2293 #endif
2294
2295   ;
2296   return 0;
2297 }
2298 _ACEOF
2299 rm -f conftest.$ac_objext
2300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301   (eval $ac_compile) 2>conftest.er1
2302   ac_status=$?
2303   grep -v '^ *+' conftest.er1 >conftest.err
2304   rm -f conftest.er1
2305   cat conftest.err >&5
2306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307   (exit $ac_status); } &&
2308          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310   (eval $ac_try) 2>&5
2311   ac_status=$?
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); }; } &&
2314          { ac_try='test -s conftest.$ac_objext'
2315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316   (eval $ac_try) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; }; then
2320   ac_compiler_gnu=yes
2321 else
2322   echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2324
2325 ac_compiler_gnu=no
2326 fi
2327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2329
2330 fi
2331 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2332 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2333 GCC=`test $ac_compiler_gnu = yes && echo yes`
2334 ac_test_CFLAGS=${CFLAGS+set}
2335 ac_save_CFLAGS=$CFLAGS
2336 CFLAGS="-g"
2337 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2338 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2339 if test "${ac_cv_prog_cc_g+set}" = set; then
2340   echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342   cat >conftest.$ac_ext <<_ACEOF
2343 /* confdefs.h.  */
2344 _ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h.  */
2348
2349 int
2350 main ()
2351 {
2352
2353   ;
2354   return 0;
2355 }
2356 _ACEOF
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359   (eval $ac_compile) 2>conftest.er1
2360   ac_status=$?
2361   grep -v '^ *+' conftest.er1 >conftest.err
2362   rm -f conftest.er1
2363   cat conftest.err >&5
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); } &&
2366          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368   (eval $ac_try) 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); }; } &&
2372          { ac_try='test -s conftest.$ac_objext'
2373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374   (eval $ac_try) 2>&5
2375   ac_status=$?
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); }; }; then
2378   ac_cv_prog_cc_g=yes
2379 else
2380   echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2382
2383 ac_cv_prog_cc_g=no
2384 fi
2385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2386 fi
2387 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2388 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2389 if test "$ac_test_CFLAGS" = set; then
2390   CFLAGS=$ac_save_CFLAGS
2391 elif test $ac_cv_prog_cc_g = yes; then
2392   if test "$GCC" = yes; then
2393     CFLAGS="-g -O2"
2394   else
2395     CFLAGS="-g"
2396   fi
2397 else
2398   if test "$GCC" = yes; then
2399     CFLAGS="-O2"
2400   else
2401     CFLAGS=
2402   fi
2403 fi
2404 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2405 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2406 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2407   echo $ECHO_N "(cached) $ECHO_C" >&6
2408 else
2409   ac_cv_prog_cc_stdc=no
2410 ac_save_CC=$CC
2411 cat >conftest.$ac_ext <<_ACEOF
2412 /* confdefs.h.  */
2413 _ACEOF
2414 cat confdefs.h >>conftest.$ac_ext
2415 cat >>conftest.$ac_ext <<_ACEOF
2416 /* end confdefs.h.  */
2417 #include <stdarg.h>
2418 #include <stdio.h>
2419 #include <sys/types.h>
2420 #include <sys/stat.h>
2421 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2422 struct buf { int x; };
2423 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2424 static char *e (p, i)
2425      char **p;
2426      int i;
2427 {
2428   return p[i];
2429 }
2430 static char *f (char * (*g) (char **, int), char **p, ...)
2431 {
2432   char *s;
2433   va_list v;
2434   va_start (v,p);
2435   s = g (p, va_arg (v,int));
2436   va_end (v);
2437   return s;
2438 }
2439
2440 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2441    function prototypes and stuff, but not '\xHH' hex character constants.
2442    These don't provoke an error unfortunately, instead are silently treated
2443    as 'x'.  The following induces an error, until -std1 is added to get
2444    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2445    array size at least.  It's necessary to write '\x00'==0 to get something
2446    that's true only with -std1.  */
2447 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2448
2449 int test (int i, double x);
2450 struct s1 {int (*f) (int a);};
2451 struct s2 {int (*f) (double a);};
2452 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2453 int argc;
2454 char **argv;
2455 int
2456 main ()
2457 {
2458 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2459   ;
2460   return 0;
2461 }
2462 _ACEOF
2463 # Don't try gcc -ansi; that turns off useful extensions and
2464 # breaks some systems' header files.
2465 # AIX                   -qlanglvl=ansi
2466 # Ultrix and OSF/1      -std1
2467 # HP-UX 10.20 and later -Ae
2468 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2469 # SVR4                  -Xc -D__EXTENSIONS__
2470 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2471 do
2472   CC="$ac_save_CC $ac_arg"
2473   rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475   (eval $ac_compile) 2>conftest.er1
2476   ac_status=$?
2477   grep -v '^ *+' conftest.er1 >conftest.err
2478   rm -f conftest.er1
2479   cat conftest.err >&5
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); } &&
2482          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484   (eval $ac_try) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; } &&
2488          { ac_try='test -s conftest.$ac_objext'
2489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490   (eval $ac_try) 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }; }; then
2494   ac_cv_prog_cc_stdc=$ac_arg
2495 break
2496 else
2497   echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2499
2500 fi
2501 rm -f conftest.err conftest.$ac_objext
2502 done
2503 rm -f conftest.$ac_ext conftest.$ac_objext
2504 CC=$ac_save_CC
2505
2506 fi
2507
2508 case "x$ac_cv_prog_cc_stdc" in
2509   x|xno)
2510     echo "$as_me:$LINENO: result: none needed" >&5
2511 echo "${ECHO_T}none needed" >&6 ;;
2512   *)
2513     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2514 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2515     CC="$CC $ac_cv_prog_cc_stdc" ;;
2516 esac
2517
2518 # Some people use a C++ compiler to compile C.  Since we use `exit',
2519 # in C++ we need to declare it.  In case someone uses the same compiler
2520 # for both compiling C and C++ we need to have the C++ compiler decide
2521 # the declaration of exit, since it's the most demanding environment.
2522 cat >conftest.$ac_ext <<_ACEOF
2523 #ifndef __cplusplus
2524   choke me
2525 #endif
2526 _ACEOF
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529   (eval $ac_compile) 2>conftest.er1
2530   ac_status=$?
2531   grep -v '^ *+' conftest.er1 >conftest.err
2532   rm -f conftest.er1
2533   cat conftest.err >&5
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); } &&
2536          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538   (eval $ac_try) 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; } &&
2542          { ac_try='test -s conftest.$ac_objext'
2543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544   (eval $ac_try) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }; }; then
2548   for ac_declaration in \
2549    '' \
2550    'extern "C" void std::exit (int) throw (); using std::exit;' \
2551    'extern "C" void std::exit (int); using std::exit;' \
2552    'extern "C" void exit (int) throw ();' \
2553    'extern "C" void exit (int);' \
2554    'void exit (int);'
2555 do
2556   cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h.  */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h.  */
2562 $ac_declaration
2563 #include <stdlib.h>
2564 int
2565 main ()
2566 {
2567 exit (42);
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574   (eval $ac_compile) 2>conftest.er1
2575   ac_status=$?
2576   grep -v '^ *+' conftest.er1 >conftest.err
2577   rm -f conftest.er1
2578   cat conftest.err >&5
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); } &&
2581          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583   (eval $ac_try) 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }; } &&
2587          { ac_try='test -s conftest.$ac_objext'
2588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589   (eval $ac_try) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); }; }; then
2593   :
2594 else
2595   echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2597
2598 continue
2599 fi
2600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2601   cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h.  */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h.  */
2607 $ac_declaration
2608 int
2609 main ()
2610 {
2611 exit (42);
2612   ;
2613   return 0;
2614 }
2615 _ACEOF
2616 rm -f conftest.$ac_objext
2617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618   (eval $ac_compile) 2>conftest.er1
2619   ac_status=$?
2620   grep -v '^ *+' conftest.er1 >conftest.err
2621   rm -f conftest.er1
2622   cat conftest.err >&5
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); } &&
2625          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627   (eval $ac_try) 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); }; } &&
2631          { ac_try='test -s conftest.$ac_objext'
2632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633   (eval $ac_try) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); }; }; then
2637   break
2638 else
2639   echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2641
2642 fi
2643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2644 done
2645 rm -f conftest*
2646 if test -n "$ac_declaration"; then
2647   echo '#ifdef __cplusplus' >>confdefs.h
2648   echo $ac_declaration      >>confdefs.h
2649   echo '#endif'             >>confdefs.h
2650 fi
2651
2652 else
2653   echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2655
2656 fi
2657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658 ac_ext=c
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663 DEPDIR="${am__leading_dot}deps"
2664
2665           ac_config_commands="$ac_config_commands depfiles"
2666
2667
2668 am_make=${MAKE-make}
2669 cat > confinc << 'END'
2670 am__doit:
2671         @echo done
2672 .PHONY: am__doit
2673 END
2674 # If we don't find an include directive, just comment out the code.
2675 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2676 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2677 am__include="#"
2678 am__quote=
2679 _am_result=none
2680 # First try GNU make style include.
2681 echo "include confinc" > confmf
2682 # We grep out `Entering directory' and `Leaving directory'
2683 # messages which can occur if `w' ends up in MAKEFLAGS.
2684 # In particular we don't look at `^make:' because GNU make might
2685 # be invoked under some other name (usually "gmake"), in which
2686 # case it prints its new name instead of `make'.
2687 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2688    am__include=include
2689    am__quote=
2690    _am_result=GNU
2691 fi
2692 # Now try BSD make style include.
2693 if test "$am__include" = "#"; then
2694    echo '.include "confinc"' > confmf
2695    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2696       am__include=.include
2697       am__quote="\""
2698       _am_result=BSD
2699    fi
2700 fi
2701
2702
2703 echo "$as_me:$LINENO: result: $_am_result" >&5
2704 echo "${ECHO_T}$_am_result" >&6
2705 rm -f confinc confmf
2706
2707 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2708 if test "${enable_dependency_tracking+set}" = set; then
2709   enableval="$enable_dependency_tracking"
2710
2711 fi;
2712 if test "x$enable_dependency_tracking" != xno; then
2713   am_depcomp="$ac_aux_dir/depcomp"
2714   AMDEPBACKSLASH='\'
2715 fi
2716
2717
2718 if test "x$enable_dependency_tracking" != xno; then
2719   AMDEP_TRUE=
2720   AMDEP_FALSE='#'
2721 else
2722   AMDEP_TRUE='#'
2723   AMDEP_FALSE=
2724 fi
2725
2726
2727
2728
2729 depcc="$CC"   am_compiler_list=
2730
2731 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2732 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2733 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2734   echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2737   # We make a subdir and do the tests there.  Otherwise we can end up
2738   # making bogus files that we don't know about and never remove.  For
2739   # instance it was reported that on HP-UX the gcc test will end up
2740   # making a dummy file named `D' -- because `-MD' means `put the output
2741   # in D'.
2742   mkdir conftest.dir
2743   # Copy depcomp to subdir because otherwise we won't find it if we're
2744   # using a relative directory.
2745   cp "$am_depcomp" conftest.dir
2746   cd conftest.dir
2747   # We will build objects and dependencies in a subdirectory because
2748   # it helps to detect inapplicable dependency modes.  For instance
2749   # both Tru64's cc and ICC support -MD to output dependencies as a
2750   # side effect of compilation, but ICC will put the dependencies in
2751   # the current directory while Tru64 will put them in the object
2752   # directory.
2753   mkdir sub
2754
2755   am_cv_CC_dependencies_compiler_type=none
2756   if test "$am_compiler_list" = ""; then
2757      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2758   fi
2759   for depmode in $am_compiler_list; do
2760     # Setup a source with many dependencies, because some compilers
2761     # like to wrap large dependency lists on column 80 (with \), and
2762     # we should not choose a depcomp mode which is confused by this.
2763     #
2764     # We need to recreate these files for each test, as the compiler may
2765     # overwrite some of them when testing with obscure command lines.
2766     # This happens at least with the AIX C compiler.
2767     : > sub/conftest.c
2768     for i in 1 2 3 4 5 6; do
2769       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2770       : > sub/conftst$i.h
2771     done
2772     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2773
2774     case $depmode in
2775     nosideeffect)
2776       # after this tag, mechanisms are not by side-effect, so they'll
2777       # only be used when explicitly requested
2778       if test "x$enable_dependency_tracking" = xyes; then
2779         continue
2780       else
2781         break
2782       fi
2783       ;;
2784     none) break ;;
2785     esac
2786     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2787     # mode.  It turns out that the SunPro C++ compiler does not properly
2788     # handle `-M -o', and we need to detect this.
2789     if depmode=$depmode \
2790        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2791        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2792        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2793          >/dev/null 2>conftest.err &&
2794        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2795        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2796        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2797       # icc doesn't choke on unknown options, it will just issue warnings
2798       # (even with -Werror).  So we grep stderr for any message
2799       # that says an option was ignored.
2800       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2801         am_cv_CC_dependencies_compiler_type=$depmode
2802         break
2803       fi
2804     fi
2805   done
2806
2807   cd ..
2808   rm -rf conftest.dir
2809 else
2810   am_cv_CC_dependencies_compiler_type=none
2811 fi
2812
2813 fi
2814 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2815 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2816 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2817
2818
2819
2820 if
2821   test "x$enable_dependency_tracking" != xno \
2822   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2823   am__fastdepCC_TRUE=
2824   am__fastdepCC_FALSE='#'
2825 else
2826   am__fastdepCC_TRUE='#'
2827   am__fastdepCC_FALSE=
2828 fi
2829
2830
2831
2832
2833         MKINSTALLDIRS=
2834   if test -n "$ac_aux_dir"; then
2835     case "$ac_aux_dir" in
2836       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
2837       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
2838     esac
2839   fi
2840   if test -z "$MKINSTALLDIRS"; then
2841     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2842   fi
2843
2844
2845
2846   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2847 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2848     # Check whether --enable-nls or --disable-nls was given.
2849 if test "${enable_nls+set}" = set; then
2850   enableval="$enable_nls"
2851   USE_NLS=$enableval
2852 else
2853   USE_NLS=yes
2854 fi;
2855   echo "$as_me:$LINENO: result: $USE_NLS" >&5
2856 echo "${ECHO_T}$USE_NLS" >&6
2857
2858
2859
2860
2861
2862
2863 # Prepare PATH_SEPARATOR.
2864 # The user is always right.
2865 if test "${PATH_SEPARATOR+set}" != set; then
2866   echo "#! /bin/sh" >conf$$.sh
2867   echo  "exit 0"   >>conf$$.sh
2868   chmod +x conf$$.sh
2869   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2870     PATH_SEPARATOR=';'
2871   else
2872     PATH_SEPARATOR=:
2873   fi
2874   rm -f conf$$.sh
2875 fi
2876
2877 # Find out how to test for executable files. Don't use a zero-byte file,
2878 # as systems may use methods other than mode bits to determine executability.
2879 cat >conf$$.file <<_ASEOF
2880 #! /bin/sh
2881 exit 0
2882 _ASEOF
2883 chmod +x conf$$.file
2884 if test -x conf$$.file >/dev/null 2>&1; then
2885   ac_executable_p="test -x"
2886 else
2887   ac_executable_p="test -f"
2888 fi
2889 rm -f conf$$.file
2890
2891 # Extract the first word of "msgfmt", so it can be a program name with args.
2892 set dummy msgfmt; ac_word=$2
2893 echo "$as_me:$LINENO: checking for $ac_word" >&5
2894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2895 if test "${ac_cv_path_MSGFMT+set}" = set; then
2896   echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898   case "$MSGFMT" in
2899   [\\/]* | ?:[\\/]*)
2900     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2901     ;;
2902   *)
2903     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2904     for ac_dir in $PATH; do
2905       IFS="$ac_save_IFS"
2906       test -z "$ac_dir" && ac_dir=.
2907       for ac_exec_ext in '' $ac_executable_extensions; do
2908         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2909           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2910      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2911             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2912             break 2
2913           fi
2914         fi
2915       done
2916     done
2917     IFS="$ac_save_IFS"
2918   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2919     ;;
2920 esac
2921 fi
2922 MSGFMT="$ac_cv_path_MSGFMT"
2923 if test "$MSGFMT" != ":"; then
2924   echo "$as_me:$LINENO: result: $MSGFMT" >&5
2925 echo "${ECHO_T}$MSGFMT" >&6
2926 else
2927   echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2929 fi
2930
2931   # Extract the first word of "gmsgfmt", so it can be a program name with args.
2932 set dummy gmsgfmt; ac_word=$2
2933 echo "$as_me:$LINENO: checking for $ac_word" >&5
2934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2935 if test "${ac_cv_path_GMSGFMT+set}" = set; then
2936   echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938   case $GMSGFMT in
2939   [\\/]* | ?:[\\/]*)
2940   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2941   ;;
2942   *)
2943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946   IFS=$as_save_IFS
2947   test -z "$as_dir" && as_dir=.
2948   for ac_exec_ext in '' $ac_executable_extensions; do
2949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2952     break 2
2953   fi
2954 done
2955 done
2956
2957   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2958   ;;
2959 esac
2960 fi
2961 GMSGFMT=$ac_cv_path_GMSGFMT
2962
2963 if test -n "$GMSGFMT"; then
2964   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2965 echo "${ECHO_T}$GMSGFMT" >&6
2966 else
2967   echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6
2969 fi
2970
2971
2972
2973 # Prepare PATH_SEPARATOR.
2974 # The user is always right.
2975 if test "${PATH_SEPARATOR+set}" != set; then
2976   echo "#! /bin/sh" >conf$$.sh
2977   echo  "exit 0"   >>conf$$.sh
2978   chmod +x conf$$.sh
2979   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2980     PATH_SEPARATOR=';'
2981   else
2982     PATH_SEPARATOR=:
2983   fi
2984   rm -f conf$$.sh
2985 fi
2986
2987 # Find out how to test for executable files. Don't use a zero-byte file,
2988 # as systems may use methods other than mode bits to determine executability.
2989 cat >conf$$.file <<_ASEOF
2990 #! /bin/sh
2991 exit 0
2992 _ASEOF
2993 chmod +x conf$$.file
2994 if test -x conf$$.file >/dev/null 2>&1; then
2995   ac_executable_p="test -x"
2996 else
2997   ac_executable_p="test -f"
2998 fi
2999 rm -f conf$$.file
3000
3001 # Extract the first word of "xgettext", so it can be a program name with args.
3002 set dummy xgettext; ac_word=$2
3003 echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005 if test "${ac_cv_path_XGETTEXT+set}" = set; then
3006   echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008   case "$XGETTEXT" in
3009   [\\/]* | ?:[\\/]*)
3010     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3011     ;;
3012   *)
3013     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3014     for ac_dir in $PATH; do
3015       IFS="$ac_save_IFS"
3016       test -z "$ac_dir" && ac_dir=.
3017       for ac_exec_ext in '' $ac_executable_extensions; do
3018         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3019           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3020      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3021             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3022             break 2
3023           fi
3024         fi
3025       done
3026     done
3027     IFS="$ac_save_IFS"
3028   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3029     ;;
3030 esac
3031 fi
3032 XGETTEXT="$ac_cv_path_XGETTEXT"
3033 if test "$XGETTEXT" != ":"; then
3034   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3035 echo "${ECHO_T}$XGETTEXT" >&6
3036 else
3037   echo "$as_me:$LINENO: result: no" >&5
3038 echo "${ECHO_T}no" >&6
3039 fi
3040
3041     rm -f messages.po
3042
3043
3044 # Prepare PATH_SEPARATOR.
3045 # The user is always right.
3046 if test "${PATH_SEPARATOR+set}" != set; then
3047   echo "#! /bin/sh" >conf$$.sh
3048   echo  "exit 0"   >>conf$$.sh
3049   chmod +x conf$$.sh
3050   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3051     PATH_SEPARATOR=';'
3052   else
3053     PATH_SEPARATOR=:
3054   fi
3055   rm -f conf$$.sh
3056 fi
3057
3058 # Find out how to test for executable files. Don't use a zero-byte file,
3059 # as systems may use methods other than mode bits to determine executability.
3060 cat >conf$$.file <<_ASEOF
3061 #! /bin/sh
3062 exit 0
3063 _ASEOF
3064 chmod +x conf$$.file
3065 if test -x conf$$.file >/dev/null 2>&1; then
3066   ac_executable_p="test -x"
3067 else
3068   ac_executable_p="test -f"
3069 fi
3070 rm -f conf$$.file
3071
3072 # Extract the first word of "msgmerge", so it can be a program name with args.
3073 set dummy msgmerge; ac_word=$2
3074 echo "$as_me:$LINENO: checking for $ac_word" >&5
3075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076 if test "${ac_cv_path_MSGMERGE+set}" = set; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   case "$MSGMERGE" in
3080   [\\/]* | ?:[\\/]*)
3081     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3082     ;;
3083   *)
3084     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3085     for ac_dir in $PATH; do
3086       IFS="$ac_save_IFS"
3087       test -z "$ac_dir" && ac_dir=.
3088       for ac_exec_ext in '' $ac_executable_extensions; do
3089         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3090           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3091             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3092             break 2
3093           fi
3094         fi
3095       done
3096     done
3097     IFS="$ac_save_IFS"
3098   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3099     ;;
3100 esac
3101 fi
3102 MSGMERGE="$ac_cv_path_MSGMERGE"
3103 if test "$MSGMERGE" != ":"; then
3104   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3105 echo "${ECHO_T}$MSGMERGE" >&6
3106 else
3107   echo "$as_me:$LINENO: result: no" >&5
3108 echo "${ECHO_T}no" >&6
3109 fi
3110
3111
3112       if test "$GMSGFMT" != ":"; then
3113             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3114        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3115       : ;
3116     else
3117       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3118       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3119 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3120       GMSGFMT=":"
3121     fi
3122   fi
3123
3124       if test "$XGETTEXT" != ":"; then
3125             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3126        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3127       : ;
3128     else
3129       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3130 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3131       XGETTEXT=":"
3132     fi
3133         rm -f messages.po
3134   fi
3135
3136             ac_config_commands="$ac_config_commands default-1"
3137
3138
3139 # Make sure we can run config.sub.
3140 $ac_config_sub sun4 >/dev/null 2>&1 ||
3141   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3142 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3143    { (exit 1); exit 1; }; }
3144
3145 echo "$as_me:$LINENO: checking build system type" >&5
3146 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3147 if test "${ac_cv_build+set}" = set; then
3148   echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150   ac_cv_build_alias=$build_alias
3151 test -z "$ac_cv_build_alias" &&
3152   ac_cv_build_alias=`$ac_config_guess`
3153 test -z "$ac_cv_build_alias" &&
3154   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3155 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3156    { (exit 1); exit 1; }; }
3157 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3158   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3159 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3160    { (exit 1); exit 1; }; }
3161
3162 fi
3163 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3164 echo "${ECHO_T}$ac_cv_build" >&6
3165 build=$ac_cv_build
3166 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3167 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3168 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3169
3170
3171 echo "$as_me:$LINENO: checking host system type" >&5
3172 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3173 if test "${ac_cv_host+set}" = set; then
3174   echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176   ac_cv_host_alias=$host_alias
3177 test -z "$ac_cv_host_alias" &&
3178   ac_cv_host_alias=$ac_cv_build_alias
3179 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3180   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3181 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3182    { (exit 1); exit 1; }; }
3183
3184 fi
3185 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3186 echo "${ECHO_T}$ac_cv_host" >&6
3187 host=$ac_cv_host
3188 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3189 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3190 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3191
3192
3193 if test -n "$ac_tool_prefix"; then
3194   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3195 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3196 echo "$as_me:$LINENO: checking for $ac_word" >&5
3197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3198 if test "${ac_cv_prog_RANLIB+set}" = set; then
3199   echo $ECHO_N "(cached) $ECHO_C" >&6
3200 else
3201   if test -n "$RANLIB"; then
3202   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3206 do
3207   IFS=$as_save_IFS
3208   test -z "$as_dir" && as_dir=.
3209   for ac_exec_ext in '' $ac_executable_extensions; do
3210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213     break 2
3214   fi
3215 done
3216 done
3217
3218 fi
3219 fi
3220 RANLIB=$ac_cv_prog_RANLIB
3221 if test -n "$RANLIB"; then
3222   echo "$as_me:$LINENO: result: $RANLIB" >&5
3223 echo "${ECHO_T}$RANLIB" >&6
3224 else
3225   echo "$as_me:$LINENO: result: no" >&5
3226 echo "${ECHO_T}no" >&6
3227 fi
3228
3229 fi
3230 if test -z "$ac_cv_prog_RANLIB"; then
3231   ac_ct_RANLIB=$RANLIB
3232   # Extract the first word of "ranlib", so it can be a program name with args.
3233 set dummy ranlib; ac_word=$2
3234 echo "$as_me:$LINENO: checking for $ac_word" >&5
3235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3236 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3237   echo $ECHO_N "(cached) $ECHO_C" >&6
3238 else
3239   if test -n "$ac_ct_RANLIB"; then
3240   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3241 else
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 for as_dir in $PATH
3244 do
3245   IFS=$as_save_IFS
3246   test -z "$as_dir" && as_dir=.
3247   for ac_exec_ext in '' $ac_executable_extensions; do
3248   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249     ac_cv_prog_ac_ct_RANLIB="ranlib"
3250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251     break 2
3252   fi
3253 done
3254 done
3255
3256   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3257 fi
3258 fi
3259 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3260 if test -n "$ac_ct_RANLIB"; then
3261   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3262 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3263 else
3264   echo "$as_me:$LINENO: result: no" >&5
3265 echo "${ECHO_T}no" >&6
3266 fi
3267
3268   RANLIB=$ac_ct_RANLIB
3269 else
3270   RANLIB="$ac_cv_prog_RANLIB"
3271 fi
3272
3273
3274
3275         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3276 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3277 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3278   echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280   ac_check_lib_save_LIBS=$LIBS
3281 LIBS="-lcposix  $LIBS"
3282 cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h.  */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h.  */
3288
3289 /* Override any gcc2 internal prototype to avoid an error.  */
3290 #ifdef __cplusplus
3291 extern "C"
3292 #endif
3293 /* We use char because int might match the return type of a gcc2
3294    builtin and then its argument prototype would still apply.  */
3295 char strerror ();
3296 int
3297 main ()
3298 {
3299 strerror ();
3300   ;
3301   return 0;
3302 }
3303 _ACEOF
3304 rm -f conftest.$ac_objext conftest$ac_exeext
3305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3306   (eval $ac_link) 2>conftest.er1
3307   ac_status=$?
3308   grep -v '^ *+' conftest.er1 >conftest.err
3309   rm -f conftest.er1
3310   cat conftest.err >&5
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); } &&
3313          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315   (eval $ac_try) 2>&5
3316   ac_status=$?
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); }; } &&
3319          { ac_try='test -s conftest$ac_exeext'
3320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321   (eval $ac_try) 2>&5
3322   ac_status=$?
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); }; }; then
3325   ac_cv_lib_cposix_strerror=yes
3326 else
3327   echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330 ac_cv_lib_cposix_strerror=no
3331 fi
3332 rm -f conftest.err conftest.$ac_objext \
3333       conftest$ac_exeext conftest.$ac_ext
3334 LIBS=$ac_check_lib_save_LIBS
3335 fi
3336 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3337 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3338 if test $ac_cv_lib_cposix_strerror = yes; then
3339   LIBS="$LIBS -lcposix"
3340 fi
3341
3342
3343
3344 ac_ext=c
3345 ac_cpp='$CPP $CPPFLAGS'
3346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3350 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3351 # On Suns, sometimes $CPP names a directory.
3352 if test -n "$CPP" && test -d "$CPP"; then
3353   CPP=
3354 fi
3355 if test -z "$CPP"; then
3356   if test "${ac_cv_prog_CPP+set}" = set; then
3357   echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359       # Double quotes because CPP needs to be expanded
3360     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3361     do
3362       ac_preproc_ok=false
3363 for ac_c_preproc_warn_flag in '' yes
3364 do
3365   # Use a header file that comes with gcc, so configuring glibc
3366   # with a fresh cross-compiler works.
3367   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3368   # <limits.h> exists even on freestanding compilers.
3369   # On the NeXT, cc -E runs the code through the compiler's parser,
3370   # not just through cpp. "Syntax error" is here to catch this case.
3371   cat >conftest.$ac_ext <<_ACEOF
3372 /* confdefs.h.  */
3373 _ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h.  */
3377 #ifdef __STDC__
3378 # include <limits.h>
3379 #else
3380 # include <assert.h>
3381 #endif
3382                      Syntax error
3383 _ACEOF
3384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3385   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3386   ac_status=$?
3387   grep -v '^ *+' conftest.er1 >conftest.err
3388   rm -f conftest.er1
3389   cat conftest.err >&5
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } >/dev/null; then
3392   if test -s conftest.err; then
3393     ac_cpp_err=$ac_c_preproc_warn_flag
3394     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3395   else
3396     ac_cpp_err=
3397   fi
3398 else
3399   ac_cpp_err=yes
3400 fi
3401 if test -z "$ac_cpp_err"; then
3402   :
3403 else
3404   echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3406
3407   # Broken: fails on valid input.
3408 continue
3409 fi
3410 rm -f conftest.err conftest.$ac_ext
3411
3412   # OK, works on sane cases.  Now check whether non-existent headers
3413   # can be detected and how.
3414   cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420 #include <ac_nonexistent.h>
3421 _ACEOF
3422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3423   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3424   ac_status=$?
3425   grep -v '^ *+' conftest.er1 >conftest.err
3426   rm -f conftest.er1
3427   cat conftest.err >&5
3428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429   (exit $ac_status); } >/dev/null; then
3430   if test -s conftest.err; then
3431     ac_cpp_err=$ac_c_preproc_warn_flag
3432     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3433   else
3434     ac_cpp_err=
3435   fi
3436 else
3437   ac_cpp_err=yes
3438 fi
3439 if test -z "$ac_cpp_err"; then
3440   # Broken: success on invalid input.
3441 continue
3442 else
3443   echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3445
3446   # Passes both tests.
3447 ac_preproc_ok=:
3448 break
3449 fi
3450 rm -f conftest.err conftest.$ac_ext
3451
3452 done
3453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3454 rm -f conftest.err conftest.$ac_ext
3455 if $ac_preproc_ok; then
3456   break
3457 fi
3458
3459     done
3460     ac_cv_prog_CPP=$CPP
3461
3462 fi
3463   CPP=$ac_cv_prog_CPP
3464 else
3465   ac_cv_prog_CPP=$CPP
3466 fi
3467 echo "$as_me:$LINENO: result: $CPP" >&5
3468 echo "${ECHO_T}$CPP" >&6
3469 ac_preproc_ok=false
3470 for ac_c_preproc_warn_flag in '' yes
3471 do
3472   # Use a header file that comes with gcc, so configuring glibc
3473   # with a fresh cross-compiler works.
3474   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3475   # <limits.h> exists even on freestanding compilers.
3476   # On the NeXT, cc -E runs the code through the compiler's parser,
3477   # not just through cpp. "Syntax error" is here to catch this case.
3478   cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h.  */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h.  */
3484 #ifdef __STDC__
3485 # include <limits.h>
3486 #else
3487 # include <assert.h>
3488 #endif
3489                      Syntax error
3490 _ACEOF
3491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3492   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3493   ac_status=$?
3494   grep -v '^ *+' conftest.er1 >conftest.err
3495   rm -f conftest.er1
3496   cat conftest.err >&5
3497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498   (exit $ac_status); } >/dev/null; then
3499   if test -s conftest.err; then
3500     ac_cpp_err=$ac_c_preproc_warn_flag
3501     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3502   else
3503     ac_cpp_err=
3504   fi
3505 else
3506   ac_cpp_err=yes
3507 fi
3508 if test -z "$ac_cpp_err"; then
3509   :
3510 else
3511   echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3513
3514   # Broken: fails on valid input.
3515 continue
3516 fi
3517 rm -f conftest.err conftest.$ac_ext
3518
3519   # OK, works on sane cases.  Now check whether non-existent headers
3520   # can be detected and how.
3521   cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h.  */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h.  */
3527 #include <ac_nonexistent.h>
3528 _ACEOF
3529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3530   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3531   ac_status=$?
3532   grep -v '^ *+' conftest.er1 >conftest.err
3533   rm -f conftest.er1
3534   cat conftest.err >&5
3535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536   (exit $ac_status); } >/dev/null; then
3537   if test -s conftest.err; then
3538     ac_cpp_err=$ac_c_preproc_warn_flag
3539     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3540   else
3541     ac_cpp_err=
3542   fi
3543 else
3544   ac_cpp_err=yes
3545 fi
3546 if test -z "$ac_cpp_err"; then
3547   # Broken: success on invalid input.
3548 continue
3549 else
3550   echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3552
3553   # Passes both tests.
3554 ac_preproc_ok=:
3555 break
3556 fi
3557 rm -f conftest.err conftest.$ac_ext
3558
3559 done
3560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561 rm -f conftest.err conftest.$ac_ext
3562 if $ac_preproc_ok; then
3563   :
3564 else
3565   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3566 See \`config.log' for more details." >&5
3567 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3568 See \`config.log' for more details." >&2;}
3569    { (exit 1); exit 1; }; }
3570 fi
3571
3572 ac_ext=c
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578
3579 echo "$as_me:$LINENO: checking for egrep" >&5
3580 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3581 if test "${ac_cv_prog_egrep+set}" = set; then
3582   echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3585     then ac_cv_prog_egrep='grep -E'
3586     else ac_cv_prog_egrep='egrep'
3587     fi
3588 fi
3589 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3590 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3591  EGREP=$ac_cv_prog_egrep
3592
3593
3594 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3595 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3596 if test "${ac_cv_header_stdc+set}" = set; then
3597   echo $ECHO_N "(cached) $ECHO_C" >&6
3598 else
3599   cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h.  */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h.  */
3605 #include <stdlib.h>
3606 #include <stdarg.h>
3607 #include <string.h>
3608 #include <float.h>
3609
3610 int
3611 main ()
3612 {
3613
3614   ;
3615   return 0;
3616 }
3617 _ACEOF
3618 rm -f conftest.$ac_objext
3619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3620   (eval $ac_compile) 2>conftest.er1
3621   ac_status=$?
3622   grep -v '^ *+' conftest.er1 >conftest.err
3623   rm -f conftest.er1
3624   cat conftest.err >&5
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); } &&
3627          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629   (eval $ac_try) 2>&5
3630   ac_status=$?
3631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632   (exit $ac_status); }; } &&
3633          { ac_try='test -s conftest.$ac_objext'
3634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635   (eval $ac_try) 2>&5
3636   ac_status=$?
3637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638   (exit $ac_status); }; }; then
3639   ac_cv_header_stdc=yes
3640 else
3641   echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3643
3644 ac_cv_header_stdc=no
3645 fi
3646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3647
3648 if test $ac_cv_header_stdc = yes; then
3649   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3650   cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h.  */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h.  */
3656 #include <string.h>
3657
3658 _ACEOF
3659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3660   $EGREP "memchr" >/dev/null 2>&1; then
3661   :
3662 else
3663   ac_cv_header_stdc=no
3664 fi
3665 rm -f conftest*
3666
3667 fi
3668
3669 if test $ac_cv_header_stdc = yes; then
3670   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3671   cat >conftest.$ac_ext <<_ACEOF
3672 /* confdefs.h.  */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h.  */
3677 #include <stdlib.h>
3678
3679 _ACEOF
3680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3681   $EGREP "free" >/dev/null 2>&1; then
3682   :
3683 else
3684   ac_cv_header_stdc=no
3685 fi
3686 rm -f conftest*
3687
3688 fi
3689
3690 if test $ac_cv_header_stdc = yes; then
3691   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3692   if test "$cross_compiling" = yes; then
3693   :
3694 else
3695   cat >conftest.$ac_ext <<_ACEOF
3696 /* confdefs.h.  */
3697 _ACEOF
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h.  */
3701 #include <ctype.h>
3702 #if ((' ' & 0x0FF) == 0x020)
3703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3705 #else
3706 # define ISLOWER(c) \
3707                    (('a' <= (c) && (c) <= 'i') \
3708                      || ('j' <= (c) && (c) <= 'r') \
3709                      || ('s' <= (c) && (c) <= 'z'))
3710 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3711 #endif
3712
3713 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3714 int
3715 main ()
3716 {
3717   int i;
3718   for (i = 0; i < 256; i++)
3719     if (XOR (islower (i), ISLOWER (i))
3720         || toupper (i) != TOUPPER (i))
3721       exit(2);
3722   exit (0);
3723 }
3724 _ACEOF
3725 rm -f conftest$ac_exeext
3726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3727   (eval $ac_link) 2>&5
3728   ac_status=$?
3729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732   (eval $ac_try) 2>&5
3733   ac_status=$?
3734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); }; }; then
3736   :
3737 else
3738   echo "$as_me: program exited with status $ac_status" >&5
3739 echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3741
3742 ( exit $ac_status )
3743 ac_cv_header_stdc=no
3744 fi
3745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3746 fi
3747 fi
3748 fi
3749 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3750 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3751 if test $ac_cv_header_stdc = yes; then
3752
3753 cat >>confdefs.h <<\_ACEOF
3754 #define STDC_HEADERS 1
3755 _ACEOF
3756
3757 fi
3758
3759 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3760 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3761 if test "${ac_cv_c_const+set}" = set; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764   cat >conftest.$ac_ext <<_ACEOF
3765 /* confdefs.h.  */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h.  */
3770
3771 int
3772 main ()
3773 {
3774 /* FIXME: Include the comments suggested by Paul. */
3775 #ifndef __cplusplus
3776   /* Ultrix mips cc rejects this.  */
3777   typedef int charset[2];
3778   const charset x;
3779   /* SunOS 4.1.1 cc rejects this.  */
3780   char const *const *ccp;
3781   char **p;
3782   /* NEC SVR4.0.2 mips cc rejects this.  */
3783   struct point {int x, y;};
3784   static struct point const zero = {0,0};
3785   /* AIX XL C 1.02.0.0 rejects this.
3786      It does not let you subtract one const X* pointer from another in
3787      an arm of an if-expression whose if-part is not a constant
3788      expression */
3789   const char *g = "string";
3790   ccp = &g + (g ? g-g : 0);
3791   /* HPUX 7.0 cc rejects these. */
3792   ++ccp;
3793   p = (char**) ccp;
3794   ccp = (char const *const *) p;
3795   { /* SCO 3.2v4 cc rejects this.  */
3796     char *t;
3797     char const *s = 0 ? (char *) 0 : (char const *) 0;
3798
3799     *t++ = 0;
3800   }
3801   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3802     int x[] = {25, 17};
3803     const int *foo = &x[0];
3804     ++foo;
3805   }
3806   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3807     typedef const int *iptr;
3808     iptr p = 0;
3809     ++p;
3810   }
3811   { /* AIX XL C 1.02.0.0 rejects this saying
3812        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3813     struct s { int j; const int *ap[3]; };
3814     struct s *b; b->j = 5;
3815   }
3816   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3817     const int foo = 10;
3818   }
3819 #endif
3820
3821   ;
3822   return 0;
3823 }
3824 _ACEOF
3825 rm -f conftest.$ac_objext
3826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3827   (eval $ac_compile) 2>conftest.er1
3828   ac_status=$?
3829   grep -v '^ *+' conftest.er1 >conftest.err
3830   rm -f conftest.er1
3831   cat conftest.err >&5
3832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833   (exit $ac_status); } &&
3834          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836   (eval $ac_try) 2>&5
3837   ac_status=$?
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); }; } &&
3840          { ac_try='test -s conftest.$ac_objext'
3841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842   (eval $ac_try) 2>&5
3843   ac_status=$?
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); }; }; then
3846   ac_cv_c_const=yes
3847 else
3848   echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3850
3851 ac_cv_c_const=no
3852 fi
3853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3854 fi
3855 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3856 echo "${ECHO_T}$ac_cv_c_const" >&6
3857 if test $ac_cv_c_const = no; then
3858
3859 cat >>confdefs.h <<\_ACEOF
3860 #define const
3861 _ACEOF
3862
3863 fi
3864
3865 echo "$as_me:$LINENO: checking for inline" >&5
3866 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3867 if test "${ac_cv_c_inline+set}" = set; then
3868   echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870   ac_cv_c_inline=no
3871 for ac_kw in inline __inline__ __inline; do
3872   cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h.  */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h.  */
3878 #ifndef __cplusplus
3879 typedef int foo_t;
3880 static $ac_kw foo_t static_foo () {return 0; }
3881 $ac_kw foo_t foo () {return 0; }
3882 #endif
3883
3884 _ACEOF
3885 rm -f conftest.$ac_objext
3886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3887   (eval $ac_compile) 2>conftest.er1
3888   ac_status=$?
3889   grep -v '^ *+' conftest.er1 >conftest.err
3890   rm -f conftest.er1
3891   cat conftest.err >&5
3892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893   (exit $ac_status); } &&
3894          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896   (eval $ac_try) 2>&5
3897   ac_status=$?
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); }; } &&
3900          { ac_try='test -s conftest.$ac_objext'
3901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902   (eval $ac_try) 2>&5
3903   ac_status=$?
3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); }; }; then
3906   ac_cv_c_inline=$ac_kw; break
3907 else
3908   echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911 fi
3912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3913 done
3914
3915 fi
3916 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3917 echo "${ECHO_T}$ac_cv_c_inline" >&6
3918
3919
3920 case $ac_cv_c_inline in
3921   inline | yes) ;;
3922   *)
3923     case $ac_cv_c_inline in
3924       no) ac_val=;;
3925       *) ac_val=$ac_cv_c_inline;;
3926     esac
3927     cat >>confdefs.h <<_ACEOF
3928 #ifndef __cplusplus
3929 #define inline $ac_val
3930 #endif
3931 _ACEOF
3932     ;;
3933 esac
3934
3935 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3946                   inttypes.h stdint.h unistd.h
3947 do
3948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3949 echo "$as_me:$LINENO: checking for $ac_header" >&5
3950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3952   echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954   cat >conftest.$ac_ext <<_ACEOF
3955 /* confdefs.h.  */
3956 _ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h.  */
3960 $ac_includes_default
3961
3962 #include <$ac_header>
3963 _ACEOF
3964 rm -f conftest.$ac_objext
3965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966   (eval $ac_compile) 2>conftest.er1
3967   ac_status=$?
3968   grep -v '^ *+' conftest.er1 >conftest.err
3969   rm -f conftest.er1
3970   cat conftest.err >&5
3971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972   (exit $ac_status); } &&
3973          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975   (eval $ac_try) 2>&5
3976   ac_status=$?
3977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978   (exit $ac_status); }; } &&
3979          { ac_try='test -s conftest.$ac_objext'
3980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981   (eval $ac_try) 2>&5
3982   ac_status=$?
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); }; }; then
3985   eval "$as_ac_Header=yes"
3986 else
3987   echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3989
3990 eval "$as_ac_Header=no"
3991 fi
3992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3993 fi
3994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3997   cat >>confdefs.h <<_ACEOF
3998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3999 _ACEOF
4000
4001 fi
4002
4003 done
4004
4005
4006 echo "$as_me:$LINENO: checking for off_t" >&5
4007 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4008 if test "${ac_cv_type_off_t+set}" = set; then
4009   echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011   cat >conftest.$ac_ext <<_ACEOF
4012 /* confdefs.h.  */
4013 _ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h.  */
4017 $ac_includes_default
4018 int
4019 main ()
4020 {
4021 if ((off_t *) 0)
4022   return 0;
4023 if (sizeof (off_t))
4024   return 0;
4025   ;
4026   return 0;
4027 }
4028 _ACEOF
4029 rm -f conftest.$ac_objext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031   (eval $ac_compile) 2>conftest.er1
4032   ac_status=$?
4033   grep -v '^ *+' conftest.er1 >conftest.err
4034   rm -f conftest.er1
4035   cat conftest.err >&5
4036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); } &&
4038          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040   (eval $ac_try) 2>&5
4041   ac_status=$?
4042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043   (exit $ac_status); }; } &&
4044          { ac_try='test -s conftest.$ac_objext'
4045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046   (eval $ac_try) 2>&5
4047   ac_status=$?
4048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049   (exit $ac_status); }; }; then
4050   ac_cv_type_off_t=yes
4051 else
4052   echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4054
4055 ac_cv_type_off_t=no
4056 fi
4057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4058 fi
4059 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4060 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4061 if test $ac_cv_type_off_t = yes; then
4062   :
4063 else
4064
4065 cat >>confdefs.h <<_ACEOF
4066 #define off_t long
4067 _ACEOF
4068
4069 fi
4070
4071 echo "$as_me:$LINENO: checking for size_t" >&5
4072 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4073 if test "${ac_cv_type_size_t+set}" = set; then
4074   echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076   cat >conftest.$ac_ext <<_ACEOF
4077 /* confdefs.h.  */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h.  */
4082 $ac_includes_default
4083 int
4084 main ()
4085 {
4086 if ((size_t *) 0)
4087   return 0;
4088 if (sizeof (size_t))
4089   return 0;
4090   ;
4091   return 0;
4092 }
4093 _ACEOF
4094 rm -f conftest.$ac_objext
4095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4096   (eval $ac_compile) 2>conftest.er1
4097   ac_status=$?
4098   grep -v '^ *+' conftest.er1 >conftest.err
4099   rm -f conftest.er1
4100   cat conftest.err >&5
4101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102   (exit $ac_status); } &&
4103          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105   (eval $ac_try) 2>&5
4106   ac_status=$?
4107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108   (exit $ac_status); }; } &&
4109          { ac_try='test -s conftest.$ac_objext'
4110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111   (eval $ac_try) 2>&5
4112   ac_status=$?
4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114   (exit $ac_status); }; }; then
4115   ac_cv_type_size_t=yes
4116 else
4117   echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4119
4120 ac_cv_type_size_t=no
4121 fi
4122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4123 fi
4124 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4125 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4126 if test $ac_cv_type_size_t = yes; then
4127   :
4128 else
4129
4130 cat >>confdefs.h <<_ACEOF
4131 #define size_t unsigned
4132 _ACEOF
4133
4134 fi
4135
4136 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4137 # for constant arguments.  Useless!
4138 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4139 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4140 if test "${ac_cv_working_alloca_h+set}" = set; then
4141   echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143   cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h.  */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h.  */
4149 #include <alloca.h>
4150 int
4151 main ()
4152 {
4153 char *p = (char *) alloca (2 * sizeof (int));
4154   ;
4155   return 0;
4156 }
4157 _ACEOF
4158 rm -f conftest.$ac_objext conftest$ac_exeext
4159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4160   (eval $ac_link) 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); } &&
4167          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169   (eval $ac_try) 2>&5
4170   ac_status=$?
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); }; } &&
4173          { ac_try='test -s conftest$ac_exeext'
4174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175   (eval $ac_try) 2>&5
4176   ac_status=$?
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); }; }; then
4179   ac_cv_working_alloca_h=yes
4180 else
4181   echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4183
4184 ac_cv_working_alloca_h=no
4185 fi
4186 rm -f conftest.err conftest.$ac_objext \
4187       conftest$ac_exeext conftest.$ac_ext
4188 fi
4189 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4190 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4191 if test $ac_cv_working_alloca_h = yes; then
4192
4193 cat >>confdefs.h <<\_ACEOF
4194 #define HAVE_ALLOCA_H 1
4195 _ACEOF
4196
4197 fi
4198
4199 echo "$as_me:$LINENO: checking for alloca" >&5
4200 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4201 if test "${ac_cv_func_alloca_works+set}" = set; then
4202   echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204   cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 #ifdef __GNUC__
4211 # define alloca __builtin_alloca
4212 #else
4213 # ifdef _MSC_VER
4214 #  include <malloc.h>
4215 #  define alloca _alloca
4216 # else
4217 #  if HAVE_ALLOCA_H
4218 #   include <alloca.h>
4219 #  else
4220 #   ifdef _AIX
4221  #pragma alloca
4222 #   else
4223 #    ifndef alloca /* predefined by HP cc +Olibcalls */
4224 char *alloca ();
4225 #    endif
4226 #   endif
4227 #  endif
4228 # endif
4229 #endif
4230
4231 int
4232 main ()
4233 {
4234 char *p = (char *) alloca (1);
4235   ;
4236   return 0;
4237 }
4238 _ACEOF
4239 rm -f conftest.$ac_objext conftest$ac_exeext
4240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4241   (eval $ac_link) 2>conftest.er1
4242   ac_status=$?
4243   grep -v '^ *+' conftest.er1 >conftest.err
4244   rm -f conftest.er1
4245   cat conftest.err >&5
4246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247   (exit $ac_status); } &&
4248          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250   (eval $ac_try) 2>&5
4251   ac_status=$?
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); }; } &&
4254          { ac_try='test -s conftest$ac_exeext'
4255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256   (eval $ac_try) 2>&5
4257   ac_status=$?
4258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259   (exit $ac_status); }; }; then
4260   ac_cv_func_alloca_works=yes
4261 else
4262   echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4264
4265 ac_cv_func_alloca_works=no
4266 fi
4267 rm -f conftest.err conftest.$ac_objext \
4268       conftest$ac_exeext conftest.$ac_ext
4269 fi
4270 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4271 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4272
4273 if test $ac_cv_func_alloca_works = yes; then
4274
4275 cat >>confdefs.h <<\_ACEOF
4276 #define HAVE_ALLOCA 1
4277 _ACEOF
4278
4279 else
4280   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4281 # that cause trouble.  Some versions do not even contain alloca or
4282 # contain a buggy version.  If you still want to use their alloca,
4283 # use ar to extract alloca.o from them instead of compiling alloca.c.
4284
4285 ALLOCA=alloca.$ac_objext
4286
4287 cat >>confdefs.h <<\_ACEOF
4288 #define C_ALLOCA 1
4289 _ACEOF
4290
4291
4292 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4293 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4294 if test "${ac_cv_os_cray+set}" = set; then
4295   echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297   cat >conftest.$ac_ext <<_ACEOF
4298 /* confdefs.h.  */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h.  */
4303 #if defined(CRAY) && ! defined(CRAY2)
4304 webecray
4305 #else
4306 wenotbecray
4307 #endif
4308
4309 _ACEOF
4310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4311   $EGREP "webecray" >/dev/null 2>&1; then
4312   ac_cv_os_cray=yes
4313 else
4314   ac_cv_os_cray=no
4315 fi
4316 rm -f conftest*
4317
4318 fi
4319 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4320 echo "${ECHO_T}$ac_cv_os_cray" >&6
4321 if test $ac_cv_os_cray = yes; then
4322   for ac_func in _getb67 GETB67 getb67; do
4323     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4324 echo "$as_me:$LINENO: checking for $ac_func" >&5
4325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4326 if eval "test \"\${$as_ac_var+set}\" = set"; then
4327   echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329   cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h.  */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h.  */
4335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4337 #define $ac_func innocuous_$ac_func
4338
4339 /* System header to define __stub macros and hopefully few prototypes,
4340     which can conflict with char $ac_func (); below.
4341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4342     <limits.h> exists even on freestanding compilers.  */
4343
4344 #ifdef __STDC__
4345 # include <limits.h>
4346 #else
4347 # include <assert.h>
4348 #endif
4349
4350 #undef $ac_func
4351
4352 /* Override any gcc2 internal prototype to avoid an error.  */
4353 #ifdef __cplusplus
4354 extern "C"
4355 {
4356 #endif
4357 /* We use char because int might match the return type of a gcc2
4358    builtin and then its argument prototype would still apply.  */
4359 char $ac_func ();
4360 /* The GNU C library defines this for functions which it implements
4361     to always fail with ENOSYS.  Some functions are actually named
4362     something starting with __ and the normal name is an alias.  */
4363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4364 choke me
4365 #else
4366 char (*f) () = $ac_func;
4367 #endif
4368 #ifdef __cplusplus
4369 }
4370 #endif
4371
4372 int
4373 main ()
4374 {
4375 return f != $ac_func;
4376   ;
4377   return 0;
4378 }
4379 _ACEOF
4380 rm -f conftest.$ac_objext conftest$ac_exeext
4381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4382   (eval $ac_link) 2>conftest.er1
4383   ac_status=$?
4384   grep -v '^ *+' conftest.er1 >conftest.err
4385   rm -f conftest.er1
4386   cat conftest.err >&5
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); } &&
4389          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391   (eval $ac_try) 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); }; } &&
4395          { ac_try='test -s conftest$ac_exeext'
4396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397   (eval $ac_try) 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); }; }; then
4401   eval "$as_ac_var=yes"
4402 else
4403   echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4405
4406 eval "$as_ac_var=no"
4407 fi
4408 rm -f conftest.err conftest.$ac_objext \
4409       conftest$ac_exeext conftest.$ac_ext
4410 fi
4411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4413 if test `eval echo '${'$as_ac_var'}'` = yes; then
4414
4415 cat >>confdefs.h <<_ACEOF
4416 #define CRAY_STACKSEG_END $ac_func
4417 _ACEOF
4418
4419     break
4420 fi
4421
4422   done
4423 fi
4424
4425 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4426 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4427 if test "${ac_cv_c_stack_direction+set}" = set; then
4428   echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430   if test "$cross_compiling" = yes; then
4431   ac_cv_c_stack_direction=0
4432 else
4433   cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h.  */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h.  */
4439 int
4440 find_stack_direction ()
4441 {
4442   static char *addr = 0;
4443   auto char dummy;
4444   if (addr == 0)
4445     {
4446       addr = &dummy;
4447       return find_stack_direction ();
4448     }
4449   else
4450     return (&dummy > addr) ? 1 : -1;
4451 }
4452
4453 int
4454 main ()
4455 {
4456   exit (find_stack_direction () < 0);
4457 }
4458 _ACEOF
4459 rm -f conftest$ac_exeext
4460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4461   (eval $ac_link) 2>&5
4462   ac_status=$?
4463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466   (eval $ac_try) 2>&5
4467   ac_status=$?
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); }; }; then
4470   ac_cv_c_stack_direction=1
4471 else
4472   echo "$as_me: program exited with status $ac_status" >&5
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4475
4476 ( exit $ac_status )
4477 ac_cv_c_stack_direction=-1
4478 fi
4479 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4480 fi
4481 fi
4482 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4483 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4484
4485 cat >>confdefs.h <<_ACEOF
4486 #define STACK_DIRECTION $ac_cv_c_stack_direction
4487 _ACEOF
4488
4489
4490 fi
4491
4492
4493
4494 for ac_header in stdlib.h unistd.h
4495 do
4496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4498   echo "$as_me:$LINENO: checking for $ac_header" >&5
4499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4501   echo $ECHO_N "(cached) $ECHO_C" >&6
4502 fi
4503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4505 else
4506   # Is the header compilable?
4507 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4509 cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h.  */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h.  */
4515 $ac_includes_default
4516 #include <$ac_header>
4517 _ACEOF
4518 rm -f conftest.$ac_objext
4519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4520   (eval $ac_compile) 2>conftest.er1
4521   ac_status=$?
4522   grep -v '^ *+' conftest.er1 >conftest.err
4523   rm -f conftest.er1
4524   cat conftest.err >&5
4525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526   (exit $ac_status); } &&
4527          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529   (eval $ac_try) 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; } &&
4533          { ac_try='test -s conftest.$ac_objext'
4534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535   (eval $ac_try) 2>&5
4536   ac_status=$?
4537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538   (exit $ac_status); }; }; then
4539   ac_header_compiler=yes
4540 else
4541   echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4543
4544 ac_header_compiler=no
4545 fi
4546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4547 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4548 echo "${ECHO_T}$ac_header_compiler" >&6
4549
4550 # Is the header present?
4551 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4553 cat >conftest.$ac_ext <<_ACEOF
4554 /* confdefs.h.  */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h.  */
4559 #include <$ac_header>
4560 _ACEOF
4561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4562   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4563   ac_status=$?
4564   grep -v '^ *+' conftest.er1 >conftest.err
4565   rm -f conftest.er1
4566   cat conftest.err >&5
4567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568   (exit $ac_status); } >/dev/null; then
4569   if test -s conftest.err; then
4570     ac_cpp_err=$ac_c_preproc_warn_flag
4571     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4572   else
4573     ac_cpp_err=
4574   fi
4575 else
4576   ac_cpp_err=yes
4577 fi
4578 if test -z "$ac_cpp_err"; then
4579   ac_header_preproc=yes
4580 else
4581   echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4583
4584   ac_header_preproc=no
4585 fi
4586 rm -f conftest.err conftest.$ac_ext
4587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4588 echo "${ECHO_T}$ac_header_preproc" >&6
4589
4590 # So?  What about this header?
4591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4592   yes:no: )
4593     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4597     ac_header_preproc=yes
4598     ;;
4599   no:yes:* )
4600     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4602     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4603 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4604     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4606     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4607 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4610     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4612     (
4613       cat <<\_ASBOX
4614 ## ------------------------------- ##
4615 ## Report this to the pspp lists.  ##
4616 ## ------------------------------- ##
4617 _ASBOX
4618     ) |
4619       sed "s/^/$as_me: WARNING:     /" >&2
4620     ;;
4621 esac
4622 echo "$as_me:$LINENO: checking for $ac_header" >&5
4623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4625   echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627   eval "$as_ac_Header=\$ac_header_preproc"
4628 fi
4629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4631
4632 fi
4633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4634   cat >>confdefs.h <<_ACEOF
4635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4636 _ACEOF
4637
4638 fi
4639
4640 done
4641
4642
4643 for ac_func in getpagesize
4644 do
4645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4646 echo "$as_me:$LINENO: checking for $ac_func" >&5
4647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4648 if eval "test \"\${$as_ac_var+set}\" = set"; then
4649   echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651   cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h.  */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h.  */
4657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4659 #define $ac_func innocuous_$ac_func
4660
4661 /* System header to define __stub macros and hopefully few prototypes,
4662     which can conflict with char $ac_func (); below.
4663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4664     <limits.h> exists even on freestanding compilers.  */
4665
4666 #ifdef __STDC__
4667 # include <limits.h>
4668 #else
4669 # include <assert.h>
4670 #endif
4671
4672 #undef $ac_func
4673
4674 /* Override any gcc2 internal prototype to avoid an error.  */
4675 #ifdef __cplusplus
4676 extern "C"
4677 {
4678 #endif
4679 /* We use char because int might match the return type of a gcc2
4680    builtin and then its argument prototype would still apply.  */
4681 char $ac_func ();
4682 /* The GNU C library defines this for functions which it implements
4683     to always fail with ENOSYS.  Some functions are actually named
4684     something starting with __ and the normal name is an alias.  */
4685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4686 choke me
4687 #else
4688 char (*f) () = $ac_func;
4689 #endif
4690 #ifdef __cplusplus
4691 }
4692 #endif
4693
4694 int
4695 main ()
4696 {
4697 return f != $ac_func;
4698   ;
4699   return 0;
4700 }
4701 _ACEOF
4702 rm -f conftest.$ac_objext conftest$ac_exeext
4703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4704   (eval $ac_link) 2>conftest.er1
4705   ac_status=$?
4706   grep -v '^ *+' conftest.er1 >conftest.err
4707   rm -f conftest.er1
4708   cat conftest.err >&5
4709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710   (exit $ac_status); } &&
4711          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713   (eval $ac_try) 2>&5
4714   ac_status=$?
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); }; } &&
4717          { ac_try='test -s conftest$ac_exeext'
4718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719   (eval $ac_try) 2>&5
4720   ac_status=$?
4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722   (exit $ac_status); }; }; then
4723   eval "$as_ac_var=yes"
4724 else
4725   echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4727
4728 eval "$as_ac_var=no"
4729 fi
4730 rm -f conftest.err conftest.$ac_objext \
4731       conftest$ac_exeext conftest.$ac_ext
4732 fi
4733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4735 if test `eval echo '${'$as_ac_var'}'` = yes; then
4736   cat >>confdefs.h <<_ACEOF
4737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4738 _ACEOF
4739
4740 fi
4741 done
4742
4743 echo "$as_me:$LINENO: checking for working mmap" >&5
4744 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4745 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4746   echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748   if test "$cross_compiling" = yes; then
4749   ac_cv_func_mmap_fixed_mapped=no
4750 else
4751   cat >conftest.$ac_ext <<_ACEOF
4752 /* confdefs.h.  */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h.  */
4757 $ac_includes_default
4758 /* malloc might have been renamed as rpl_malloc. */
4759 #undef malloc
4760
4761 /* Thanks to Mike Haertel and Jim Avera for this test.
4762    Here is a matrix of mmap possibilities:
4763         mmap private not fixed
4764         mmap private fixed at somewhere currently unmapped
4765         mmap private fixed at somewhere already mapped
4766         mmap shared not fixed
4767         mmap shared fixed at somewhere currently unmapped
4768         mmap shared fixed at somewhere already mapped
4769    For private mappings, we should verify that changes cannot be read()
4770    back from the file, nor mmap's back from the file at a different
4771    address.  (There have been systems where private was not correctly
4772    implemented like the infamous i386 svr4.0, and systems where the
4773    VM page cache was not coherent with the file system buffer cache
4774    like early versions of FreeBSD and possibly contemporary NetBSD.)
4775    For shared mappings, we should conversely verify that changes get
4776    propagated back to all the places they're supposed to be.
4777
4778    Grep wants private fixed already mapped.
4779    The main things grep needs to know about mmap are:
4780    * does it exist and is it safe to write into the mmap'd area
4781    * how to use it (BSD variants)  */
4782
4783 #include <fcntl.h>
4784 #include <sys/mman.h>
4785
4786 #if !STDC_HEADERS && !HAVE_STDLIB_H
4787 char *malloc ();
4788 #endif
4789
4790 /* This mess was copied from the GNU getpagesize.h.  */
4791 #if !HAVE_GETPAGESIZE
4792 /* Assume that all systems that can run configure have sys/param.h.  */
4793 # if !HAVE_SYS_PARAM_H
4794 #  define HAVE_SYS_PARAM_H 1
4795 # endif
4796
4797 # ifdef _SC_PAGESIZE
4798 #  define getpagesize() sysconf(_SC_PAGESIZE)
4799 # else /* no _SC_PAGESIZE */
4800 #  if HAVE_SYS_PARAM_H
4801 #   include <sys/param.h>
4802 #   ifdef EXEC_PAGESIZE
4803 #    define getpagesize() EXEC_PAGESIZE
4804 #   else /* no EXEC_PAGESIZE */
4805 #    ifdef NBPG
4806 #     define getpagesize() NBPG * CLSIZE
4807 #     ifndef CLSIZE
4808 #      define CLSIZE 1
4809 #     endif /* no CLSIZE */
4810 #    else /* no NBPG */
4811 #     ifdef NBPC
4812 #      define getpagesize() NBPC
4813 #     else /* no NBPC */
4814 #      ifdef PAGESIZE
4815 #       define getpagesize() PAGESIZE
4816 #      endif /* PAGESIZE */
4817 #     endif /* no NBPC */
4818 #    endif /* no NBPG */
4819 #   endif /* no EXEC_PAGESIZE */
4820 #  else /* no HAVE_SYS_PARAM_H */
4821 #   define getpagesize() 8192   /* punt totally */
4822 #  endif /* no HAVE_SYS_PARAM_H */
4823 # endif /* no _SC_PAGESIZE */
4824
4825 #endif /* no HAVE_GETPAGESIZE */
4826
4827 int
4828 main ()
4829 {
4830   char *data, *data2, *data3;
4831   int i, pagesize;
4832   int fd;
4833
4834   pagesize = getpagesize ();
4835
4836   /* First, make a file with some known garbage in it. */
4837   data = (char *) malloc (pagesize);
4838   if (!data)
4839     exit (1);
4840   for (i = 0; i < pagesize; ++i)
4841     *(data + i) = rand ();
4842   umask (0);
4843   fd = creat ("conftest.mmap", 0600);
4844   if (fd < 0)
4845     exit (1);
4846   if (write (fd, data, pagesize) != pagesize)
4847     exit (1);
4848   close (fd);
4849
4850   /* Next, try to mmap the file at a fixed address which already has
4851      something else allocated at it.  If we can, also make sure that
4852      we see the same garbage.  */
4853   fd = open ("conftest.mmap", O_RDWR);
4854   if (fd < 0)
4855     exit (1);
4856   data2 = (char *) malloc (2 * pagesize);
4857   if (!data2)
4858     exit (1);
4859   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4860   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4861                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4862     exit (1);
4863   for (i = 0; i < pagesize; ++i)
4864     if (*(data + i) != *(data2 + i))
4865       exit (1);
4866
4867   /* Finally, make sure that changes to the mapped area do not
4868      percolate back to the file as seen by read().  (This is a bug on
4869      some variants of i386 svr4.0.)  */
4870   for (i = 0; i < pagesize; ++i)
4871     *(data2 + i) = *(data2 + i) + 1;
4872   data3 = (char *) malloc (pagesize);
4873   if (!data3)
4874     exit (1);
4875   if (read (fd, data3, pagesize) != pagesize)
4876     exit (1);
4877   for (i = 0; i < pagesize; ++i)
4878     if (*(data + i) != *(data3 + i))
4879       exit (1);
4880   close (fd);
4881   exit (0);
4882 }
4883 _ACEOF
4884 rm -f conftest$ac_exeext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4886   (eval $ac_link) 2>&5
4887   ac_status=$?
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891   (eval $ac_try) 2>&5
4892   ac_status=$?
4893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894   (exit $ac_status); }; }; then
4895   ac_cv_func_mmap_fixed_mapped=yes
4896 else
4897   echo "$as_me: program exited with status $ac_status" >&5
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901 ( exit $ac_status )
4902 ac_cv_func_mmap_fixed_mapped=no
4903 fi
4904 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4905 fi
4906 fi
4907 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4908 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4909 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4910
4911 cat >>confdefs.h <<\_ACEOF
4912 #define HAVE_MMAP 1
4913 _ACEOF
4914
4915 fi
4916 rm -f conftest.mmap
4917
4918
4919     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
4920 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
4921 if test "${ac_cv_gnu_library_2_1+set}" = set; then
4922   echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924   cat >conftest.$ac_ext <<_ACEOF
4925 /* confdefs.h.  */
4926 _ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h.  */
4930
4931 #include <features.h>
4932 #ifdef __GNU_LIBRARY__
4933  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4934   Lucky GNU user
4935  #endif
4936 #endif
4937
4938 _ACEOF
4939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4940   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
4941   ac_cv_gnu_library_2_1=yes
4942 else
4943   ac_cv_gnu_library_2_1=no
4944 fi
4945 rm -f conftest*
4946
4947
4948
4949 fi
4950 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
4951 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
4952
4953     GLIBC21="$ac_cv_gnu_library_2_1"
4954
4955
4956
4957
4958   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
4959 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
4960 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
4961   echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963
4964       if test "$cross_compiling" = yes; then
4965
4966           # Guess based on the CPU.
4967           case "$host_cpu" in
4968             alpha* | i3456786 | m68k | s390*)
4969               gt_cv_int_divbyzero_sigfpe="guessing yes";;
4970             *)
4971               gt_cv_int_divbyzero_sigfpe="guessing no";;
4972           esac
4973
4974 else
4975   cat >conftest.$ac_ext <<_ACEOF
4976 /* confdefs.h.  */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h.  */
4981
4982 #include <stdlib.h>
4983 #include <signal.h>
4984
4985 static void
4986 #ifdef __cplusplus
4987 sigfpe_handler (int sig)
4988 #else
4989 sigfpe_handler (sig) int sig;
4990 #endif
4991 {
4992   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
4993   exit (sig != SIGFPE);
4994 }
4995
4996 int x = 1;
4997 int y = 0;
4998 int z;
4999 int nan;
5000
5001 int main ()
5002 {
5003   signal (SIGFPE, sigfpe_handler);
5004 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
5005 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5006   signal (SIGTRAP, sigfpe_handler);
5007 #endif
5008 /* Linux/SPARC yields signal SIGILL.  */
5009 #if defined (__sparc__) && defined (__linux__)
5010   signal (SIGILL, sigfpe_handler);
5011 #endif
5012
5013   z = x / y;
5014   nan = y / y;
5015   exit (1);
5016 }
5017
5018 _ACEOF
5019 rm -f conftest$ac_exeext
5020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5021   (eval $ac_link) 2>&5
5022   ac_status=$?
5023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026   (eval $ac_try) 2>&5
5027   ac_status=$?
5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029   (exit $ac_status); }; }; then
5030   gt_cv_int_divbyzero_sigfpe=yes
5031 else
5032   echo "$as_me: program exited with status $ac_status" >&5
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5035
5036 ( exit $ac_status )
5037 gt_cv_int_divbyzero_sigfpe=no
5038 fi
5039 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5040 fi
5041
5042 fi
5043 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5044 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5045   case "$gt_cv_int_divbyzero_sigfpe" in
5046     *yes) value=1;;
5047     *) value=0;;
5048   esac
5049
5050 cat >>confdefs.h <<_ACEOF
5051 #define INTDIV0_RAISES_SIGFPE $value
5052 _ACEOF
5053
5054
5055
5056   echo "$as_me:$LINENO: checking for inttypes.h" >&5
5057 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5058 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5059   echo $ECHO_N "(cached) $ECHO_C" >&6
5060 else
5061   cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h.  */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h.  */
5067 #include <sys/types.h>
5068 #include <inttypes.h>
5069 int
5070 main ()
5071 {
5072 uintmax_t i = (uintmax_t) -1;
5073   ;
5074   return 0;
5075 }
5076 _ACEOF
5077 rm -f conftest.$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079   (eval $ac_compile) 2>conftest.er1
5080   ac_status=$?
5081   grep -v '^ *+' conftest.er1 >conftest.err
5082   rm -f conftest.er1
5083   cat conftest.err >&5
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); } &&
5086          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088   (eval $ac_try) 2>&5
5089   ac_status=$?
5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091   (exit $ac_status); }; } &&
5092          { ac_try='test -s conftest.$ac_objext'
5093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094   (eval $ac_try) 2>&5
5095   ac_status=$?
5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); }; }; then
5098   jm_ac_cv_header_inttypes_h=yes
5099 else
5100   echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5102
5103 jm_ac_cv_header_inttypes_h=no
5104 fi
5105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5106 fi
5107 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5108 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
5109   if test $jm_ac_cv_header_inttypes_h = yes; then
5110
5111 cat >>confdefs.h <<_ACEOF
5112 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5113 _ACEOF
5114
5115   fi
5116
5117
5118   echo "$as_me:$LINENO: checking for stdint.h" >&5
5119 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
5120 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5121   echo $ECHO_N "(cached) $ECHO_C" >&6
5122 else
5123   cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h.  */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h.  */
5129 #include <sys/types.h>
5130 #include <stdint.h>
5131 int
5132 main ()
5133 {
5134 uintmax_t i = (uintmax_t) -1;
5135   ;
5136   return 0;
5137 }
5138 _ACEOF
5139 rm -f conftest.$ac_objext
5140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5141   (eval $ac_compile) 2>conftest.er1
5142   ac_status=$?
5143   grep -v '^ *+' conftest.er1 >conftest.err
5144   rm -f conftest.er1
5145   cat conftest.err >&5
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); } &&
5148          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150   (eval $ac_try) 2>&5
5151   ac_status=$?
5152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153   (exit $ac_status); }; } &&
5154          { ac_try='test -s conftest.$ac_objext'
5155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156   (eval $ac_try) 2>&5
5157   ac_status=$?
5158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159   (exit $ac_status); }; }; then
5160   jm_ac_cv_header_stdint_h=yes
5161 else
5162   echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5164
5165 jm_ac_cv_header_stdint_h=no
5166 fi
5167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5168 fi
5169 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5170 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
5171   if test $jm_ac_cv_header_stdint_h = yes; then
5172
5173 cat >>confdefs.h <<_ACEOF
5174 #define HAVE_STDINT_H_WITH_UINTMAX 1
5175 _ACEOF
5176
5177   fi
5178
5179
5180   echo "$as_me:$LINENO: checking for unsigned long long" >&5
5181 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5182 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h.  */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h.  */
5191 unsigned long long ull = 1; int i = 63;
5192 int
5193 main ()
5194 {
5195 unsigned long long ullmax = (unsigned long long) -1;
5196      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5197   ;
5198   return 0;
5199 }
5200 _ACEOF
5201 rm -f conftest.$ac_objext conftest$ac_exeext
5202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5203   (eval $ac_link) 2>conftest.er1
5204   ac_status=$?
5205   grep -v '^ *+' conftest.er1 >conftest.err
5206   rm -f conftest.er1
5207   cat conftest.err >&5
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); } &&
5210          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212   (eval $ac_try) 2>&5
5213   ac_status=$?
5214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215   (exit $ac_status); }; } &&
5216          { ac_try='test -s conftest$ac_exeext'
5217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218   (eval $ac_try) 2>&5
5219   ac_status=$?
5220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221   (exit $ac_status); }; }; then
5222   ac_cv_type_unsigned_long_long=yes
5223 else
5224   echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5226
5227 ac_cv_type_unsigned_long_long=no
5228 fi
5229 rm -f conftest.err conftest.$ac_objext \
5230       conftest$ac_exeext conftest.$ac_ext
5231 fi
5232 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5233 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5234   if test $ac_cv_type_unsigned_long_long = yes; then
5235
5236 cat >>confdefs.h <<\_ACEOF
5237 #define HAVE_UNSIGNED_LONG_LONG 1
5238 _ACEOF
5239
5240   fi
5241
5242
5243
5244
5245   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5246
5247     test $ac_cv_type_unsigned_long_long = yes \
5248       && ac_type='unsigned long long' \
5249       || ac_type='unsigned long'
5250
5251 cat >>confdefs.h <<_ACEOF
5252 #define uintmax_t $ac_type
5253 _ACEOF
5254
5255   else
5256
5257 cat >>confdefs.h <<\_ACEOF
5258 #define HAVE_UINTMAX_T 1
5259 _ACEOF
5260
5261   fi
5262
5263
5264   echo "$as_me:$LINENO: checking for inttypes.h" >&5
5265 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5266 if test "${gt_cv_header_inttypes_h+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269
5270     cat >conftest.$ac_ext <<_ACEOF
5271 /* confdefs.h.  */
5272 _ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h.  */
5276 #include <sys/types.h>
5277 #include <inttypes.h>
5278 int
5279 main ()
5280 {
5281
5282   ;
5283   return 0;
5284 }
5285 _ACEOF
5286 rm -f conftest.$ac_objext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288   (eval $ac_compile) 2>conftest.er1
5289   ac_status=$?
5290   grep -v '^ *+' conftest.er1 >conftest.err
5291   rm -f conftest.er1
5292   cat conftest.err >&5
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); } &&
5295          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297   (eval $ac_try) 2>&5
5298   ac_status=$?
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); }; } &&
5301          { ac_try='test -s conftest.$ac_objext'
5302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303   (eval $ac_try) 2>&5
5304   ac_status=$?
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); }; }; then
5307   gt_cv_header_inttypes_h=yes
5308 else
5309   echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5311
5312 gt_cv_header_inttypes_h=no
5313 fi
5314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5315
5316 fi
5317 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
5318 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
5319   if test $gt_cv_header_inttypes_h = yes; then
5320
5321 cat >>confdefs.h <<_ACEOF
5322 #define HAVE_INTTYPES_H 1
5323 _ACEOF
5324
5325   fi
5326
5327
5328
5329   if test $gt_cv_header_inttypes_h = yes; then
5330     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
5331 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
5332 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
5333   echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335
5336         cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h.  */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h.  */
5342 #include <inttypes.h>
5343 #ifdef PRId32
5344 char *p = PRId32;
5345 #endif
5346
5347 int
5348 main ()
5349 {
5350
5351   ;
5352   return 0;
5353 }
5354 _ACEOF
5355 rm -f conftest.$ac_objext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357   (eval $ac_compile) 2>conftest.er1
5358   ac_status=$?
5359   grep -v '^ *+' conftest.er1 >conftest.err
5360   rm -f conftest.er1
5361   cat conftest.err >&5
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); } &&
5364          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366   (eval $ac_try) 2>&5
5367   ac_status=$?
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); }; } &&
5370          { ac_try='test -s conftest.$ac_objext'
5371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372   (eval $ac_try) 2>&5
5373   ac_status=$?
5374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375   (exit $ac_status); }; }; then
5376   gt_cv_inttypes_pri_broken=no
5377 else
5378   echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5380
5381 gt_cv_inttypes_pri_broken=yes
5382 fi
5383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5384
5385 fi
5386 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
5387 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
5388   fi
5389   if test "$gt_cv_inttypes_pri_broken" = yes; then
5390
5391 cat >>confdefs.h <<_ACEOF
5392 #define PRI_MACROS_BROKEN 1
5393 _ACEOF
5394
5395   fi
5396
5397
5398       if test "X$prefix" = "XNONE"; then
5399     acl_final_prefix="$ac_default_prefix"
5400   else
5401     acl_final_prefix="$prefix"
5402   fi
5403   if test "X$exec_prefix" = "XNONE"; then
5404     acl_final_exec_prefix='${prefix}'
5405   else
5406     acl_final_exec_prefix="$exec_prefix"
5407   fi
5408   acl_save_prefix="$prefix"
5409   prefix="$acl_final_prefix"
5410   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5411   prefix="$acl_save_prefix"
5412
5413
5414 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5415 if test "${with_gnu_ld+set}" = set; then
5416   withval="$with_gnu_ld"
5417   test "$withval" = no || with_gnu_ld=yes
5418 else
5419   with_gnu_ld=no
5420 fi;
5421 # Prepare PATH_SEPARATOR.
5422 # The user is always right.
5423 if test "${PATH_SEPARATOR+set}" != set; then
5424   echo "#! /bin/sh" >conf$$.sh
5425   echo  "exit 0"   >>conf$$.sh
5426   chmod +x conf$$.sh
5427   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5428     PATH_SEPARATOR=';'
5429   else
5430     PATH_SEPARATOR=:
5431   fi
5432   rm -f conf$$.sh
5433 fi
5434 ac_prog=ld
5435 if test "$GCC" = yes; then
5436   # Check if gcc -print-prog-name=ld gives a path.
5437   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5438 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5439   case $host in
5440   *-*-mingw*)
5441     # gcc leaves a trailing carriage return which upsets mingw
5442     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5443   *)
5444     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5445   esac
5446   case $ac_prog in
5447     # Accept absolute paths.
5448     [\\/]* | [A-Za-z]:[\\/]*)
5449       re_direlt='/[^/][^/]*/\.\./'
5450       # Canonicalize the path of ld
5451       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5452       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5453         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5454       done
5455       test -z "$LD" && LD="$ac_prog"
5456       ;;
5457   "")
5458     # If it fails, then pretend we aren't using GCC.
5459     ac_prog=ld
5460     ;;
5461   *)
5462     # If it is relative, then search for the first ld in PATH.
5463     with_gnu_ld=unknown
5464     ;;
5465   esac
5466 elif test "$with_gnu_ld" = yes; then
5467   echo "$as_me:$LINENO: checking for GNU ld" >&5
5468 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5469 else
5470   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5471 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5472 fi
5473 if test "${acl_cv_path_LD+set}" = set; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476   if test -z "$LD"; then
5477   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5478   for ac_dir in $PATH; do
5479     test -z "$ac_dir" && ac_dir=.
5480     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5481       acl_cv_path_LD="$ac_dir/$ac_prog"
5482       # Check to see if the program is GNU ld.  I'd rather use --version,
5483       # but apparently some GNU ld's only accept -v.
5484       # Break only if it was the GNU/non-GNU ld that we prefer.
5485       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5486         test "$with_gnu_ld" != no && break
5487       else
5488         test "$with_gnu_ld" != yes && break
5489       fi
5490     fi
5491   done
5492   IFS="$ac_save_ifs"
5493 else
5494   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5495 fi
5496 fi
5497
5498 LD="$acl_cv_path_LD"
5499 if test -n "$LD"; then
5500   echo "$as_me:$LINENO: result: $LD" >&5
5501 echo "${ECHO_T}$LD" >&6
5502 else
5503   echo "$as_me:$LINENO: result: no" >&5
5504 echo "${ECHO_T}no" >&6
5505 fi
5506 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5507 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5508    { (exit 1); exit 1; }; }
5509 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5510 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5511 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5512   echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5515 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5516   acl_cv_prog_gnu_ld=yes
5517 else
5518   acl_cv_prog_gnu_ld=no
5519 fi
5520 fi
5521 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5522 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5523 with_gnu_ld=$acl_cv_prog_gnu_ld
5524
5525
5526
5527                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5528 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5529 if test "${acl_cv_rpath+set}" = set; then
5530   echo $ECHO_N "(cached) $ECHO_C" >&6
5531 else
5532
5533     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5534     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5535     . ./conftest.sh
5536     rm -f ./conftest.sh
5537     acl_cv_rpath=done
5538
5539 fi
5540 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5541 echo "${ECHO_T}$acl_cv_rpath" >&6
5542   wl="$acl_cv_wl"
5543   libext="$acl_cv_libext"
5544   shlibext="$acl_cv_shlibext"
5545   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5546   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5547   hardcode_direct="$acl_cv_hardcode_direct"
5548   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5549     # Check whether --enable-rpath or --disable-rpath was given.
5550 if test "${enable_rpath+set}" = set; then
5551   enableval="$enable_rpath"
5552   :
5553 else
5554   enable_rpath=yes
5555 fi;
5556
5557
5558
5559
5560
5561
5562
5563     use_additional=yes
5564
5565   acl_save_prefix="$prefix"
5566   prefix="$acl_final_prefix"
5567   acl_save_exec_prefix="$exec_prefix"
5568   exec_prefix="$acl_final_exec_prefix"
5569
5570     eval additional_includedir=\"$includedir\"
5571     eval additional_libdir=\"$libdir\"
5572
5573   exec_prefix="$acl_save_exec_prefix"
5574   prefix="$acl_save_prefix"
5575
5576
5577 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5578 if test "${with_libiconv_prefix+set}" = set; then
5579   withval="$with_libiconv_prefix"
5580
5581     if test "X$withval" = "Xno"; then
5582       use_additional=no
5583     else
5584       if test "X$withval" = "X"; then
5585
5586   acl_save_prefix="$prefix"
5587   prefix="$acl_final_prefix"
5588   acl_save_exec_prefix="$exec_prefix"
5589   exec_prefix="$acl_final_exec_prefix"
5590
5591           eval additional_includedir=\"$includedir\"
5592           eval additional_libdir=\"$libdir\"
5593
5594   exec_prefix="$acl_save_exec_prefix"
5595   prefix="$acl_save_prefix"
5596
5597       else
5598         additional_includedir="$withval/include"
5599         additional_libdir="$withval/lib"
5600       fi
5601     fi
5602
5603 fi;
5604       LIBICONV=
5605   LTLIBICONV=
5606   INCICONV=
5607   rpathdirs=
5608   ltrpathdirs=
5609   names_already_handled=
5610   names_next_round='iconv '
5611   while test -n "$names_next_round"; do
5612     names_this_round="$names_next_round"
5613     names_next_round=
5614     for name in $names_this_round; do
5615       already_handled=
5616       for n in $names_already_handled; do
5617         if test "$n" = "$name"; then
5618           already_handled=yes
5619           break
5620         fi
5621       done
5622       if test -z "$already_handled"; then
5623         names_already_handled="$names_already_handled $name"
5624                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5625         eval value=\"\$HAVE_LIB$uppername\"
5626         if test -n "$value"; then
5627           if test "$value" = yes; then
5628             eval value=\"\$LIB$uppername\"
5629             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5630             eval value=\"\$LTLIB$uppername\"
5631             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5632           else
5633                                     :
5634           fi
5635         else
5636                               found_dir=
5637           found_la=
5638           found_so=
5639           found_a=
5640           if test $use_additional = yes; then
5641             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5642               found_dir="$additional_libdir"
5643               found_so="$additional_libdir/lib$name.$shlibext"
5644               if test -f "$additional_libdir/lib$name.la"; then
5645                 found_la="$additional_libdir/lib$name.la"
5646               fi
5647             else
5648               if test -f "$additional_libdir/lib$name.$libext"; then
5649                 found_dir="$additional_libdir"
5650                 found_a="$additional_libdir/lib$name.$libext"
5651                 if test -f "$additional_libdir/lib$name.la"; then
5652                   found_la="$additional_libdir/lib$name.la"
5653                 fi
5654               fi
5655             fi
5656           fi
5657           if test "X$found_dir" = "X"; then
5658             for x in $LDFLAGS $LTLIBICONV; do
5659
5660   acl_save_prefix="$prefix"
5661   prefix="$acl_final_prefix"
5662   acl_save_exec_prefix="$exec_prefix"
5663   exec_prefix="$acl_final_exec_prefix"
5664   eval x=\"$x\"
5665   exec_prefix="$acl_save_exec_prefix"
5666   prefix="$acl_save_prefix"
5667
5668               case "$x" in
5669                 -L*)
5670                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5671                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5672                     found_dir="$dir"
5673                     found_so="$dir/lib$name.$shlibext"
5674                     if test -f "$dir/lib$name.la"; then
5675                       found_la="$dir/lib$name.la"
5676                     fi
5677                   else
5678                     if test -f "$dir/lib$name.$libext"; then
5679                       found_dir="$dir"
5680                       found_a="$dir/lib$name.$libext"
5681                       if test -f "$dir/lib$name.la"; then
5682                         found_la="$dir/lib$name.la"
5683                       fi
5684                     fi
5685                   fi
5686                   ;;
5687               esac
5688               if test "X$found_dir" != "X"; then
5689                 break
5690               fi
5691             done
5692           fi
5693           if test "X$found_dir" != "X"; then
5694                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5695             if test "X$found_so" != "X"; then
5696                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5697                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5698               else
5699                                                                                 haveit=
5700                 for x in $ltrpathdirs; do
5701                   if test "X$x" = "X$found_dir"; then
5702                     haveit=yes
5703                     break
5704                   fi
5705                 done
5706                 if test -z "$haveit"; then
5707                   ltrpathdirs="$ltrpathdirs $found_dir"
5708                 fi
5709                                 if test "$hardcode_direct" = yes; then
5710                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5711                 else
5712                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5713                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5714                                                             haveit=
5715                     for x in $rpathdirs; do
5716                       if test "X$x" = "X$found_dir"; then
5717                         haveit=yes
5718                         break
5719                       fi
5720                     done
5721                     if test -z "$haveit"; then
5722                       rpathdirs="$rpathdirs $found_dir"
5723                     fi
5724                   else
5725                                                                                 haveit=
5726                     for x in $LDFLAGS $LIBICONV; do
5727
5728   acl_save_prefix="$prefix"
5729   prefix="$acl_final_prefix"
5730   acl_save_exec_prefix="$exec_prefix"
5731   exec_prefix="$acl_final_exec_prefix"
5732   eval x=\"$x\"
5733   exec_prefix="$acl_save_exec_prefix"
5734   prefix="$acl_save_prefix"
5735
5736                       if test "X$x" = "X-L$found_dir"; then
5737                         haveit=yes
5738                         break
5739                       fi
5740                     done
5741                     if test -z "$haveit"; then
5742                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5743                     fi
5744                     if test "$hardcode_minus_L" != no; then
5745                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5746                     else
5747                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5748                     fi
5749                   fi
5750                 fi
5751               fi
5752             else
5753               if test "X$found_a" != "X"; then
5754                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5755               else
5756                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5757               fi
5758             fi
5759                         additional_includedir=
5760             case "$found_dir" in
5761               */lib | */lib/)
5762                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5763                 additional_includedir="$basedir/include"
5764                 ;;
5765             esac
5766             if test "X$additional_includedir" != "X"; then
5767                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5768                 haveit=
5769                 if test "X$additional_includedir" = "X/usr/local/include"; then
5770                   if test -n "$GCC"; then
5771                     case $host_os in
5772                       linux*) haveit=yes;;
5773                     esac
5774                   fi
5775                 fi
5776                 if test -z "$haveit"; then
5777                   for x in $CPPFLAGS $INCICONV; do
5778
5779   acl_save_prefix="$prefix"
5780   prefix="$acl_final_prefix"
5781   acl_save_exec_prefix="$exec_prefix"
5782   exec_prefix="$acl_final_exec_prefix"
5783   eval x=\"$x\"
5784   exec_prefix="$acl_save_exec_prefix"
5785   prefix="$acl_save_prefix"
5786
5787                     if test "X$x" = "X-I$additional_includedir"; then
5788                       haveit=yes
5789                       break
5790                     fi
5791                   done
5792                   if test -z "$haveit"; then
5793                     if test -d "$additional_includedir"; then
5794                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5795                     fi
5796                   fi
5797                 fi
5798               fi
5799             fi
5800                         if test -n "$found_la"; then
5801                                                         save_libdir="$libdir"
5802               case "$found_la" in
5803                 */* | *\\*) . "$found_la" ;;
5804                 *) . "./$found_la" ;;
5805               esac
5806               libdir="$save_libdir"
5807                             for dep in $dependency_libs; do
5808                 case "$dep" in
5809                   -L*)
5810                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5811                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5812                       haveit=
5813                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5814                         if test -n "$GCC"; then
5815                           case $host_os in
5816                             linux*) haveit=yes;;
5817                           esac
5818                         fi
5819                       fi
5820                       if test -z "$haveit"; then
5821                         haveit=
5822                         for x in $LDFLAGS $LIBICONV; do
5823
5824   acl_save_prefix="$prefix"
5825   prefix="$acl_final_prefix"
5826   acl_save_exec_prefix="$exec_prefix"
5827   exec_prefix="$acl_final_exec_prefix"
5828   eval x=\"$x\"
5829   exec_prefix="$acl_save_exec_prefix"
5830   prefix="$acl_save_prefix"
5831
5832                           if test "X$x" = "X-L$additional_libdir"; then
5833                             haveit=yes
5834                             break
5835                           fi
5836                         done
5837                         if test -z "$haveit"; then
5838                           if test -d "$additional_libdir"; then
5839                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5840                           fi
5841                         fi
5842                         haveit=
5843                         for x in $LDFLAGS $LTLIBICONV; do
5844
5845   acl_save_prefix="$prefix"
5846   prefix="$acl_final_prefix"
5847   acl_save_exec_prefix="$exec_prefix"
5848   exec_prefix="$acl_final_exec_prefix"
5849   eval x=\"$x\"
5850   exec_prefix="$acl_save_exec_prefix"
5851   prefix="$acl_save_prefix"
5852
5853                           if test "X$x" = "X-L$additional_libdir"; then
5854                             haveit=yes
5855                             break
5856                           fi
5857                         done
5858                         if test -z "$haveit"; then
5859                           if test -d "$additional_libdir"; then
5860                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5861                           fi
5862                         fi
5863                       fi
5864                     fi
5865                     ;;
5866                   -R*)
5867                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5868                     if test "$enable_rpath" != no; then
5869                                                                   haveit=
5870                       for x in $rpathdirs; do
5871                         if test "X$x" = "X$dir"; then
5872                           haveit=yes
5873                           break
5874                         fi
5875                       done
5876                       if test -z "$haveit"; then
5877                         rpathdirs="$rpathdirs $dir"
5878                       fi
5879                                                                   haveit=
5880                       for x in $ltrpathdirs; do
5881                         if test "X$x" = "X$dir"; then
5882                           haveit=yes
5883                           break
5884                         fi
5885                       done
5886                       if test -z "$haveit"; then
5887                         ltrpathdirs="$ltrpathdirs $dir"
5888                       fi
5889                     fi
5890                     ;;
5891                   -l*)
5892                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5893                     ;;
5894                   *.la)
5895                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5896                     ;;
5897                   *)
5898                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5899                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5900                     ;;
5901                 esac
5902               done
5903             fi
5904           else
5905                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5906             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5907           fi
5908         fi
5909       fi
5910     done
5911   done
5912   if test "X$rpathdirs" != "X"; then
5913     if test -n "$hardcode_libdir_separator"; then
5914                         alldirs=
5915       for found_dir in $rpathdirs; do
5916         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5917       done
5918             acl_save_libdir="$libdir"
5919       libdir="$alldirs"
5920       eval flag=\"$hardcode_libdir_flag_spec\"
5921       libdir="$acl_save_libdir"
5922       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5923     else
5924             for found_dir in $rpathdirs; do
5925         acl_save_libdir="$libdir"
5926         libdir="$found_dir"
5927         eval flag=\"$hardcode_libdir_flag_spec\"
5928         libdir="$acl_save_libdir"
5929         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5930       done
5931     fi
5932   fi
5933   if test "X$ltrpathdirs" != "X"; then
5934             for found_dir in $ltrpathdirs; do
5935       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5936     done
5937   fi
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5953 stdlib.h string.h unistd.h sys/param.h
5954 do
5955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5957   echo "$as_me:$LINENO: checking for $ac_header" >&5
5958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5960   echo $ECHO_N "(cached) $ECHO_C" >&6
5961 fi
5962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5964 else
5965   # Is the header compilable?
5966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5968 cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h.  */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h.  */
5974 $ac_includes_default
5975 #include <$ac_header>
5976 _ACEOF
5977 rm -f conftest.$ac_objext
5978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5979   (eval $ac_compile) 2>conftest.er1
5980   ac_status=$?
5981   grep -v '^ *+' conftest.er1 >conftest.err
5982   rm -f conftest.er1
5983   cat conftest.err >&5
5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985   (exit $ac_status); } &&
5986          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988   (eval $ac_try) 2>&5
5989   ac_status=$?
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); }; } &&
5992          { ac_try='test -s conftest.$ac_objext'
5993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994   (eval $ac_try) 2>&5
5995   ac_status=$?
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); }; }; then
5998   ac_header_compiler=yes
5999 else
6000   echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6002
6003 ac_header_compiler=no
6004 fi
6005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6007 echo "${ECHO_T}$ac_header_compiler" >&6
6008
6009 # Is the header present?
6010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6012 cat >conftest.$ac_ext <<_ACEOF
6013 /* confdefs.h.  */
6014 _ACEOF
6015 cat confdefs.h >>conftest.$ac_ext
6016 cat >>conftest.$ac_ext <<_ACEOF
6017 /* end confdefs.h.  */
6018 #include <$ac_header>
6019 _ACEOF
6020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6021   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6022   ac_status=$?
6023   grep -v '^ *+' conftest.er1 >conftest.err
6024   rm -f conftest.er1
6025   cat conftest.err >&5
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); } >/dev/null; then
6028   if test -s conftest.err; then
6029     ac_cpp_err=$ac_c_preproc_warn_flag
6030     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6031   else
6032     ac_cpp_err=
6033   fi
6034 else
6035   ac_cpp_err=yes
6036 fi
6037 if test -z "$ac_cpp_err"; then
6038   ac_header_preproc=yes
6039 else
6040   echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6042
6043   ac_header_preproc=no
6044 fi
6045 rm -f conftest.err conftest.$ac_ext
6046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6047 echo "${ECHO_T}$ac_header_preproc" >&6
6048
6049 # So?  What about this header?
6050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6051   yes:no: )
6052     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6056     ac_header_preproc=yes
6057     ;;
6058   no:yes:* )
6059     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6061     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6062 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6063     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6065     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6066 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6069     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6071     (
6072       cat <<\_ASBOX
6073 ## ------------------------------- ##
6074 ## Report this to the pspp lists.  ##
6075 ## ------------------------------- ##
6076 _ASBOX
6077     ) |
6078       sed "s/^/$as_me: WARNING:     /" >&2
6079     ;;
6080 esac
6081 echo "$as_me:$LINENO: checking for $ac_header" >&5
6082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6084   echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086   eval "$as_ac_Header=\$ac_header_preproc"
6087 fi
6088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6090
6091 fi
6092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6093   cat >>confdefs.h <<_ACEOF
6094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6095 _ACEOF
6096
6097 fi
6098
6099 done
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
6124 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
6125 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
6126 __fsetlocking
6127 do
6128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6129 echo "$as_me:$LINENO: checking for $ac_func" >&5
6130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6131 if eval "test \"\${$as_ac_var+set}\" = set"; then
6132   echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134   cat >conftest.$ac_ext <<_ACEOF
6135 /* confdefs.h.  */
6136 _ACEOF
6137 cat confdefs.h >>conftest.$ac_ext
6138 cat >>conftest.$ac_ext <<_ACEOF
6139 /* end confdefs.h.  */
6140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6142 #define $ac_func innocuous_$ac_func
6143
6144 /* System header to define __stub macros and hopefully few prototypes,
6145     which can conflict with char $ac_func (); below.
6146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6147     <limits.h> exists even on freestanding compilers.  */
6148
6149 #ifdef __STDC__
6150 # include <limits.h>
6151 #else
6152 # include <assert.h>
6153 #endif
6154
6155 #undef $ac_func
6156
6157 /* Override any gcc2 internal prototype to avoid an error.  */
6158 #ifdef __cplusplus
6159 extern "C"
6160 {
6161 #endif
6162 /* We use char because int might match the return type of a gcc2
6163    builtin and then its argument prototype would still apply.  */
6164 char $ac_func ();
6165 /* The GNU C library defines this for functions which it implements
6166     to always fail with ENOSYS.  Some functions are actually named
6167     something starting with __ and the normal name is an alias.  */
6168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6169 choke me
6170 #else
6171 char (*f) () = $ac_func;
6172 #endif
6173 #ifdef __cplusplus
6174 }
6175 #endif
6176
6177 int
6178 main ()
6179 {
6180 return f != $ac_func;
6181   ;
6182   return 0;
6183 }
6184 _ACEOF
6185 rm -f conftest.$ac_objext conftest$ac_exeext
6186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6187   (eval $ac_link) 2>conftest.er1
6188   ac_status=$?
6189   grep -v '^ *+' conftest.er1 >conftest.err
6190   rm -f conftest.er1
6191   cat conftest.err >&5
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); } &&
6194          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196   (eval $ac_try) 2>&5
6197   ac_status=$?
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); }; } &&
6200          { ac_try='test -s conftest$ac_exeext'
6201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202   (eval $ac_try) 2>&5
6203   ac_status=$?
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); }; }; then
6206   eval "$as_ac_var=yes"
6207 else
6208   echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6210
6211 eval "$as_ac_var=no"
6212 fi
6213 rm -f conftest.err conftest.$ac_objext \
6214       conftest$ac_exeext conftest.$ac_ext
6215 fi
6216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6218 if test `eval echo '${'$as_ac_var'}'` = yes; then
6219   cat >>confdefs.h <<_ACEOF
6220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6221 _ACEOF
6222
6223 fi
6224 done
6225
6226
6227
6228
6229
6230
6231
6232           am_save_CPPFLAGS="$CPPFLAGS"
6233
6234   for element in $INCICONV; do
6235     haveit=
6236     for x in $CPPFLAGS; do
6237
6238   acl_save_prefix="$prefix"
6239   prefix="$acl_final_prefix"
6240   acl_save_exec_prefix="$exec_prefix"
6241   exec_prefix="$acl_final_exec_prefix"
6242   eval x=\"$x\"
6243   exec_prefix="$acl_save_exec_prefix"
6244   prefix="$acl_save_prefix"
6245
6246       if test "X$x" = "X$element"; then
6247         haveit=yes
6248         break
6249       fi
6250     done
6251     if test -z "$haveit"; then
6252       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6253     fi
6254   done
6255
6256
6257   echo "$as_me:$LINENO: checking for iconv" >&5
6258 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6259 if test "${am_cv_func_iconv+set}" = set; then
6260   echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262
6263     am_cv_func_iconv="no, consider installing GNU libiconv"
6264     am_cv_lib_iconv=no
6265     cat >conftest.$ac_ext <<_ACEOF
6266 /* confdefs.h.  */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h.  */
6271 #include <stdlib.h>
6272 #include <iconv.h>
6273 int
6274 main ()
6275 {
6276 iconv_t cd = iconv_open("","");
6277        iconv(cd,NULL,NULL,NULL,NULL);
6278        iconv_close(cd);
6279   ;
6280   return 0;
6281 }
6282 _ACEOF
6283 rm -f conftest.$ac_objext conftest$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285   (eval $ac_link) 2>conftest.er1
6286   ac_status=$?
6287   grep -v '^ *+' conftest.er1 >conftest.err
6288   rm -f conftest.er1
6289   cat conftest.err >&5
6290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291   (exit $ac_status); } &&
6292          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294   (eval $ac_try) 2>&5
6295   ac_status=$?
6296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297   (exit $ac_status); }; } &&
6298          { ac_try='test -s conftest$ac_exeext'
6299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300   (eval $ac_try) 2>&5
6301   ac_status=$?
6302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303   (exit $ac_status); }; }; then
6304   am_cv_func_iconv=yes
6305 else
6306   echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6308
6309 fi
6310 rm -f conftest.err conftest.$ac_objext \
6311       conftest$ac_exeext conftest.$ac_ext
6312     if test "$am_cv_func_iconv" != yes; then
6313       am_save_LIBS="$LIBS"
6314       LIBS="$LIBS $LIBICONV"
6315       cat >conftest.$ac_ext <<_ACEOF
6316 /* confdefs.h.  */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h.  */
6321 #include <stdlib.h>
6322 #include <iconv.h>
6323 int
6324 main ()
6325 {
6326 iconv_t cd = iconv_open("","");
6327          iconv(cd,NULL,NULL,NULL,NULL);
6328          iconv_close(cd);
6329   ;
6330   return 0;
6331 }
6332 _ACEOF
6333 rm -f conftest.$ac_objext conftest$ac_exeext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6335   (eval $ac_link) 2>conftest.er1
6336   ac_status=$?
6337   grep -v '^ *+' conftest.er1 >conftest.err
6338   rm -f conftest.er1
6339   cat conftest.err >&5
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); } &&
6342          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344   (eval $ac_try) 2>&5
6345   ac_status=$?
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); }; } &&
6348          { ac_try='test -s conftest$ac_exeext'
6349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350   (eval $ac_try) 2>&5
6351   ac_status=$?
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); }; }; then
6354   am_cv_lib_iconv=yes
6355         am_cv_func_iconv=yes
6356 else
6357   echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6359
6360 fi
6361 rm -f conftest.err conftest.$ac_objext \
6362       conftest$ac_exeext conftest.$ac_ext
6363       LIBS="$am_save_LIBS"
6364     fi
6365
6366 fi
6367 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6368 echo "${ECHO_T}$am_cv_func_iconv" >&6
6369   if test "$am_cv_func_iconv" = yes; then
6370
6371 cat >>confdefs.h <<\_ACEOF
6372 #define HAVE_ICONV 1
6373 _ACEOF
6374
6375   fi
6376   if test "$am_cv_lib_iconv" = yes; then
6377     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6378 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6379     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6380 echo "${ECHO_T}$LIBICONV" >&6
6381   else
6382             CPPFLAGS="$am_save_CPPFLAGS"
6383     LIBICONV=
6384     LTLIBICONV=
6385   fi
6386
6387
6388
6389   if test "$am_cv_func_iconv" = yes; then
6390     echo "$as_me:$LINENO: checking for iconv declaration" >&5
6391 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6392     if test "${am_cv_proto_iconv+set}" = set; then
6393   echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395
6396       cat >conftest.$ac_ext <<_ACEOF
6397 /* confdefs.h.  */
6398 _ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h.  */
6402
6403 #include <stdlib.h>
6404 #include <iconv.h>
6405 extern
6406 #ifdef __cplusplus
6407 "C"
6408 #endif
6409 #if defined(__STDC__) || defined(__cplusplus)
6410 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6411 #else
6412 size_t iconv();
6413 #endif
6414
6415 int
6416 main ()
6417 {
6418
6419   ;
6420   return 0;
6421 }
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425   (eval $ac_compile) 2>conftest.er1
6426   ac_status=$?
6427   grep -v '^ *+' conftest.er1 >conftest.err
6428   rm -f conftest.er1
6429   cat conftest.err >&5
6430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431   (exit $ac_status); } &&
6432          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434   (eval $ac_try) 2>&5
6435   ac_status=$?
6436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437   (exit $ac_status); }; } &&
6438          { ac_try='test -s conftest.$ac_objext'
6439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440   (eval $ac_try) 2>&5
6441   ac_status=$?
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); }; }; then
6444   am_cv_proto_iconv_arg1=""
6445 else
6446   echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6448
6449 am_cv_proto_iconv_arg1="const"
6450 fi
6451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6452       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
6453 fi
6454
6455     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6456     echo "$as_me:$LINENO: result: ${ac_t:-
6457          }$am_cv_proto_iconv" >&5
6458 echo "${ECHO_T}${ac_t:-
6459          }$am_cv_proto_iconv" >&6
6460
6461 cat >>confdefs.h <<_ACEOF
6462 #define ICONV_CONST $am_cv_proto_iconv_arg1
6463 _ACEOF
6464
6465   fi
6466
6467
6468   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
6469 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6470 if test "${am_cv_langinfo_codeset+set}" = set; then
6471   echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473   cat >conftest.$ac_ext <<_ACEOF
6474 /* confdefs.h.  */
6475 _ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h.  */
6479 #include <langinfo.h>
6480 int
6481 main ()
6482 {
6483 char* cs = nl_langinfo(CODESET);
6484   ;
6485   return 0;
6486 }
6487 _ACEOF
6488 rm -f conftest.$ac_objext conftest$ac_exeext
6489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6490   (eval $ac_link) 2>conftest.er1
6491   ac_status=$?
6492   grep -v '^ *+' conftest.er1 >conftest.err
6493   rm -f conftest.er1
6494   cat conftest.err >&5
6495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); } &&
6497          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499   (eval $ac_try) 2>&5
6500   ac_status=$?
6501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502   (exit $ac_status); }; } &&
6503          { ac_try='test -s conftest$ac_exeext'
6504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505   (eval $ac_try) 2>&5
6506   ac_status=$?
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); }; }; then
6509   am_cv_langinfo_codeset=yes
6510 else
6511   echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6513
6514 am_cv_langinfo_codeset=no
6515 fi
6516 rm -f conftest.err conftest.$ac_objext \
6517       conftest$ac_exeext conftest.$ac_ext
6518
6519 fi
6520 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
6521 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6522   if test $am_cv_langinfo_codeset = yes; then
6523
6524 cat >>confdefs.h <<\_ACEOF
6525 #define HAVE_LANGINFO_CODESET 1
6526 _ACEOF
6527
6528   fi
6529
6530   if test $ac_cv_header_locale_h = yes; then
6531
6532   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6533 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6534 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6535   echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537   cat >conftest.$ac_ext <<_ACEOF
6538 /* confdefs.h.  */
6539 _ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h.  */
6543 #include <locale.h>
6544 int
6545 main ()
6546 {
6547 return LC_MESSAGES
6548   ;
6549   return 0;
6550 }
6551 _ACEOF
6552 rm -f conftest.$ac_objext conftest$ac_exeext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6554   (eval $ac_link) 2>conftest.er1
6555   ac_status=$?
6556   grep -v '^ *+' conftest.er1 >conftest.err
6557   rm -f conftest.er1
6558   cat conftest.err >&5
6559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560   (exit $ac_status); } &&
6561          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563   (eval $ac_try) 2>&5
6564   ac_status=$?
6565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566   (exit $ac_status); }; } &&
6567          { ac_try='test -s conftest$ac_exeext'
6568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569   (eval $ac_try) 2>&5
6570   ac_status=$?
6571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572   (exit $ac_status); }; }; then
6573   am_cv_val_LC_MESSAGES=yes
6574 else
6575   echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6577
6578 am_cv_val_LC_MESSAGES=no
6579 fi
6580 rm -f conftest.err conftest.$ac_objext \
6581       conftest$ac_exeext conftest.$ac_ext
6582 fi
6583 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6584 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6585   if test $am_cv_val_LC_MESSAGES = yes; then
6586
6587 cat >>confdefs.h <<\_ACEOF
6588 #define HAVE_LC_MESSAGES 1
6589 _ACEOF
6590
6591   fi
6592
6593   fi
6594
6595                       for ac_prog in bison
6596 do
6597   # Extract the first word of "$ac_prog", so it can be a program name with args.
6598 set dummy $ac_prog; ac_word=$2
6599 echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6601 if test "${ac_cv_prog_INTLBISON+set}" = set; then
6602   echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604   if test -n "$INTLBISON"; then
6605   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6609 do
6610   IFS=$as_save_IFS
6611   test -z "$as_dir" && as_dir=.
6612   for ac_exec_ext in '' $ac_executable_extensions; do
6613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6614     ac_cv_prog_INTLBISON="$ac_prog"
6615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616     break 2
6617   fi
6618 done
6619 done
6620
6621 fi
6622 fi
6623 INTLBISON=$ac_cv_prog_INTLBISON
6624 if test -n "$INTLBISON"; then
6625   echo "$as_me:$LINENO: result: $INTLBISON" >&5
6626 echo "${ECHO_T}$INTLBISON" >&6
6627 else
6628   echo "$as_me:$LINENO: result: no" >&5
6629 echo "${ECHO_T}no" >&6
6630 fi
6631
6632   test -n "$INTLBISON" && break
6633 done
6634
6635   if test -z "$INTLBISON"; then
6636     ac_verc_fail=yes
6637   else
6638         echo "$as_me:$LINENO: checking version of bison" >&5
6639 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
6640     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6641     case $ac_prog_version in
6642       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
6643       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
6644          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
6645       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
6646     esac
6647     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
6648 echo "${ECHO_T}$ac_prog_version" >&6
6649   fi
6650   if test $ac_verc_fail = yes; then
6651     INTLBISON=:
6652   fi
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6670 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6671     # Check whether --enable-nls or --disable-nls was given.
6672 if test "${enable_nls+set}" = set; then
6673   enableval="$enable_nls"
6674   USE_NLS=$enableval
6675 else
6676   USE_NLS=yes
6677 fi;
6678   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6679 echo "${ECHO_T}$USE_NLS" >&6
6680
6681
6682
6683
6684     BUILD_INCLUDED_LIBINTL=no
6685     USE_INCLUDED_LIBINTL=no
6686
6687   LIBINTL=
6688   LTLIBINTL=
6689   POSUB=
6690
6691     if test "$USE_NLS" = "yes"; then
6692     gt_use_preinstalled_gnugettext=no
6693
6694       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6695 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6696
6697 # Check whether --with-included-gettext or --without-included-gettext was given.
6698 if test "${with_included_gettext+set}" = set; then
6699   withval="$with_included_gettext"
6700   nls_cv_force_use_gnu_gettext=$withval
6701 else
6702   nls_cv_force_use_gnu_gettext=no
6703 fi;
6704       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6705 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6706
6707       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6708       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6709
6710
6711
6712
6713
6714
6715         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6716 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
6717 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6718   echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720   cat >conftest.$ac_ext <<_ACEOF
6721 /* confdefs.h.  */
6722 _ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h.  */
6726 #include <libintl.h>
6727 extern int _nl_msg_cat_cntr;
6728 extern int *_nl_domain_bindings;
6729 int
6730 main ()
6731 {
6732 bindtextdomain ("", "");
6733 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6734   ;
6735   return 0;
6736 }
6737 _ACEOF
6738 rm -f conftest.$ac_objext conftest$ac_exeext
6739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6740   (eval $ac_link) 2>conftest.er1
6741   ac_status=$?
6742   grep -v '^ *+' conftest.er1 >conftest.err
6743   rm -f conftest.er1
6744   cat conftest.err >&5
6745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); } &&
6747          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749   (eval $ac_try) 2>&5
6750   ac_status=$?
6751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752   (exit $ac_status); }; } &&
6753          { ac_try='test -s conftest$ac_exeext'
6754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755   (eval $ac_try) 2>&5
6756   ac_status=$?
6757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758   (exit $ac_status); }; }; then
6759   gt_cv_func_gnugettext1_libc=yes
6760 else
6761   echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6763
6764 gt_cv_func_gnugettext1_libc=no
6765 fi
6766 rm -f conftest.err conftest.$ac_objext \
6767       conftest$ac_exeext conftest.$ac_ext
6768 fi
6769 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6770 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6771
6772         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6773
6774
6775
6776     use_additional=yes
6777
6778   acl_save_prefix="$prefix"
6779   prefix="$acl_final_prefix"
6780   acl_save_exec_prefix="$exec_prefix"
6781   exec_prefix="$acl_final_exec_prefix"
6782
6783     eval additional_includedir=\"$includedir\"
6784     eval additional_libdir=\"$libdir\"
6785
6786   exec_prefix="$acl_save_exec_prefix"
6787   prefix="$acl_save_prefix"
6788
6789
6790 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6791 if test "${with_libintl_prefix+set}" = set; then
6792   withval="$with_libintl_prefix"
6793
6794     if test "X$withval" = "Xno"; then
6795       use_additional=no
6796     else
6797       if test "X$withval" = "X"; then
6798
6799   acl_save_prefix="$prefix"
6800   prefix="$acl_final_prefix"
6801   acl_save_exec_prefix="$exec_prefix"
6802   exec_prefix="$acl_final_exec_prefix"
6803
6804           eval additional_includedir=\"$includedir\"
6805           eval additional_libdir=\"$libdir\"
6806
6807   exec_prefix="$acl_save_exec_prefix"
6808   prefix="$acl_save_prefix"
6809
6810       else
6811         additional_includedir="$withval/include"
6812         additional_libdir="$withval/lib"
6813       fi
6814     fi
6815
6816 fi;
6817       LIBINTL=
6818   LTLIBINTL=
6819   INCINTL=
6820   rpathdirs=
6821   ltrpathdirs=
6822   names_already_handled=
6823   names_next_round='intl '
6824   while test -n "$names_next_round"; do
6825     names_this_round="$names_next_round"
6826     names_next_round=
6827     for name in $names_this_round; do
6828       already_handled=
6829       for n in $names_already_handled; do
6830         if test "$n" = "$name"; then
6831           already_handled=yes
6832           break
6833         fi
6834       done
6835       if test -z "$already_handled"; then
6836         names_already_handled="$names_already_handled $name"
6837                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6838         eval value=\"\$HAVE_LIB$uppername\"
6839         if test -n "$value"; then
6840           if test "$value" = yes; then
6841             eval value=\"\$LIB$uppername\"
6842             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6843             eval value=\"\$LTLIB$uppername\"
6844             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6845           else
6846                                     :
6847           fi
6848         else
6849                               found_dir=
6850           found_la=
6851           found_so=
6852           found_a=
6853           if test $use_additional = yes; then
6854             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6855               found_dir="$additional_libdir"
6856               found_so="$additional_libdir/lib$name.$shlibext"
6857               if test -f "$additional_libdir/lib$name.la"; then
6858                 found_la="$additional_libdir/lib$name.la"
6859               fi
6860             else
6861               if test -f "$additional_libdir/lib$name.$libext"; then
6862                 found_dir="$additional_libdir"
6863                 found_a="$additional_libdir/lib$name.$libext"
6864                 if test -f "$additional_libdir/lib$name.la"; then
6865                   found_la="$additional_libdir/lib$name.la"
6866                 fi
6867               fi
6868             fi
6869           fi
6870           if test "X$found_dir" = "X"; then
6871             for x in $LDFLAGS $LTLIBINTL; do
6872
6873   acl_save_prefix="$prefix"
6874   prefix="$acl_final_prefix"
6875   acl_save_exec_prefix="$exec_prefix"
6876   exec_prefix="$acl_final_exec_prefix"
6877   eval x=\"$x\"
6878   exec_prefix="$acl_save_exec_prefix"
6879   prefix="$acl_save_prefix"
6880
6881               case "$x" in
6882                 -L*)
6883                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6884                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6885                     found_dir="$dir"
6886                     found_so="$dir/lib$name.$shlibext"
6887                     if test -f "$dir/lib$name.la"; then
6888                       found_la="$dir/lib$name.la"
6889                     fi
6890                   else
6891                     if test -f "$dir/lib$name.$libext"; then
6892                       found_dir="$dir"
6893                       found_a="$dir/lib$name.$libext"
6894                       if test -f "$dir/lib$name.la"; then
6895                         found_la="$dir/lib$name.la"
6896                       fi
6897                     fi
6898                   fi
6899                   ;;
6900               esac
6901               if test "X$found_dir" != "X"; then
6902                 break
6903               fi
6904             done
6905           fi
6906           if test "X$found_dir" != "X"; then
6907                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6908             if test "X$found_so" != "X"; then
6909                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6910                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6911               else
6912                                                                                 haveit=
6913                 for x in $ltrpathdirs; do
6914                   if test "X$x" = "X$found_dir"; then
6915                     haveit=yes
6916                     break
6917                   fi
6918                 done
6919                 if test -z "$haveit"; then
6920                   ltrpathdirs="$ltrpathdirs $found_dir"
6921                 fi
6922                                 if test "$hardcode_direct" = yes; then
6923                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6924                 else
6925                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6926                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6927                                                             haveit=
6928                     for x in $rpathdirs; do
6929                       if test "X$x" = "X$found_dir"; then
6930                         haveit=yes
6931                         break
6932                       fi
6933                     done
6934                     if test -z "$haveit"; then
6935                       rpathdirs="$rpathdirs $found_dir"
6936                     fi
6937                   else
6938                                                                                 haveit=
6939                     for x in $LDFLAGS $LIBINTL; do
6940
6941   acl_save_prefix="$prefix"
6942   prefix="$acl_final_prefix"
6943   acl_save_exec_prefix="$exec_prefix"
6944   exec_prefix="$acl_final_exec_prefix"
6945   eval x=\"$x\"
6946   exec_prefix="$acl_save_exec_prefix"
6947   prefix="$acl_save_prefix"
6948
6949                       if test "X$x" = "X-L$found_dir"; then
6950                         haveit=yes
6951                         break
6952                       fi
6953                     done
6954                     if test -z "$haveit"; then
6955                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6956                     fi
6957                     if test "$hardcode_minus_L" != no; then
6958                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6959                     else
6960                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6961                     fi
6962                   fi
6963                 fi
6964               fi
6965             else
6966               if test "X$found_a" != "X"; then
6967                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6968               else
6969                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6970               fi
6971             fi
6972                         additional_includedir=
6973             case "$found_dir" in
6974               */lib | */lib/)
6975                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6976                 additional_includedir="$basedir/include"
6977                 ;;
6978             esac
6979             if test "X$additional_includedir" != "X"; then
6980                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6981                 haveit=
6982                 if test "X$additional_includedir" = "X/usr/local/include"; then
6983                   if test -n "$GCC"; then
6984                     case $host_os in
6985                       linux*) haveit=yes;;
6986                     esac
6987                   fi
6988                 fi
6989                 if test -z "$haveit"; then
6990                   for x in $CPPFLAGS $INCINTL; do
6991
6992   acl_save_prefix="$prefix"
6993   prefix="$acl_final_prefix"
6994   acl_save_exec_prefix="$exec_prefix"
6995   exec_prefix="$acl_final_exec_prefix"
6996   eval x=\"$x\"
6997   exec_prefix="$acl_save_exec_prefix"
6998   prefix="$acl_save_prefix"
6999
7000                     if test "X$x" = "X-I$additional_includedir"; then
7001                       haveit=yes
7002                       break
7003                     fi
7004                   done
7005                   if test -z "$haveit"; then
7006                     if test -d "$additional_includedir"; then
7007                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7008                     fi
7009                   fi
7010                 fi
7011               fi
7012             fi
7013                         if test -n "$found_la"; then
7014                                                         save_libdir="$libdir"
7015               case "$found_la" in
7016                 */* | *\\*) . "$found_la" ;;
7017                 *) . "./$found_la" ;;
7018               esac
7019               libdir="$save_libdir"
7020                             for dep in $dependency_libs; do
7021                 case "$dep" in
7022                   -L*)
7023                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7024                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7025                       haveit=
7026                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7027                         if test -n "$GCC"; then
7028                           case $host_os in
7029                             linux*) haveit=yes;;
7030                           esac
7031                         fi
7032                       fi
7033                       if test -z "$haveit"; then
7034                         haveit=
7035                         for x in $LDFLAGS $LIBINTL; do
7036
7037   acl_save_prefix="$prefix"
7038   prefix="$acl_final_prefix"
7039   acl_save_exec_prefix="$exec_prefix"
7040   exec_prefix="$acl_final_exec_prefix"
7041   eval x=\"$x\"
7042   exec_prefix="$acl_save_exec_prefix"
7043   prefix="$acl_save_prefix"
7044
7045                           if test "X$x" = "X-L$additional_libdir"; then
7046                             haveit=yes
7047                             break
7048                           fi
7049                         done
7050                         if test -z "$haveit"; then
7051                           if test -d "$additional_libdir"; then
7052                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7053                           fi
7054                         fi
7055                         haveit=
7056                         for x in $LDFLAGS $LTLIBINTL; do
7057
7058   acl_save_prefix="$prefix"
7059   prefix="$acl_final_prefix"
7060   acl_save_exec_prefix="$exec_prefix"
7061   exec_prefix="$acl_final_exec_prefix"
7062   eval x=\"$x\"
7063   exec_prefix="$acl_save_exec_prefix"
7064   prefix="$acl_save_prefix"
7065
7066                           if test "X$x" = "X-L$additional_libdir"; then
7067                             haveit=yes
7068                             break
7069                           fi
7070                         done
7071                         if test -z "$haveit"; then
7072                           if test -d "$additional_libdir"; then
7073                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7074                           fi
7075                         fi
7076                       fi
7077                     fi
7078                     ;;
7079                   -R*)
7080                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7081                     if test "$enable_rpath" != no; then
7082                                                                   haveit=
7083                       for x in $rpathdirs; do
7084                         if test "X$x" = "X$dir"; then
7085                           haveit=yes
7086                           break
7087                         fi
7088                       done
7089                       if test -z "$haveit"; then
7090                         rpathdirs="$rpathdirs $dir"
7091                       fi
7092                                                                   haveit=
7093                       for x in $ltrpathdirs; do
7094                         if test "X$x" = "X$dir"; then
7095                           haveit=yes
7096                           break
7097                         fi
7098                       done
7099                       if test -z "$haveit"; then
7100                         ltrpathdirs="$ltrpathdirs $dir"
7101                       fi
7102                     fi
7103                     ;;
7104                   -l*)
7105                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7106                     ;;
7107                   *.la)
7108                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7109                     ;;
7110                   *)
7111                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7112                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7113                     ;;
7114                 esac
7115               done
7116             fi
7117           else
7118                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7119             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7120           fi
7121         fi
7122       fi
7123     done
7124   done
7125   if test "X$rpathdirs" != "X"; then
7126     if test -n "$hardcode_libdir_separator"; then
7127                         alldirs=
7128       for found_dir in $rpathdirs; do
7129         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7130       done
7131             acl_save_libdir="$libdir"
7132       libdir="$alldirs"
7133       eval flag=\"$hardcode_libdir_flag_spec\"
7134       libdir="$acl_save_libdir"
7135       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7136     else
7137             for found_dir in $rpathdirs; do
7138         acl_save_libdir="$libdir"
7139         libdir="$found_dir"
7140         eval flag=\"$hardcode_libdir_flag_spec\"
7141         libdir="$acl_save_libdir"
7142         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7143       done
7144     fi
7145   fi
7146   if test "X$ltrpathdirs" != "X"; then
7147             for found_dir in $ltrpathdirs; do
7148       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7149     done
7150   fi
7151
7152           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7153 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7154 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7155   echo $ECHO_N "(cached) $ECHO_C" >&6
7156 else
7157   gt_save_CPPFLAGS="$CPPFLAGS"
7158             CPPFLAGS="$CPPFLAGS $INCINTL"
7159             gt_save_LIBS="$LIBS"
7160             LIBS="$LIBS $LIBINTL"
7161                         cat >conftest.$ac_ext <<_ACEOF
7162 /* confdefs.h.  */
7163 _ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h.  */
7167 #include <libintl.h>
7168 extern int _nl_msg_cat_cntr;
7169 extern
7170 #ifdef __cplusplus
7171 "C"
7172 #endif
7173 const char *_nl_expand_alias ();
7174 int
7175 main ()
7176 {
7177 bindtextdomain ("", "");
7178 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7179   ;
7180   return 0;
7181 }
7182 _ACEOF
7183 rm -f conftest.$ac_objext conftest$ac_exeext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7185   (eval $ac_link) 2>conftest.er1
7186   ac_status=$?
7187   grep -v '^ *+' conftest.er1 >conftest.err
7188   rm -f conftest.er1
7189   cat conftest.err >&5
7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); } &&
7192          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194   (eval $ac_try) 2>&5
7195   ac_status=$?
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); }; } &&
7198          { ac_try='test -s conftest$ac_exeext'
7199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200   (eval $ac_try) 2>&5
7201   ac_status=$?
7202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203   (exit $ac_status); }; }; then
7204   gt_cv_func_gnugettext1_libintl=yes
7205 else
7206   echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7208
7209 gt_cv_func_gnugettext1_libintl=no
7210 fi
7211 rm -f conftest.err conftest.$ac_objext \
7212       conftest$ac_exeext conftest.$ac_ext
7213                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7214               LIBS="$LIBS $LIBICONV"
7215               cat >conftest.$ac_ext <<_ACEOF
7216 /* confdefs.h.  */
7217 _ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h.  */
7221 #include <libintl.h>
7222 extern int _nl_msg_cat_cntr;
7223 extern
7224 #ifdef __cplusplus
7225 "C"
7226 #endif
7227 const char *_nl_expand_alias ();
7228 int
7229 main ()
7230 {
7231 bindtextdomain ("", "");
7232 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7233   ;
7234   return 0;
7235 }
7236 _ACEOF
7237 rm -f conftest.$ac_objext conftest$ac_exeext
7238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7239   (eval $ac_link) 2>conftest.er1
7240   ac_status=$?
7241   grep -v '^ *+' conftest.er1 >conftest.err
7242   rm -f conftest.er1
7243   cat conftest.err >&5
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); } &&
7246          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248   (eval $ac_try) 2>&5
7249   ac_status=$?
7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251   (exit $ac_status); }; } &&
7252          { ac_try='test -s conftest$ac_exeext'
7253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254   (eval $ac_try) 2>&5
7255   ac_status=$?
7256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); }; }; then
7258   LIBINTL="$LIBINTL $LIBICONV"
7259                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7260                 gt_cv_func_gnugettext1_libintl=yes
7261
7262 else
7263   echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7265
7266 fi
7267 rm -f conftest.err conftest.$ac_objext \
7268       conftest$ac_exeext conftest.$ac_ext
7269             fi
7270             CPPFLAGS="$gt_save_CPPFLAGS"
7271             LIBS="$gt_save_LIBS"
7272 fi
7273 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7274 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7275         fi
7276
7277                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7278            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7279                 && test "$PACKAGE" != gettext-runtime \
7280                 && test "$PACKAGE" != gettext-tools; }; then
7281           gt_use_preinstalled_gnugettext=yes
7282         else
7283                     LIBINTL=
7284           LTLIBINTL=
7285           INCINTL=
7286         fi
7287
7288
7289         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
7290                               nls_cv_use_gnu_gettext=yes
7291         fi
7292       fi
7293
7294       if test "$nls_cv_use_gnu_gettext" = "yes"; then
7295                 BUILD_INCLUDED_LIBINTL=yes
7296         USE_INCLUDED_LIBINTL=yes
7297         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
7298         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
7299         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
7300       fi
7301
7302       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7303          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7304                 CATOBJEXT=.gmo
7305       fi
7306
7307
7308     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7309        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7310
7311 cat >>confdefs.h <<\_ACEOF
7312 #define ENABLE_NLS 1
7313 _ACEOF
7314
7315     else
7316       USE_NLS=no
7317     fi
7318   fi
7319
7320   echo "$as_me:$LINENO: checking whether to use NLS" >&5
7321 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
7322   echo "$as_me:$LINENO: result: $USE_NLS" >&5
7323 echo "${ECHO_T}$USE_NLS" >&6
7324   if test "$USE_NLS" = "yes"; then
7325     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7326 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
7327     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7328       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7329         gt_source="external libintl"
7330       else
7331         gt_source="libc"
7332       fi
7333     else
7334       gt_source="included intl directory"
7335     fi
7336     echo "$as_me:$LINENO: result: $gt_source" >&5
7337 echo "${ECHO_T}$gt_source" >&6
7338   fi
7339
7340   if test "$USE_NLS" = "yes"; then
7341
7342     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7343       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7344         echo "$as_me:$LINENO: checking how to link with libintl" >&5
7345 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
7346         echo "$as_me:$LINENO: result: $LIBINTL" >&5
7347 echo "${ECHO_T}$LIBINTL" >&6
7348
7349   for element in $INCINTL; do
7350     haveit=
7351     for x in $CPPFLAGS; do
7352
7353   acl_save_prefix="$prefix"
7354   prefix="$acl_final_prefix"
7355   acl_save_exec_prefix="$exec_prefix"
7356   exec_prefix="$acl_final_exec_prefix"
7357   eval x=\"$x\"
7358   exec_prefix="$acl_save_exec_prefix"
7359   prefix="$acl_save_prefix"
7360
7361       if test "X$x" = "X$element"; then
7362         haveit=yes
7363         break
7364       fi
7365     done
7366     if test -z "$haveit"; then
7367       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7368     fi
7369   done
7370
7371       fi
7372
7373
7374 cat >>confdefs.h <<\_ACEOF
7375 #define HAVE_GETTEXT 1
7376 _ACEOF
7377
7378
7379 cat >>confdefs.h <<\_ACEOF
7380 #define HAVE_DCGETTEXT 1
7381 _ACEOF
7382
7383     fi
7384
7385         POSUB=po
7386   fi
7387
7388
7389             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
7390       BUILD_INCLUDED_LIBINTL=yes
7391     fi
7392
7393
7394
7395
7396
7397         nls_cv_header_intl=
7398     nls_cv_header_libgt=
7399
7400         DATADIRNAME=share
7401
7402
7403         INSTOBJEXT=.mo
7404
7405
7406         GENCAT=gencat
7407
7408
7409         if test "$USE_INCLUDED_LIBINTL" = yes; then
7410       INTLOBJS="\$(GETTOBJS)"
7411     fi
7412
7413
7414         INTL_LIBTOOL_SUFFIX_PREFIX=
7415
7416
7417
7418     INTLLIBS="$LIBINTL"
7419
7420
7421
7422
7423
7424
7425
7426
7427 echo "$as_me:$LINENO: checking for sin in -lm" >&5
7428 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
7429 if test "${ac_cv_lib_m_sin+set}" = set; then
7430   echo $ECHO_N "(cached) $ECHO_C" >&6
7431 else
7432   ac_check_lib_save_LIBS=$LIBS
7433 LIBS="-lm  $LIBS"
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
7441 /* Override any gcc2 internal prototype to avoid an error.  */
7442 #ifdef __cplusplus
7443 extern "C"
7444 #endif
7445 /* We use char because int might match the return type of a gcc2
7446    builtin and then its argument prototype would still apply.  */
7447 char sin ();
7448 int
7449 main ()
7450 {
7451 sin ();
7452   ;
7453   return 0;
7454 }
7455 _ACEOF
7456 rm -f conftest.$ac_objext conftest$ac_exeext
7457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7458   (eval $ac_link) 2>conftest.er1
7459   ac_status=$?
7460   grep -v '^ *+' conftest.er1 >conftest.err
7461   rm -f conftest.er1
7462   cat conftest.err >&5
7463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464   (exit $ac_status); } &&
7465          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467   (eval $ac_try) 2>&5
7468   ac_status=$?
7469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470   (exit $ac_status); }; } &&
7471          { ac_try='test -s conftest$ac_exeext'
7472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473   (eval $ac_try) 2>&5
7474   ac_status=$?
7475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476   (exit $ac_status); }; }; then
7477   ac_cv_lib_m_sin=yes
7478 else
7479   echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7481
7482 ac_cv_lib_m_sin=no
7483 fi
7484 rm -f conftest.err conftest.$ac_objext \
7485       conftest$ac_exeext conftest.$ac_ext
7486 LIBS=$ac_check_lib_save_LIBS
7487 fi
7488 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
7489 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
7490 if test $ac_cv_lib_m_sin = yes; then
7491   cat >>confdefs.h <<_ACEOF
7492 #define HAVE_LIBM 1
7493 _ACEOF
7494
7495   LIBS="-lm $LIBS"
7496
7497 fi
7498
7499 echo "$as_me:$LINENO: checking for mpf_get_str in -lgmp" >&5
7500 echo $ECHO_N "checking for mpf_get_str in -lgmp... $ECHO_C" >&6
7501 if test "${ac_cv_lib_gmp_mpf_get_str+set}" = set; then
7502   echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504   ac_check_lib_save_LIBS=$LIBS
7505 LIBS="-lgmp  $LIBS"
7506 cat >conftest.$ac_ext <<_ACEOF
7507 /* confdefs.h.  */
7508 _ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h.  */
7512
7513 /* Override any gcc2 internal prototype to avoid an error.  */
7514 #ifdef __cplusplus
7515 extern "C"
7516 #endif
7517 /* We use char because int might match the return type of a gcc2
7518    builtin and then its argument prototype would still apply.  */
7519 char mpf_get_str ();
7520 int
7521 main ()
7522 {
7523 mpf_get_str ();
7524   ;
7525   return 0;
7526 }
7527 _ACEOF
7528 rm -f conftest.$ac_objext conftest$ac_exeext
7529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7530   (eval $ac_link) 2>conftest.er1
7531   ac_status=$?
7532   grep -v '^ *+' conftest.er1 >conftest.err
7533   rm -f conftest.er1
7534   cat conftest.err >&5
7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); } &&
7537          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539   (eval $ac_try) 2>&5
7540   ac_status=$?
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); }; } &&
7543          { ac_try='test -s conftest$ac_exeext'
7544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545   (eval $ac_try) 2>&5
7546   ac_status=$?
7547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548   (exit $ac_status); }; }; then
7549   ac_cv_lib_gmp_mpf_get_str=yes
7550 else
7551   echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7553
7554 ac_cv_lib_gmp_mpf_get_str=no
7555 fi
7556 rm -f conftest.err conftest.$ac_objext \
7557       conftest$ac_exeext conftest.$ac_ext
7558 LIBS=$ac_check_lib_save_LIBS
7559 fi
7560 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_mpf_get_str" >&5
7561 echo "${ECHO_T}$ac_cv_lib_gmp_mpf_get_str" >&6
7562 if test $ac_cv_lib_gmp_mpf_get_str = yes; then
7563   LIBS="-lgmp $LIBS"
7564 else
7565   echo "$as_me:$LINENO: checking for __gmpf_get_str in -lgmp" >&5
7566 echo $ECHO_N "checking for __gmpf_get_str in -lgmp... $ECHO_C" >&6
7567 if test "${ac_cv_lib_gmp___gmpf_get_str+set}" = set; then
7568   echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570   ac_check_lib_save_LIBS=$LIBS
7571 LIBS="-lgmp  $LIBS"
7572 cat >conftest.$ac_ext <<_ACEOF
7573 /* confdefs.h.  */
7574 _ACEOF
7575 cat confdefs.h >>conftest.$ac_ext
7576 cat >>conftest.$ac_ext <<_ACEOF
7577 /* end confdefs.h.  */
7578
7579 /* Override any gcc2 internal prototype to avoid an error.  */
7580 #ifdef __cplusplus
7581 extern "C"
7582 #endif
7583 /* We use char because int might match the return type of a gcc2
7584    builtin and then its argument prototype would still apply.  */
7585 char __gmpf_get_str ();
7586 int
7587 main ()
7588 {
7589 __gmpf_get_str ();
7590   ;
7591   return 0;
7592 }
7593 _ACEOF
7594 rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7596   (eval $ac_link) 2>conftest.er1
7597   ac_status=$?
7598   grep -v '^ *+' conftest.er1 >conftest.err
7599   rm -f conftest.er1
7600   cat conftest.err >&5
7601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602   (exit $ac_status); } &&
7603          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605   (eval $ac_try) 2>&5
7606   ac_status=$?
7607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608   (exit $ac_status); }; } &&
7609          { ac_try='test -s conftest$ac_exeext'
7610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611   (eval $ac_try) 2>&5
7612   ac_status=$?
7613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614   (exit $ac_status); }; }; then
7615   ac_cv_lib_gmp___gmpf_get_str=yes
7616 else
7617   echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7619
7620 ac_cv_lib_gmp___gmpf_get_str=no
7621 fi
7622 rm -f conftest.err conftest.$ac_objext \
7623       conftest$ac_exeext conftest.$ac_ext
7624 LIBS=$ac_check_lib_save_LIBS
7625 fi
7626 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpf_get_str" >&5
7627 echo "${ECHO_T}$ac_cv_lib_gmp___gmpf_get_str" >&6
7628 if test $ac_cv_lib_gmp___gmpf_get_str = yes; then
7629   LIBS="-lgmp $LIBS"
7630 fi
7631
7632 fi
7633
7634
7635 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
7636 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
7637 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
7638   echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640   ac_check_lib_save_LIBS=$LIBS
7641 LIBS="-lncurses  $LIBS"
7642 cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h.  */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h.  */
7648
7649 /* Override any gcc2 internal prototype to avoid an error.  */
7650 #ifdef __cplusplus
7651 extern "C"
7652 #endif
7653 /* We use char because int might match the return type of a gcc2
7654    builtin and then its argument prototype would still apply.  */
7655 char tgetent ();
7656 int
7657 main ()
7658 {
7659 tgetent ();
7660   ;
7661   return 0;
7662 }
7663 _ACEOF
7664 rm -f conftest.$ac_objext conftest$ac_exeext
7665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7666   (eval $ac_link) 2>conftest.er1
7667   ac_status=$?
7668   grep -v '^ *+' conftest.er1 >conftest.err
7669   rm -f conftest.er1
7670   cat conftest.err >&5
7671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672   (exit $ac_status); } &&
7673          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675   (eval $ac_try) 2>&5
7676   ac_status=$?
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); }; } &&
7679          { ac_try='test -s conftest$ac_exeext'
7680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681   (eval $ac_try) 2>&5
7682   ac_status=$?
7683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684   (exit $ac_status); }; }; then
7685   ac_cv_lib_ncurses_tgetent=yes
7686 else
7687   echo "$as_me: failed program was:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7689
7690 ac_cv_lib_ncurses_tgetent=no
7691 fi
7692 rm -f conftest.err conftest.$ac_objext \
7693       conftest$ac_exeext conftest.$ac_ext
7694 LIBS=$ac_check_lib_save_LIBS
7695 fi
7696 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
7697 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
7698 if test $ac_cv_lib_ncurses_tgetent = yes; then
7699   LIBS="-lncurses $LIBS" termcap=yes
7700 else
7701   echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
7702 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
7703 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
7704   echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706   ac_check_lib_save_LIBS=$LIBS
7707 LIBS="-ltermcap  $LIBS"
7708 cat >conftest.$ac_ext <<_ACEOF
7709 /* confdefs.h.  */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h.  */
7714
7715 /* Override any gcc2 internal prototype to avoid an error.  */
7716 #ifdef __cplusplus
7717 extern "C"
7718 #endif
7719 /* We use char because int might match the return type of a gcc2
7720    builtin and then its argument prototype would still apply.  */
7721 char tgetent ();
7722 int
7723 main ()
7724 {
7725 tgetent ();
7726   ;
7727   return 0;
7728 }
7729 _ACEOF
7730 rm -f conftest.$ac_objext conftest$ac_exeext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7732   (eval $ac_link) 2>conftest.er1
7733   ac_status=$?
7734   grep -v '^ *+' conftest.er1 >conftest.err
7735   rm -f conftest.er1
7736   cat conftest.err >&5
7737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738   (exit $ac_status); } &&
7739          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741   (eval $ac_try) 2>&5
7742   ac_status=$?
7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744   (exit $ac_status); }; } &&
7745          { ac_try='test -s conftest$ac_exeext'
7746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747   (eval $ac_try) 2>&5
7748   ac_status=$?
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); }; }; then
7751   ac_cv_lib_termcap_tgetent=yes
7752 else
7753   echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7755
7756 ac_cv_lib_termcap_tgetent=no
7757 fi
7758 rm -f conftest.err conftest.$ac_objext \
7759       conftest$ac_exeext conftest.$ac_ext
7760 LIBS=$ac_check_lib_save_LIBS
7761 fi
7762 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
7763 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
7764 if test $ac_cv_lib_termcap_tgetent = yes; then
7765   LIBS="-ltermcap $LIBS" termcap=yes
7766 else
7767   termcap=no
7768 fi
7769
7770 fi
7771
7772 if test "$termcap" = yes; then
7773
7774 for ac_header in termcap.h
7775 do
7776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7778   echo "$as_me:$LINENO: checking for $ac_header" >&5
7779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 fi
7783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7785 else
7786   # Is the header compilable?
7787 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h.  */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h.  */
7795 $ac_includes_default
7796 #include <$ac_header>
7797 _ACEOF
7798 rm -f conftest.$ac_objext
7799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7800   (eval $ac_compile) 2>conftest.er1
7801   ac_status=$?
7802   grep -v '^ *+' conftest.er1 >conftest.err
7803   rm -f conftest.er1
7804   cat conftest.err >&5
7805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806   (exit $ac_status); } &&
7807          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7809   (eval $ac_try) 2>&5
7810   ac_status=$?
7811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812   (exit $ac_status); }; } &&
7813          { ac_try='test -s conftest.$ac_objext'
7814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815   (eval $ac_try) 2>&5
7816   ac_status=$?
7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); }; }; then
7819   ac_header_compiler=yes
7820 else
7821   echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7823
7824 ac_header_compiler=no
7825 fi
7826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7828 echo "${ECHO_T}$ac_header_compiler" >&6
7829
7830 # Is the header present?
7831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7833 cat >conftest.$ac_ext <<_ACEOF
7834 /* confdefs.h.  */
7835 _ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h.  */
7839 #include <$ac_header>
7840 _ACEOF
7841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7842   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7843   ac_status=$?
7844   grep -v '^ *+' conftest.er1 >conftest.err
7845   rm -f conftest.er1
7846   cat conftest.err >&5
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); } >/dev/null; then
7849   if test -s conftest.err; then
7850     ac_cpp_err=$ac_c_preproc_warn_flag
7851     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7852   else
7853     ac_cpp_err=
7854   fi
7855 else
7856   ac_cpp_err=yes
7857 fi
7858 if test -z "$ac_cpp_err"; then
7859   ac_header_preproc=yes
7860 else
7861   echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7863
7864   ac_header_preproc=no
7865 fi
7866 rm -f conftest.err conftest.$ac_ext
7867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7868 echo "${ECHO_T}$ac_header_preproc" >&6
7869
7870 # So?  What about this header?
7871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7872   yes:no: )
7873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7877     ac_header_preproc=yes
7878     ;;
7879   no:yes:* )
7880     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7882     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7883 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7884     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7886     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7887 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7890     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7892     (
7893       cat <<\_ASBOX
7894 ## ------------------------------- ##
7895 ## Report this to the pspp lists.  ##
7896 ## ------------------------------- ##
7897 _ASBOX
7898     ) |
7899       sed "s/^/$as_me: WARNING:     /" >&2
7900     ;;
7901 esac
7902 echo "$as_me:$LINENO: checking for $ac_header" >&5
7903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7905   echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907   eval "$as_ac_Header=\$ac_header_preproc"
7908 fi
7909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7911
7912 fi
7913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7914   cat >>confdefs.h <<_ACEOF
7915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7916 _ACEOF
7917
7918 fi
7919
7920 done
7921
7922
7923 cat >>confdefs.h <<\_ACEOF
7924 #define HAVE_LIBTERMCAP 1
7925 _ACEOF
7926
7927 fi
7928
7929
7930 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
7931 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
7932 if test "${ac_cv_lib_readline_readline+set}" = set; then
7933   echo $ECHO_N "(cached) $ECHO_C" >&6
7934 else
7935   ac_check_lib_save_LIBS=$LIBS
7936 LIBS="-lreadline  $LIBS"
7937 cat >conftest.$ac_ext <<_ACEOF
7938 /* confdefs.h.  */
7939 _ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h.  */
7943
7944 /* Override any gcc2 internal prototype to avoid an error.  */
7945 #ifdef __cplusplus
7946 extern "C"
7947 #endif
7948 /* We use char because int might match the return type of a gcc2
7949    builtin and then its argument prototype would still apply.  */
7950 char readline ();
7951 int
7952 main ()
7953 {
7954 readline ();
7955   ;
7956   return 0;
7957 }
7958 _ACEOF
7959 rm -f conftest.$ac_objext conftest$ac_exeext
7960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7961   (eval $ac_link) 2>conftest.er1
7962   ac_status=$?
7963   grep -v '^ *+' conftest.er1 >conftest.err
7964   rm -f conftest.er1
7965   cat conftest.err >&5
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); } &&
7968          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970   (eval $ac_try) 2>&5
7971   ac_status=$?
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); }; } &&
7974          { ac_try='test -s conftest$ac_exeext'
7975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976   (eval $ac_try) 2>&5
7977   ac_status=$?
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); }; }; then
7980   ac_cv_lib_readline_readline=yes
7981 else
7982   echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7984
7985 ac_cv_lib_readline_readline=no
7986 fi
7987 rm -f conftest.err conftest.$ac_objext \
7988       conftest$ac_exeext conftest.$ac_ext
7989 LIBS=$ac_check_lib_save_LIBS
7990 fi
7991 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
7992 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
7993 if test $ac_cv_lib_readline_readline = yes; then
7994   cat >>confdefs.h <<_ACEOF
7995 #define HAVE_LIBREADLINE 1
7996 _ACEOF
7997
7998   LIBS="-lreadline $LIBS"
7999
8000 fi
8001
8002 if test "$ac_cv_lib_readline_readline" = yes; then
8003
8004 for ac_header in readline/readline.h
8005 do
8006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8008   echo "$as_me:$LINENO: checking for $ac_header" >&5
8009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8011   echo $ECHO_N "(cached) $ECHO_C" >&6
8012 fi
8013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8015 else
8016   # Is the header compilable?
8017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8019 cat >conftest.$ac_ext <<_ACEOF
8020 /* confdefs.h.  */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h.  */
8025 $ac_includes_default
8026 #include <$ac_header>
8027 _ACEOF
8028 rm -f conftest.$ac_objext
8029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8030   (eval $ac_compile) 2>conftest.er1
8031   ac_status=$?
8032   grep -v '^ *+' conftest.er1 >conftest.err
8033   rm -f conftest.er1
8034   cat conftest.err >&5
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); } &&
8037          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039   (eval $ac_try) 2>&5
8040   ac_status=$?
8041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042   (exit $ac_status); }; } &&
8043          { ac_try='test -s conftest.$ac_objext'
8044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045   (eval $ac_try) 2>&5
8046   ac_status=$?
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); }; }; then
8049   ac_header_compiler=yes
8050 else
8051   echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8053
8054 ac_header_compiler=no
8055 fi
8056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8058 echo "${ECHO_T}$ac_header_compiler" >&6
8059
8060 # Is the header present?
8061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8063 cat >conftest.$ac_ext <<_ACEOF
8064 /* confdefs.h.  */
8065 _ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h.  */
8069 #include <$ac_header>
8070 _ACEOF
8071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8072   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8073   ac_status=$?
8074   grep -v '^ *+' conftest.er1 >conftest.err
8075   rm -f conftest.er1
8076   cat conftest.err >&5
8077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078   (exit $ac_status); } >/dev/null; then
8079   if test -s conftest.err; then
8080     ac_cpp_err=$ac_c_preproc_warn_flag
8081     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8082   else
8083     ac_cpp_err=
8084   fi
8085 else
8086   ac_cpp_err=yes
8087 fi
8088 if test -z "$ac_cpp_err"; then
8089   ac_header_preproc=yes
8090 else
8091   echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8093
8094   ac_header_preproc=no
8095 fi
8096 rm -f conftest.err conftest.$ac_ext
8097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8098 echo "${ECHO_T}$ac_header_preproc" >&6
8099
8100 # So?  What about this header?
8101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8102   yes:no: )
8103     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8107     ac_header_preproc=yes
8108     ;;
8109   no:yes:* )
8110     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8112     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8113 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8114     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8116     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8117 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8120     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8122     (
8123       cat <<\_ASBOX
8124 ## ------------------------------- ##
8125 ## Report this to the pspp lists.  ##
8126 ## ------------------------------- ##
8127 _ASBOX
8128     ) |
8129       sed "s/^/$as_me: WARNING:     /" >&2
8130     ;;
8131 esac
8132 echo "$as_me:$LINENO: checking for $ac_header" >&5
8133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8135   echo $ECHO_N "(cached) $ECHO_C" >&6
8136 else
8137   eval "$as_ac_Header=\$ac_header_preproc"
8138 fi
8139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8141
8142 fi
8143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8144   cat >>confdefs.h <<_ACEOF
8145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8146 _ACEOF
8147
8148 fi
8149
8150 done
8151
8152   echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
8153 echo $ECHO_N "checking for add_history in -lreadline... $ECHO_C" >&6
8154 if test "${ac_cv_lib_readline_add_history+set}" = set; then
8155   echo $ECHO_N "(cached) $ECHO_C" >&6
8156 else
8157   ac_check_lib_save_LIBS=$LIBS
8158 LIBS="-lreadline  $LIBS"
8159 cat >conftest.$ac_ext <<_ACEOF
8160 /* confdefs.h.  */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h.  */
8165
8166 /* Override any gcc2 internal prototype to avoid an error.  */
8167 #ifdef __cplusplus
8168 extern "C"
8169 #endif
8170 /* We use char because int might match the return type of a gcc2
8171    builtin and then its argument prototype would still apply.  */
8172 char add_history ();
8173 int
8174 main ()
8175 {
8176 add_history ();
8177   ;
8178   return 0;
8179 }
8180 _ACEOF
8181 rm -f conftest.$ac_objext conftest$ac_exeext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8183   (eval $ac_link) 2>conftest.er1
8184   ac_status=$?
8185   grep -v '^ *+' conftest.er1 >conftest.err
8186   rm -f conftest.er1
8187   cat conftest.err >&5
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); } &&
8190          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192   (eval $ac_try) 2>&5
8193   ac_status=$?
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); }; } &&
8196          { ac_try='test -s conftest$ac_exeext'
8197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198   (eval $ac_try) 2>&5
8199   ac_status=$?
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); }; }; then
8202   ac_cv_lib_readline_add_history=yes
8203 else
8204   echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207 ac_cv_lib_readline_add_history=no
8208 fi
8209 rm -f conftest.err conftest.$ac_objext \
8210       conftest$ac_exeext conftest.$ac_ext
8211 LIBS=$ac_check_lib_save_LIBS
8212 fi
8213 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
8214 echo "${ECHO_T}$ac_cv_lib_readline_add_history" >&6
8215 if test $ac_cv_lib_readline_add_history = yes; then
8216   history=yes
8217 else
8218   echo "$as_me:$LINENO: checking for add_history in -lhistory" >&5
8219 echo $ECHO_N "checking for add_history in -lhistory... $ECHO_C" >&6
8220 if test "${ac_cv_lib_history_add_history+set}" = set; then
8221   echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223   ac_check_lib_save_LIBS=$LIBS
8224 LIBS="-lhistory  $LIBS"
8225 cat >conftest.$ac_ext <<_ACEOF
8226 /* confdefs.h.  */
8227 _ACEOF
8228 cat confdefs.h >>conftest.$ac_ext
8229 cat >>conftest.$ac_ext <<_ACEOF
8230 /* end confdefs.h.  */
8231
8232 /* Override any gcc2 internal prototype to avoid an error.  */
8233 #ifdef __cplusplus
8234 extern "C"
8235 #endif
8236 /* We use char because int might match the return type of a gcc2
8237    builtin and then its argument prototype would still apply.  */
8238 char add_history ();
8239 int
8240 main ()
8241 {
8242 add_history ();
8243   ;
8244   return 0;
8245 }
8246 _ACEOF
8247 rm -f conftest.$ac_objext conftest$ac_exeext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8249   (eval $ac_link) 2>conftest.er1
8250   ac_status=$?
8251   grep -v '^ *+' conftest.er1 >conftest.err
8252   rm -f conftest.er1
8253   cat conftest.err >&5
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); } &&
8256          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258   (eval $ac_try) 2>&5
8259   ac_status=$?
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); }; } &&
8262          { ac_try='test -s conftest$ac_exeext'
8263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264   (eval $ac_try) 2>&5
8265   ac_status=$?
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); }; }; then
8268   ac_cv_lib_history_add_history=yes
8269 else
8270   echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8272
8273 ac_cv_lib_history_add_history=no
8274 fi
8275 rm -f conftest.err conftest.$ac_objext \
8276       conftest$ac_exeext conftest.$ac_ext
8277 LIBS=$ac_check_lib_save_LIBS
8278 fi
8279 echo "$as_me:$LINENO: result: $ac_cv_lib_history_add_history" >&5
8280 echo "${ECHO_T}$ac_cv_lib_history_add_history" >&6
8281 if test $ac_cv_lib_history_add_history = yes; then
8282   LIBS="-lhistory" history=yes
8283 else
8284   history=no
8285 fi
8286
8287 fi
8288
8289   if test "$history" = yes; then
8290
8291 for ac_header in readline/history.h
8292 do
8293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8295   echo "$as_me:$LINENO: checking for $ac_header" >&5
8296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8298   echo $ECHO_N "(cached) $ECHO_C" >&6
8299 fi
8300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8302 else
8303   # Is the header compilable?
8304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8306 cat >conftest.$ac_ext <<_ACEOF
8307 /* confdefs.h.  */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h.  */
8312 $ac_includes_default
8313 #include <$ac_header>
8314 _ACEOF
8315 rm -f conftest.$ac_objext
8316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8317   (eval $ac_compile) 2>conftest.er1
8318   ac_status=$?
8319   grep -v '^ *+' conftest.er1 >conftest.err
8320   rm -f conftest.er1
8321   cat conftest.err >&5
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); } &&
8324          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326   (eval $ac_try) 2>&5
8327   ac_status=$?
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); }; } &&
8330          { ac_try='test -s conftest.$ac_objext'
8331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332   (eval $ac_try) 2>&5
8333   ac_status=$?
8334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335   (exit $ac_status); }; }; then
8336   ac_header_compiler=yes
8337 else
8338   echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8340
8341 ac_header_compiler=no
8342 fi
8343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8345 echo "${ECHO_T}$ac_header_compiler" >&6
8346
8347 # Is the header present?
8348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8350 cat >conftest.$ac_ext <<_ACEOF
8351 /* confdefs.h.  */
8352 _ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h.  */
8356 #include <$ac_header>
8357 _ACEOF
8358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8360   ac_status=$?
8361   grep -v '^ *+' conftest.er1 >conftest.err
8362   rm -f conftest.er1
8363   cat conftest.err >&5
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); } >/dev/null; then
8366   if test -s conftest.err; then
8367     ac_cpp_err=$ac_c_preproc_warn_flag
8368     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8369   else
8370     ac_cpp_err=
8371   fi
8372 else
8373   ac_cpp_err=yes
8374 fi
8375 if test -z "$ac_cpp_err"; then
8376   ac_header_preproc=yes
8377 else
8378   echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8380
8381   ac_header_preproc=no
8382 fi
8383 rm -f conftest.err conftest.$ac_ext
8384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8385 echo "${ECHO_T}$ac_header_preproc" >&6
8386
8387 # So?  What about this header?
8388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8389   yes:no: )
8390     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8394     ac_header_preproc=yes
8395     ;;
8396   no:yes:* )
8397     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8399     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8400 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8401     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8403     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8404 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8407     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8409     (
8410       cat <<\_ASBOX
8411 ## ------------------------------- ##
8412 ## Report this to the pspp lists.  ##
8413 ## ------------------------------- ##
8414 _ASBOX
8415     ) |
8416       sed "s/^/$as_me: WARNING:     /" >&2
8417     ;;
8418 esac
8419 echo "$as_me:$LINENO: checking for $ac_header" >&5
8420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8422   echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424   eval "$as_ac_Header=\$ac_header_preproc"
8425 fi
8426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8428
8429 fi
8430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8431   cat >>confdefs.h <<_ACEOF
8432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8433 _ACEOF
8434
8435 fi
8436
8437 done
8438
8439
8440 cat >>confdefs.h <<\_ACEOF
8441 #define HAVE_LIBHISTORY 1
8442 _ACEOF
8443
8444   fi
8445 fi
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457 for ac_header in limits.h memory.h sys/stat.h sys/time.h sys/types.h \
8458                   fpu_control.h sys/mman.h sys/wait.h ieeefp.h fenv.h
8459 do
8460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8462   echo "$as_me:$LINENO: checking for $ac_header" >&5
8463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8465   echo $ECHO_N "(cached) $ECHO_C" >&6
8466 fi
8467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8469 else
8470   # Is the header compilable?
8471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8473 cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h.  */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h.  */
8479 $ac_includes_default
8480 #include <$ac_header>
8481 _ACEOF
8482 rm -f conftest.$ac_objext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484   (eval $ac_compile) 2>conftest.er1
8485   ac_status=$?
8486   grep -v '^ *+' conftest.er1 >conftest.err
8487   rm -f conftest.er1
8488   cat conftest.err >&5
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); } &&
8491          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493   (eval $ac_try) 2>&5
8494   ac_status=$?
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); }; } &&
8497          { ac_try='test -s conftest.$ac_objext'
8498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499   (eval $ac_try) 2>&5
8500   ac_status=$?
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); }; }; then
8503   ac_header_compiler=yes
8504 else
8505   echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8507
8508 ac_header_compiler=no
8509 fi
8510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8512 echo "${ECHO_T}$ac_header_compiler" >&6
8513
8514 # Is the header present?
8515 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8517 cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h.  */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h.  */
8523 #include <$ac_header>
8524 _ACEOF
8525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8526   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8527   ac_status=$?
8528   grep -v '^ *+' conftest.er1 >conftest.err
8529   rm -f conftest.er1
8530   cat conftest.err >&5
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); } >/dev/null; then
8533   if test -s conftest.err; then
8534     ac_cpp_err=$ac_c_preproc_warn_flag
8535     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8536   else
8537     ac_cpp_err=
8538   fi
8539 else
8540   ac_cpp_err=yes
8541 fi
8542 if test -z "$ac_cpp_err"; then
8543   ac_header_preproc=yes
8544 else
8545   echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8547
8548   ac_header_preproc=no
8549 fi
8550 rm -f conftest.err conftest.$ac_ext
8551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8552 echo "${ECHO_T}$ac_header_preproc" >&6
8553
8554 # So?  What about this header?
8555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8556   yes:no: )
8557     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8561     ac_header_preproc=yes
8562     ;;
8563   no:yes:* )
8564     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8566     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8567 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8568     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8570     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8571 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8574     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8576     (
8577       cat <<\_ASBOX
8578 ## ------------------------------- ##
8579 ## Report this to the pspp lists.  ##
8580 ## ------------------------------- ##
8581 _ASBOX
8582     ) |
8583       sed "s/^/$as_me: WARNING:     /" >&2
8584     ;;
8585 esac
8586 echo "$as_me:$LINENO: checking for $ac_header" >&5
8587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8589   echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591   eval "$as_ac_Header=\$ac_header_preproc"
8592 fi
8593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8595
8596 fi
8597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8598   cat >>confdefs.h <<_ACEOF
8599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8600 _ACEOF
8601
8602 fi
8603
8604 done
8605
8606 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8607 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8608 if test "${ac_cv_header_stat_broken+set}" = set; then
8609   echo $ECHO_N "(cached) $ECHO_C" >&6
8610 else
8611   cat >conftest.$ac_ext <<_ACEOF
8612 /* confdefs.h.  */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h.  */
8617 #include <sys/types.h>
8618 #include <sys/stat.h>
8619
8620 #if defined(S_ISBLK) && defined(S_IFDIR)
8621 # if S_ISBLK (S_IFDIR)
8622 You lose.
8623 # endif
8624 #endif
8625
8626 #if defined(S_ISBLK) && defined(S_IFCHR)
8627 # if S_ISBLK (S_IFCHR)
8628 You lose.
8629 # endif
8630 #endif
8631
8632 #if defined(S_ISLNK) && defined(S_IFREG)
8633 # if S_ISLNK (S_IFREG)
8634 You lose.
8635 # endif
8636 #endif
8637
8638 #if defined(S_ISSOCK) && defined(S_IFREG)
8639 # if S_ISSOCK (S_IFREG)
8640 You lose.
8641 # endif
8642 #endif
8643
8644 _ACEOF
8645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8646   $EGREP "You lose" >/dev/null 2>&1; then
8647   ac_cv_header_stat_broken=yes
8648 else
8649   ac_cv_header_stat_broken=no
8650 fi
8651 rm -f conftest*
8652
8653 fi
8654 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8655 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8656 if test $ac_cv_header_stat_broken = yes; then
8657
8658 cat >>confdefs.h <<\_ACEOF
8659 #define STAT_MACROS_BROKEN 1
8660 _ACEOF
8661
8662 fi
8663
8664 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8665 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8666 if test "${ac_cv_header_stdc+set}" = set; then
8667   echo $ECHO_N "(cached) $ECHO_C" >&6
8668 else
8669   cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h.  */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h.  */
8675 #include <stdlib.h>
8676 #include <stdarg.h>
8677 #include <string.h>
8678 #include <float.h>
8679
8680 int
8681 main ()
8682 {
8683
8684   ;
8685   return 0;
8686 }
8687 _ACEOF
8688 rm -f conftest.$ac_objext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8690   (eval $ac_compile) 2>conftest.er1
8691   ac_status=$?
8692   grep -v '^ *+' conftest.er1 >conftest.err
8693   rm -f conftest.er1
8694   cat conftest.err >&5
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); } &&
8697          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699   (eval $ac_try) 2>&5
8700   ac_status=$?
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); }; } &&
8703          { ac_try='test -s conftest.$ac_objext'
8704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705   (eval $ac_try) 2>&5
8706   ac_status=$?
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); }; }; then
8709   ac_cv_header_stdc=yes
8710 else
8711   echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8713
8714 ac_cv_header_stdc=no
8715 fi
8716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8717
8718 if test $ac_cv_header_stdc = yes; then
8719   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8720   cat >conftest.$ac_ext <<_ACEOF
8721 /* confdefs.h.  */
8722 _ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h.  */
8726 #include <string.h>
8727
8728 _ACEOF
8729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8730   $EGREP "memchr" >/dev/null 2>&1; then
8731   :
8732 else
8733   ac_cv_header_stdc=no
8734 fi
8735 rm -f conftest*
8736
8737 fi
8738
8739 if test $ac_cv_header_stdc = yes; then
8740   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8741   cat >conftest.$ac_ext <<_ACEOF
8742 /* confdefs.h.  */
8743 _ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h.  */
8747 #include <stdlib.h>
8748
8749 _ACEOF
8750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8751   $EGREP "free" >/dev/null 2>&1; then
8752   :
8753 else
8754   ac_cv_header_stdc=no
8755 fi
8756 rm -f conftest*
8757
8758 fi
8759
8760 if test $ac_cv_header_stdc = yes; then
8761   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8762   if test "$cross_compiling" = yes; then
8763   :
8764 else
8765   cat >conftest.$ac_ext <<_ACEOF
8766 /* confdefs.h.  */
8767 _ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h.  */
8771 #include <ctype.h>
8772 #if ((' ' & 0x0FF) == 0x020)
8773 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8774 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8775 #else
8776 # define ISLOWER(c) \
8777                    (('a' <= (c) && (c) <= 'i') \
8778                      || ('j' <= (c) && (c) <= 'r') \
8779                      || ('s' <= (c) && (c) <= 'z'))
8780 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8781 #endif
8782
8783 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8784 int
8785 main ()
8786 {
8787   int i;
8788   for (i = 0; i < 256; i++)
8789     if (XOR (islower (i), ISLOWER (i))
8790         || toupper (i) != TOUPPER (i))
8791       exit(2);
8792   exit (0);
8793 }
8794 _ACEOF
8795 rm -f conftest$ac_exeext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797   (eval $ac_link) 2>&5
8798   ac_status=$?
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802   (eval $ac_try) 2>&5
8803   ac_status=$?
8804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   (exit $ac_status); }; }; then
8806   :
8807 else
8808   echo "$as_me: program exited with status $ac_status" >&5
8809 echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8811
8812 ( exit $ac_status )
8813 ac_cv_header_stdc=no
8814 fi
8815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8816 fi
8817 fi
8818 fi
8819 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8820 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8821 if test $ac_cv_header_stdc = yes; then
8822
8823 cat >>confdefs.h <<\_ACEOF
8824 #define STDC_HEADERS 1
8825 _ACEOF
8826
8827 fi
8828
8829 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8830 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8831 if test "${ac_cv_header_time+set}" = set; then
8832   echo $ECHO_N "(cached) $ECHO_C" >&6
8833 else
8834   cat >conftest.$ac_ext <<_ACEOF
8835 /* confdefs.h.  */
8836 _ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h.  */
8840 #include <sys/types.h>
8841 #include <sys/time.h>
8842 #include <time.h>
8843
8844 int
8845 main ()
8846 {
8847 if ((struct tm *) 0)
8848 return 0;
8849   ;
8850   return 0;
8851 }
8852 _ACEOF
8853 rm -f conftest.$ac_objext
8854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8855   (eval $ac_compile) 2>conftest.er1
8856   ac_status=$?
8857   grep -v '^ *+' conftest.er1 >conftest.err
8858   rm -f conftest.er1
8859   cat conftest.err >&5
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); } &&
8862          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864   (eval $ac_try) 2>&5
8865   ac_status=$?
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); }; } &&
8868          { ac_try='test -s conftest.$ac_objext'
8869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870   (eval $ac_try) 2>&5
8871   ac_status=$?
8872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873   (exit $ac_status); }; }; then
8874   ac_cv_header_time=yes
8875 else
8876   echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8878
8879 ac_cv_header_time=no
8880 fi
8881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8882 fi
8883 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8884 echo "${ECHO_T}$ac_cv_header_time" >&6
8885 if test $ac_cv_header_time = yes; then
8886
8887 cat >>confdefs.h <<\_ACEOF
8888 #define TIME_WITH_SYS_TIME 1
8889 _ACEOF
8890
8891 fi
8892
8893
8894 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8895 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8896 if test "${ac_cv_c_const+set}" = set; then
8897   echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899   cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h.  */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h.  */
8905
8906 int
8907 main ()
8908 {
8909 /* FIXME: Include the comments suggested by Paul. */
8910 #ifndef __cplusplus
8911   /* Ultrix mips cc rejects this.  */
8912   typedef int charset[2];
8913   const charset x;
8914   /* SunOS 4.1.1 cc rejects this.  */
8915   char const *const *ccp;
8916   char **p;
8917   /* NEC SVR4.0.2 mips cc rejects this.  */
8918   struct point {int x, y;};
8919   static struct point const zero = {0,0};
8920   /* AIX XL C 1.02.0.0 rejects this.
8921      It does not let you subtract one const X* pointer from another in
8922      an arm of an if-expression whose if-part is not a constant
8923      expression */
8924   const char *g = "string";
8925   ccp = &g + (g ? g-g : 0);
8926   /* HPUX 7.0 cc rejects these. */
8927   ++ccp;
8928   p = (char**) ccp;
8929   ccp = (char const *const *) p;
8930   { /* SCO 3.2v4 cc rejects this.  */
8931     char *t;
8932     char const *s = 0 ? (char *) 0 : (char const *) 0;
8933
8934     *t++ = 0;
8935   }
8936   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8937     int x[] = {25, 17};
8938     const int *foo = &x[0];
8939     ++foo;
8940   }
8941   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8942     typedef const int *iptr;
8943     iptr p = 0;
8944     ++p;
8945   }
8946   { /* AIX XL C 1.02.0.0 rejects this saying
8947        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8948     struct s { int j; const int *ap[3]; };
8949     struct s *b; b->j = 5;
8950   }
8951   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8952     const int foo = 10;
8953   }
8954 #endif
8955
8956   ;
8957   return 0;
8958 }
8959 _ACEOF
8960 rm -f conftest.$ac_objext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8962   (eval $ac_compile) 2>conftest.er1
8963   ac_status=$?
8964   grep -v '^ *+' conftest.er1 >conftest.err
8965   rm -f conftest.er1
8966   cat conftest.err >&5
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); } &&
8969          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971   (eval $ac_try) 2>&5
8972   ac_status=$?
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); }; } &&
8975          { ac_try='test -s conftest.$ac_objext'
8976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977   (eval $ac_try) 2>&5
8978   ac_status=$?
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); }; }; then
8981   ac_cv_c_const=yes
8982 else
8983   echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8985
8986 ac_cv_c_const=no
8987 fi
8988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8989 fi
8990 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8991 echo "${ECHO_T}$ac_cv_c_const" >&6
8992 if test $ac_cv_c_const = no; then
8993
8994 cat >>confdefs.h <<\_ACEOF
8995 #define const
8996 _ACEOF
8997
8998 fi
8999
9000 echo "$as_me:$LINENO: checking for inline" >&5
9001 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9002 if test "${ac_cv_c_inline+set}" = set; then
9003   echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005   ac_cv_c_inline=no
9006 for ac_kw in inline __inline__ __inline; do
9007   cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h.  */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h.  */
9013 #ifndef __cplusplus
9014 typedef int foo_t;
9015 static $ac_kw foo_t static_foo () {return 0; }
9016 $ac_kw foo_t foo () {return 0; }
9017 #endif
9018
9019 _ACEOF
9020 rm -f conftest.$ac_objext
9021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9022   (eval $ac_compile) 2>conftest.er1
9023   ac_status=$?
9024   grep -v '^ *+' conftest.er1 >conftest.err
9025   rm -f conftest.er1
9026   cat conftest.err >&5
9027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028   (exit $ac_status); } &&
9029          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031   (eval $ac_try) 2>&5
9032   ac_status=$?
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); }; } &&
9035          { ac_try='test -s conftest.$ac_objext'
9036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037   (eval $ac_try) 2>&5
9038   ac_status=$?
9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); }; }; then
9041   ac_cv_c_inline=$ac_kw; break
9042 else
9043   echo "$as_me: failed program was:" >&5
9044 sed 's/^/| /' conftest.$ac_ext >&5
9045
9046 fi
9047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9048 done
9049
9050 fi
9051 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9052 echo "${ECHO_T}$ac_cv_c_inline" >&6
9053
9054
9055 case $ac_cv_c_inline in
9056   inline | yes) ;;
9057   *)
9058     case $ac_cv_c_inline in
9059       no) ac_val=;;
9060       *) ac_val=$ac_cv_c_inline;;
9061     esac
9062     cat >>confdefs.h <<_ACEOF
9063 #ifndef __cplusplus
9064 #define inline $ac_val
9065 #endif
9066 _ACEOF
9067     ;;
9068 esac
9069
9070 echo "$as_me:$LINENO: checking for size_t" >&5
9071 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9072 if test "${ac_cv_type_size_t+set}" = set; then
9073   echo $ECHO_N "(cached) $ECHO_C" >&6
9074 else
9075   cat >conftest.$ac_ext <<_ACEOF
9076 /* confdefs.h.  */
9077 _ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h.  */
9081 $ac_includes_default
9082 int
9083 main ()
9084 {
9085 if ((size_t *) 0)
9086   return 0;
9087 if (sizeof (size_t))
9088   return 0;
9089   ;
9090   return 0;
9091 }
9092 _ACEOF
9093 rm -f conftest.$ac_objext
9094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9095   (eval $ac_compile) 2>conftest.er1
9096   ac_status=$?
9097   grep -v '^ *+' conftest.er1 >conftest.err
9098   rm -f conftest.er1
9099   cat conftest.err >&5
9100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101   (exit $ac_status); } &&
9102          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104   (eval $ac_try) 2>&5
9105   ac_status=$?
9106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); }; } &&
9108          { ac_try='test -s conftest.$ac_objext'
9109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110   (eval $ac_try) 2>&5
9111   ac_status=$?
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); }; }; then
9114   ac_cv_type_size_t=yes
9115 else
9116   echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9118
9119 ac_cv_type_size_t=no
9120 fi
9121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9122 fi
9123 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9124 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9125 if test $ac_cv_type_size_t = yes; then
9126   :
9127 else
9128
9129 cat >>confdefs.h <<_ACEOF
9130 #define size_t unsigned
9131 _ACEOF
9132
9133 fi
9134
9135 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9136 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9137 if test "${ac_cv_struct_tm+set}" = set; then
9138   echo $ECHO_N "(cached) $ECHO_C" >&6
9139 else
9140   cat >conftest.$ac_ext <<_ACEOF
9141 /* confdefs.h.  */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h.  */
9146 #include <sys/types.h>
9147 #include <time.h>
9148
9149 int
9150 main ()
9151 {
9152 struct tm *tp; tp->tm_sec;
9153   ;
9154   return 0;
9155 }
9156 _ACEOF
9157 rm -f conftest.$ac_objext
9158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9159   (eval $ac_compile) 2>conftest.er1
9160   ac_status=$?
9161   grep -v '^ *+' conftest.er1 >conftest.err
9162   rm -f conftest.er1
9163   cat conftest.err >&5
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); } &&
9166          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168   (eval $ac_try) 2>&5
9169   ac_status=$?
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); }; } &&
9172          { ac_try='test -s conftest.$ac_objext'
9173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174   (eval $ac_try) 2>&5
9175   ac_status=$?
9176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177   (exit $ac_status); }; }; then
9178   ac_cv_struct_tm=time.h
9179 else
9180   echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9182
9183 ac_cv_struct_tm=sys/time.h
9184 fi
9185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9186 fi
9187 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9188 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9189 if test $ac_cv_struct_tm = sys/time.h; then
9190
9191 cat >>confdefs.h <<\_ACEOF
9192 #define TM_IN_SYS_TIME 1
9193 _ACEOF
9194
9195 fi
9196
9197
9198 echo "$as_me:$LINENO: checking for short" >&5
9199 echo $ECHO_N "checking for short... $ECHO_C" >&6
9200 if test "${ac_cv_type_short+set}" = set; then
9201   echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203   cat >conftest.$ac_ext <<_ACEOF
9204 /* confdefs.h.  */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h.  */
9209 $ac_includes_default
9210 int
9211 main ()
9212 {
9213 if ((short *) 0)
9214   return 0;
9215 if (sizeof (short))
9216   return 0;
9217   ;
9218   return 0;
9219 }
9220 _ACEOF
9221 rm -f conftest.$ac_objext
9222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9223   (eval $ac_compile) 2>conftest.er1
9224   ac_status=$?
9225   grep -v '^ *+' conftest.er1 >conftest.err
9226   rm -f conftest.er1
9227   cat conftest.err >&5
9228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229   (exit $ac_status); } &&
9230          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232   (eval $ac_try) 2>&5
9233   ac_status=$?
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); }; } &&
9236          { ac_try='test -s conftest.$ac_objext'
9237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238   (eval $ac_try) 2>&5
9239   ac_status=$?
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); }; }; then
9242   ac_cv_type_short=yes
9243 else
9244   echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9246
9247 ac_cv_type_short=no
9248 fi
9249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9250 fi
9251 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
9252 echo "${ECHO_T}$ac_cv_type_short" >&6
9253
9254 echo "$as_me:$LINENO: checking size of short" >&5
9255 echo $ECHO_N "checking size of short... $ECHO_C" >&6
9256 if test "${ac_cv_sizeof_short+set}" = set; then
9257   echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259   if test "$ac_cv_type_short" = yes; then
9260   # The cast to unsigned long works around a bug in the HP C Compiler
9261   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9262   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9263   # This bug is HP SR number 8606223364.
9264   if test "$cross_compiling" = yes; then
9265   # Depending upon the size, compute the lo and hi bounds.
9266 cat >conftest.$ac_ext <<_ACEOF
9267 /* confdefs.h.  */
9268 _ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h.  */
9272 $ac_includes_default
9273 int
9274 main ()
9275 {
9276 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
9277 test_array [0] = 0
9278
9279   ;
9280   return 0;
9281 }
9282 _ACEOF
9283 rm -f conftest.$ac_objext
9284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9285   (eval $ac_compile) 2>conftest.er1
9286   ac_status=$?
9287   grep -v '^ *+' conftest.er1 >conftest.err
9288   rm -f conftest.er1
9289   cat conftest.err >&5
9290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291   (exit $ac_status); } &&
9292          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294   (eval $ac_try) 2>&5
9295   ac_status=$?
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); }; } &&
9298          { ac_try='test -s conftest.$ac_objext'
9299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300   (eval $ac_try) 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); }; }; then
9304   ac_lo=0 ac_mid=0
9305   while :; do
9306     cat >conftest.$ac_ext <<_ACEOF
9307 /* confdefs.h.  */
9308 _ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h.  */
9312 $ac_includes_default
9313 int
9314 main ()
9315 {
9316 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
9317 test_array [0] = 0
9318
9319   ;
9320   return 0;
9321 }
9322 _ACEOF
9323 rm -f conftest.$ac_objext
9324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9325   (eval $ac_compile) 2>conftest.er1
9326   ac_status=$?
9327   grep -v '^ *+' conftest.er1 >conftest.err
9328   rm -f conftest.er1
9329   cat conftest.err >&5
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); } &&
9332          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334   (eval $ac_try) 2>&5
9335   ac_status=$?
9336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337   (exit $ac_status); }; } &&
9338          { ac_try='test -s conftest.$ac_objext'
9339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340   (eval $ac_try) 2>&5
9341   ac_status=$?
9342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343   (exit $ac_status); }; }; then
9344   ac_hi=$ac_mid; break
9345 else
9346   echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9348
9349 ac_lo=`expr $ac_mid + 1`
9350                     if test $ac_lo -le $ac_mid; then
9351                       ac_lo= ac_hi=
9352                       break
9353                     fi
9354                     ac_mid=`expr 2 '*' $ac_mid + 1`
9355 fi
9356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9357   done
9358 else
9359   echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9361
9362 cat >conftest.$ac_ext <<_ACEOF
9363 /* confdefs.h.  */
9364 _ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h.  */
9368 $ac_includes_default
9369 int
9370 main ()
9371 {
9372 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
9373 test_array [0] = 0
9374
9375   ;
9376   return 0;
9377 }
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381   (eval $ac_compile) 2>conftest.er1
9382   ac_status=$?
9383   grep -v '^ *+' conftest.er1 >conftest.err
9384   rm -f conftest.er1
9385   cat conftest.err >&5
9386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387   (exit $ac_status); } &&
9388          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390   (eval $ac_try) 2>&5
9391   ac_status=$?
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); }; } &&
9394          { ac_try='test -s conftest.$ac_objext'
9395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396   (eval $ac_try) 2>&5
9397   ac_status=$?
9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); }; }; then
9400   ac_hi=-1 ac_mid=-1
9401   while :; do
9402     cat >conftest.$ac_ext <<_ACEOF
9403 /* confdefs.h.  */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h.  */
9408 $ac_includes_default
9409 int
9410 main ()
9411 {
9412 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
9413 test_array [0] = 0
9414
9415   ;
9416   return 0;
9417 }
9418 _ACEOF
9419 rm -f conftest.$ac_objext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421   (eval $ac_compile) 2>conftest.er1
9422   ac_status=$?
9423   grep -v '^ *+' conftest.er1 >conftest.err
9424   rm -f conftest.er1
9425   cat conftest.err >&5
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); } &&
9428          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430   (eval $ac_try) 2>&5
9431   ac_status=$?
9432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433   (exit $ac_status); }; } &&
9434          { ac_try='test -s conftest.$ac_objext'
9435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436   (eval $ac_try) 2>&5
9437   ac_status=$?
9438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); }; }; then
9440   ac_lo=$ac_mid; break
9441 else
9442   echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9444
9445 ac_hi=`expr '(' $ac_mid ')' - 1`
9446                        if test $ac_mid -le $ac_hi; then
9447                          ac_lo= ac_hi=
9448                          break
9449                        fi
9450                        ac_mid=`expr 2 '*' $ac_mid`
9451 fi
9452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9453   done
9454 else
9455   echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9457
9458 ac_lo= ac_hi=
9459 fi
9460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9461 fi
9462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9463 # Binary search between lo and hi bounds.
9464 while test "x$ac_lo" != "x$ac_hi"; do
9465   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9466   cat >conftest.$ac_ext <<_ACEOF
9467 /* confdefs.h.  */
9468 _ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h.  */
9472 $ac_includes_default
9473 int
9474 main ()
9475 {
9476 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
9477 test_array [0] = 0
9478
9479   ;
9480   return 0;
9481 }
9482 _ACEOF
9483 rm -f conftest.$ac_objext
9484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9485   (eval $ac_compile) 2>conftest.er1
9486   ac_status=$?
9487   grep -v '^ *+' conftest.er1 >conftest.err
9488   rm -f conftest.er1
9489   cat conftest.err >&5
9490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491   (exit $ac_status); } &&
9492          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494   (eval $ac_try) 2>&5
9495   ac_status=$?
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); }; } &&
9498          { ac_try='test -s conftest.$ac_objext'
9499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500   (eval $ac_try) 2>&5
9501   ac_status=$?
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); }; }; then
9504   ac_hi=$ac_mid
9505 else
9506   echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9508
9509 ac_lo=`expr '(' $ac_mid ')' + 1`
9510 fi
9511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9512 done
9513 case $ac_lo in
9514 ?*) ac_cv_sizeof_short=$ac_lo;;
9515 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
9516 See \`config.log' for more details." >&5
9517 echo "$as_me: error: cannot compute sizeof (short), 77
9518 See \`config.log' for more details." >&2;}
9519    { (exit 1); exit 1; }; } ;;
9520 esac
9521 else
9522   if test "$cross_compiling" = yes; then
9523   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9524 See \`config.log' for more details." >&5
9525 echo "$as_me: error: cannot run test program while cross compiling
9526 See \`config.log' for more details." >&2;}
9527    { (exit 1); exit 1; }; }
9528 else
9529   cat >conftest.$ac_ext <<_ACEOF
9530 /* confdefs.h.  */
9531 _ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h.  */
9535 $ac_includes_default
9536 long longval () { return (long) (sizeof (short)); }
9537 unsigned long ulongval () { return (long) (sizeof (short)); }
9538 #include <stdio.h>
9539 #include <stdlib.h>
9540 int
9541 main ()
9542 {
9543
9544   FILE *f = fopen ("conftest.val", "w");
9545   if (! f)
9546     exit (1);
9547   if (((long) (sizeof (short))) < 0)
9548     {
9549       long i = longval ();
9550       if (i != ((long) (sizeof (short))))
9551         exit (1);
9552       fprintf (f, "%ld\n", i);
9553     }
9554   else
9555     {
9556       unsigned long i = ulongval ();
9557       if (i != ((long) (sizeof (short))))
9558         exit (1);
9559       fprintf (f, "%lu\n", i);
9560     }
9561   exit (ferror (f) || fclose (f) != 0);
9562
9563   ;
9564   return 0;
9565 }
9566 _ACEOF
9567 rm -f conftest$ac_exeext
9568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9569   (eval $ac_link) 2>&5
9570   ac_status=$?
9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574   (eval $ac_try) 2>&5
9575   ac_status=$?
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); }; }; then
9578   ac_cv_sizeof_short=`cat conftest.val`
9579 else
9580   echo "$as_me: program exited with status $ac_status" >&5
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9583
9584 ( exit $ac_status )
9585 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
9586 See \`config.log' for more details." >&5
9587 echo "$as_me: error: cannot compute sizeof (short), 77
9588 See \`config.log' for more details." >&2;}
9589    { (exit 1); exit 1; }; }
9590 fi
9591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9592 fi
9593 fi
9594 rm -f conftest.val
9595 else
9596   ac_cv_sizeof_short=0
9597 fi
9598 fi
9599 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9600 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
9601 cat >>confdefs.h <<_ACEOF
9602 #define SIZEOF_SHORT $ac_cv_sizeof_short
9603 _ACEOF
9604
9605
9606 echo "$as_me:$LINENO: checking for int" >&5
9607 echo $ECHO_N "checking for int... $ECHO_C" >&6
9608 if test "${ac_cv_type_int+set}" = set; then
9609   echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611   cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h.  */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h.  */
9617 $ac_includes_default
9618 int
9619 main ()
9620 {
9621 if ((int *) 0)
9622   return 0;
9623 if (sizeof (int))
9624   return 0;
9625   ;
9626   return 0;
9627 }
9628 _ACEOF
9629 rm -f conftest.$ac_objext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9631   (eval $ac_compile) 2>conftest.er1
9632   ac_status=$?
9633   grep -v '^ *+' conftest.er1 >conftest.err
9634   rm -f conftest.er1
9635   cat conftest.err >&5
9636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637   (exit $ac_status); } &&
9638          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640   (eval $ac_try) 2>&5
9641   ac_status=$?
9642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643   (exit $ac_status); }; } &&
9644          { ac_try='test -s conftest.$ac_objext'
9645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646   (eval $ac_try) 2>&5
9647   ac_status=$?
9648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649   (exit $ac_status); }; }; then
9650   ac_cv_type_int=yes
9651 else
9652   echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9654
9655 ac_cv_type_int=no
9656 fi
9657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9658 fi
9659 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
9660 echo "${ECHO_T}$ac_cv_type_int" >&6
9661
9662 echo "$as_me:$LINENO: checking size of int" >&5
9663 echo $ECHO_N "checking size of int... $ECHO_C" >&6
9664 if test "${ac_cv_sizeof_int+set}" = set; then
9665   echo $ECHO_N "(cached) $ECHO_C" >&6
9666 else
9667   if test "$ac_cv_type_int" = yes; then
9668   # The cast to unsigned long works around a bug in the HP C Compiler
9669   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9670   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9671   # This bug is HP SR number 8606223364.
9672   if test "$cross_compiling" = yes; then
9673   # Depending upon the size, compute the lo and hi bounds.
9674 cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h.  */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h.  */
9680 $ac_includes_default
9681 int
9682 main ()
9683 {
9684 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
9685 test_array [0] = 0
9686
9687   ;
9688   return 0;
9689 }
9690 _ACEOF
9691 rm -f conftest.$ac_objext
9692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9693   (eval $ac_compile) 2>conftest.er1
9694   ac_status=$?
9695   grep -v '^ *+' conftest.er1 >conftest.err
9696   rm -f conftest.er1
9697   cat conftest.err >&5
9698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); } &&
9700          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702   (eval $ac_try) 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); }; } &&
9706          { ac_try='test -s conftest.$ac_objext'
9707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708   (eval $ac_try) 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); }; }; then
9712   ac_lo=0 ac_mid=0
9713   while :; do
9714     cat >conftest.$ac_ext <<_ACEOF
9715 /* confdefs.h.  */
9716 _ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h.  */
9720 $ac_includes_default
9721 int
9722 main ()
9723 {
9724 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
9725 test_array [0] = 0
9726
9727   ;
9728   return 0;
9729 }
9730 _ACEOF
9731 rm -f conftest.$ac_objext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9733   (eval $ac_compile) 2>conftest.er1
9734   ac_status=$?
9735   grep -v '^ *+' conftest.er1 >conftest.err
9736   rm -f conftest.er1
9737   cat conftest.err >&5
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); } &&
9740          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742   (eval $ac_try) 2>&5
9743   ac_status=$?
9744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745   (exit $ac_status); }; } &&
9746          { ac_try='test -s conftest.$ac_objext'
9747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748   (eval $ac_try) 2>&5
9749   ac_status=$?
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); }; }; then
9752   ac_hi=$ac_mid; break
9753 else
9754   echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757 ac_lo=`expr $ac_mid + 1`
9758                     if test $ac_lo -le $ac_mid; then
9759                       ac_lo= ac_hi=
9760                       break
9761                     fi
9762                     ac_mid=`expr 2 '*' $ac_mid + 1`
9763 fi
9764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9765   done
9766 else
9767   echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770 cat >conftest.$ac_ext <<_ACEOF
9771 /* confdefs.h.  */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h.  */
9776 $ac_includes_default
9777 int
9778 main ()
9779 {
9780 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
9781 test_array [0] = 0
9782
9783   ;
9784   return 0;
9785 }
9786 _ACEOF
9787 rm -f conftest.$ac_objext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789   (eval $ac_compile) 2>conftest.er1
9790   ac_status=$?
9791   grep -v '^ *+' conftest.er1 >conftest.err
9792   rm -f conftest.er1
9793   cat conftest.err >&5
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); } &&
9796          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798   (eval $ac_try) 2>&5
9799   ac_status=$?
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); }; } &&
9802          { ac_try='test -s conftest.$ac_objext'
9803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804   (eval $ac_try) 2>&5
9805   ac_status=$?
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); }; }; then
9808   ac_hi=-1 ac_mid=-1
9809   while :; do
9810     cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h.  */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h.  */
9816 $ac_includes_default
9817 int
9818 main ()
9819 {
9820 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
9821 test_array [0] = 0
9822
9823   ;
9824   return 0;
9825 }
9826 _ACEOF
9827 rm -f conftest.$ac_objext
9828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9829   (eval $ac_compile) 2>conftest.er1
9830   ac_status=$?
9831   grep -v '^ *+' conftest.er1 >conftest.err
9832   rm -f conftest.er1
9833   cat conftest.err >&5
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); } &&
9836          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838   (eval $ac_try) 2>&5
9839   ac_status=$?
9840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); }; } &&
9842          { ac_try='test -s conftest.$ac_objext'
9843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844   (eval $ac_try) 2>&5
9845   ac_status=$?
9846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847   (exit $ac_status); }; }; then
9848   ac_lo=$ac_mid; break
9849 else
9850   echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9852
9853 ac_hi=`expr '(' $ac_mid ')' - 1`
9854                        if test $ac_mid -le $ac_hi; then
9855                          ac_lo= ac_hi=
9856                          break
9857                        fi
9858                        ac_mid=`expr 2 '*' $ac_mid`
9859 fi
9860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9861   done
9862 else
9863   echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866 ac_lo= ac_hi=
9867 fi
9868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9869 fi
9870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9871 # Binary search between lo and hi bounds.
9872 while test "x$ac_lo" != "x$ac_hi"; do
9873   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9874   cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h.  */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h.  */
9880 $ac_includes_default
9881 int
9882 main ()
9883 {
9884 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
9885 test_array [0] = 0
9886
9887   ;
9888   return 0;
9889 }
9890 _ACEOF
9891 rm -f conftest.$ac_objext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9893   (eval $ac_compile) 2>conftest.er1
9894   ac_status=$?
9895   grep -v '^ *+' conftest.er1 >conftest.err
9896   rm -f conftest.er1
9897   cat conftest.err >&5
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); } &&
9900          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902   (eval $ac_try) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; } &&
9906          { ac_try='test -s conftest.$ac_objext'
9907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908   (eval $ac_try) 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); }; }; then
9912   ac_hi=$ac_mid
9913 else
9914   echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9916
9917 ac_lo=`expr '(' $ac_mid ')' + 1`
9918 fi
9919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9920 done
9921 case $ac_lo in
9922 ?*) ac_cv_sizeof_int=$ac_lo;;
9923 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
9924 See \`config.log' for more details." >&5
9925 echo "$as_me: error: cannot compute sizeof (int), 77
9926 See \`config.log' for more details." >&2;}
9927    { (exit 1); exit 1; }; } ;;
9928 esac
9929 else
9930   if test "$cross_compiling" = yes; then
9931   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9932 See \`config.log' for more details." >&5
9933 echo "$as_me: error: cannot run test program while cross compiling
9934 See \`config.log' for more details." >&2;}
9935    { (exit 1); exit 1; }; }
9936 else
9937   cat >conftest.$ac_ext <<_ACEOF
9938 /* confdefs.h.  */
9939 _ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h.  */
9943 $ac_includes_default
9944 long longval () { return (long) (sizeof (int)); }
9945 unsigned long ulongval () { return (long) (sizeof (int)); }
9946 #include <stdio.h>
9947 #include <stdlib.h>
9948 int
9949 main ()
9950 {
9951
9952   FILE *f = fopen ("conftest.val", "w");
9953   if (! f)
9954     exit (1);
9955   if (((long) (sizeof (int))) < 0)
9956     {
9957       long i = longval ();
9958       if (i != ((long) (sizeof (int))))
9959         exit (1);
9960       fprintf (f, "%ld\n", i);
9961     }
9962   else
9963     {
9964       unsigned long i = ulongval ();
9965       if (i != ((long) (sizeof (int))))
9966         exit (1);
9967       fprintf (f, "%lu\n", i);
9968     }
9969   exit (ferror (f) || fclose (f) != 0);
9970
9971   ;
9972   return 0;
9973 }
9974 _ACEOF
9975 rm -f conftest$ac_exeext
9976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9977   (eval $ac_link) 2>&5
9978   ac_status=$?
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982   (eval $ac_try) 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); }; }; then
9986   ac_cv_sizeof_int=`cat conftest.val`
9987 else
9988   echo "$as_me: program exited with status $ac_status" >&5
9989 echo "$as_me: failed program was:" >&5
9990 sed 's/^/| /' conftest.$ac_ext >&5
9991
9992 ( exit $ac_status )
9993 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
9994 See \`config.log' for more details." >&5
9995 echo "$as_me: error: cannot compute sizeof (int), 77
9996 See \`config.log' for more details." >&2;}
9997    { (exit 1); exit 1; }; }
9998 fi
9999 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10000 fi
10001 fi
10002 rm -f conftest.val
10003 else
10004   ac_cv_sizeof_int=0
10005 fi
10006 fi
10007 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10008 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
10009 cat >>confdefs.h <<_ACEOF
10010 #define SIZEOF_INT $ac_cv_sizeof_int
10011 _ACEOF
10012
10013
10014 echo "$as_me:$LINENO: checking for long" >&5
10015 echo $ECHO_N "checking for long... $ECHO_C" >&6
10016 if test "${ac_cv_type_long+set}" = set; then
10017   echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019   cat >conftest.$ac_ext <<_ACEOF
10020 /* confdefs.h.  */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h.  */
10025 $ac_includes_default
10026 int
10027 main ()
10028 {
10029 if ((long *) 0)
10030   return 0;
10031 if (sizeof (long))
10032   return 0;
10033   ;
10034   return 0;
10035 }
10036 _ACEOF
10037 rm -f conftest.$ac_objext
10038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10039   (eval $ac_compile) 2>conftest.er1
10040   ac_status=$?
10041   grep -v '^ *+' conftest.er1 >conftest.err
10042   rm -f conftest.er1
10043   cat conftest.err >&5
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); } &&
10046          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048   (eval $ac_try) 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); }; } &&
10052          { ac_try='test -s conftest.$ac_objext'
10053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054   (eval $ac_try) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); }; }; then
10058   ac_cv_type_long=yes
10059 else
10060   echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10062
10063 ac_cv_type_long=no
10064 fi
10065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10066 fi
10067 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
10068 echo "${ECHO_T}$ac_cv_type_long" >&6
10069
10070 echo "$as_me:$LINENO: checking size of long" >&5
10071 echo $ECHO_N "checking size of long... $ECHO_C" >&6
10072 if test "${ac_cv_sizeof_long+set}" = set; then
10073   echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075   if test "$ac_cv_type_long" = yes; then
10076   # The cast to unsigned long works around a bug in the HP C Compiler
10077   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10078   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10079   # This bug is HP SR number 8606223364.
10080   if test "$cross_compiling" = yes; then
10081   # Depending upon the size, compute the lo and hi bounds.
10082 cat >conftest.$ac_ext <<_ACEOF
10083 /* confdefs.h.  */
10084 _ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h.  */
10088 $ac_includes_default
10089 int
10090 main ()
10091 {
10092 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
10093 test_array [0] = 0
10094
10095   ;
10096   return 0;
10097 }
10098 _ACEOF
10099 rm -f conftest.$ac_objext
10100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10101   (eval $ac_compile) 2>conftest.er1
10102   ac_status=$?
10103   grep -v '^ *+' conftest.er1 >conftest.err
10104   rm -f conftest.er1
10105   cat conftest.err >&5
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); } &&
10108          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110   (eval $ac_try) 2>&5
10111   ac_status=$?
10112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113   (exit $ac_status); }; } &&
10114          { ac_try='test -s conftest.$ac_objext'
10115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116   (eval $ac_try) 2>&5
10117   ac_status=$?
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); }; }; then
10120   ac_lo=0 ac_mid=0
10121   while :; do
10122     cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h.  */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h.  */
10128 $ac_includes_default
10129 int
10130 main ()
10131 {
10132 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
10133 test_array [0] = 0
10134
10135   ;
10136   return 0;
10137 }
10138 _ACEOF
10139 rm -f conftest.$ac_objext
10140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10141   (eval $ac_compile) 2>conftest.er1
10142   ac_status=$?
10143   grep -v '^ *+' conftest.er1 >conftest.err
10144   rm -f conftest.er1
10145   cat conftest.err >&5
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); } &&
10148          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150   (eval $ac_try) 2>&5
10151   ac_status=$?
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); }; } &&
10154          { ac_try='test -s conftest.$ac_objext'
10155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156   (eval $ac_try) 2>&5
10157   ac_status=$?
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); }; }; then
10160   ac_hi=$ac_mid; break
10161 else
10162   echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10164
10165 ac_lo=`expr $ac_mid + 1`
10166                     if test $ac_lo -le $ac_mid; then
10167                       ac_lo= ac_hi=
10168                       break
10169                     fi
10170                     ac_mid=`expr 2 '*' $ac_mid + 1`
10171 fi
10172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10173   done
10174 else
10175   echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10177
10178 cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h.  */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h.  */
10184 $ac_includes_default
10185 int
10186 main ()
10187 {
10188 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
10189 test_array [0] = 0
10190
10191   ;
10192   return 0;
10193 }
10194 _ACEOF
10195 rm -f conftest.$ac_objext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10197   (eval $ac_compile) 2>conftest.er1
10198   ac_status=$?
10199   grep -v '^ *+' conftest.er1 >conftest.err
10200   rm -f conftest.er1
10201   cat conftest.err >&5
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); } &&
10204          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206   (eval $ac_try) 2>&5
10207   ac_status=$?
10208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209   (exit $ac_status); }; } &&
10210          { ac_try='test -s conftest.$ac_objext'
10211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212   (eval $ac_try) 2>&5
10213   ac_status=$?
10214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215   (exit $ac_status); }; }; then
10216   ac_hi=-1 ac_mid=-1
10217   while :; do
10218     cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h.  */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h.  */
10224 $ac_includes_default
10225 int
10226 main ()
10227 {
10228 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
10229 test_array [0] = 0
10230
10231   ;
10232   return 0;
10233 }
10234 _ACEOF
10235 rm -f conftest.$ac_objext
10236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10237   (eval $ac_compile) 2>conftest.er1
10238   ac_status=$?
10239   grep -v '^ *+' conftest.er1 >conftest.err
10240   rm -f conftest.er1
10241   cat conftest.err >&5
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); } &&
10244          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246   (eval $ac_try) 2>&5
10247   ac_status=$?
10248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); }; } &&
10250          { ac_try='test -s conftest.$ac_objext'
10251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252   (eval $ac_try) 2>&5
10253   ac_status=$?
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); }; }; then
10256   ac_lo=$ac_mid; break
10257 else
10258   echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10260
10261 ac_hi=`expr '(' $ac_mid ')' - 1`
10262                        if test $ac_mid -le $ac_hi; then
10263                          ac_lo= ac_hi=
10264                          break
10265                        fi
10266                        ac_mid=`expr 2 '*' $ac_mid`
10267 fi
10268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10269   done
10270 else
10271   echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10273
10274 ac_lo= ac_hi=
10275 fi
10276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10277 fi
10278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10279 # Binary search between lo and hi bounds.
10280 while test "x$ac_lo" != "x$ac_hi"; do
10281   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10282   cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h.  */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h.  */
10288 $ac_includes_default
10289 int
10290 main ()
10291 {
10292 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
10293 test_array [0] = 0
10294
10295   ;
10296   return 0;
10297 }
10298 _ACEOF
10299 rm -f conftest.$ac_objext
10300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10301   (eval $ac_compile) 2>conftest.er1
10302   ac_status=$?
10303   grep -v '^ *+' conftest.er1 >conftest.err
10304   rm -f conftest.er1
10305   cat conftest.err >&5
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); } &&
10308          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310   (eval $ac_try) 2>&5
10311   ac_status=$?
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); }; } &&
10314          { ac_try='test -s conftest.$ac_objext'
10315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316   (eval $ac_try) 2>&5
10317   ac_status=$?
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); }; }; then
10320   ac_hi=$ac_mid
10321 else
10322   echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10324
10325 ac_lo=`expr '(' $ac_mid ')' + 1`
10326 fi
10327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10328 done
10329 case $ac_lo in
10330 ?*) ac_cv_sizeof_long=$ac_lo;;
10331 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
10332 See \`config.log' for more details." >&5
10333 echo "$as_me: error: cannot compute sizeof (long), 77
10334 See \`config.log' for more details." >&2;}
10335    { (exit 1); exit 1; }; } ;;
10336 esac
10337 else
10338   if test "$cross_compiling" = yes; then
10339   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10340 See \`config.log' for more details." >&5
10341 echo "$as_me: error: cannot run test program while cross compiling
10342 See \`config.log' for more details." >&2;}
10343    { (exit 1); exit 1; }; }
10344 else
10345   cat >conftest.$ac_ext <<_ACEOF
10346 /* confdefs.h.  */
10347 _ACEOF
10348 cat confdefs.h >>conftest.$ac_ext
10349 cat >>conftest.$ac_ext <<_ACEOF
10350 /* end confdefs.h.  */
10351 $ac_includes_default
10352 long longval () { return (long) (sizeof (long)); }
10353 unsigned long ulongval () { return (long) (sizeof (long)); }
10354 #include <stdio.h>
10355 #include <stdlib.h>
10356 int
10357 main ()
10358 {
10359
10360   FILE *f = fopen ("conftest.val", "w");
10361   if (! f)
10362     exit (1);
10363   if (((long) (sizeof (long))) < 0)
10364     {
10365       long i = longval ();
10366       if (i != ((long) (sizeof (long))))
10367         exit (1);
10368       fprintf (f, "%ld\n", i);
10369     }
10370   else
10371     {
10372       unsigned long i = ulongval ();
10373       if (i != ((long) (sizeof (long))))
10374         exit (1);
10375       fprintf (f, "%lu\n", i);
10376     }
10377   exit (ferror (f) || fclose (f) != 0);
10378
10379   ;
10380   return 0;
10381 }
10382 _ACEOF
10383 rm -f conftest$ac_exeext
10384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10385   (eval $ac_link) 2>&5
10386   ac_status=$?
10387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390   (eval $ac_try) 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); }; }; then
10394   ac_cv_sizeof_long=`cat conftest.val`
10395 else
10396   echo "$as_me: program exited with status $ac_status" >&5
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10399
10400 ( exit $ac_status )
10401 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
10402 See \`config.log' for more details." >&5
10403 echo "$as_me: error: cannot compute sizeof (long), 77
10404 See \`config.log' for more details." >&2;}
10405    { (exit 1); exit 1; }; }
10406 fi
10407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10408 fi
10409 fi
10410 rm -f conftest.val
10411 else
10412   ac_cv_sizeof_long=0
10413 fi
10414 fi
10415 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
10416 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
10417 cat >>confdefs.h <<_ACEOF
10418 #define SIZEOF_LONG $ac_cv_sizeof_long
10419 _ACEOF
10420
10421
10422 echo "$as_me:$LINENO: checking for long long" >&5
10423 echo $ECHO_N "checking for long long... $ECHO_C" >&6
10424 if test "${ac_cv_type_long_long+set}" = set; then
10425   echo $ECHO_N "(cached) $ECHO_C" >&6
10426 else
10427   cat >conftest.$ac_ext <<_ACEOF
10428 /* confdefs.h.  */
10429 _ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h.  */
10433 $ac_includes_default
10434 int
10435 main ()
10436 {
10437 if ((long long *) 0)
10438   return 0;
10439 if (sizeof (long long))
10440   return 0;
10441   ;
10442   return 0;
10443 }
10444 _ACEOF
10445 rm -f conftest.$ac_objext
10446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10447   (eval $ac_compile) 2>conftest.er1
10448   ac_status=$?
10449   grep -v '^ *+' conftest.er1 >conftest.err
10450   rm -f conftest.er1
10451   cat conftest.err >&5
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); } &&
10454          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456   (eval $ac_try) 2>&5
10457   ac_status=$?
10458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459   (exit $ac_status); }; } &&
10460          { ac_try='test -s conftest.$ac_objext'
10461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462   (eval $ac_try) 2>&5
10463   ac_status=$?
10464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465   (exit $ac_status); }; }; then
10466   ac_cv_type_long_long=yes
10467 else
10468   echo "$as_me: failed program was:" >&5
10469 sed 's/^/| /' conftest.$ac_ext >&5
10470
10471 ac_cv_type_long_long=no
10472 fi
10473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10474 fi
10475 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10476 echo "${ECHO_T}$ac_cv_type_long_long" >&6
10477
10478 echo "$as_me:$LINENO: checking size of long long" >&5
10479 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
10480 if test "${ac_cv_sizeof_long_long+set}" = set; then
10481   echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483   if test "$ac_cv_type_long_long" = yes; then
10484   # The cast to unsigned long works around a bug in the HP C Compiler
10485   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10486   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10487   # This bug is HP SR number 8606223364.
10488   if test "$cross_compiling" = yes; then
10489   # Depending upon the size, compute the lo and hi bounds.
10490 cat >conftest.$ac_ext <<_ACEOF
10491 /* confdefs.h.  */
10492 _ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h.  */
10496 $ac_includes_default
10497 int
10498 main ()
10499 {
10500 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
10501 test_array [0] = 0
10502
10503   ;
10504   return 0;
10505 }
10506 _ACEOF
10507 rm -f conftest.$ac_objext
10508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10509   (eval $ac_compile) 2>conftest.er1
10510   ac_status=$?
10511   grep -v '^ *+' conftest.er1 >conftest.err
10512   rm -f conftest.er1
10513   cat conftest.err >&5
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); } &&
10516          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518   (eval $ac_try) 2>&5
10519   ac_status=$?
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); }; } &&
10522          { ac_try='test -s conftest.$ac_objext'
10523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524   (eval $ac_try) 2>&5
10525   ac_status=$?
10526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527   (exit $ac_status); }; }; then
10528   ac_lo=0 ac_mid=0
10529   while :; do
10530     cat >conftest.$ac_ext <<_ACEOF
10531 /* confdefs.h.  */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h.  */
10536 $ac_includes_default
10537 int
10538 main ()
10539 {
10540 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
10541 test_array [0] = 0
10542
10543   ;
10544   return 0;
10545 }
10546 _ACEOF
10547 rm -f conftest.$ac_objext
10548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10549   (eval $ac_compile) 2>conftest.er1
10550   ac_status=$?
10551   grep -v '^ *+' conftest.er1 >conftest.err
10552   rm -f conftest.er1
10553   cat conftest.err >&5
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); } &&
10556          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558   (eval $ac_try) 2>&5
10559   ac_status=$?
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); }; } &&
10562          { ac_try='test -s conftest.$ac_objext'
10563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564   (eval $ac_try) 2>&5
10565   ac_status=$?
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); }; }; then
10568   ac_hi=$ac_mid; break
10569 else
10570   echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10572
10573 ac_lo=`expr $ac_mid + 1`
10574                     if test $ac_lo -le $ac_mid; then
10575                       ac_lo= ac_hi=
10576                       break
10577                     fi
10578                     ac_mid=`expr 2 '*' $ac_mid + 1`
10579 fi
10580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10581   done
10582 else
10583   echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10585
10586 cat >conftest.$ac_ext <<_ACEOF
10587 /* confdefs.h.  */
10588 _ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h.  */
10592 $ac_includes_default
10593 int
10594 main ()
10595 {
10596 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
10597 test_array [0] = 0
10598
10599   ;
10600   return 0;
10601 }
10602 _ACEOF
10603 rm -f conftest.$ac_objext
10604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10605   (eval $ac_compile) 2>conftest.er1
10606   ac_status=$?
10607   grep -v '^ *+' conftest.er1 >conftest.err
10608   rm -f conftest.er1
10609   cat conftest.err >&5
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); } &&
10612          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614   (eval $ac_try) 2>&5
10615   ac_status=$?
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); }; } &&
10618          { ac_try='test -s conftest.$ac_objext'
10619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620   (eval $ac_try) 2>&5
10621   ac_status=$?
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); }; }; then
10624   ac_hi=-1 ac_mid=-1
10625   while :; do
10626     cat >conftest.$ac_ext <<_ACEOF
10627 /* confdefs.h.  */
10628 _ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h.  */
10632 $ac_includes_default
10633 int
10634 main ()
10635 {
10636 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
10637 test_array [0] = 0
10638
10639   ;
10640   return 0;
10641 }
10642 _ACEOF
10643 rm -f conftest.$ac_objext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10645   (eval $ac_compile) 2>conftest.er1
10646   ac_status=$?
10647   grep -v '^ *+' conftest.er1 >conftest.err
10648   rm -f conftest.er1
10649   cat conftest.err >&5
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); } &&
10652          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654   (eval $ac_try) 2>&5
10655   ac_status=$?
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); }; } &&
10658          { ac_try='test -s conftest.$ac_objext'
10659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660   (eval $ac_try) 2>&5
10661   ac_status=$?
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); }; }; then
10664   ac_lo=$ac_mid; break
10665 else
10666   echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10668
10669 ac_hi=`expr '(' $ac_mid ')' - 1`
10670                        if test $ac_mid -le $ac_hi; then
10671                          ac_lo= ac_hi=
10672                          break
10673                        fi
10674                        ac_mid=`expr 2 '*' $ac_mid`
10675 fi
10676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10677   done
10678 else
10679   echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10681
10682 ac_lo= ac_hi=
10683 fi
10684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10685 fi
10686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10687 # Binary search between lo and hi bounds.
10688 while test "x$ac_lo" != "x$ac_hi"; do
10689   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10690   cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h.  */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h.  */
10696 $ac_includes_default
10697 int
10698 main ()
10699 {
10700 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
10701 test_array [0] = 0
10702
10703   ;
10704   return 0;
10705 }
10706 _ACEOF
10707 rm -f conftest.$ac_objext
10708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10709   (eval $ac_compile) 2>conftest.er1
10710   ac_status=$?
10711   grep -v '^ *+' conftest.er1 >conftest.err
10712   rm -f conftest.er1
10713   cat conftest.err >&5
10714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715   (exit $ac_status); } &&
10716          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718   (eval $ac_try) 2>&5
10719   ac_status=$?
10720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721   (exit $ac_status); }; } &&
10722          { ac_try='test -s conftest.$ac_objext'
10723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724   (eval $ac_try) 2>&5
10725   ac_status=$?
10726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727   (exit $ac_status); }; }; then
10728   ac_hi=$ac_mid
10729 else
10730   echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10732
10733 ac_lo=`expr '(' $ac_mid ')' + 1`
10734 fi
10735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10736 done
10737 case $ac_lo in
10738 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10739 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10740 See \`config.log' for more details." >&5
10741 echo "$as_me: error: cannot compute sizeof (long long), 77
10742 See \`config.log' for more details." >&2;}
10743    { (exit 1); exit 1; }; } ;;
10744 esac
10745 else
10746   if test "$cross_compiling" = yes; then
10747   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10748 See \`config.log' for more details." >&5
10749 echo "$as_me: error: cannot run test program while cross compiling
10750 See \`config.log' for more details." >&2;}
10751    { (exit 1); exit 1; }; }
10752 else
10753   cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h.  */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h.  */
10759 $ac_includes_default
10760 long longval () { return (long) (sizeof (long long)); }
10761 unsigned long ulongval () { return (long) (sizeof (long long)); }
10762 #include <stdio.h>
10763 #include <stdlib.h>
10764 int
10765 main ()
10766 {
10767
10768   FILE *f = fopen ("conftest.val", "w");
10769   if (! f)
10770     exit (1);
10771   if (((long) (sizeof (long long))) < 0)
10772     {
10773       long i = longval ();
10774       if (i != ((long) (sizeof (long long))))
10775         exit (1);
10776       fprintf (f, "%ld\n", i);
10777     }
10778   else
10779     {
10780       unsigned long i = ulongval ();
10781       if (i != ((long) (sizeof (long long))))
10782         exit (1);
10783       fprintf (f, "%lu\n", i);
10784     }
10785   exit (ferror (f) || fclose (f) != 0);
10786
10787   ;
10788   return 0;
10789 }
10790 _ACEOF
10791 rm -f conftest$ac_exeext
10792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10793   (eval $ac_link) 2>&5
10794   ac_status=$?
10795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798   (eval $ac_try) 2>&5
10799   ac_status=$?
10800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801   (exit $ac_status); }; }; then
10802   ac_cv_sizeof_long_long=`cat conftest.val`
10803 else
10804   echo "$as_me: program exited with status $ac_status" >&5
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10807
10808 ( exit $ac_status )
10809 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10810 See \`config.log' for more details." >&5
10811 echo "$as_me: error: cannot compute sizeof (long long), 77
10812 See \`config.log' for more details." >&2;}
10813    { (exit 1); exit 1; }; }
10814 fi
10815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10816 fi
10817 fi
10818 rm -f conftest.val
10819 else
10820   ac_cv_sizeof_long_long=0
10821 fi
10822 fi
10823 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10824 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10825 cat >>confdefs.h <<_ACEOF
10826 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10827 _ACEOF
10828
10829
10830 echo "$as_me:$LINENO: checking for float" >&5
10831 echo $ECHO_N "checking for float... $ECHO_C" >&6
10832 if test "${ac_cv_type_float+set}" = set; then
10833   echo $ECHO_N "(cached) $ECHO_C" >&6
10834 else
10835   cat >conftest.$ac_ext <<_ACEOF
10836 /* confdefs.h.  */
10837 _ACEOF
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h.  */
10841 $ac_includes_default
10842 int
10843 main ()
10844 {
10845 if ((float *) 0)
10846   return 0;
10847 if (sizeof (float))
10848   return 0;
10849   ;
10850   return 0;
10851 }
10852 _ACEOF
10853 rm -f conftest.$ac_objext
10854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10855   (eval $ac_compile) 2>conftest.er1
10856   ac_status=$?
10857   grep -v '^ *+' conftest.er1 >conftest.err
10858   rm -f conftest.er1
10859   cat conftest.err >&5
10860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861   (exit $ac_status); } &&
10862          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10864   (eval $ac_try) 2>&5
10865   ac_status=$?
10866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867   (exit $ac_status); }; } &&
10868          { ac_try='test -s conftest.$ac_objext'
10869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870   (eval $ac_try) 2>&5
10871   ac_status=$?
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); }; }; then
10874   ac_cv_type_float=yes
10875 else
10876   echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10878
10879 ac_cv_type_float=no
10880 fi
10881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10882 fi
10883 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
10884 echo "${ECHO_T}$ac_cv_type_float" >&6
10885
10886 echo "$as_me:$LINENO: checking size of float" >&5
10887 echo $ECHO_N "checking size of float... $ECHO_C" >&6
10888 if test "${ac_cv_sizeof_float+set}" = set; then
10889   echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891   if test "$ac_cv_type_float" = yes; then
10892   # The cast to unsigned long works around a bug in the HP C Compiler
10893   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10894   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10895   # This bug is HP SR number 8606223364.
10896   if test "$cross_compiling" = yes; then
10897   # Depending upon the size, compute the lo and hi bounds.
10898 cat >conftest.$ac_ext <<_ACEOF
10899 /* confdefs.h.  */
10900 _ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h.  */
10904 $ac_includes_default
10905 int
10906 main ()
10907 {
10908 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
10909 test_array [0] = 0
10910
10911   ;
10912   return 0;
10913 }
10914 _ACEOF
10915 rm -f conftest.$ac_objext
10916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10917   (eval $ac_compile) 2>conftest.er1
10918   ac_status=$?
10919   grep -v '^ *+' conftest.er1 >conftest.err
10920   rm -f conftest.er1
10921   cat conftest.err >&5
10922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923   (exit $ac_status); } &&
10924          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10926   (eval $ac_try) 2>&5
10927   ac_status=$?
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); }; } &&
10930          { ac_try='test -s conftest.$ac_objext'
10931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932   (eval $ac_try) 2>&5
10933   ac_status=$?
10934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935   (exit $ac_status); }; }; then
10936   ac_lo=0 ac_mid=0
10937   while :; do
10938     cat >conftest.$ac_ext <<_ACEOF
10939 /* confdefs.h.  */
10940 _ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h.  */
10944 $ac_includes_default
10945 int
10946 main ()
10947 {
10948 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
10949 test_array [0] = 0
10950
10951   ;
10952   return 0;
10953 }
10954 _ACEOF
10955 rm -f conftest.$ac_objext
10956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10957   (eval $ac_compile) 2>conftest.er1
10958   ac_status=$?
10959   grep -v '^ *+' conftest.er1 >conftest.err
10960   rm -f conftest.er1
10961   cat conftest.err >&5
10962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963   (exit $ac_status); } &&
10964          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966   (eval $ac_try) 2>&5
10967   ac_status=$?
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); }; } &&
10970          { ac_try='test -s conftest.$ac_objext'
10971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972   (eval $ac_try) 2>&5
10973   ac_status=$?
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); }; }; then
10976   ac_hi=$ac_mid; break
10977 else
10978   echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10980
10981 ac_lo=`expr $ac_mid + 1`
10982                     if test $ac_lo -le $ac_mid; then
10983                       ac_lo= ac_hi=
10984                       break
10985                     fi
10986                     ac_mid=`expr 2 '*' $ac_mid + 1`
10987 fi
10988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10989   done
10990 else
10991   echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10993
10994 cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h.  */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h.  */
11000 $ac_includes_default
11001 int
11002 main ()
11003 {
11004 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
11005 test_array [0] = 0
11006
11007   ;
11008   return 0;
11009 }
11010 _ACEOF
11011 rm -f conftest.$ac_objext
11012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11013   (eval $ac_compile) 2>conftest.er1
11014   ac_status=$?
11015   grep -v '^ *+' conftest.er1 >conftest.err
11016   rm -f conftest.er1
11017   cat conftest.err >&5
11018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); } &&
11020          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022   (eval $ac_try) 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); }; } &&
11026          { ac_try='test -s conftest.$ac_objext'
11027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028   (eval $ac_try) 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); }; }; then
11032   ac_hi=-1 ac_mid=-1
11033   while :; do
11034     cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h.  */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h.  */
11040 $ac_includes_default
11041 int
11042 main ()
11043 {
11044 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
11045 test_array [0] = 0
11046
11047   ;
11048   return 0;
11049 }
11050 _ACEOF
11051 rm -f conftest.$ac_objext
11052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11053   (eval $ac_compile) 2>conftest.er1
11054   ac_status=$?
11055   grep -v '^ *+' conftest.er1 >conftest.err
11056   rm -f conftest.er1
11057   cat conftest.err >&5
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); } &&
11060          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11062   (eval $ac_try) 2>&5
11063   ac_status=$?
11064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065   (exit $ac_status); }; } &&
11066          { ac_try='test -s conftest.$ac_objext'
11067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068   (eval $ac_try) 2>&5
11069   ac_status=$?
11070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071   (exit $ac_status); }; }; then
11072   ac_lo=$ac_mid; break
11073 else
11074   echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11076
11077 ac_hi=`expr '(' $ac_mid ')' - 1`
11078                        if test $ac_mid -le $ac_hi; then
11079                          ac_lo= ac_hi=
11080                          break
11081                        fi
11082                        ac_mid=`expr 2 '*' $ac_mid`
11083 fi
11084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11085   done
11086 else
11087   echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11089
11090 ac_lo= ac_hi=
11091 fi
11092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11093 fi
11094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11095 # Binary search between lo and hi bounds.
11096 while test "x$ac_lo" != "x$ac_hi"; do
11097   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11098   cat >conftest.$ac_ext <<_ACEOF
11099 /* confdefs.h.  */
11100 _ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h.  */
11104 $ac_includes_default
11105 int
11106 main ()
11107 {
11108 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
11109 test_array [0] = 0
11110
11111   ;
11112   return 0;
11113 }
11114 _ACEOF
11115 rm -f conftest.$ac_objext
11116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11117   (eval $ac_compile) 2>conftest.er1
11118   ac_status=$?
11119   grep -v '^ *+' conftest.er1 >conftest.err
11120   rm -f conftest.er1
11121   cat conftest.err >&5
11122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123   (exit $ac_status); } &&
11124          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126   (eval $ac_try) 2>&5
11127   ac_status=$?
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); }; } &&
11130          { ac_try='test -s conftest.$ac_objext'
11131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132   (eval $ac_try) 2>&5
11133   ac_status=$?
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); }; }; then
11136   ac_hi=$ac_mid
11137 else
11138   echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11140
11141 ac_lo=`expr '(' $ac_mid ')' + 1`
11142 fi
11143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11144 done
11145 case $ac_lo in
11146 ?*) ac_cv_sizeof_float=$ac_lo;;
11147 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
11148 See \`config.log' for more details." >&5
11149 echo "$as_me: error: cannot compute sizeof (float), 77
11150 See \`config.log' for more details." >&2;}
11151    { (exit 1); exit 1; }; } ;;
11152 esac
11153 else
11154   if test "$cross_compiling" = yes; then
11155   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11156 See \`config.log' for more details." >&5
11157 echo "$as_me: error: cannot run test program while cross compiling
11158 See \`config.log' for more details." >&2;}
11159    { (exit 1); exit 1; }; }
11160 else
11161   cat >conftest.$ac_ext <<_ACEOF
11162 /* confdefs.h.  */
11163 _ACEOF
11164 cat confdefs.h >>conftest.$ac_ext
11165 cat >>conftest.$ac_ext <<_ACEOF
11166 /* end confdefs.h.  */
11167 $ac_includes_default
11168 long longval () { return (long) (sizeof (float)); }
11169 unsigned long ulongval () { return (long) (sizeof (float)); }
11170 #include <stdio.h>
11171 #include <stdlib.h>
11172 int
11173 main ()
11174 {
11175
11176   FILE *f = fopen ("conftest.val", "w");
11177   if (! f)
11178     exit (1);
11179   if (((long) (sizeof (float))) < 0)
11180     {
11181       long i = longval ();
11182       if (i != ((long) (sizeof (float))))
11183         exit (1);
11184       fprintf (f, "%ld\n", i);
11185     }
11186   else
11187     {
11188       unsigned long i = ulongval ();
11189       if (i != ((long) (sizeof (float))))
11190         exit (1);
11191       fprintf (f, "%lu\n", i);
11192     }
11193   exit (ferror (f) || fclose (f) != 0);
11194
11195   ;
11196   return 0;
11197 }
11198 _ACEOF
11199 rm -f conftest$ac_exeext
11200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11201   (eval $ac_link) 2>&5
11202   ac_status=$?
11203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206   (eval $ac_try) 2>&5
11207   ac_status=$?
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); }; }; then
11210   ac_cv_sizeof_float=`cat conftest.val`
11211 else
11212   echo "$as_me: program exited with status $ac_status" >&5
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11215
11216 ( exit $ac_status )
11217 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
11218 See \`config.log' for more details." >&5
11219 echo "$as_me: error: cannot compute sizeof (float), 77
11220 See \`config.log' for more details." >&2;}
11221    { (exit 1); exit 1; }; }
11222 fi
11223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11224 fi
11225 fi
11226 rm -f conftest.val
11227 else
11228   ac_cv_sizeof_float=0
11229 fi
11230 fi
11231 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
11232 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
11233 cat >>confdefs.h <<_ACEOF
11234 #define SIZEOF_FLOAT $ac_cv_sizeof_float
11235 _ACEOF
11236
11237
11238 echo "$as_me:$LINENO: checking for double" >&5
11239 echo $ECHO_N "checking for double... $ECHO_C" >&6
11240 if test "${ac_cv_type_double+set}" = set; then
11241   echo $ECHO_N "(cached) $ECHO_C" >&6
11242 else
11243   cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h.  */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h.  */
11249 $ac_includes_default
11250 int
11251 main ()
11252 {
11253 if ((double *) 0)
11254   return 0;
11255 if (sizeof (double))
11256   return 0;
11257   ;
11258   return 0;
11259 }
11260 _ACEOF
11261 rm -f conftest.$ac_objext
11262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11263   (eval $ac_compile) 2>conftest.er1
11264   ac_status=$?
11265   grep -v '^ *+' conftest.er1 >conftest.err
11266   rm -f conftest.er1
11267   cat conftest.err >&5
11268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); } &&
11270          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272   (eval $ac_try) 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; } &&
11276          { ac_try='test -s conftest.$ac_objext'
11277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278   (eval $ac_try) 2>&5
11279   ac_status=$?
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); }; }; then
11282   ac_cv_type_double=yes
11283 else
11284   echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11286
11287 ac_cv_type_double=no
11288 fi
11289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11290 fi
11291 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
11292 echo "${ECHO_T}$ac_cv_type_double" >&6
11293
11294 echo "$as_me:$LINENO: checking size of double" >&5
11295 echo $ECHO_N "checking size of double... $ECHO_C" >&6
11296 if test "${ac_cv_sizeof_double+set}" = set; then
11297   echo $ECHO_N "(cached) $ECHO_C" >&6
11298 else
11299   if test "$ac_cv_type_double" = yes; then
11300   # The cast to unsigned long works around a bug in the HP C Compiler
11301   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11302   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11303   # This bug is HP SR number 8606223364.
11304   if test "$cross_compiling" = yes; then
11305   # Depending upon the size, compute the lo and hi bounds.
11306 cat >conftest.$ac_ext <<_ACEOF
11307 /* confdefs.h.  */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h.  */
11312 $ac_includes_default
11313 int
11314 main ()
11315 {
11316 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
11317 test_array [0] = 0
11318
11319   ;
11320   return 0;
11321 }
11322 _ACEOF
11323 rm -f conftest.$ac_objext
11324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11325   (eval $ac_compile) 2>conftest.er1
11326   ac_status=$?
11327   grep -v '^ *+' conftest.er1 >conftest.err
11328   rm -f conftest.er1
11329   cat conftest.err >&5
11330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331   (exit $ac_status); } &&
11332          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334   (eval $ac_try) 2>&5
11335   ac_status=$?
11336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337   (exit $ac_status); }; } &&
11338          { ac_try='test -s conftest.$ac_objext'
11339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340   (eval $ac_try) 2>&5
11341   ac_status=$?
11342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343   (exit $ac_status); }; }; then
11344   ac_lo=0 ac_mid=0
11345   while :; do
11346     cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h.  */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h.  */
11352 $ac_includes_default
11353 int
11354 main ()
11355 {
11356 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
11357 test_array [0] = 0
11358
11359   ;
11360   return 0;
11361 }
11362 _ACEOF
11363 rm -f conftest.$ac_objext
11364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11365   (eval $ac_compile) 2>conftest.er1
11366   ac_status=$?
11367   grep -v '^ *+' conftest.er1 >conftest.err
11368   rm -f conftest.er1
11369   cat conftest.err >&5
11370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   (exit $ac_status); } &&
11372          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374   (eval $ac_try) 2>&5
11375   ac_status=$?
11376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377   (exit $ac_status); }; } &&
11378          { ac_try='test -s conftest.$ac_objext'
11379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380   (eval $ac_try) 2>&5
11381   ac_status=$?
11382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383   (exit $ac_status); }; }; then
11384   ac_hi=$ac_mid; break
11385 else
11386   echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11388
11389 ac_lo=`expr $ac_mid + 1`
11390                     if test $ac_lo -le $ac_mid; then
11391                       ac_lo= ac_hi=
11392                       break
11393                     fi
11394                     ac_mid=`expr 2 '*' $ac_mid + 1`
11395 fi
11396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11397   done
11398 else
11399   echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11401
11402 cat >conftest.$ac_ext <<_ACEOF
11403 /* confdefs.h.  */
11404 _ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h.  */
11408 $ac_includes_default
11409 int
11410 main ()
11411 {
11412 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
11413 test_array [0] = 0
11414
11415   ;
11416   return 0;
11417 }
11418 _ACEOF
11419 rm -f conftest.$ac_objext
11420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11421   (eval $ac_compile) 2>conftest.er1
11422   ac_status=$?
11423   grep -v '^ *+' conftest.er1 >conftest.err
11424   rm -f conftest.er1
11425   cat conftest.err >&5
11426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427   (exit $ac_status); } &&
11428          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430   (eval $ac_try) 2>&5
11431   ac_status=$?
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); }; } &&
11434          { ac_try='test -s conftest.$ac_objext'
11435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436   (eval $ac_try) 2>&5
11437   ac_status=$?
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); }; }; then
11440   ac_hi=-1 ac_mid=-1
11441   while :; do
11442     cat >conftest.$ac_ext <<_ACEOF
11443 /* confdefs.h.  */
11444 _ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h.  */
11448 $ac_includes_default
11449 int
11450 main ()
11451 {
11452 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
11453 test_array [0] = 0
11454
11455   ;
11456   return 0;
11457 }
11458 _ACEOF
11459 rm -f conftest.$ac_objext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11461   (eval $ac_compile) 2>conftest.er1
11462   ac_status=$?
11463   grep -v '^ *+' conftest.er1 >conftest.err
11464   rm -f conftest.er1
11465   cat conftest.err >&5
11466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467   (exit $ac_status); } &&
11468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470   (eval $ac_try) 2>&5
11471   ac_status=$?
11472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473   (exit $ac_status); }; } &&
11474          { ac_try='test -s conftest.$ac_objext'
11475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476   (eval $ac_try) 2>&5
11477   ac_status=$?
11478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479   (exit $ac_status); }; }; then
11480   ac_lo=$ac_mid; break
11481 else
11482   echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11484
11485 ac_hi=`expr '(' $ac_mid ')' - 1`
11486                        if test $ac_mid -le $ac_hi; then
11487                          ac_lo= ac_hi=
11488                          break
11489                        fi
11490                        ac_mid=`expr 2 '*' $ac_mid`
11491 fi
11492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11493   done
11494 else
11495   echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11497
11498 ac_lo= ac_hi=
11499 fi
11500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11501 fi
11502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11503 # Binary search between lo and hi bounds.
11504 while test "x$ac_lo" != "x$ac_hi"; do
11505   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11506   cat >conftest.$ac_ext <<_ACEOF
11507 /* confdefs.h.  */
11508 _ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h.  */
11512 $ac_includes_default
11513 int
11514 main ()
11515 {
11516 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
11517 test_array [0] = 0
11518
11519   ;
11520   return 0;
11521 }
11522 _ACEOF
11523 rm -f conftest.$ac_objext
11524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11525   (eval $ac_compile) 2>conftest.er1
11526   ac_status=$?
11527   grep -v '^ *+' conftest.er1 >conftest.err
11528   rm -f conftest.er1
11529   cat conftest.err >&5
11530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); } &&
11532          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11534   (eval $ac_try) 2>&5
11535   ac_status=$?
11536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537   (exit $ac_status); }; } &&
11538          { ac_try='test -s conftest.$ac_objext'
11539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540   (eval $ac_try) 2>&5
11541   ac_status=$?
11542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543   (exit $ac_status); }; }; then
11544   ac_hi=$ac_mid
11545 else
11546   echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11548
11549 ac_lo=`expr '(' $ac_mid ')' + 1`
11550 fi
11551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11552 done
11553 case $ac_lo in
11554 ?*) ac_cv_sizeof_double=$ac_lo;;
11555 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
11556 See \`config.log' for more details." >&5
11557 echo "$as_me: error: cannot compute sizeof (double), 77
11558 See \`config.log' for more details." >&2;}
11559    { (exit 1); exit 1; }; } ;;
11560 esac
11561 else
11562   if test "$cross_compiling" = yes; then
11563   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11564 See \`config.log' for more details." >&5
11565 echo "$as_me: error: cannot run test program while cross compiling
11566 See \`config.log' for more details." >&2;}
11567    { (exit 1); exit 1; }; }
11568 else
11569   cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h.  */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h.  */
11575 $ac_includes_default
11576 long longval () { return (long) (sizeof (double)); }
11577 unsigned long ulongval () { return (long) (sizeof (double)); }
11578 #include <stdio.h>
11579 #include <stdlib.h>
11580 int
11581 main ()
11582 {
11583
11584   FILE *f = fopen ("conftest.val", "w");
11585   if (! f)
11586     exit (1);
11587   if (((long) (sizeof (double))) < 0)
11588     {
11589       long i = longval ();
11590       if (i != ((long) (sizeof (double))))
11591         exit (1);
11592       fprintf (f, "%ld\n", i);
11593     }
11594   else
11595     {
11596       unsigned long i = ulongval ();
11597       if (i != ((long) (sizeof (double))))
11598         exit (1);
11599       fprintf (f, "%lu\n", i);
11600     }
11601   exit (ferror (f) || fclose (f) != 0);
11602
11603   ;
11604   return 0;
11605 }
11606 _ACEOF
11607 rm -f conftest$ac_exeext
11608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11609   (eval $ac_link) 2>&5
11610   ac_status=$?
11611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614   (eval $ac_try) 2>&5
11615   ac_status=$?
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); }; }; then
11618   ac_cv_sizeof_double=`cat conftest.val`
11619 else
11620   echo "$as_me: program exited with status $ac_status" >&5
11621 echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11623
11624 ( exit $ac_status )
11625 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
11626 See \`config.log' for more details." >&5
11627 echo "$as_me: error: cannot compute sizeof (double), 77
11628 See \`config.log' for more details." >&2;}
11629    { (exit 1); exit 1; }; }
11630 fi
11631 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11632 fi
11633 fi
11634 rm -f conftest.val
11635 else
11636   ac_cv_sizeof_double=0
11637 fi
11638 fi
11639 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
11640 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
11641 cat >>confdefs.h <<_ACEOF
11642 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
11643 _ACEOF
11644
11645
11646 echo "$as_me:$LINENO: checking for long double" >&5
11647 echo $ECHO_N "checking for long double... $ECHO_C" >&6
11648 if test "${ac_cv_type_long_double+set}" = set; then
11649   echo $ECHO_N "(cached) $ECHO_C" >&6
11650 else
11651   cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h.  */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h.  */
11657 $ac_includes_default
11658 int
11659 main ()
11660 {
11661 if ((long double *) 0)
11662   return 0;
11663 if (sizeof (long double))
11664   return 0;
11665   ;
11666   return 0;
11667 }
11668 _ACEOF
11669 rm -f conftest.$ac_objext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11671   (eval $ac_compile) 2>conftest.er1
11672   ac_status=$?
11673   grep -v '^ *+' conftest.er1 >conftest.err
11674   rm -f conftest.er1
11675   cat conftest.err >&5
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); } &&
11678          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680   (eval $ac_try) 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; } &&
11684          { ac_try='test -s conftest.$ac_objext'
11685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686   (eval $ac_try) 2>&5
11687   ac_status=$?
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); }; }; then
11690   ac_cv_type_long_double=yes
11691 else
11692   echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11694
11695 ac_cv_type_long_double=no
11696 fi
11697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11698 fi
11699 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11700 echo "${ECHO_T}$ac_cv_type_long_double" >&6
11701
11702 echo "$as_me:$LINENO: checking size of long double" >&5
11703 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
11704 if test "${ac_cv_sizeof_long_double+set}" = set; then
11705   echo $ECHO_N "(cached) $ECHO_C" >&6
11706 else
11707   if test "$ac_cv_type_long_double" = yes; then
11708   # The cast to unsigned long works around a bug in the HP C Compiler
11709   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11710   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11711   # This bug is HP SR number 8606223364.
11712   if test "$cross_compiling" = yes; then
11713   # Depending upon the size, compute the lo and hi bounds.
11714 cat >conftest.$ac_ext <<_ACEOF
11715 /* confdefs.h.  */
11716 _ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h.  */
11720 $ac_includes_default
11721 int
11722 main ()
11723 {
11724 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
11725 test_array [0] = 0
11726
11727   ;
11728   return 0;
11729 }
11730 _ACEOF
11731 rm -f conftest.$ac_objext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11733   (eval $ac_compile) 2>conftest.er1
11734   ac_status=$?
11735   grep -v '^ *+' conftest.er1 >conftest.err
11736   rm -f conftest.er1
11737   cat conftest.err >&5
11738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739   (exit $ac_status); } &&
11740          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742   (eval $ac_try) 2>&5
11743   ac_status=$?
11744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745   (exit $ac_status); }; } &&
11746          { ac_try='test -s conftest.$ac_objext'
11747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748   (eval $ac_try) 2>&5
11749   ac_status=$?
11750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751   (exit $ac_status); }; }; then
11752   ac_lo=0 ac_mid=0
11753   while :; do
11754     cat >conftest.$ac_ext <<_ACEOF
11755 /* confdefs.h.  */
11756 _ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h.  */
11760 $ac_includes_default
11761 int
11762 main ()
11763 {
11764 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
11765 test_array [0] = 0
11766
11767   ;
11768   return 0;
11769 }
11770 _ACEOF
11771 rm -f conftest.$ac_objext
11772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11773   (eval $ac_compile) 2>conftest.er1
11774   ac_status=$?
11775   grep -v '^ *+' conftest.er1 >conftest.err
11776   rm -f conftest.er1
11777   cat conftest.err >&5
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); } &&
11780          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782   (eval $ac_try) 2>&5
11783   ac_status=$?
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); }; } &&
11786          { ac_try='test -s conftest.$ac_objext'
11787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11788   (eval $ac_try) 2>&5
11789   ac_status=$?
11790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791   (exit $ac_status); }; }; then
11792   ac_hi=$ac_mid; break
11793 else
11794   echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11796
11797 ac_lo=`expr $ac_mid + 1`
11798                     if test $ac_lo -le $ac_mid; then
11799                       ac_lo= ac_hi=
11800                       break
11801                     fi
11802                     ac_mid=`expr 2 '*' $ac_mid + 1`
11803 fi
11804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11805   done
11806 else
11807   echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11809
11810 cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h.  */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h.  */
11816 $ac_includes_default
11817 int
11818 main ()
11819 {
11820 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
11821 test_array [0] = 0
11822
11823   ;
11824   return 0;
11825 }
11826 _ACEOF
11827 rm -f conftest.$ac_objext
11828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829   (eval $ac_compile) 2>conftest.er1
11830   ac_status=$?
11831   grep -v '^ *+' conftest.er1 >conftest.err
11832   rm -f conftest.er1
11833   cat conftest.err >&5
11834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835   (exit $ac_status); } &&
11836          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838   (eval $ac_try) 2>&5
11839   ac_status=$?
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); }; } &&
11842          { ac_try='test -s conftest.$ac_objext'
11843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844   (eval $ac_try) 2>&5
11845   ac_status=$?
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); }; }; then
11848   ac_hi=-1 ac_mid=-1
11849   while :; do
11850     cat >conftest.$ac_ext <<_ACEOF
11851 /* confdefs.h.  */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h.  */
11856 $ac_includes_default
11857 int
11858 main ()
11859 {
11860 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
11861 test_array [0] = 0
11862
11863   ;
11864   return 0;
11865 }
11866 _ACEOF
11867 rm -f conftest.$ac_objext
11868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11869   (eval $ac_compile) 2>conftest.er1
11870   ac_status=$?
11871   grep -v '^ *+' conftest.er1 >conftest.err
11872   rm -f conftest.er1
11873   cat conftest.err >&5
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); } &&
11876          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878   (eval $ac_try) 2>&5
11879   ac_status=$?
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); }; } &&
11882          { ac_try='test -s conftest.$ac_objext'
11883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884   (eval $ac_try) 2>&5
11885   ac_status=$?
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); }; }; then
11888   ac_lo=$ac_mid; break
11889 else
11890   echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11892
11893 ac_hi=`expr '(' $ac_mid ')' - 1`
11894                        if test $ac_mid -le $ac_hi; then
11895                          ac_lo= ac_hi=
11896                          break
11897                        fi
11898                        ac_mid=`expr 2 '*' $ac_mid`
11899 fi
11900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11901   done
11902 else
11903   echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11905
11906 ac_lo= ac_hi=
11907 fi
11908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11909 fi
11910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11911 # Binary search between lo and hi bounds.
11912 while test "x$ac_lo" != "x$ac_hi"; do
11913   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11914   cat >conftest.$ac_ext <<_ACEOF
11915 /* confdefs.h.  */
11916 _ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h.  */
11920 $ac_includes_default
11921 int
11922 main ()
11923 {
11924 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
11925 test_array [0] = 0
11926
11927   ;
11928   return 0;
11929 }
11930 _ACEOF
11931 rm -f conftest.$ac_objext
11932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11933   (eval $ac_compile) 2>conftest.er1
11934   ac_status=$?
11935   grep -v '^ *+' conftest.er1 >conftest.err
11936   rm -f conftest.er1
11937   cat conftest.err >&5
11938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939   (exit $ac_status); } &&
11940          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942   (eval $ac_try) 2>&5
11943   ac_status=$?
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); }; } &&
11946          { ac_try='test -s conftest.$ac_objext'
11947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948   (eval $ac_try) 2>&5
11949   ac_status=$?
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); }; }; then
11952   ac_hi=$ac_mid
11953 else
11954   echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957 ac_lo=`expr '(' $ac_mid ')' + 1`
11958 fi
11959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11960 done
11961 case $ac_lo in
11962 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11963 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
11964 See \`config.log' for more details." >&5
11965 echo "$as_me: error: cannot compute sizeof (long double), 77
11966 See \`config.log' for more details." >&2;}
11967    { (exit 1); exit 1; }; } ;;
11968 esac
11969 else
11970   if test "$cross_compiling" = yes; then
11971   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11972 See \`config.log' for more details." >&5
11973 echo "$as_me: error: cannot run test program while cross compiling
11974 See \`config.log' for more details." >&2;}
11975    { (exit 1); exit 1; }; }
11976 else
11977   cat >conftest.$ac_ext <<_ACEOF
11978 /* confdefs.h.  */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h.  */
11983 $ac_includes_default
11984 long longval () { return (long) (sizeof (long double)); }
11985 unsigned long ulongval () { return (long) (sizeof (long double)); }
11986 #include <stdio.h>
11987 #include <stdlib.h>
11988 int
11989 main ()
11990 {
11991
11992   FILE *f = fopen ("conftest.val", "w");
11993   if (! f)
11994     exit (1);
11995   if (((long) (sizeof (long double))) < 0)
11996     {
11997       long i = longval ();
11998       if (i != ((long) (sizeof (long double))))
11999         exit (1);
12000       fprintf (f, "%ld\n", i);
12001     }
12002   else
12003     {
12004       unsigned long i = ulongval ();
12005       if (i != ((long) (sizeof (long double))))
12006         exit (1);
12007       fprintf (f, "%lu\n", i);
12008     }
12009   exit (ferror (f) || fclose (f) != 0);
12010
12011   ;
12012   return 0;
12013 }
12014 _ACEOF
12015 rm -f conftest$ac_exeext
12016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12017   (eval $ac_link) 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022   (eval $ac_try) 2>&5
12023   ac_status=$?
12024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025   (exit $ac_status); }; }; then
12026   ac_cv_sizeof_long_double=`cat conftest.val`
12027 else
12028   echo "$as_me: program exited with status $ac_status" >&5
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12031
12032 ( exit $ac_status )
12033 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
12034 See \`config.log' for more details." >&5
12035 echo "$as_me: error: cannot compute sizeof (long double), 77
12036 See \`config.log' for more details." >&2;}
12037    { (exit 1); exit 1; }; }
12038 fi
12039 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12040 fi
12041 fi
12042 rm -f conftest.val
12043 else
12044   ac_cv_sizeof_long_double=0
12045 fi
12046 fi
12047 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12048 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
12049 cat >>confdefs.h <<_ACEOF
12050 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12051 _ACEOF
12052
12053
12054
12055
12056 cat >>confdefs.h <<\_ACEOF
12057 #define FPREP_IEEE754 1
12058 _ACEOF
12059
12060
12061 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12062 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12063 if test "${ac_cv_c_bigendian+set}" = set; then
12064   echo $ECHO_N "(cached) $ECHO_C" >&6
12065 else
12066   # See if sys/param.h defines the BYTE_ORDER macro.
12067 cat >conftest.$ac_ext <<_ACEOF
12068 /* confdefs.h.  */
12069 _ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h.  */
12073 #include <sys/types.h>
12074 #include <sys/param.h>
12075
12076 int
12077 main ()
12078 {
12079 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12080  bogus endian macros
12081 #endif
12082
12083   ;
12084   return 0;
12085 }
12086 _ACEOF
12087 rm -f conftest.$ac_objext
12088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12089   (eval $ac_compile) 2>conftest.er1
12090   ac_status=$?
12091   grep -v '^ *+' conftest.er1 >conftest.err
12092   rm -f conftest.er1
12093   cat conftest.err >&5
12094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095   (exit $ac_status); } &&
12096          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098   (eval $ac_try) 2>&5
12099   ac_status=$?
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); }; } &&
12102          { ac_try='test -s conftest.$ac_objext'
12103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104   (eval $ac_try) 2>&5
12105   ac_status=$?
12106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107   (exit $ac_status); }; }; then
12108   # It does; now see whether it defined to BIG_ENDIAN or not.
12109 cat >conftest.$ac_ext <<_ACEOF
12110 /* confdefs.h.  */
12111 _ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h.  */
12115 #include <sys/types.h>
12116 #include <sys/param.h>
12117
12118 int
12119 main ()
12120 {
12121 #if BYTE_ORDER != BIG_ENDIAN
12122  not big endian
12123 #endif
12124
12125   ;
12126   return 0;
12127 }
12128 _ACEOF
12129 rm -f conftest.$ac_objext
12130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12131   (eval $ac_compile) 2>conftest.er1
12132   ac_status=$?
12133   grep -v '^ *+' conftest.er1 >conftest.err
12134   rm -f conftest.er1
12135   cat conftest.err >&5
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); } &&
12138          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140   (eval $ac_try) 2>&5
12141   ac_status=$?
12142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143   (exit $ac_status); }; } &&
12144          { ac_try='test -s conftest.$ac_objext'
12145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146   (eval $ac_try) 2>&5
12147   ac_status=$?
12148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); }; }; then
12150   ac_cv_c_bigendian=yes
12151 else
12152   echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12154
12155 ac_cv_c_bigendian=no
12156 fi
12157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12158 else
12159   echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12161
12162 # It does not; compile a test program.
12163 if test "$cross_compiling" = yes; then
12164   # try to guess the endianness by grepping values into an object file
12165   ac_cv_c_bigendian=unknown
12166   cat >conftest.$ac_ext <<_ACEOF
12167 /* confdefs.h.  */
12168 _ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h.  */
12172 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12173 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12174 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12175 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12176 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12177 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12178 int
12179 main ()
12180 {
12181  _ascii (); _ebcdic ();
12182   ;
12183   return 0;
12184 }
12185 _ACEOF
12186 rm -f conftest.$ac_objext
12187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12188   (eval $ac_compile) 2>conftest.er1
12189   ac_status=$?
12190   grep -v '^ *+' conftest.er1 >conftest.err
12191   rm -f conftest.er1
12192   cat conftest.err >&5
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); } &&
12195          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197   (eval $ac_try) 2>&5
12198   ac_status=$?
12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   (exit $ac_status); }; } &&
12201          { ac_try='test -s conftest.$ac_objext'
12202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203   (eval $ac_try) 2>&5
12204   ac_status=$?
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); }; }; then
12207   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12208   ac_cv_c_bigendian=yes
12209 fi
12210 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12211   if test "$ac_cv_c_bigendian" = unknown; then
12212     ac_cv_c_bigendian=no
12213   else
12214     # finding both strings is unlikely to happen, but who knows?
12215     ac_cv_c_bigendian=unknown
12216   fi
12217 fi
12218 else
12219   echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12221
12222 fi
12223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12224 else
12225   cat >conftest.$ac_ext <<_ACEOF
12226 /* confdefs.h.  */
12227 _ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h.  */
12231 int
12232 main ()
12233 {
12234   /* Are we little or big endian?  From Harbison&Steele.  */
12235   union
12236   {
12237     long l;
12238     char c[sizeof (long)];
12239   } u;
12240   u.l = 1;
12241   exit (u.c[sizeof (long) - 1] == 1);
12242 }
12243 _ACEOF
12244 rm -f conftest$ac_exeext
12245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12246   (eval $ac_link) 2>&5
12247   ac_status=$?
12248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251   (eval $ac_try) 2>&5
12252   ac_status=$?
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); }; }; then
12255   ac_cv_c_bigendian=no
12256 else
12257   echo "$as_me: program exited with status $ac_status" >&5
12258 echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.$ac_ext >&5
12260
12261 ( exit $ac_status )
12262 ac_cv_c_bigendian=yes
12263 fi
12264 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12265 fi
12266 fi
12267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12268 fi
12269 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12270 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
12271 case $ac_cv_c_bigendian in
12272   yes)
12273
12274 cat >>confdefs.h <<\_ACEOF
12275 #define WORDS_BIGENDIAN 1
12276 _ACEOF
12277  ;;
12278   no)
12279      ;;
12280   *)
12281     { { echo "$as_me:$LINENO: error: unknown endianness
12282 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12283 echo "$as_me: error: unknown endianness
12284 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12285    { (exit 1); exit 1; }; } ;;
12286 esac
12287
12288
12289
12290 echo "$as_me:$LINENO: checking if sprintf returns a char count" >&5
12291 echo $ECHO_N "checking if sprintf returns a char count... $ECHO_C" >&6
12292 if test "${blp_is_sprintf_good+set}" = set; then
12293   echo $ECHO_N "(cached) $ECHO_C" >&6
12294 else
12295   if test "$cross_compiling" = yes; then
12296   eval "blp_is_sprintf_good=no"
12297 else
12298   cat >conftest.$ac_ext <<_ACEOF
12299 /* confdefs.h.  */
12300 _ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h.  */
12304 #include <stdio.h>
12305                           int
12306                           main()
12307                           {
12308                             char s[8];
12309                             exit((int)sprintf(s, "abcdefg")!=7);
12310                           }
12311
12312 _ACEOF
12313 rm -f conftest$ac_exeext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12315   (eval $ac_link) 2>&5
12316   ac_status=$?
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320   (eval $ac_try) 2>&5
12321   ac_status=$?
12322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323   (exit $ac_status); }; }; then
12324   eval "blp_is_sprintf_good=yes"
12325 else
12326   echo "$as_me: program exited with status $ac_status" >&5
12327 echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12329
12330 ( exit $ac_status )
12331 eval "blp_is_sprintf_good=no"
12332 fi
12333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12334 fi
12335
12336 fi
12337
12338 if test "$blp_is_sprintf_good" = yes; then
12339
12340 cat >>confdefs.h <<\_ACEOF
12341 #define HAVE_GOOD_SPRINTF 1
12342 _ACEOF
12343
12344   echo "$as_me:$LINENO: result: yes" >&5
12345 echo "${ECHO_T}yes" >&6
12346 else
12347   echo "$as_me:$LINENO: result: no" >&5
12348 echo "${ECHO_T}no" >&6
12349 fi
12350
12351
12352 echo "$as_me:$LINENO: checking number of digits in LONG_MIN (incl. sign)" >&5
12353 echo $ECHO_N "checking number of digits in LONG_MIN (incl. sign)... $ECHO_C" >&6
12354 if test "${blp_int_digits+set}" = set; then
12355   echo $ECHO_N "(cached) $ECHO_C" >&6
12356 else
12357   if test "$cross_compiling" = yes; then
12358   eval "blp_int_digits=19"
12359 else
12360   cat >conftest.$ac_ext <<_ACEOF
12361 /* confdefs.h.  */
12362 _ACEOF
12363 cat confdefs.h >>conftest.$ac_ext
12364 cat >>conftest.$ac_ext <<_ACEOF
12365 /* end confdefs.h.  */
12366 #include <stdio.h>
12367                           #include <limits.h>
12368                           int
12369                           main()
12370                           {
12371                             int len;
12372                             char s[80];
12373                             sprintf(s, "%ld", LONG_MAX);
12374                             len = strlen(s);
12375                             sprintf(s, "%ld", LONG_MIN);
12376                             if(strlen(s)>len) len=strlen(s);
12377                             sprintf(s, "%lu", ULONG_MAX);
12378                             if(strlen(s)>len) len=strlen(s);
12379                             exit(len);
12380                           }
12381
12382 _ACEOF
12383 rm -f conftest$ac_exeext
12384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12385   (eval $ac_link) 2>&5
12386   ac_status=$?
12387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390   (eval $ac_try) 2>&5
12391   ac_status=$?
12392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); }; }; then
12394   eval "blp_int_digits=19"
12395 else
12396   echo "$as_me: program exited with status $ac_status" >&5
12397 echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12399
12400 ( exit $ac_status )
12401 eval "blp_int_digits=$?"
12402                          if test "$blp_int_digits" -lt 11; then
12403                            blp_int_digits=11
12404                          fi
12405 fi
12406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12407 fi
12408
12409 fi
12410
12411
12412 cat >>confdefs.h <<_ACEOF
12413 #define INT_DIGITS $blp_int_digits
12414 _ACEOF
12415
12416 echo "$as_me:$LINENO: result: $blp_int_digits" >&5
12417 echo "${ECHO_T}$blp_int_digits" >&6
12418
12419 echo "$as_me:$LINENO: checking random number generator" >&5
12420 echo $ECHO_N "checking random number generator... $ECHO_C" >&6
12421 if test "${blp_random_good+set}" = set; then
12422   echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424   cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h.  */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h.  */
12430 #include <stdlib.h>
12431 int
12432 main ()
12433 {
12434 int x=RAND_MAX;
12435   ;
12436   return 0;
12437 }
12438 _ACEOF
12439 rm -f conftest.$ac_objext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12441   (eval $ac_compile) 2>conftest.er1
12442   ac_status=$?
12443   grep -v '^ *+' conftest.er1 >conftest.err
12444   rm -f conftest.er1
12445   cat conftest.err >&5
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); } &&
12448          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450   (eval $ac_try) 2>&5
12451   ac_status=$?
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); }; } &&
12454          { ac_try='test -s conftest.$ac_objext'
12455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456   (eval $ac_try) 2>&5
12457   ac_status=$?
12458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); }; }; then
12460   blp_random_good=yes
12461 else
12462   echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12464
12465 blp_random_good=no
12466 fi
12467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12468 fi
12469
12470 if test "$blp_random_good" = yes; then
12471
12472 cat >>confdefs.h <<\_ACEOF
12473 #define HAVE_GOOD_RANDOM 1
12474 _ACEOF
12475
12476   echo "$as_me:$LINENO: result: good" >&5
12477 echo "${ECHO_T}good" >&6
12478 else
12479   echo "$as_me:$LINENO: result: bad" >&5
12480 echo "${ECHO_T}bad" >&6
12481 fi
12482
12483
12484 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12485 # for constant arguments.  Useless!
12486 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12487 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12488 if test "${ac_cv_working_alloca_h+set}" = set; then
12489   echo $ECHO_N "(cached) $ECHO_C" >&6
12490 else
12491   cat >conftest.$ac_ext <<_ACEOF
12492 /* confdefs.h.  */
12493 _ACEOF
12494 cat confdefs.h >>conftest.$ac_ext
12495 cat >>conftest.$ac_ext <<_ACEOF
12496 /* end confdefs.h.  */
12497 #include <alloca.h>
12498 int
12499 main ()
12500 {
12501 char *p = (char *) alloca (2 * sizeof (int));
12502   ;
12503   return 0;
12504 }
12505 _ACEOF
12506 rm -f conftest.$ac_objext conftest$ac_exeext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12508   (eval $ac_link) 2>conftest.er1
12509   ac_status=$?
12510   grep -v '^ *+' conftest.er1 >conftest.err
12511   rm -f conftest.er1
12512   cat conftest.err >&5
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); } &&
12515          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517   (eval $ac_try) 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); }; } &&
12521          { ac_try='test -s conftest$ac_exeext'
12522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523   (eval $ac_try) 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; }; then
12527   ac_cv_working_alloca_h=yes
12528 else
12529   echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12531
12532 ac_cv_working_alloca_h=no
12533 fi
12534 rm -f conftest.err conftest.$ac_objext \
12535       conftest$ac_exeext conftest.$ac_ext
12536 fi
12537 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12538 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12539 if test $ac_cv_working_alloca_h = yes; then
12540
12541 cat >>confdefs.h <<\_ACEOF
12542 #define HAVE_ALLOCA_H 1
12543 _ACEOF
12544
12545 fi
12546
12547 echo "$as_me:$LINENO: checking for alloca" >&5
12548 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12549 if test "${ac_cv_func_alloca_works+set}" = set; then
12550   echo $ECHO_N "(cached) $ECHO_C" >&6
12551 else
12552   cat >conftest.$ac_ext <<_ACEOF
12553 /* confdefs.h.  */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h.  */
12558 #ifdef __GNUC__
12559 # define alloca __builtin_alloca
12560 #else
12561 # ifdef _MSC_VER
12562 #  include <malloc.h>
12563 #  define alloca _alloca
12564 # else
12565 #  if HAVE_ALLOCA_H
12566 #   include <alloca.h>
12567 #  else
12568 #   ifdef _AIX
12569  #pragma alloca
12570 #   else
12571 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12572 char *alloca ();
12573 #    endif
12574 #   endif
12575 #  endif
12576 # endif
12577 #endif
12578
12579 int
12580 main ()
12581 {
12582 char *p = (char *) alloca (1);
12583   ;
12584   return 0;
12585 }
12586 _ACEOF
12587 rm -f conftest.$ac_objext conftest$ac_exeext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12589   (eval $ac_link) 2>conftest.er1
12590   ac_status=$?
12591   grep -v '^ *+' conftest.er1 >conftest.err
12592   rm -f conftest.er1
12593   cat conftest.err >&5
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); } &&
12596          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598   (eval $ac_try) 2>&5
12599   ac_status=$?
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); }; } &&
12602          { ac_try='test -s conftest$ac_exeext'
12603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604   (eval $ac_try) 2>&5
12605   ac_status=$?
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); }; }; then
12608   ac_cv_func_alloca_works=yes
12609 else
12610   echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12612
12613 ac_cv_func_alloca_works=no
12614 fi
12615 rm -f conftest.err conftest.$ac_objext \
12616       conftest$ac_exeext conftest.$ac_ext
12617 fi
12618 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12619 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12620
12621 if test $ac_cv_func_alloca_works = yes; then
12622
12623 cat >>confdefs.h <<\_ACEOF
12624 #define HAVE_ALLOCA 1
12625 _ACEOF
12626
12627 else
12628   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12629 # that cause trouble.  Some versions do not even contain alloca or
12630 # contain a buggy version.  If you still want to use their alloca,
12631 # use ar to extract alloca.o from them instead of compiling alloca.c.
12632
12633 ALLOCA=alloca.$ac_objext
12634
12635 cat >>confdefs.h <<\_ACEOF
12636 #define C_ALLOCA 1
12637 _ACEOF
12638
12639
12640 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12641 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12642 if test "${ac_cv_os_cray+set}" = set; then
12643   echo $ECHO_N "(cached) $ECHO_C" >&6
12644 else
12645   cat >conftest.$ac_ext <<_ACEOF
12646 /* confdefs.h.  */
12647 _ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h.  */
12651 #if defined(CRAY) && ! defined(CRAY2)
12652 webecray
12653 #else
12654 wenotbecray
12655 #endif
12656
12657 _ACEOF
12658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12659   $EGREP "webecray" >/dev/null 2>&1; then
12660   ac_cv_os_cray=yes
12661 else
12662   ac_cv_os_cray=no
12663 fi
12664 rm -f conftest*
12665
12666 fi
12667 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12668 echo "${ECHO_T}$ac_cv_os_cray" >&6
12669 if test $ac_cv_os_cray = yes; then
12670   for ac_func in _getb67 GETB67 getb67; do
12671     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12672 echo "$as_me:$LINENO: checking for $ac_func" >&5
12673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12674 if eval "test \"\${$as_ac_var+set}\" = set"; then
12675   echo $ECHO_N "(cached) $ECHO_C" >&6
12676 else
12677   cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h.  */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h.  */
12683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12685 #define $ac_func innocuous_$ac_func
12686
12687 /* System header to define __stub macros and hopefully few prototypes,
12688     which can conflict with char $ac_func (); below.
12689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12690     <limits.h> exists even on freestanding compilers.  */
12691
12692 #ifdef __STDC__
12693 # include <limits.h>
12694 #else
12695 # include <assert.h>
12696 #endif
12697
12698 #undef $ac_func
12699
12700 /* Override any gcc2 internal prototype to avoid an error.  */
12701 #ifdef __cplusplus
12702 extern "C"
12703 {
12704 #endif
12705 /* We use char because int might match the return type of a gcc2
12706    builtin and then its argument prototype would still apply.  */
12707 char $ac_func ();
12708 /* The GNU C library defines this for functions which it implements
12709     to always fail with ENOSYS.  Some functions are actually named
12710     something starting with __ and the normal name is an alias.  */
12711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12712 choke me
12713 #else
12714 char (*f) () = $ac_func;
12715 #endif
12716 #ifdef __cplusplus
12717 }
12718 #endif
12719
12720 int
12721 main ()
12722 {
12723 return f != $ac_func;
12724   ;
12725   return 0;
12726 }
12727 _ACEOF
12728 rm -f conftest.$ac_objext conftest$ac_exeext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12730   (eval $ac_link) 2>conftest.er1
12731   ac_status=$?
12732   grep -v '^ *+' conftest.er1 >conftest.err
12733   rm -f conftest.er1
12734   cat conftest.err >&5
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); } &&
12737          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739   (eval $ac_try) 2>&5
12740   ac_status=$?
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); }; } &&
12743          { ac_try='test -s conftest$ac_exeext'
12744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745   (eval $ac_try) 2>&5
12746   ac_status=$?
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); }; }; then
12749   eval "$as_ac_var=yes"
12750 else
12751   echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12753
12754 eval "$as_ac_var=no"
12755 fi
12756 rm -f conftest.err conftest.$ac_objext \
12757       conftest$ac_exeext conftest.$ac_ext
12758 fi
12759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12761 if test `eval echo '${'$as_ac_var'}'` = yes; then
12762
12763 cat >>confdefs.h <<_ACEOF
12764 #define CRAY_STACKSEG_END $ac_func
12765 _ACEOF
12766
12767     break
12768 fi
12769
12770   done
12771 fi
12772
12773 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12774 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12775 if test "${ac_cv_c_stack_direction+set}" = set; then
12776   echo $ECHO_N "(cached) $ECHO_C" >&6
12777 else
12778   if test "$cross_compiling" = yes; then
12779   ac_cv_c_stack_direction=0
12780 else
12781   cat >conftest.$ac_ext <<_ACEOF
12782 /* confdefs.h.  */
12783 _ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h.  */
12787 int
12788 find_stack_direction ()
12789 {
12790   static char *addr = 0;
12791   auto char dummy;
12792   if (addr == 0)
12793     {
12794       addr = &dummy;
12795       return find_stack_direction ();
12796     }
12797   else
12798     return (&dummy > addr) ? 1 : -1;
12799 }
12800
12801 int
12802 main ()
12803 {
12804   exit (find_stack_direction () < 0);
12805 }
12806 _ACEOF
12807 rm -f conftest$ac_exeext
12808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12809   (eval $ac_link) 2>&5
12810   ac_status=$?
12811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814   (eval $ac_try) 2>&5
12815   ac_status=$?
12816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817   (exit $ac_status); }; }; then
12818   ac_cv_c_stack_direction=1
12819 else
12820   echo "$as_me: program exited with status $ac_status" >&5
12821 echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12823
12824 ( exit $ac_status )
12825 ac_cv_c_stack_direction=-1
12826 fi
12827 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12828 fi
12829 fi
12830 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12831 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12832
12833 cat >>confdefs.h <<_ACEOF
12834 #define STACK_DIRECTION $ac_cv_c_stack_direction
12835 _ACEOF
12836
12837
12838 fi
12839
12840 echo "$as_me:$LINENO: checking for working memcmp" >&5
12841 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12842 if test "${ac_cv_func_memcmp_working+set}" = set; then
12843   echo $ECHO_N "(cached) $ECHO_C" >&6
12844 else
12845   if test "$cross_compiling" = yes; then
12846   ac_cv_func_memcmp_working=no
12847 else
12848   cat >conftest.$ac_ext <<_ACEOF
12849 /* confdefs.h.  */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h.  */
12854 $ac_includes_default
12855 int
12856 main ()
12857 {
12858
12859   /* Some versions of memcmp are not 8-bit clean.  */
12860   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12861   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12862     exit (1);
12863
12864   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12865      or more and with at least one buffer not starting on a 4-byte boundary.
12866      William Lewis provided this test program.   */
12867   {
12868     char foo[21];
12869     char bar[21];
12870     int i;
12871     for (i = 0; i < 4; i++)
12872       {
12873         char *a = foo + i;
12874         char *b = bar + i;
12875         strcpy (a, "--------01111111");
12876         strcpy (b, "--------10000000");
12877         if (memcmp (a, b, 16) >= 0)
12878           exit (1);
12879       }
12880     exit (0);
12881   }
12882
12883   ;
12884   return 0;
12885 }
12886 _ACEOF
12887 rm -f conftest$ac_exeext
12888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12889   (eval $ac_link) 2>&5
12890   ac_status=$?
12891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894   (eval $ac_try) 2>&5
12895   ac_status=$?
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); }; }; then
12898   ac_cv_func_memcmp_working=yes
12899 else
12900   echo "$as_me: program exited with status $ac_status" >&5
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12903
12904 ( exit $ac_status )
12905 ac_cv_func_memcmp_working=no
12906 fi
12907 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12908 fi
12909 fi
12910 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12911 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12912 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
12913     "memcmp.$ac_objext"   | \
12914   *" memcmp.$ac_objext"   | \
12915     "memcmp.$ac_objext "* | \
12916   *" memcmp.$ac_objext "* ) ;;
12917   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
12918 esac
12919
12920
12921
12922 for ac_func in vprintf
12923 do
12924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12925 echo "$as_me:$LINENO: checking for $ac_func" >&5
12926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12927 if eval "test \"\${$as_ac_var+set}\" = set"; then
12928   echo $ECHO_N "(cached) $ECHO_C" >&6
12929 else
12930   cat >conftest.$ac_ext <<_ACEOF
12931 /* confdefs.h.  */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h.  */
12936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12938 #define $ac_func innocuous_$ac_func
12939
12940 /* System header to define __stub macros and hopefully few prototypes,
12941     which can conflict with char $ac_func (); below.
12942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12943     <limits.h> exists even on freestanding compilers.  */
12944
12945 #ifdef __STDC__
12946 # include <limits.h>
12947 #else
12948 # include <assert.h>
12949 #endif
12950
12951 #undef $ac_func
12952
12953 /* Override any gcc2 internal prototype to avoid an error.  */
12954 #ifdef __cplusplus
12955 extern "C"
12956 {
12957 #endif
12958 /* We use char because int might match the return type of a gcc2
12959    builtin and then its argument prototype would still apply.  */
12960 char $ac_func ();
12961 /* The GNU C library defines this for functions which it implements
12962     to always fail with ENOSYS.  Some functions are actually named
12963     something starting with __ and the normal name is an alias.  */
12964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12965 choke me
12966 #else
12967 char (*f) () = $ac_func;
12968 #endif
12969 #ifdef __cplusplus
12970 }
12971 #endif
12972
12973 int
12974 main ()
12975 {
12976 return f != $ac_func;
12977   ;
12978   return 0;
12979 }
12980 _ACEOF
12981 rm -f conftest.$ac_objext conftest$ac_exeext
12982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12983   (eval $ac_link) 2>conftest.er1
12984   ac_status=$?
12985   grep -v '^ *+' conftest.er1 >conftest.err
12986   rm -f conftest.er1
12987   cat conftest.err >&5
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); } &&
12990          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992   (eval $ac_try) 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); }; } &&
12996          { ac_try='test -s conftest$ac_exeext'
12997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998   (eval $ac_try) 2>&5
12999   ac_status=$?
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); }; }; then
13002   eval "$as_ac_var=yes"
13003 else
13004   echo "$as_me: failed program was:" >&5
13005 sed 's/^/| /' conftest.$ac_ext >&5
13006
13007 eval "$as_ac_var=no"
13008 fi
13009 rm -f conftest.err conftest.$ac_objext \
13010       conftest$ac_exeext conftest.$ac_ext
13011 fi
13012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13014 if test `eval echo '${'$as_ac_var'}'` = yes; then
13015   cat >>confdefs.h <<_ACEOF
13016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13017 _ACEOF
13018
13019 echo "$as_me:$LINENO: checking for _doprnt" >&5
13020 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13021 if test "${ac_cv_func__doprnt+set}" = set; then
13022   echo $ECHO_N "(cached) $ECHO_C" >&6
13023 else
13024   cat >conftest.$ac_ext <<_ACEOF
13025 /* confdefs.h.  */
13026 _ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h.  */
13030 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13032 #define _doprnt innocuous__doprnt
13033
13034 /* System header to define __stub macros and hopefully few prototypes,
13035     which can conflict with char _doprnt (); below.
13036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13037     <limits.h> exists even on freestanding compilers.  */
13038
13039 #ifdef __STDC__
13040 # include <limits.h>
13041 #else
13042 # include <assert.h>
13043 #endif
13044
13045 #undef _doprnt
13046
13047 /* Override any gcc2 internal prototype to avoid an error.  */
13048 #ifdef __cplusplus
13049 extern "C"
13050 {
13051 #endif
13052 /* We use char because int might match the return type of a gcc2
13053    builtin and then its argument prototype would still apply.  */
13054 char _doprnt ();
13055 /* The GNU C library defines this for functions which it implements
13056     to always fail with ENOSYS.  Some functions are actually named
13057     something starting with __ and the normal name is an alias.  */
13058 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13059 choke me
13060 #else
13061 char (*f) () = _doprnt;
13062 #endif
13063 #ifdef __cplusplus
13064 }
13065 #endif
13066
13067 int
13068 main ()
13069 {
13070 return f != _doprnt;
13071   ;
13072   return 0;
13073 }
13074 _ACEOF
13075 rm -f conftest.$ac_objext conftest$ac_exeext
13076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13077   (eval $ac_link) 2>conftest.er1
13078   ac_status=$?
13079   grep -v '^ *+' conftest.er1 >conftest.err
13080   rm -f conftest.er1
13081   cat conftest.err >&5
13082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083   (exit $ac_status); } &&
13084          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086   (eval $ac_try) 2>&5
13087   ac_status=$?
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); }; } &&
13090          { ac_try='test -s conftest$ac_exeext'
13091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092   (eval $ac_try) 2>&5
13093   ac_status=$?
13094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095   (exit $ac_status); }; }; then
13096   ac_cv_func__doprnt=yes
13097 else
13098   echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13100
13101 ac_cv_func__doprnt=no
13102 fi
13103 rm -f conftest.err conftest.$ac_objext \
13104       conftest$ac_exeext conftest.$ac_ext
13105 fi
13106 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13107 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13108 if test $ac_cv_func__doprnt = yes; then
13109
13110 cat >>confdefs.h <<\_ACEOF
13111 #define HAVE_DOPRNT 1
13112 _ACEOF
13113
13114 fi
13115
13116 fi
13117 done
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134 for ac_func in memmove memset stpcpy strpbrk strerror strtol strtoul \
13135                   memchr getline getdelim strcasecmp strncasecmp memmem \
13136                   strtok_r
13137 do
13138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13139 echo "$as_me:$LINENO: checking for $ac_func" >&5
13140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13141 if eval "test \"\${$as_ac_var+set}\" = set"; then
13142   echo $ECHO_N "(cached) $ECHO_C" >&6
13143 else
13144   cat >conftest.$ac_ext <<_ACEOF
13145 /* confdefs.h.  */
13146 _ACEOF
13147 cat confdefs.h >>conftest.$ac_ext
13148 cat >>conftest.$ac_ext <<_ACEOF
13149 /* end confdefs.h.  */
13150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13152 #define $ac_func innocuous_$ac_func
13153
13154 /* System header to define __stub macros and hopefully few prototypes,
13155     which can conflict with char $ac_func (); below.
13156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13157     <limits.h> exists even on freestanding compilers.  */
13158
13159 #ifdef __STDC__
13160 # include <limits.h>
13161 #else
13162 # include <assert.h>
13163 #endif
13164
13165 #undef $ac_func
13166
13167 /* Override any gcc2 internal prototype to avoid an error.  */
13168 #ifdef __cplusplus
13169 extern "C"
13170 {
13171 #endif
13172 /* We use char because int might match the return type of a gcc2
13173    builtin and then its argument prototype would still apply.  */
13174 char $ac_func ();
13175 /* The GNU C library defines this for functions which it implements
13176     to always fail with ENOSYS.  Some functions are actually named
13177     something starting with __ and the normal name is an alias.  */
13178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13179 choke me
13180 #else
13181 char (*f) () = $ac_func;
13182 #endif
13183 #ifdef __cplusplus
13184 }
13185 #endif
13186
13187 int
13188 main ()
13189 {
13190 return f != $ac_func;
13191   ;
13192   return 0;
13193 }
13194 _ACEOF
13195 rm -f conftest.$ac_objext conftest$ac_exeext
13196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13197   (eval $ac_link) 2>conftest.er1
13198   ac_status=$?
13199   grep -v '^ *+' conftest.er1 >conftest.err
13200   rm -f conftest.er1
13201   cat conftest.err >&5
13202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203   (exit $ac_status); } &&
13204          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206   (eval $ac_try) 2>&5
13207   ac_status=$?
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); }; } &&
13210          { ac_try='test -s conftest$ac_exeext'
13211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212   (eval $ac_try) 2>&5
13213   ac_status=$?
13214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); }; }; then
13216   eval "$as_ac_var=yes"
13217 else
13218   echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13220
13221 eval "$as_ac_var=no"
13222 fi
13223 rm -f conftest.err conftest.$ac_objext \
13224       conftest$ac_exeext conftest.$ac_ext
13225 fi
13226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13228 if test `eval echo '${'$as_ac_var'}'` = yes; then
13229   cat >>confdefs.h <<_ACEOF
13230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13231 _ACEOF
13232
13233 else
13234   case $LIBOBJS in
13235     "$ac_func.$ac_objext"   | \
13236   *" $ac_func.$ac_objext"   | \
13237     "$ac_func.$ac_objext "* | \
13238   *" $ac_func.$ac_objext "* ) ;;
13239   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
13240 esac
13241
13242 fi
13243 done
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255 for ac_func in gethostname strstr strtod __setfpucw isinf isnan finite \
13256                 getpid feholdexcept
13257 do
13258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13259 echo "$as_me:$LINENO: checking for $ac_func" >&5
13260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13261 if eval "test \"\${$as_ac_var+set}\" = set"; then
13262   echo $ECHO_N "(cached) $ECHO_C" >&6
13263 else
13264   cat >conftest.$ac_ext <<_ACEOF
13265 /* confdefs.h.  */
13266 _ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h.  */
13270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13272 #define $ac_func innocuous_$ac_func
13273
13274 /* System header to define __stub macros and hopefully few prototypes,
13275     which can conflict with char $ac_func (); below.
13276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13277     <limits.h> exists even on freestanding compilers.  */
13278
13279 #ifdef __STDC__
13280 # include <limits.h>
13281 #else
13282 # include <assert.h>
13283 #endif
13284
13285 #undef $ac_func
13286
13287 /* Override any gcc2 internal prototype to avoid an error.  */
13288 #ifdef __cplusplus
13289 extern "C"
13290 {
13291 #endif
13292 /* We use char because int might match the return type of a gcc2
13293    builtin and then its argument prototype would still apply.  */
13294 char $ac_func ();
13295 /* The GNU C library defines this for functions which it implements
13296     to always fail with ENOSYS.  Some functions are actually named
13297     something starting with __ and the normal name is an alias.  */
13298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13299 choke me
13300 #else
13301 char (*f) () = $ac_func;
13302 #endif
13303 #ifdef __cplusplus
13304 }
13305 #endif
13306
13307 int
13308 main ()
13309 {
13310 return f != $ac_func;
13311   ;
13312   return 0;
13313 }
13314 _ACEOF
13315 rm -f conftest.$ac_objext conftest$ac_exeext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13317   (eval $ac_link) 2>conftest.er1
13318   ac_status=$?
13319   grep -v '^ *+' conftest.er1 >conftest.err
13320   rm -f conftest.er1
13321   cat conftest.err >&5
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); } &&
13324          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326   (eval $ac_try) 2>&5
13327   ac_status=$?
13328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329   (exit $ac_status); }; } &&
13330          { ac_try='test -s conftest$ac_exeext'
13331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332   (eval $ac_try) 2>&5
13333   ac_status=$?
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); }; }; then
13336   eval "$as_ac_var=yes"
13337 else
13338   echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13340
13341 eval "$as_ac_var=no"
13342 fi
13343 rm -f conftest.err conftest.$ac_objext \
13344       conftest$ac_exeext conftest.$ac_ext
13345 fi
13346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13348 if test `eval echo '${'$as_ac_var'}'` = yes; then
13349   cat >>confdefs.h <<_ACEOF
13350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13351 _ACEOF
13352
13353 fi
13354 done
13355
13356
13357 echo "$as_me:$LINENO: checking whether ln -s works" >&5
13358 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13359 LN_S=$as_ln_s
13360 if test "$LN_S" = "ln -s"; then
13361   echo "$as_me:$LINENO: result: yes" >&5
13362 echo "${ECHO_T}yes" >&6
13363 else
13364   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13365 echo "${ECHO_T}no, using $LN_S" >&6
13366 fi
13367
13368
13369 if test "$ac_cv_c_compiler_gnu" = yes; then
13370         CFLAGS="-g -Wall -W -Wno-uninitialized -Wwrite-strings \
13371 -Wstrict-prototypes -Wpointer-arith -Wno-sign-compare"
13372         if test "$CC_OPTIONS" != ""; then
13373                 CFLAGS="$CFLAGS $CC_OPTIONS"
13374         fi
13375 fi
13376
13377
13378
13379
13380
13381                                                                                                                         ac_config_files="$ac_config_files Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile lib/julcal/Makefile lib/misc/Makefile lib/dcdflib/Makefile doc/Makefile src/Makefile config/Makefile tests/Makefile"
13382
13383           ac_config_commands="$ac_config_commands pref.h"
13384
13385 cat >confcache <<\_ACEOF
13386 # This file is a shell script that caches the results of configure
13387 # tests run on this system so they can be shared between configure
13388 # scripts and configure runs, see configure's option --config-cache.
13389 # It is not useful on other systems.  If it contains results you don't
13390 # want to keep, you may remove or edit it.
13391 #
13392 # config.status only pays attention to the cache file if you give it
13393 # the --recheck option to rerun configure.
13394 #
13395 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13396 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13397 # following values.
13398
13399 _ACEOF
13400
13401 # The following way of writing the cache mishandles newlines in values,
13402 # but we know of no workaround that is simple, portable, and efficient.
13403 # So, don't put newlines in cache variables' values.
13404 # Ultrix sh set writes to stderr and can't be redirected directly,
13405 # and sets the high bit in the cache file unless we assign to the vars.
13406 {
13407   (set) 2>&1 |
13408     case `(ac_space=' '; set | grep ac_space) 2>&1` in
13409     *ac_space=\ *)
13410       # `set' does not quote correctly, so add quotes (double-quote
13411       # substitution turns \\\\ into \\, and sed turns \\ into \).
13412       sed -n \
13413         "s/'/'\\\\''/g;
13414           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13415       ;;
13416     *)
13417       # `set' quotes correctly as required by POSIX, so do not add quotes.
13418       sed -n \
13419         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13420       ;;
13421     esac;
13422 } |
13423   sed '
13424      t clear
13425      : clear
13426      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13427      t end
13428      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13429      : end' >>confcache
13430 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13431   if test -w $cache_file; then
13432     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13433     cat confcache >$cache_file
13434   else
13435     echo "not updating unwritable cache $cache_file"
13436   fi
13437 fi
13438 rm -f confcache
13439
13440 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13441 # Let make expand exec_prefix.
13442 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13443
13444 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13445 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13446 # trailing colons and then remove the whole line if VPATH becomes empty
13447 # (actually we leave an empty line to preserve line numbers).
13448 if test "x$srcdir" = x.; then
13449   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13450 s/:*\$(srcdir):*/:/;
13451 s/:*\${srcdir}:*/:/;
13452 s/:*@srcdir@:*/:/;
13453 s/^\([^=]*=[     ]*\):*/\1/;
13454 s/:*$//;
13455 s/^[^=]*=[       ]*$//;
13456 }'
13457 fi
13458
13459 DEFS=-DHAVE_CONFIG_H
13460
13461 ac_libobjs=
13462 ac_ltlibobjs=
13463 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13464   # 1. Remove the extension, and $U if already installed.
13465   ac_i=`echo "$ac_i" |
13466          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13467   # 2. Add them.
13468   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13469   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13470 done
13471 LIBOBJS=$ac_libobjs
13472
13473 LTLIBOBJS=$ac_ltlibobjs
13474
13475
13476 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13477   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13478 Usually this means the macro was only invoked conditionally." >&5
13479 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13480 Usually this means the macro was only invoked conditionally." >&2;}
13481    { (exit 1); exit 1; }; }
13482 fi
13483 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13484   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13485 Usually this means the macro was only invoked conditionally." >&5
13486 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13487 Usually this means the macro was only invoked conditionally." >&2;}
13488    { (exit 1); exit 1; }; }
13489 fi
13490
13491 : ${CONFIG_STATUS=./config.status}
13492 ac_clean_files_save=$ac_clean_files
13493 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13494 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13495 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13496 cat >$CONFIG_STATUS <<_ACEOF
13497 #! $SHELL
13498 # Generated by $as_me.
13499 # Run this file to recreate the current configuration.
13500 # Compiler output produced by configure, useful for debugging
13501 # configure, is in config.log if it exists.
13502
13503 debug=false
13504 ac_cs_recheck=false
13505 ac_cs_silent=false
13506 SHELL=\${CONFIG_SHELL-$SHELL}
13507 _ACEOF
13508
13509 cat >>$CONFIG_STATUS <<\_ACEOF
13510 ## --------------------- ##
13511 ## M4sh Initialization.  ##
13512 ## --------------------- ##
13513
13514 # Be Bourne compatible
13515 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13516   emulate sh
13517   NULLCMD=:
13518   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13519   # is contrary to our usage.  Disable this feature.
13520   alias -g '${1+"$@"}'='"$@"'
13521 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13522   set -o posix
13523 fi
13524 DUALCASE=1; export DUALCASE # for MKS sh
13525
13526 # Support unset when possible.
13527 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13528   as_unset=unset
13529 else
13530   as_unset=false
13531 fi
13532
13533
13534 # Work around bugs in pre-3.0 UWIN ksh.
13535 $as_unset ENV MAIL MAILPATH
13536 PS1='$ '
13537 PS2='> '
13538 PS4='+ '
13539
13540 # NLS nuisances.
13541 for as_var in \
13542   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13543   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13544   LC_TELEPHONE LC_TIME
13545 do
13546   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13547     eval $as_var=C; export $as_var
13548   else
13549     $as_unset $as_var
13550   fi
13551 done
13552
13553 # Required to use basename.
13554 if expr a : '\(a\)' >/dev/null 2>&1; then
13555   as_expr=expr
13556 else
13557   as_expr=false
13558 fi
13559
13560 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13561   as_basename=basename
13562 else
13563   as_basename=false
13564 fi
13565
13566
13567 # Name of the executable.
13568 as_me=`$as_basename "$0" ||
13569 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13570          X"$0" : 'X\(//\)$' \| \
13571          X"$0" : 'X\(/\)$' \| \
13572          .     : '\(.\)' 2>/dev/null ||
13573 echo X/"$0" |
13574     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13575           /^X\/\(\/\/\)$/{ s//\1/; q; }
13576           /^X\/\(\/\).*/{ s//\1/; q; }
13577           s/.*/./; q'`
13578
13579
13580 # PATH needs CR, and LINENO needs CR and PATH.
13581 # Avoid depending upon Character Ranges.
13582 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13583 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13584 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13585 as_cr_digits='0123456789'
13586 as_cr_alnum=$as_cr_Letters$as_cr_digits
13587
13588 # The user is always right.
13589 if test "${PATH_SEPARATOR+set}" != set; then
13590   echo "#! /bin/sh" >conf$$.sh
13591   echo  "exit 0"   >>conf$$.sh
13592   chmod +x conf$$.sh
13593   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13594     PATH_SEPARATOR=';'
13595   else
13596     PATH_SEPARATOR=:
13597   fi
13598   rm -f conf$$.sh
13599 fi
13600
13601
13602   as_lineno_1=$LINENO
13603   as_lineno_2=$LINENO
13604   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13605   test "x$as_lineno_1" != "x$as_lineno_2" &&
13606   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
13607   # Find who we are.  Look in the path if we contain no path at all
13608   # relative or not.
13609   case $0 in
13610     *[\\/]* ) as_myself=$0 ;;
13611     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13612 for as_dir in $PATH
13613 do
13614   IFS=$as_save_IFS
13615   test -z "$as_dir" && as_dir=.
13616   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13617 done
13618
13619        ;;
13620   esac
13621   # We did not find ourselves, most probably we were run as `sh COMMAND'
13622   # in which case we are not to be found in the path.
13623   if test "x$as_myself" = x; then
13624     as_myself=$0
13625   fi
13626   if test ! -f "$as_myself"; then
13627     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13628 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13629    { (exit 1); exit 1; }; }
13630   fi
13631   case $CONFIG_SHELL in
13632   '')
13633     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13634 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13635 do
13636   IFS=$as_save_IFS
13637   test -z "$as_dir" && as_dir=.
13638   for as_base in sh bash ksh sh5; do
13639          case $as_dir in
13640          /*)
13641            if ("$as_dir/$as_base" -c '
13642   as_lineno_1=$LINENO
13643   as_lineno_2=$LINENO
13644   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13645   test "x$as_lineno_1" != "x$as_lineno_2" &&
13646   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13647              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13648              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13649              CONFIG_SHELL=$as_dir/$as_base
13650              export CONFIG_SHELL
13651              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13652            fi;;
13653          esac
13654        done
13655 done
13656 ;;
13657   esac
13658
13659   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13660   # uniformly replaced by the line number.  The first 'sed' inserts a
13661   # line-number line before each line; the second 'sed' does the real
13662   # work.  The second script uses 'N' to pair each line-number line
13663   # with the numbered line, and appends trailing '-' during
13664   # substitution so that $LINENO is not a special case at line end.
13665   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13666   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13667   sed '=' <$as_myself |
13668     sed '
13669       N
13670       s,$,-,
13671       : loop
13672       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13673       t loop
13674       s,-$,,
13675       s,^['$as_cr_digits']*\n,,
13676     ' >$as_me.lineno &&
13677   chmod +x $as_me.lineno ||
13678     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13679 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13680    { (exit 1); exit 1; }; }
13681
13682   # Don't try to exec as it changes $[0], causing all sort of problems
13683   # (the dirname of $[0] is not the place where we might find the
13684   # original and so on.  Autoconf is especially sensible to this).
13685   . ./$as_me.lineno
13686   # Exit status is that of the last command.
13687   exit
13688 }
13689
13690
13691 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13692   *c*,-n*) ECHO_N= ECHO_C='
13693 ' ECHO_T='      ' ;;
13694   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13695   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13696 esac
13697
13698 if expr a : '\(a\)' >/dev/null 2>&1; then
13699   as_expr=expr
13700 else
13701   as_expr=false
13702 fi
13703
13704 rm -f conf$$ conf$$.exe conf$$.file
13705 echo >conf$$.file
13706 if ln -s conf$$.file conf$$ 2>/dev/null; then
13707   # We could just check for DJGPP; but this test a) works b) is more generic
13708   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13709   if test -f conf$$.exe; then
13710     # Don't use ln at all; we don't have any links
13711     as_ln_s='cp -p'
13712   else
13713     as_ln_s='ln -s'
13714   fi
13715 elif ln conf$$.file conf$$ 2>/dev/null; then
13716   as_ln_s=ln
13717 else
13718   as_ln_s='cp -p'
13719 fi
13720 rm -f conf$$ conf$$.exe conf$$.file
13721
13722 if mkdir -p . 2>/dev/null; then
13723   as_mkdir_p=:
13724 else
13725   test -d ./-p && rmdir ./-p
13726   as_mkdir_p=false
13727 fi
13728
13729 as_executable_p="test -f"
13730
13731 # Sed expression to map a string onto a valid CPP name.
13732 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13733
13734 # Sed expression to map a string onto a valid variable name.
13735 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13736
13737
13738 # IFS
13739 # We need space, tab and new line, in precisely that order.
13740 as_nl='
13741 '
13742 IFS="   $as_nl"
13743
13744 # CDPATH.
13745 $as_unset CDPATH
13746
13747 exec 6>&1
13748
13749 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13750 # report actual input values of CONFIG_FILES etc. instead of their
13751 # values after options handling.  Logging --version etc. is OK.
13752 exec 5>>config.log
13753 {
13754   echo
13755   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13756 ## Running $as_me. ##
13757 _ASBOX
13758 } >&5
13759 cat >&5 <<_CSEOF
13760
13761 This file was extended by pspp $as_me 0.3.1, which was
13762 generated by GNU Autoconf 2.58.  Invocation command line was
13763
13764   CONFIG_FILES    = $CONFIG_FILES
13765   CONFIG_HEADERS  = $CONFIG_HEADERS
13766   CONFIG_LINKS    = $CONFIG_LINKS
13767   CONFIG_COMMANDS = $CONFIG_COMMANDS
13768   $ $0 $@
13769
13770 _CSEOF
13771 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13772 echo >&5
13773 _ACEOF
13774
13775 # Files that config.status was made for.
13776 if test -n "$ac_config_files"; then
13777   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13778 fi
13779
13780 if test -n "$ac_config_headers"; then
13781   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13782 fi
13783
13784 if test -n "$ac_config_links"; then
13785   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13786 fi
13787
13788 if test -n "$ac_config_commands"; then
13789   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13790 fi
13791
13792 cat >>$CONFIG_STATUS <<\_ACEOF
13793
13794 ac_cs_usage="\
13795 \`$as_me' instantiates files from templates according to the
13796 current configuration.
13797
13798 Usage: $0 [OPTIONS] [FILE]...
13799
13800   -h, --help       print this help, then exit
13801   -V, --version    print version number, then exit
13802   -q, --quiet      do not print progress messages
13803   -d, --debug      don't remove temporary files
13804       --recheck    update $as_me by reconfiguring in the same conditions
13805   --file=FILE[:TEMPLATE]
13806                    instantiate the configuration file FILE
13807   --header=FILE[:TEMPLATE]
13808                    instantiate the configuration header FILE
13809
13810 Configuration files:
13811 $config_files
13812
13813 Configuration headers:
13814 $config_headers
13815
13816 Configuration commands:
13817 $config_commands
13818
13819 Report bugs to <bug-autoconf@gnu.org>."
13820 _ACEOF
13821
13822 cat >>$CONFIG_STATUS <<_ACEOF
13823 ac_cs_version="\\
13824 pspp config.status 0.3.1
13825 configured by $0, generated by GNU Autoconf 2.58,
13826   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13827
13828 Copyright (C) 2003 Free Software Foundation, Inc.
13829 This config.status script is free software; the Free Software Foundation
13830 gives unlimited permission to copy, distribute and modify it."
13831 srcdir=$srcdir
13832 INSTALL="$INSTALL"
13833 _ACEOF
13834
13835 cat >>$CONFIG_STATUS <<\_ACEOF
13836 # If no file are specified by the user, then we need to provide default
13837 # value.  By we need to know if files were specified by the user.
13838 ac_need_defaults=:
13839 while test $# != 0
13840 do
13841   case $1 in
13842   --*=*)
13843     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13844     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13845     ac_shift=:
13846     ;;
13847   -*)
13848     ac_option=$1
13849     ac_optarg=$2
13850     ac_shift=shift
13851     ;;
13852   *) # This is not an option, so the user has probably given explicit
13853      # arguments.
13854      ac_option=$1
13855      ac_need_defaults=false;;
13856   esac
13857
13858   case $ac_option in
13859   # Handling of the options.
13860 _ACEOF
13861 cat >>$CONFIG_STATUS <<\_ACEOF
13862   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13863     ac_cs_recheck=: ;;
13864   --version | --vers* | -V )
13865     echo "$ac_cs_version"; exit 0 ;;
13866   --he | --h)
13867     # Conflict between --help and --header
13868     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13869 Try \`$0 --help' for more information." >&5
13870 echo "$as_me: error: ambiguous option: $1
13871 Try \`$0 --help' for more information." >&2;}
13872    { (exit 1); exit 1; }; };;
13873   --help | --hel | -h )
13874     echo "$ac_cs_usage"; exit 0 ;;
13875   --debug | --d* | -d )
13876     debug=: ;;
13877   --file | --fil | --fi | --f )
13878     $ac_shift
13879     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13880     ac_need_defaults=false;;
13881   --header | --heade | --head | --hea )
13882     $ac_shift
13883     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13884     ac_need_defaults=false;;
13885   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13886   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13887     ac_cs_silent=: ;;
13888
13889   # This is an error.
13890   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13891 Try \`$0 --help' for more information." >&5
13892 echo "$as_me: error: unrecognized option: $1
13893 Try \`$0 --help' for more information." >&2;}
13894    { (exit 1); exit 1; }; } ;;
13895
13896   *) ac_config_targets="$ac_config_targets $1" ;;
13897
13898   esac
13899   shift
13900 done
13901
13902 ac_configure_extra_args=
13903
13904 if $ac_cs_silent; then
13905   exec 6>/dev/null
13906   ac_configure_extra_args="$ac_configure_extra_args --silent"
13907 fi
13908
13909 _ACEOF
13910 cat >>$CONFIG_STATUS <<_ACEOF
13911 if \$ac_cs_recheck; then
13912   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13913   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13914 fi
13915
13916 _ACEOF
13917
13918 cat >>$CONFIG_STATUS <<_ACEOF
13919 #
13920 # INIT-COMMANDS section.
13921 #
13922
13923 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13924 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13925     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13926     # from automake.
13927     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13928     # Capture the value of LINGUAS because we need it to compute CATALOGS.
13929     LINGUAS="${LINGUAS-%UNSET%}"
13930
13931
13932 _ACEOF
13933
13934
13935
13936 cat >>$CONFIG_STATUS <<\_ACEOF
13937 for ac_config_target in $ac_config_targets
13938 do
13939   case "$ac_config_target" in
13940   # Handling of arguments.
13941   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13942   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13943   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
13944   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
13945   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13946   "lib/julcal/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/julcal/Makefile" ;;
13947   "lib/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/misc/Makefile" ;;
13948   "lib/dcdflib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/dcdflib/Makefile" ;;
13949   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13950   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13951   "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
13952   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13953   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13954   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13955   "pref.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS pref.h" ;;
13956   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13957   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13958 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13959    { (exit 1); exit 1; }; };;
13960   esac
13961 done
13962
13963 # If the user did not use the arguments to specify the items to instantiate,
13964 # then the envvar interface is used.  Set only those that are not.
13965 # We use the long form for the default assignment because of an extremely
13966 # bizarre bug on SunOS 4.1.3.
13967 if $ac_need_defaults; then
13968   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13969   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13970   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13971 fi
13972
13973 # Have a temporary directory for convenience.  Make it in the build tree
13974 # simply because there is no reason to put it here, and in addition,
13975 # creating and moving files from /tmp can sometimes cause problems.
13976 # Create a temporary directory, and hook for its removal unless debugging.
13977 $debug ||
13978 {
13979   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13980   trap '{ (exit 1); exit 1; }' 1 2 13 15
13981 }
13982
13983 # Create a (secure) tmp directory for tmp files.
13984
13985 {
13986   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13987   test -n "$tmp" && test -d "$tmp"
13988 }  ||
13989 {
13990   tmp=./confstat$$-$RANDOM
13991   (umask 077 && mkdir $tmp)
13992 } ||
13993 {
13994    echo "$me: cannot create a temporary directory in ." >&2
13995    { (exit 1); exit 1; }
13996 }
13997
13998 _ACEOF
13999
14000 cat >>$CONFIG_STATUS <<_ACEOF
14001
14002 #
14003 # CONFIG_FILES section.
14004 #
14005
14006 # No need to generate the scripts if there are no CONFIG_FILES.
14007 # This happens for instance when ./config.status config.h
14008 if test -n "\$CONFIG_FILES"; then
14009   # Protect against being on the right side of a sed subst in config.status.
14010   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14011    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14012 s,@SHELL@,$SHELL,;t t
14013 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14014 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14015 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14016 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14017 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14018 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14019 s,@exec_prefix@,$exec_prefix,;t t
14020 s,@prefix@,$prefix,;t t
14021 s,@program_transform_name@,$program_transform_name,;t t
14022 s,@bindir@,$bindir,;t t
14023 s,@sbindir@,$sbindir,;t t
14024 s,@libexecdir@,$libexecdir,;t t
14025 s,@datadir@,$datadir,;t t
14026 s,@sysconfdir@,$sysconfdir,;t t
14027 s,@sharedstatedir@,$sharedstatedir,;t t
14028 s,@localstatedir@,$localstatedir,;t t
14029 s,@libdir@,$libdir,;t t
14030 s,@includedir@,$includedir,;t t
14031 s,@oldincludedir@,$oldincludedir,;t t
14032 s,@infodir@,$infodir,;t t
14033 s,@mandir@,$mandir,;t t
14034 s,@build_alias@,$build_alias,;t t
14035 s,@host_alias@,$host_alias,;t t
14036 s,@target_alias@,$target_alias,;t t
14037 s,@DEFS@,$DEFS,;t t
14038 s,@ECHO_C@,$ECHO_C,;t t
14039 s,@ECHO_N@,$ECHO_N,;t t
14040 s,@ECHO_T@,$ECHO_T,;t t
14041 s,@LIBS@,$LIBS,;t t
14042 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14043 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14044 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14045 s,@CYGPATH_W@,$CYGPATH_W,;t t
14046 s,@PACKAGE@,$PACKAGE,;t t
14047 s,@VERSION@,$VERSION,;t t
14048 s,@ACLOCAL@,$ACLOCAL,;t t
14049 s,@AUTOCONF@,$AUTOCONF,;t t
14050 s,@AUTOMAKE@,$AUTOMAKE,;t t
14051 s,@AUTOHEADER@,$AUTOHEADER,;t t
14052 s,@MAKEINFO@,$MAKEINFO,;t t
14053 s,@AMTAR@,$AMTAR,;t t
14054 s,@install_sh@,$install_sh,;t t
14055 s,@STRIP@,$STRIP,;t t
14056 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14057 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14058 s,@AWK@,$AWK,;t t
14059 s,@SET_MAKE@,$SET_MAKE,;t t
14060 s,@am__leading_dot@,$am__leading_dot,;t t
14061 s,@CC@,$CC,;t t
14062 s,@CFLAGS@,$CFLAGS,;t t
14063 s,@LDFLAGS@,$LDFLAGS,;t t
14064 s,@CPPFLAGS@,$CPPFLAGS,;t t
14065 s,@ac_ct_CC@,$ac_ct_CC,;t t
14066 s,@EXEEXT@,$EXEEXT,;t t
14067 s,@OBJEXT@,$OBJEXT,;t t
14068 s,@DEPDIR@,$DEPDIR,;t t
14069 s,@am__include@,$am__include,;t t
14070 s,@am__quote@,$am__quote,;t t
14071 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14072 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14073 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14074 s,@CCDEPMODE@,$CCDEPMODE,;t t
14075 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14076 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
14077 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14078 s,@USE_NLS@,$USE_NLS,;t t
14079 s,@MSGFMT@,$MSGFMT,;t t
14080 s,@GMSGFMT@,$GMSGFMT,;t t
14081 s,@XGETTEXT@,$XGETTEXT,;t t
14082 s,@MSGMERGE@,$MSGMERGE,;t t
14083 s,@build@,$build,;t t
14084 s,@build_cpu@,$build_cpu,;t t
14085 s,@build_vendor@,$build_vendor,;t t
14086 s,@build_os@,$build_os,;t t
14087 s,@host@,$host,;t t
14088 s,@host_cpu@,$host_cpu,;t t
14089 s,@host_vendor@,$host_vendor,;t t
14090 s,@host_os@,$host_os,;t t
14091 s,@RANLIB@,$RANLIB,;t t
14092 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14093 s,@CPP@,$CPP,;t t
14094 s,@EGREP@,$EGREP,;t t
14095 s,@ALLOCA@,$ALLOCA,;t t
14096 s,@GLIBC21@,$GLIBC21,;t t
14097 s,@LIBICONV@,$LIBICONV,;t t
14098 s,@LTLIBICONV@,$LTLIBICONV,;t t
14099 s,@INTLBISON@,$INTLBISON,;t t
14100 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
14101 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
14102 s,@CATOBJEXT@,$CATOBJEXT,;t t
14103 s,@DATADIRNAME@,$DATADIRNAME,;t t
14104 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14105 s,@GENCAT@,$GENCAT,;t t
14106 s,@INTLOBJS@,$INTLOBJS,;t t
14107 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
14108 s,@INTLLIBS@,$INTLLIBS,;t t
14109 s,@LIBINTL@,$LIBINTL,;t t
14110 s,@LTLIBINTL@,$LTLIBINTL,;t t
14111 s,@POSUB@,$POSUB,;t t
14112 s,@LIBOBJS@,$LIBOBJS,;t t
14113 s,@LN_S@,$LN_S,;t t
14114 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14115 CEOF
14116
14117 _ACEOF
14118
14119   cat >>$CONFIG_STATUS <<\_ACEOF
14120   # Split the substitutions into bite-sized pieces for seds with
14121   # small command number limits, like on Digital OSF/1 and HP-UX.
14122   ac_max_sed_lines=48
14123   ac_sed_frag=1 # Number of current file.
14124   ac_beg=1 # First line for current file.
14125   ac_end=$ac_max_sed_lines # Line after last line for current file.
14126   ac_more_lines=:
14127   ac_sed_cmds=
14128   while $ac_more_lines; do
14129     if test $ac_beg -gt 1; then
14130       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14131     else
14132       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14133     fi
14134     if test ! -s $tmp/subs.frag; then
14135       ac_more_lines=false
14136     else
14137       # The purpose of the label and of the branching condition is to
14138       # speed up the sed processing (if there are no `@' at all, there
14139       # is no need to browse any of the substitutions).
14140       # These are the two extra sed commands mentioned above.
14141       (echo ':t
14142   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14143       if test -z "$ac_sed_cmds"; then
14144         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14145       else
14146         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14147       fi
14148       ac_sed_frag=`expr $ac_sed_frag + 1`
14149       ac_beg=$ac_end
14150       ac_end=`expr $ac_end + $ac_max_sed_lines`
14151     fi
14152   done
14153   if test -z "$ac_sed_cmds"; then
14154     ac_sed_cmds=cat
14155   fi
14156 fi # test -n "$CONFIG_FILES"
14157
14158 _ACEOF
14159 cat >>$CONFIG_STATUS <<\_ACEOF
14160 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14161   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14162   case $ac_file in
14163   - | *:- | *:-:* ) # input from stdin
14164         cat >$tmp/stdin
14165         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14166         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14167   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14168         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14169   * )   ac_file_in=$ac_file.in ;;
14170   esac
14171
14172   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14173   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14175          X"$ac_file" : 'X\(//\)[^/]' \| \
14176          X"$ac_file" : 'X\(//\)$' \| \
14177          X"$ac_file" : 'X\(/\)' \| \
14178          .     : '\(.\)' 2>/dev/null ||
14179 echo X"$ac_file" |
14180     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14181           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14182           /^X\(\/\/\)$/{ s//\1/; q; }
14183           /^X\(\/\).*/{ s//\1/; q; }
14184           s/.*/./; q'`
14185   { if $as_mkdir_p; then
14186     mkdir -p "$ac_dir"
14187   else
14188     as_dir="$ac_dir"
14189     as_dirs=
14190     while test ! -d "$as_dir"; do
14191       as_dirs="$as_dir $as_dirs"
14192       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14194          X"$as_dir" : 'X\(//\)[^/]' \| \
14195          X"$as_dir" : 'X\(//\)$' \| \
14196          X"$as_dir" : 'X\(/\)' \| \
14197          .     : '\(.\)' 2>/dev/null ||
14198 echo X"$as_dir" |
14199     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14200           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14201           /^X\(\/\/\)$/{ s//\1/; q; }
14202           /^X\(\/\).*/{ s//\1/; q; }
14203           s/.*/./; q'`
14204     done
14205     test ! -n "$as_dirs" || mkdir $as_dirs
14206   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14207 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14208    { (exit 1); exit 1; }; }; }
14209
14210   ac_builddir=.
14211
14212 if test "$ac_dir" != .; then
14213   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14214   # A "../" for each directory in $ac_dir_suffix.
14215   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14216 else
14217   ac_dir_suffix= ac_top_builddir=
14218 fi
14219
14220 case $srcdir in
14221   .)  # No --srcdir option.  We are building in place.
14222     ac_srcdir=.
14223     if test -z "$ac_top_builddir"; then
14224        ac_top_srcdir=.
14225     else
14226        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14227     fi ;;
14228   [\\/]* | ?:[\\/]* )  # Absolute path.
14229     ac_srcdir=$srcdir$ac_dir_suffix;
14230     ac_top_srcdir=$srcdir ;;
14231   *) # Relative path.
14232     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14233     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14234 esac
14235
14236 # Do not use `cd foo && pwd` to compute absolute paths, because
14237 # the directories may not exist.
14238 case `pwd` in
14239 .) ac_abs_builddir="$ac_dir";;
14240 *)
14241   case "$ac_dir" in
14242   .) ac_abs_builddir=`pwd`;;
14243   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14244   *) ac_abs_builddir=`pwd`/"$ac_dir";;
14245   esac;;
14246 esac
14247 case $ac_abs_builddir in
14248 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14249 *)
14250   case ${ac_top_builddir}. in
14251   .) ac_abs_top_builddir=$ac_abs_builddir;;
14252   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14253   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14254   esac;;
14255 esac
14256 case $ac_abs_builddir in
14257 .) ac_abs_srcdir=$ac_srcdir;;
14258 *)
14259   case $ac_srcdir in
14260   .) ac_abs_srcdir=$ac_abs_builddir;;
14261   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14262   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14263   esac;;
14264 esac
14265 case $ac_abs_builddir in
14266 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14267 *)
14268   case $ac_top_srcdir in
14269   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14270   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14271   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14272   esac;;
14273 esac
14274
14275
14276   case $INSTALL in
14277   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14278   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14279   esac
14280
14281   if test x"$ac_file" != x-; then
14282     { echo "$as_me:$LINENO: creating $ac_file" >&5
14283 echo "$as_me: creating $ac_file" >&6;}
14284     rm -f "$ac_file"
14285   fi
14286   # Let's still pretend it is `configure' which instantiates (i.e., don't
14287   # use $as_me), people would be surprised to read:
14288   #    /* config.h.  Generated by config.status.  */
14289   if test x"$ac_file" = x-; then
14290     configure_input=
14291   else
14292     configure_input="$ac_file.  "
14293   fi
14294   configure_input=$configure_input"Generated from `echo $ac_file_in |
14295                                      sed 's,.*/,,'` by configure."
14296
14297   # First look for the input files in the build tree, otherwise in the
14298   # src tree.
14299   ac_file_inputs=`IFS=:
14300     for f in $ac_file_in; do
14301       case $f in
14302       -) echo $tmp/stdin ;;
14303       [\\/$]*)
14304          # Absolute (can't be DOS-style, as IFS=:)
14305          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14306 echo "$as_me: error: cannot find input file: $f" >&2;}
14307    { (exit 1); exit 1; }; }
14308          echo "$f";;
14309       *) # Relative
14310          if test -f "$f"; then
14311            # Build tree
14312            echo "$f"
14313          elif test -f "$srcdir/$f"; then
14314            # Source tree
14315            echo "$srcdir/$f"
14316          else
14317            # /dev/null tree
14318            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14319 echo "$as_me: error: cannot find input file: $f" >&2;}
14320    { (exit 1); exit 1; }; }
14321          fi;;
14322       esac
14323     done` || { (exit 1); exit 1; }
14324 _ACEOF
14325 cat >>$CONFIG_STATUS <<_ACEOF
14326   sed "$ac_vpsub
14327 $extrasub
14328 _ACEOF
14329 cat >>$CONFIG_STATUS <<\_ACEOF
14330 :t
14331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14332 s,@configure_input@,$configure_input,;t t
14333 s,@srcdir@,$ac_srcdir,;t t
14334 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14335 s,@top_srcdir@,$ac_top_srcdir,;t t
14336 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14337 s,@builddir@,$ac_builddir,;t t
14338 s,@abs_builddir@,$ac_abs_builddir,;t t
14339 s,@top_builddir@,$ac_top_builddir,;t t
14340 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14341 s,@INSTALL@,$ac_INSTALL,;t t
14342 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14343   rm -f $tmp/stdin
14344   if test x"$ac_file" != x-; then
14345     mv $tmp/out $ac_file
14346   else
14347     cat $tmp/out
14348     rm -f $tmp/out
14349   fi
14350
14351 done
14352 _ACEOF
14353 cat >>$CONFIG_STATUS <<\_ACEOF
14354
14355 #
14356 # CONFIG_HEADER section.
14357 #
14358
14359 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14360 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14361 #
14362 # ac_d sets the value in "#define NAME VALUE" lines.
14363 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
14364 ac_dB='[         ].*$,\1#\2'
14365 ac_dC=' '
14366 ac_dD=',;t'
14367 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14368 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14369 ac_uB='$,\1#\2define\3'
14370 ac_uC=' '
14371 ac_uD=',;t'
14372
14373 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14374   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14375   case $ac_file in
14376   - | *:- | *:-:* ) # input from stdin
14377         cat >$tmp/stdin
14378         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14379         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14380   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14381         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14382   * )   ac_file_in=$ac_file.in ;;
14383   esac
14384
14385   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14386 echo "$as_me: creating $ac_file" >&6;}
14387
14388   # First look for the input files in the build tree, otherwise in the
14389   # src tree.
14390   ac_file_inputs=`IFS=:
14391     for f in $ac_file_in; do
14392       case $f in
14393       -) echo $tmp/stdin ;;
14394       [\\/$]*)
14395          # Absolute (can't be DOS-style, as IFS=:)
14396          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14397 echo "$as_me: error: cannot find input file: $f" >&2;}
14398    { (exit 1); exit 1; }; }
14399          # Do quote $f, to prevent DOS paths from being IFS'd.
14400          echo "$f";;
14401       *) # Relative
14402          if test -f "$f"; then
14403            # Build tree
14404            echo "$f"
14405          elif test -f "$srcdir/$f"; then
14406            # Source tree
14407            echo "$srcdir/$f"
14408          else
14409            # /dev/null tree
14410            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14411 echo "$as_me: error: cannot find input file: $f" >&2;}
14412    { (exit 1); exit 1; }; }
14413          fi;;
14414       esac
14415     done` || { (exit 1); exit 1; }
14416   # Remove the trailing spaces.
14417   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
14418
14419 _ACEOF
14420
14421 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14422 # `conftest.undefs', that substitutes the proper values into
14423 # config.h.in to produce config.h.  The first handles `#define'
14424 # templates, and the second `#undef' templates.
14425 # And first: Protect against being on the right side of a sed subst in
14426 # config.status.  Protect against being in an unquoted here document
14427 # in config.status.
14428 rm -f conftest.defines conftest.undefs
14429 # Using a here document instead of a string reduces the quoting nightmare.
14430 # Putting comments in sed scripts is not portable.
14431 #
14432 # `end' is used to avoid that the second main sed command (meant for
14433 # 0-ary CPP macros) applies to n-ary macro definitions.
14434 # See the Autoconf documentation for `clear'.
14435 cat >confdef2sed.sed <<\_ACEOF
14436 s/[\\&,]/\\&/g
14437 s,[\\$`],\\&,g
14438 t clear
14439 : clear
14440 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14441 t end
14442 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14443 : end
14444 _ACEOF
14445 # If some macros were called several times there might be several times
14446 # the same #defines, which is useless.  Nevertheless, we may not want to
14447 # sort them, since we want the *last* AC-DEFINE to be honored.
14448 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14449 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14450 rm -f confdef2sed.sed
14451
14452 # This sed command replaces #undef with comments.  This is necessary, for
14453 # example, in the case of _POSIX_SOURCE, which is predefined and required
14454 # on some systems where configure will not decide to define it.
14455 cat >>conftest.undefs <<\_ACEOF
14456 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14457 _ACEOF
14458
14459 # Break up conftest.defines because some shells have a limit on the size
14460 # of here documents, and old seds have small limits too (100 cmds).
14461 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14462 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14463 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14464 echo '  :' >>$CONFIG_STATUS
14465 rm -f conftest.tail
14466 while grep . conftest.defines >/dev/null
14467 do
14468   # Write a limited-size here document to $tmp/defines.sed.
14469   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14470   # Speed up: don't consider the non `#define' lines.
14471   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
14472   # Work around the forget-to-reset-the-flag bug.
14473   echo 't clr' >>$CONFIG_STATUS
14474   echo ': clr' >>$CONFIG_STATUS
14475   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14476   echo 'CEOF
14477   sed -f $tmp/defines.sed $tmp/in >$tmp/out
14478   rm -f $tmp/in
14479   mv $tmp/out $tmp/in
14480 ' >>$CONFIG_STATUS
14481   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14482   rm -f conftest.defines
14483   mv conftest.tail conftest.defines
14484 done
14485 rm -f conftest.defines
14486 echo '  fi # grep' >>$CONFIG_STATUS
14487 echo >>$CONFIG_STATUS
14488
14489 # Break up conftest.undefs because some shells have a limit on the size
14490 # of here documents, and old seds have small limits too (100 cmds).
14491 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
14492 rm -f conftest.tail
14493 while grep . conftest.undefs >/dev/null
14494 do
14495   # Write a limited-size here document to $tmp/undefs.sed.
14496   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14497   # Speed up: don't consider the non `#undef'
14498   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
14499   # Work around the forget-to-reset-the-flag bug.
14500   echo 't clr' >>$CONFIG_STATUS
14501   echo ': clr' >>$CONFIG_STATUS
14502   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14503   echo 'CEOF
14504   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14505   rm -f $tmp/in
14506   mv $tmp/out $tmp/in
14507 ' >>$CONFIG_STATUS
14508   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14509   rm -f conftest.undefs
14510   mv conftest.tail conftest.undefs
14511 done
14512 rm -f conftest.undefs
14513
14514 cat >>$CONFIG_STATUS <<\_ACEOF
14515   # Let's still pretend it is `configure' which instantiates (i.e., don't
14516   # use $as_me), people would be surprised to read:
14517   #    /* config.h.  Generated by config.status.  */
14518   if test x"$ac_file" = x-; then
14519     echo "/* Generated by configure.  */" >$tmp/config.h
14520   else
14521     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
14522   fi
14523   cat $tmp/in >>$tmp/config.h
14524   rm -f $tmp/in
14525   if test x"$ac_file" != x-; then
14526     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14527       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14528 echo "$as_me: $ac_file is unchanged" >&6;}
14529     else
14530       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14531 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14532          X"$ac_file" : 'X\(//\)[^/]' \| \
14533          X"$ac_file" : 'X\(//\)$' \| \
14534          X"$ac_file" : 'X\(/\)' \| \
14535          .     : '\(.\)' 2>/dev/null ||
14536 echo X"$ac_file" |
14537     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14538           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14539           /^X\(\/\/\)$/{ s//\1/; q; }
14540           /^X\(\/\).*/{ s//\1/; q; }
14541           s/.*/./; q'`
14542       { if $as_mkdir_p; then
14543     mkdir -p "$ac_dir"
14544   else
14545     as_dir="$ac_dir"
14546     as_dirs=
14547     while test ! -d "$as_dir"; do
14548       as_dirs="$as_dir $as_dirs"
14549       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14550 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14551          X"$as_dir" : 'X\(//\)[^/]' \| \
14552          X"$as_dir" : 'X\(//\)$' \| \
14553          X"$as_dir" : 'X\(/\)' \| \
14554          .     : '\(.\)' 2>/dev/null ||
14555 echo X"$as_dir" |
14556     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14557           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14558           /^X\(\/\/\)$/{ s//\1/; q; }
14559           /^X\(\/\).*/{ s//\1/; q; }
14560           s/.*/./; q'`
14561     done
14562     test ! -n "$as_dirs" || mkdir $as_dirs
14563   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14564 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14565    { (exit 1); exit 1; }; }; }
14566
14567       rm -f $ac_file
14568       mv $tmp/config.h $ac_file
14569     fi
14570   else
14571     cat $tmp/config.h
14572     rm -f $tmp/config.h
14573   fi
14574 # Compute $ac_file's index in $config_headers.
14575 _am_stamp_count=1
14576 for _am_header in $config_headers :; do
14577   case $_am_header in
14578     $ac_file | $ac_file:* )
14579       break ;;
14580     * )
14581       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14582   esac
14583 done
14584 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14585 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14586          X$ac_file : 'X\(//\)[^/]' \| \
14587          X$ac_file : 'X\(//\)$' \| \
14588          X$ac_file : 'X\(/\)' \| \
14589          .     : '\(.\)' 2>/dev/null ||
14590 echo X$ac_file |
14591     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14592           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14593           /^X\(\/\/\)$/{ s//\1/; q; }
14594           /^X\(\/\).*/{ s//\1/; q; }
14595           s/.*/./; q'`/stamp-h$_am_stamp_count
14596 done
14597 _ACEOF
14598 cat >>$CONFIG_STATUS <<\_ACEOF
14599
14600 #
14601 # CONFIG_COMMANDS section.
14602 #
14603 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14604   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14605   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14606   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14607 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14608          X"$ac_dest" : 'X\(//\)[^/]' \| \
14609          X"$ac_dest" : 'X\(//\)$' \| \
14610          X"$ac_dest" : 'X\(/\)' \| \
14611          .     : '\(.\)' 2>/dev/null ||
14612 echo X"$ac_dest" |
14613     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14614           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14615           /^X\(\/\/\)$/{ s//\1/; q; }
14616           /^X\(\/\).*/{ s//\1/; q; }
14617           s/.*/./; q'`
14618   { if $as_mkdir_p; then
14619     mkdir -p "$ac_dir"
14620   else
14621     as_dir="$ac_dir"
14622     as_dirs=
14623     while test ! -d "$as_dir"; do
14624       as_dirs="$as_dir $as_dirs"
14625       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14627          X"$as_dir" : 'X\(//\)[^/]' \| \
14628          X"$as_dir" : 'X\(//\)$' \| \
14629          X"$as_dir" : 'X\(/\)' \| \
14630          .     : '\(.\)' 2>/dev/null ||
14631 echo X"$as_dir" |
14632     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14633           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14634           /^X\(\/\/\)$/{ s//\1/; q; }
14635           /^X\(\/\).*/{ s//\1/; q; }
14636           s/.*/./; q'`
14637     done
14638     test ! -n "$as_dirs" || mkdir $as_dirs
14639   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14640 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14641    { (exit 1); exit 1; }; }; }
14642
14643   ac_builddir=.
14644
14645 if test "$ac_dir" != .; then
14646   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14647   # A "../" for each directory in $ac_dir_suffix.
14648   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14649 else
14650   ac_dir_suffix= ac_top_builddir=
14651 fi
14652
14653 case $srcdir in
14654   .)  # No --srcdir option.  We are building in place.
14655     ac_srcdir=.
14656     if test -z "$ac_top_builddir"; then
14657        ac_top_srcdir=.
14658     else
14659        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14660     fi ;;
14661   [\\/]* | ?:[\\/]* )  # Absolute path.
14662     ac_srcdir=$srcdir$ac_dir_suffix;
14663     ac_top_srcdir=$srcdir ;;
14664   *) # Relative path.
14665     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14666     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14667 esac
14668
14669 # Do not use `cd foo && pwd` to compute absolute paths, because
14670 # the directories may not exist.
14671 case `pwd` in
14672 .) ac_abs_builddir="$ac_dir";;
14673 *)
14674   case "$ac_dir" in
14675   .) ac_abs_builddir=`pwd`;;
14676   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14677   *) ac_abs_builddir=`pwd`/"$ac_dir";;
14678   esac;;
14679 esac
14680 case $ac_abs_builddir in
14681 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14682 *)
14683   case ${ac_top_builddir}. in
14684   .) ac_abs_top_builddir=$ac_abs_builddir;;
14685   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14686   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14687   esac;;
14688 esac
14689 case $ac_abs_builddir in
14690 .) ac_abs_srcdir=$ac_srcdir;;
14691 *)
14692   case $ac_srcdir in
14693   .) ac_abs_srcdir=$ac_abs_builddir;;
14694   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14695   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14696   esac;;
14697 esac
14698 case $ac_abs_builddir in
14699 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14700 *)
14701   case $ac_top_srcdir in
14702   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14703   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14704   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14705   esac;;
14706 esac
14707
14708
14709   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14710 echo "$as_me: executing $ac_dest commands" >&6;}
14711   case $ac_dest in
14712     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14713   # Strip MF so we end up with the name of the file.
14714   mf=`echo "$mf" | sed -e 's/:.*$//'`
14715   # Check whether this is an Automake generated Makefile or not.
14716   # We used to match only the files named `Makefile.in', but
14717   # some people rename them; so instead we look at the file content.
14718   # Grep'ing the first line is not enough: some people post-process
14719   # each Makefile.in and add a new line on top of each file to say so.
14720   # So let's grep whole file.
14721   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14722     dirpart=`(dirname "$mf") 2>/dev/null ||
14723 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14724          X"$mf" : 'X\(//\)[^/]' \| \
14725          X"$mf" : 'X\(//\)$' \| \
14726          X"$mf" : 'X\(/\)' \| \
14727          .     : '\(.\)' 2>/dev/null ||
14728 echo X"$mf" |
14729     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14730           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14731           /^X\(\/\/\)$/{ s//\1/; q; }
14732           /^X\(\/\).*/{ s//\1/; q; }
14733           s/.*/./; q'`
14734   else
14735     continue
14736   fi
14737   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
14738   # Extract the definition of DEP_FILES from the Makefile without
14739   # running `make'.
14740   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
14741   test -z "$DEPDIR" && continue
14742   # When using ansi2knr, U may be empty or an underscore; expand it
14743   U=`sed -n -e '/^U = / s///p' < "$mf"`
14744   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
14745   # We invoke sed twice because it is the simplest approach to
14746   # changing $(DEPDIR) to its actual value in the expansion.
14747   for file in `sed -n -e '
14748     /^DEP_FILES = .*\\\\$/ {
14749       s/^DEP_FILES = //
14750       :loop
14751         s/\\\\$//
14752         p
14753         n
14754         /\\\\$/ b loop
14755       p
14756     }
14757     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
14758        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14759     # Make sure the directory exists.
14760     test -f "$dirpart/$file" && continue
14761     fdir=`(dirname "$file") 2>/dev/null ||
14762 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14763          X"$file" : 'X\(//\)[^/]' \| \
14764          X"$file" : 'X\(//\)$' \| \
14765          X"$file" : 'X\(/\)' \| \
14766          .     : '\(.\)' 2>/dev/null ||
14767 echo X"$file" |
14768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14769           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14770           /^X\(\/\/\)$/{ s//\1/; q; }
14771           /^X\(\/\).*/{ s//\1/; q; }
14772           s/.*/./; q'`
14773     { if $as_mkdir_p; then
14774     mkdir -p $dirpart/$fdir
14775   else
14776     as_dir=$dirpart/$fdir
14777     as_dirs=
14778     while test ! -d "$as_dir"; do
14779       as_dirs="$as_dir $as_dirs"
14780       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14782          X"$as_dir" : 'X\(//\)[^/]' \| \
14783          X"$as_dir" : 'X\(//\)$' \| \
14784          X"$as_dir" : 'X\(/\)' \| \
14785          .     : '\(.\)' 2>/dev/null ||
14786 echo X"$as_dir" |
14787     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14788           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14789           /^X\(\/\/\)$/{ s//\1/; q; }
14790           /^X\(\/\).*/{ s//\1/; q; }
14791           s/.*/./; q'`
14792     done
14793     test ! -n "$as_dirs" || mkdir $as_dirs
14794   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14795 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14796    { (exit 1); exit 1; }; }; }
14797
14798     # echo "creating $dirpart/$file"
14799     echo '# dummy' > "$dirpart/$file"
14800   done
14801 done
14802  ;;
14803     default-1 )
14804     for ac_file in $CONFIG_FILES; do
14805       # Support "outfile[:infile[:infile...]]"
14806       case "$ac_file" in
14807         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14808       esac
14809       # PO directories have a Makefile.in generated from Makefile.in.in.
14810       case "$ac_file" in */Makefile.in)
14811         # Adjust a relative srcdir.
14812         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14813         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14814         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14815         # In autoconf-2.13 it is called $ac_given_srcdir.
14816         # In autoconf-2.50 it is called $srcdir.
14817         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14818         case "$ac_given_srcdir" in
14819           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14820           /*) top_srcdir="$ac_given_srcdir" ;;
14821           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
14822         esac
14823         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14824           rm -f "$ac_dir/POTFILES"
14825           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14826           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14827           POMAKEFILEDEPS="POTFILES.in"
14828           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14829           # on $ac_dir but don't depend on user-specified configuration
14830           # parameters.
14831           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14832             # The LINGUAS file contains the set of available languages.
14833             if test -n "$OBSOLETE_ALL_LINGUAS"; then
14834               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14835             fi
14836             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14837             # Hide the ALL_LINGUAS assigment from automake.
14838             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14839             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14840           else
14841             # The set of available languages was given in configure.in.
14842             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14843           fi
14844           case "$ac_given_srcdir" in
14845             .) srcdirpre= ;;
14846             *) srcdirpre='$(srcdir)/' ;;
14847           esac
14848           POFILES=
14849           GMOFILES=
14850           UPDATEPOFILES=
14851           DUMMYPOFILES=
14852           for lang in $ALL_LINGUAS; do
14853             POFILES="$POFILES $srcdirpre$lang.po"
14854             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14855             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14856             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14857           done
14858           # CATALOGS depends on both $ac_dir and the user's LINGUAS
14859           # environment variable.
14860           INST_LINGUAS=
14861           if test -n "$ALL_LINGUAS"; then
14862             for presentlang in $ALL_LINGUAS; do
14863               useit=no
14864               if test "%UNSET%" != "$LINGUAS"; then
14865                 desiredlanguages="$LINGUAS"
14866               else
14867                 desiredlanguages="$ALL_LINGUAS"
14868               fi
14869               for desiredlang in $desiredlanguages; do
14870                 # Use the presentlang catalog if desiredlang is
14871                 #   a. equal to presentlang, or
14872                 #   b. a variant of presentlang (because in this case,
14873                 #      presentlang can be used as a fallback for messages
14874                 #      which are not translated in the desiredlang catalog).
14875                 case "$desiredlang" in
14876                   "$presentlang"*) useit=yes;;
14877                 esac
14878               done
14879               if test $useit = yes; then
14880                 INST_LINGUAS="$INST_LINGUAS $presentlang"
14881               fi
14882             done
14883           fi
14884           CATALOGS=
14885           if test -n "$INST_LINGUAS"; then
14886             for lang in $INST_LINGUAS; do
14887               CATALOGS="$CATALOGS $lang.gmo"
14888             done
14889           fi
14890           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14891           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14892           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14893             if test -f "$f"; then
14894               case "$f" in
14895                 *.orig | *.bak | *~) ;;
14896                 *) cat "$f" >> "$ac_dir/Makefile" ;;
14897               esac
14898             fi
14899           done
14900         fi
14901         ;;
14902       esac
14903     done ;;
14904     pref.h )
14905            # Copy pref.h from pref.h.orig if prudent
14906            if test ! -f pref.h; then
14907              echo "creating pref.h"
14908              cp $ac_given_srcdir/pref.h.orig pref.h
14909            elif test "`ls -t pref.h.orig pref.h 2>/dev/null | sed 1q`" = pref.h.orig; then
14910              echo "replacing pref.h with newer pref.h.orig"
14911              cp $ac_given_srcdir/pref.h.orig pref.h
14912            else
14913              echo "pref.h exists"
14914            fi
14915            if test -f pref.h; then touch pref.h; fi
14916            ;;
14917   esac
14918 done
14919 _ACEOF
14920
14921 cat >>$CONFIG_STATUS <<\_ACEOF
14922
14923 { (exit 0); exit 0; }
14924 _ACEOF
14925 chmod +x $CONFIG_STATUS
14926 ac_clean_files=$ac_clean_files_save
14927
14928
14929 # configure is writing to config.log, and then calls config.status.
14930 # config.status does its own redirection, appending to config.log.
14931 # Unfortunately, on DOS this fails, as config.log is still kept open
14932 # by configure, so config.status won't be able to write to it; its
14933 # output is simply discarded.  So we exec the FD to /dev/null,
14934 # effectively closing config.log, so it can be properly (re)opened and
14935 # appended to by config.status.  When coming back to configure, we
14936 # need to make the FD available again.
14937 if test "$no_create" != yes; then
14938   ac_cs_success=:
14939   ac_config_status_args=
14940   test "$silent" = yes &&
14941     ac_config_status_args="$ac_config_status_args --quiet"
14942   exec 5>/dev/null
14943   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14944   exec 5>>config.log
14945   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14946   # would make configure fail if this is the last instruction.
14947   $ac_cs_success || { (exit 1); exit 1; }
14948 fi
14949
14950