Adapted to automake 2.59 and autoconf 1.6.3
[gnucomo.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/gcm_input/message.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CPP LEX LEXLIB LEX_OUTPUT_ROOT LN_S RANLIB ac_ct_RANLIB YACC XML_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PG_CONFIG with_postgres_lib with_postgres_include POSTGRES_LIB POSTGRES_INCLUDE EGREP LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 Program names:
843   --program-prefix=PREFIX            prepend PREFIX to installed program names
844   --program-suffix=SUFFIX            append SUFFIX to installed program names
845   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
846
847 X features:
848   --x-includes=DIR    X include files are in DIR
849   --x-libraries=DIR   X library files are in DIR
850 _ACEOF
851 fi
852
853 if test -n "$ac_init_help"; then
854
855   cat <<\_ACEOF
856
857 Optional Features:
858   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
859   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
860   --disable-dependency-tracking Speeds up one-time builds
861   --enable-dependency-tracking  Do not reject slow dependency extractors
862
863 Optional Packages:
864   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
865   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
866   --with-x                use the X Window System
867
868 Some influential environment variables:
869   CC          C compiler command
870   CFLAGS      C compiler flags
871   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
872               nonstandard directory <lib dir>
873   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
874               headers in a nonstandard directory <include dir>
875   CXX         C++ compiler command
876   CXXFLAGS    C++ compiler flags
877   CPP         C preprocessor
878
879 Use these variables to override the choices made by `configure' or to help
880 it to find libraries and programs with nonstandard names/locations.
881
882 _ACEOF
883 fi
884
885 if test "$ac_init_help" = "recursive"; then
886   # If there are subdirs, report their specific --help.
887   ac_popdir=`pwd`
888   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
889     test -d $ac_dir || continue
890     ac_builddir=.
891
892 if test "$ac_dir" != .; then
893   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894   # A "../" for each directory in $ac_dir_suffix.
895   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896 else
897   ac_dir_suffix= ac_top_builddir=
898 fi
899
900 case $srcdir in
901   .)  # No --srcdir option.  We are building in place.
902     ac_srcdir=.
903     if test -z "$ac_top_builddir"; then
904        ac_top_srcdir=.
905     else
906        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907     fi ;;
908   [\\/]* | ?:[\\/]* )  # Absolute path.
909     ac_srcdir=$srcdir$ac_dir_suffix;
910     ac_top_srcdir=$srcdir ;;
911   *) # Relative path.
912     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
913     ac_top_srcdir=$ac_top_builddir$srcdir ;;
914 esac
915
916 # Do not use `cd foo && pwd` to compute absolute paths, because
917 # the directories may not exist.
918 case `pwd` in
919 .) ac_abs_builddir="$ac_dir";;
920 *)
921   case "$ac_dir" in
922   .) ac_abs_builddir=`pwd`;;
923   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
924   *) ac_abs_builddir=`pwd`/"$ac_dir";;
925   esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_top_builddir=${ac_top_builddir}.;;
929 *)
930   case ${ac_top_builddir}. in
931   .) ac_abs_top_builddir=$ac_abs_builddir;;
932   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
933   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
934   esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_srcdir=$ac_srcdir;;
938 *)
939   case $ac_srcdir in
940   .) ac_abs_srcdir=$ac_abs_builddir;;
941   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
942   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
943   esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_top_srcdir=$ac_top_srcdir;;
947 *)
948   case $ac_top_srcdir in
949   .) ac_abs_top_srcdir=$ac_abs_builddir;;
950   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
951   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
952   esac;;
953 esac
954
955     cd $ac_dir
956     # Check for guested configure; otherwise get Cygnus style configure.
957     if test -f $ac_srcdir/configure.gnu; then
958       echo
959       $SHELL $ac_srcdir/configure.gnu  --help=recursive
960     elif test -f $ac_srcdir/configure; then
961       echo
962       $SHELL $ac_srcdir/configure  --help=recursive
963     elif test -f $ac_srcdir/configure.ac ||
964            test -f $ac_srcdir/configure.in; then
965       echo
966       $ac_configure --help
967     else
968       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969     fi
970     cd $ac_popdir
971   done
972 fi
973
974 test -n "$ac_init_help" && exit 0
975 if $ac_init_version; then
976   cat <<\_ACEOF
977
978 Copyright (C) 2003 Free Software Foundation, Inc.
979 This configure script is free software; the Free Software Foundation
980 gives unlimited permission to copy, distribute and modify it.
981 _ACEOF
982   exit 0
983 fi
984 exec 5>config.log
985 cat >&5 <<_ACEOF
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
988
989 It was created by $as_me, which was
990 generated by GNU Autoconf 2.59.  Invocation command line was
991
992   $ $0 $@
993
994 _ACEOF
995 {
996 cat <<_ASUNAME
997 ## --------- ##
998 ## Platform. ##
999 ## --------- ##
1000
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1009
1010 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1011 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1014 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1015 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1016 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1017
1018 _ASUNAME
1019
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 for as_dir in $PATH
1022 do
1023   IFS=$as_save_IFS
1024   test -z "$as_dir" && as_dir=.
1025   echo "PATH: $as_dir"
1026 done
1027
1028 } >&5
1029
1030 cat >&5 <<_ACEOF
1031
1032
1033 ## ----------- ##
1034 ## Core tests. ##
1035 ## ----------- ##
1036
1037 _ACEOF
1038
1039
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Strip out --silent because we don't want to record it for future runs.
1043 # Also quote any args containing shell meta-characters.
1044 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_configure_args=
1046 ac_configure_args0=
1047 ac_configure_args1=
1048 ac_sep=
1049 ac_must_keep_next=false
1050 for ac_pass in 1 2
1051 do
1052   for ac_arg
1053   do
1054     case $ac_arg in
1055     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057     | -silent | --silent | --silen | --sile | --sil)
1058       continue ;;
1059     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061     esac
1062     case $ac_pass in
1063     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064     2)
1065       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066       if test $ac_must_keep_next = true; then
1067         ac_must_keep_next=false # Got value, back to normal.
1068       else
1069         case $ac_arg in
1070           *=* | --config-cache | -C | -disable-* | --disable-* \
1071           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073           | -with-* | --with-* | -without-* | --without-* | --x)
1074             case "$ac_configure_args0 " in
1075               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076             esac
1077             ;;
1078           -* ) ac_must_keep_next=true ;;
1079         esac
1080       fi
1081       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082       # Get rid of the leading space.
1083       ac_sep=" "
1084       ;;
1085     esac
1086   done
1087 done
1088 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log.  We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close' the trap.
1096 trap 'exit_status=$?
1097   # Save into config.log some information that might help in debugging.
1098   {
1099     echo
1100
1101     cat <<\_ASBOX
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1105 _ASBOX
1106     echo
1107     # The following way of writing the cache mishandles newlines in values,
1108 {
1109   (set) 2>&1 |
1110     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111     *ac_space=\ *)
1112       sed -n \
1113         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115       ;;
1116     *)
1117       sed -n \
1118         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1119       ;;
1120     esac;
1121 }
1122     echo
1123
1124     cat <<\_ASBOX
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1128 _ASBOX
1129     echo
1130     for ac_var in $ac_subst_vars
1131     do
1132       eval ac_val=$`echo $ac_var`
1133       echo "$ac_var='"'"'$ac_val'"'"'"
1134     done | sort
1135     echo
1136
1137     if test -n "$ac_subst_files"; then
1138       cat <<\_ASBOX
1139 ## ------------- ##
1140 ## Output files. ##
1141 ## ------------- ##
1142 _ASBOX
1143       echo
1144       for ac_var in $ac_subst_files
1145       do
1146         eval ac_val=$`echo $ac_var`
1147         echo "$ac_var='"'"'$ac_val'"'"'"
1148       done | sort
1149       echo
1150     fi
1151
1152     if test -s confdefs.h; then
1153       cat <<\_ASBOX
1154 ## ----------- ##
1155 ## confdefs.h. ##
1156 ## ----------- ##
1157 _ASBOX
1158       echo
1159       sed "/^$/d" confdefs.h | sort
1160       echo
1161     fi
1162     test "$ac_signal" != 0 &&
1163       echo "$as_me: caught signal $ac_signal"
1164     echo "$as_me: exit $exit_status"
1165   } >&5
1166   rm -f core *.core &&
1167   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168     exit $exit_status
1169      ' 0
1170 for ac_signal in 1 2 13 15; do
1171   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 done
1173 ac_signal=0
1174
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 echo >confdefs.h
1179
1180 # Predefined preprocessor variables.
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 _ACEOF
1185
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 _ACEOF
1205
1206
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210   if test "x$prefix" != xNONE; then
1211     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212   else
1213     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1214   fi
1215 fi
1216 for ac_site_file in $CONFIG_SITE; do
1217   if test -r "$ac_site_file"; then
1218     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220     sed 's/^/| /' "$ac_site_file" >&5
1221     . "$ac_site_file"
1222   fi
1223 done
1224
1225 if test -r "$cache_file"; then
1226   # Some versions of bash will fail to source /dev/null (special
1227   # files actually), so we avoid doing that.
1228   if test -f "$cache_file"; then
1229     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230 echo "$as_me: loading cache $cache_file" >&6;}
1231     case $cache_file in
1232       [\\/]* | ?:[\\/]* ) . $cache_file;;
1233       *)                      . ./$cache_file;;
1234     esac
1235   fi
1236 else
1237   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238 echo "$as_me: creating cache $cache_file" >&6;}
1239   >$cache_file
1240 fi
1241
1242 # Check that the precious variables saved in the cache have kept the same
1243 # value.
1244 ac_cache_corrupted=false
1245 for ac_var in `(set) 2>&1 |
1246                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1247   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248   eval ac_new_set=\$ac_env_${ac_var}_set
1249   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250   eval ac_new_val="\$ac_env_${ac_var}_value"
1251   case $ac_old_set,$ac_new_set in
1252     set,)
1253       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255       ac_cache_corrupted=: ;;
1256     ,set)
1257       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259       ac_cache_corrupted=: ;;
1260     ,);;
1261     *)
1262       if test "x$ac_old_val" != "x$ac_new_val"; then
1263         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1264 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1265         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1266 echo "$as_me:   former value:  $ac_old_val" >&2;}
1267         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1268 echo "$as_me:   current value: $ac_new_val" >&2;}
1269         ac_cache_corrupted=:
1270       fi;;
1271   esac
1272   # Pass precious variables to config.status.
1273   if test "$ac_new_set" = set; then
1274     case $ac_new_val in
1275     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277     *) ac_arg=$ac_var=$ac_new_val ;;
1278     esac
1279     case " $ac_configure_args " in
1280       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1281       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282     esac
1283   fi
1284 done
1285 if $ac_cache_corrupted; then
1286   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290    { (exit 1); exit 1; }; }
1291 fi
1292
1293 ac_ext=c
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317 am__api_version="1.6"
1318 ac_aux_dir=
1319 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320   if test -f $ac_dir/install-sh; then
1321     ac_aux_dir=$ac_dir
1322     ac_install_sh="$ac_aux_dir/install-sh -c"
1323     break
1324   elif test -f $ac_dir/install.sh; then
1325     ac_aux_dir=$ac_dir
1326     ac_install_sh="$ac_aux_dir/install.sh -c"
1327     break
1328   elif test -f $ac_dir/shtool; then
1329     ac_aux_dir=$ac_dir
1330     ac_install_sh="$ac_aux_dir/shtool install -c"
1331     break
1332   fi
1333 done
1334 if test -z "$ac_aux_dir"; then
1335   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1336 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1337    { (exit 1); exit 1; }; }
1338 fi
1339 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1342
1343 # Find a good install program.  We prefer a C program (faster),
1344 # so one script is as good as another.  But avoid the broken or
1345 # incompatible versions:
1346 # SysV /etc/install, /usr/sbin/install
1347 # SunOS /usr/etc/install
1348 # IRIX /sbin/install
1349 # AIX /bin/install
1350 # AmigaOS /C/install, which installs bootblocks on floppy discs
1351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1354 # OS/2's system install, which has a completely different semantic
1355 # ./install, which can be erroneously created by make from ./install.sh.
1356 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1357 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1358 if test -z "$INSTALL"; then
1359 if test "${ac_cv_path_install+set}" = set; then
1360   echo $ECHO_N "(cached) $ECHO_C" >&6
1361 else
1362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363 for as_dir in $PATH
1364 do
1365   IFS=$as_save_IFS
1366   test -z "$as_dir" && as_dir=.
1367   # Account for people who put trailing slashes in PATH elements.
1368 case $as_dir/ in
1369   ./ | .// | /cC/* | \
1370   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1371   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1372   /usr/ucb/* ) ;;
1373   *)
1374     # OSF1 and SCO ODT 3.0 have their own names for install.
1375     # Don't use installbsd from OSF since it installs stuff as root
1376     # by default.
1377     for ac_prog in ginstall scoinst install; do
1378       for ac_exec_ext in '' $ac_executable_extensions; do
1379         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1380           if test $ac_prog = install &&
1381             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1382             # AIX install.  It has an incompatible calling convention.
1383             :
1384           elif test $ac_prog = install &&
1385             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1386             # program-specific install script used by HP pwplus--don't use.
1387             :
1388           else
1389             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1390             break 3
1391           fi
1392         fi
1393       done
1394     done
1395     ;;
1396 esac
1397 done
1398
1399
1400 fi
1401   if test "${ac_cv_path_install+set}" = set; then
1402     INSTALL=$ac_cv_path_install
1403   else
1404     # As a last resort, use the slow shell script.  We don't cache a
1405     # path for INSTALL within a source directory, because that will
1406     # break other packages using the cache if that directory is
1407     # removed, or if the path is relative.
1408     INSTALL=$ac_install_sh
1409   fi
1410 fi
1411 echo "$as_me:$LINENO: result: $INSTALL" >&5
1412 echo "${ECHO_T}$INSTALL" >&6
1413
1414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1415 # It thinks the first close brace ends the variable substitution.
1416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1417
1418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1419
1420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1421
1422 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1423 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1424 # Just in case
1425 sleep 1
1426 echo timestamp > conftest.file
1427 # Do `set' in a subshell so we don't clobber the current shell's
1428 # arguments.  Must try -L first in case configure is actually a
1429 # symlink; some systems play weird games with the mod time of symlinks
1430 # (eg FreeBSD returns the mod time of the symlink's containing
1431 # directory).
1432 if (
1433    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1434    if test "$*" = "X"; then
1435       # -L didn't work.
1436       set X `ls -t $srcdir/configure conftest.file`
1437    fi
1438    rm -f conftest.file
1439    if test "$*" != "X $srcdir/configure conftest.file" \
1440       && test "$*" != "X conftest.file $srcdir/configure"; then
1441
1442       # If neither matched, then we have a broken ls.  This can happen
1443       # if, for instance, CONFIG_SHELL is bash and it inherits a
1444       # broken ls alias from the environment.  This has actually
1445       # happened.  Such a system could not be considered "sane".
1446       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1447 alias in your environment" >&5
1448 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1449 alias in your environment" >&2;}
1450    { (exit 1); exit 1; }; }
1451    fi
1452
1453    test "$2" = conftest.file
1454    )
1455 then
1456    # Ok.
1457    :
1458 else
1459    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1460 Check your system clock" >&5
1461 echo "$as_me: error: newly created file is older than distributed files!
1462 Check your system clock" >&2;}
1463    { (exit 1); exit 1; }; }
1464 fi
1465 echo "$as_me:$LINENO: result: yes" >&5
1466 echo "${ECHO_T}yes" >&6
1467 test "$program_prefix" != NONE &&
1468   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1469 # Use a double $ so make ignores it.
1470 test "$program_suffix" != NONE &&
1471   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1472 # Double any \ or $.  echo might interpret backslashes.
1473 # By default was `s,x,x', remove it if useless.
1474 cat <<\_ACEOF >conftest.sed
1475 s/[\\$]/&&/g;s/;s,x,x,$//
1476 _ACEOF
1477 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1478 rm conftest.sed
1479
1480
1481 # expand $ac_aux_dir to an absolute path
1482 am_aux_dir=`cd $ac_aux_dir && pwd`
1483
1484 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1485 # Use eval to expand $SHELL
1486 if eval "$MISSING --run true"; then
1487   am_missing_run="$MISSING --run "
1488 else
1489   am_missing_run=
1490   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1491 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1492 fi
1493
1494 for ac_prog in gawk mawk nawk awk
1495 do
1496   # Extract the first word of "$ac_prog", so it can be a program name with args.
1497 set dummy $ac_prog; ac_word=$2
1498 echo "$as_me:$LINENO: checking for $ac_word" >&5
1499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500 if test "${ac_cv_prog_AWK+set}" = set; then
1501   echo $ECHO_N "(cached) $ECHO_C" >&6
1502 else
1503   if test -n "$AWK"; then
1504   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1505 else
1506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507 for as_dir in $PATH
1508 do
1509   IFS=$as_save_IFS
1510   test -z "$as_dir" && as_dir=.
1511   for ac_exec_ext in '' $ac_executable_extensions; do
1512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513     ac_cv_prog_AWK="$ac_prog"
1514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1515     break 2
1516   fi
1517 done
1518 done
1519
1520 fi
1521 fi
1522 AWK=$ac_cv_prog_AWK
1523 if test -n "$AWK"; then
1524   echo "$as_me:$LINENO: result: $AWK" >&5
1525 echo "${ECHO_T}$AWK" >&6
1526 else
1527   echo "$as_me:$LINENO: result: no" >&5
1528 echo "${ECHO_T}no" >&6
1529 fi
1530
1531   test -n "$AWK" && break
1532 done
1533
1534 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1535 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1536 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1537 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1538   echo $ECHO_N "(cached) $ECHO_C" >&6
1539 else
1540   cat >conftest.make <<\_ACEOF
1541 all:
1542         @echo 'ac_maketemp="$(MAKE)"'
1543 _ACEOF
1544 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1545 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1546 if test -n "$ac_maketemp"; then
1547   eval ac_cv_prog_make_${ac_make}_set=yes
1548 else
1549   eval ac_cv_prog_make_${ac_make}_set=no
1550 fi
1551 rm -f conftest.make
1552 fi
1553 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1554   echo "$as_me:$LINENO: result: yes" >&5
1555 echo "${ECHO_T}yes" >&6
1556   SET_MAKE=
1557 else
1558   echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1560   SET_MAKE="MAKE=${MAKE-make}"
1561 fi
1562
1563  # test to see if srcdir already configured
1564 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1565    test -f $srcdir/config.status; then
1566   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1567 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1568    { (exit 1); exit 1; }; }
1569 fi
1570
1571 # Define the identity of the package.
1572  PACKAGE=GnuCoMo
1573  VERSION=0.0.9
1574
1575
1576 cat >>confdefs.h <<_ACEOF
1577 #define PACKAGE "$PACKAGE"
1578 _ACEOF
1579
1580
1581 cat >>confdefs.h <<_ACEOF
1582 #define VERSION "$VERSION"
1583 _ACEOF
1584
1585 # Some tools Automake needs.
1586
1587 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1588
1589
1590 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1591
1592
1593 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1594
1595
1596 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1597
1598
1599 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1600
1601
1602 AMTAR=${AMTAR-"${am_missing_run}tar"}
1603
1604 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1605
1606 # Installed binaries are usually stripped using `strip' when the user
1607 # run `make install-strip'.  However `strip' might not be the right
1608 # tool to use in cross-compilation environments, therefore Automake
1609 # will honor the `STRIP' environment variable to overrule this program.
1610 if test "$cross_compiling" != no; then
1611   if test -n "$ac_tool_prefix"; then
1612   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1613 set dummy ${ac_tool_prefix}strip; ac_word=$2
1614 echo "$as_me:$LINENO: checking for $ac_word" >&5
1615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1616 if test "${ac_cv_prog_STRIP+set}" = set; then
1617   echo $ECHO_N "(cached) $ECHO_C" >&6
1618 else
1619   if test -n "$STRIP"; then
1620   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1621 else
1622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623 for as_dir in $PATH
1624 do
1625   IFS=$as_save_IFS
1626   test -z "$as_dir" && as_dir=.
1627   for ac_exec_ext in '' $ac_executable_extensions; do
1628   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1629     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631     break 2
1632   fi
1633 done
1634 done
1635
1636 fi
1637 fi
1638 STRIP=$ac_cv_prog_STRIP
1639 if test -n "$STRIP"; then
1640   echo "$as_me:$LINENO: result: $STRIP" >&5
1641 echo "${ECHO_T}$STRIP" >&6
1642 else
1643   echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1645 fi
1646
1647 fi
1648 if test -z "$ac_cv_prog_STRIP"; then
1649   ac_ct_STRIP=$STRIP
1650   # Extract the first word of "strip", so it can be a program name with args.
1651 set dummy strip; ac_word=$2
1652 echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1655   echo $ECHO_N "(cached) $ECHO_C" >&6
1656 else
1657   if test -n "$ac_ct_STRIP"; then
1658   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1659 else
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 for as_dir in $PATH
1662 do
1663   IFS=$as_save_IFS
1664   test -z "$as_dir" && as_dir=.
1665   for ac_exec_ext in '' $ac_executable_extensions; do
1666   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1667     ac_cv_prog_ac_ct_STRIP="strip"
1668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669     break 2
1670   fi
1671 done
1672 done
1673
1674   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1675 fi
1676 fi
1677 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1678 if test -n "$ac_ct_STRIP"; then
1679   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1680 echo "${ECHO_T}$ac_ct_STRIP" >&6
1681 else
1682   echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 fi
1685
1686   STRIP=$ac_ct_STRIP
1687 else
1688   STRIP="$ac_cv_prog_STRIP"
1689 fi
1690
1691 fi
1692 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1693
1694 # We need awk for the "check" target.  The system "awk" is bad on
1695 # some platforms.
1696
1697
1698
1699
1700
1701 ac_ext=c
1702 ac_cpp='$CPP $CPPFLAGS'
1703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1706 if test -n "$ac_tool_prefix"; then
1707   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1708 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_CC+set}" = set; then
1712   echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714   if test -n "$CC"; then
1715   ac_cv_prog_CC="$CC" # Let the user override the test.
1716 else
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 for as_dir in $PATH
1719 do
1720   IFS=$as_save_IFS
1721   test -z "$as_dir" && as_dir=.
1722   for ac_exec_ext in '' $ac_executable_extensions; do
1723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726     break 2
1727   fi
1728 done
1729 done
1730
1731 fi
1732 fi
1733 CC=$ac_cv_prog_CC
1734 if test -n "$CC"; then
1735   echo "$as_me:$LINENO: result: $CC" >&5
1736 echo "${ECHO_T}$CC" >&6
1737 else
1738   echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1740 fi
1741
1742 fi
1743 if test -z "$ac_cv_prog_CC"; then
1744   ac_ct_CC=$CC
1745   # Extract the first word of "gcc", so it can be a program name with args.
1746 set dummy gcc; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1750   echo $ECHO_N "(cached) $ECHO_C" >&6
1751 else
1752   if test -n "$ac_ct_CC"; then
1753   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1754 else
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 for as_dir in $PATH
1757 do
1758   IFS=$as_save_IFS
1759   test -z "$as_dir" && as_dir=.
1760   for ac_exec_ext in '' $ac_executable_extensions; do
1761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762     ac_cv_prog_ac_ct_CC="gcc"
1763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764     break 2
1765   fi
1766 done
1767 done
1768
1769 fi
1770 fi
1771 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1772 if test -n "$ac_ct_CC"; then
1773   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1774 echo "${ECHO_T}$ac_ct_CC" >&6
1775 else
1776   echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1778 fi
1779
1780   CC=$ac_ct_CC
1781 else
1782   CC="$ac_cv_prog_CC"
1783 fi
1784
1785 if test -z "$CC"; then
1786   if test -n "$ac_tool_prefix"; then
1787   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1788 set dummy ${ac_tool_prefix}cc; ac_word=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_CC+set}" = set; then
1792   echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794   if test -n "$CC"; then
1795   ac_cv_prog_CC="$CC" # Let the user override the test.
1796 else
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 for as_dir in $PATH
1799 do
1800   IFS=$as_save_IFS
1801   test -z "$as_dir" && as_dir=.
1802   for ac_exec_ext in '' $ac_executable_extensions; do
1803   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804     ac_cv_prog_CC="${ac_tool_prefix}cc"
1805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806     break 2
1807   fi
1808 done
1809 done
1810
1811 fi
1812 fi
1813 CC=$ac_cv_prog_CC
1814 if test -n "$CC"; then
1815   echo "$as_me:$LINENO: result: $CC" >&5
1816 echo "${ECHO_T}$CC" >&6
1817 else
1818   echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1820 fi
1821
1822 fi
1823 if test -z "$ac_cv_prog_CC"; then
1824   ac_ct_CC=$CC
1825   # Extract the first word of "cc", so it can be a program name with args.
1826 set dummy cc; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1830   echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832   if test -n "$ac_ct_CC"; then
1833   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1834 else
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 for as_dir in $PATH
1837 do
1838   IFS=$as_save_IFS
1839   test -z "$as_dir" && as_dir=.
1840   for ac_exec_ext in '' $ac_executable_extensions; do
1841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842     ac_cv_prog_ac_ct_CC="cc"
1843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844     break 2
1845   fi
1846 done
1847 done
1848
1849 fi
1850 fi
1851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1852 if test -n "$ac_ct_CC"; then
1853   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1854 echo "${ECHO_T}$ac_ct_CC" >&6
1855 else
1856   echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1858 fi
1859
1860   CC=$ac_ct_CC
1861 else
1862   CC="$ac_cv_prog_CC"
1863 fi
1864
1865 fi
1866 if test -z "$CC"; then
1867   # Extract the first word of "cc", so it can be a program name with args.
1868 set dummy cc; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_CC+set}" = set; then
1872   echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874   if test -n "$CC"; then
1875   ac_cv_prog_CC="$CC" # Let the user override the test.
1876 else
1877   ac_prog_rejected=no
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1880 do
1881   IFS=$as_save_IFS
1882   test -z "$as_dir" && as_dir=.
1883   for ac_exec_ext in '' $ac_executable_extensions; do
1884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1886        ac_prog_rejected=yes
1887        continue
1888      fi
1889     ac_cv_prog_CC="cc"
1890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891     break 2
1892   fi
1893 done
1894 done
1895
1896 if test $ac_prog_rejected = yes; then
1897   # We found a bogon in the path, so make sure we never use it.
1898   set dummy $ac_cv_prog_CC
1899   shift
1900   if test $# != 0; then
1901     # We chose a different compiler from the bogus one.
1902     # However, it has the same basename, so the bogon will be chosen
1903     # first if we set CC to just the basename; use the full file name.
1904     shift
1905     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1906   fi
1907 fi
1908 fi
1909 fi
1910 CC=$ac_cv_prog_CC
1911 if test -n "$CC"; then
1912   echo "$as_me:$LINENO: result: $CC" >&5
1913 echo "${ECHO_T}$CC" >&6
1914 else
1915   echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1917 fi
1918
1919 fi
1920 if test -z "$CC"; then
1921   if test -n "$ac_tool_prefix"; then
1922   for ac_prog in cl
1923   do
1924     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1926 echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928 if test "${ac_cv_prog_CC+set}" = set; then
1929   echo $ECHO_N "(cached) $ECHO_C" >&6
1930 else
1931   if test -n "$CC"; then
1932   ac_cv_prog_CC="$CC" # Let the user override the test.
1933 else
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 for as_dir in $PATH
1936 do
1937   IFS=$as_save_IFS
1938   test -z "$as_dir" && as_dir=.
1939   for ac_exec_ext in '' $ac_executable_extensions; do
1940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943     break 2
1944   fi
1945 done
1946 done
1947
1948 fi
1949 fi
1950 CC=$ac_cv_prog_CC
1951 if test -n "$CC"; then
1952   echo "$as_me:$LINENO: result: $CC" >&5
1953 echo "${ECHO_T}$CC" >&6
1954 else
1955   echo "$as_me:$LINENO: result: no" >&5
1956 echo "${ECHO_T}no" >&6
1957 fi
1958
1959     test -n "$CC" && break
1960   done
1961 fi
1962 if test -z "$CC"; then
1963   ac_ct_CC=$CC
1964   for ac_prog in cl
1965 do
1966   # Extract the first word of "$ac_prog", so it can be a program name with args.
1967 set dummy $ac_prog; ac_word=$2
1968 echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1971   echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973   if test -n "$ac_ct_CC"; then
1974   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1975 else
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 for as_dir in $PATH
1978 do
1979   IFS=$as_save_IFS
1980   test -z "$as_dir" && as_dir=.
1981   for ac_exec_ext in '' $ac_executable_extensions; do
1982   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983     ac_cv_prog_ac_ct_CC="$ac_prog"
1984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985     break 2
1986   fi
1987 done
1988 done
1989
1990 fi
1991 fi
1992 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1993 if test -n "$ac_ct_CC"; then
1994   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1995 echo "${ECHO_T}$ac_ct_CC" >&6
1996 else
1997   echo "$as_me:$LINENO: result: no" >&5
1998 echo "${ECHO_T}no" >&6
1999 fi
2000
2001   test -n "$ac_ct_CC" && break
2002 done
2003
2004   CC=$ac_ct_CC
2005 fi
2006
2007 fi
2008
2009
2010 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2011 See \`config.log' for more details." >&5
2012 echo "$as_me: error: no acceptable C compiler found in \$PATH
2013 See \`config.log' for more details." >&2;}
2014    { (exit 1); exit 1; }; }
2015
2016 # Provide some information about the compiler.
2017 echo "$as_me:$LINENO:" \
2018      "checking for C compiler version" >&5
2019 ac_compiler=`set X $ac_compile; echo $2`
2020 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2021   (eval $ac_compiler --version </dev/null >&5) 2>&5
2022   ac_status=$?
2023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024   (exit $ac_status); }
2025 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2026   (eval $ac_compiler -v </dev/null >&5) 2>&5
2027   ac_status=$?
2028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029   (exit $ac_status); }
2030 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2031   (eval $ac_compiler -V </dev/null >&5) 2>&5
2032   ac_status=$?
2033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034   (exit $ac_status); }
2035
2036 cat >conftest.$ac_ext <<_ACEOF
2037 /* confdefs.h.  */
2038 _ACEOF
2039 cat confdefs.h >>conftest.$ac_ext
2040 cat >>conftest.$ac_ext <<_ACEOF
2041 /* end confdefs.h.  */
2042
2043 int
2044 main ()
2045 {
2046
2047   ;
2048   return 0;
2049 }
2050 _ACEOF
2051 ac_clean_files_save=$ac_clean_files
2052 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2053 # Try to create an executable without -o first, disregard a.out.
2054 # It will help us diagnose broken compilers, and finding out an intuition
2055 # of exeext.
2056 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2057 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2058 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2059 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2060   (eval $ac_link_default) 2>&5
2061   ac_status=$?
2062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063   (exit $ac_status); }; then
2064   # Find the output, starting from the most likely.  This scheme is
2065 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2066 # resort.
2067
2068 # Be careful to initialize this variable, since it used to be cached.
2069 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2070 ac_cv_exeext=
2071 # b.out is created by i960 compilers.
2072 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2073 do
2074   test -f "$ac_file" || continue
2075   case $ac_file in
2076     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2077         ;;
2078     conftest.$ac_ext )
2079         # This is the source file.
2080         ;;
2081     [ab].out )
2082         # We found the default executable, but exeext='' is most
2083         # certainly right.
2084         break;;
2085     *.* )
2086         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2087         # FIXME: I believe we export ac_cv_exeext for Libtool,
2088         # but it would be cool to find out if it's true.  Does anybody
2089         # maintain Libtool? --akim.
2090         export ac_cv_exeext
2091         break;;
2092     * )
2093         break;;
2094   esac
2095 done
2096 else
2097   echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2099
2100 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2101 See \`config.log' for more details." >&5
2102 echo "$as_me: error: C compiler cannot create executables
2103 See \`config.log' for more details." >&2;}
2104    { (exit 77); exit 77; }; }
2105 fi
2106
2107 ac_exeext=$ac_cv_exeext
2108 echo "$as_me:$LINENO: result: $ac_file" >&5
2109 echo "${ECHO_T}$ac_file" >&6
2110
2111 # Check the compiler produces executables we can run.  If not, either
2112 # the compiler is broken, or we cross compile.
2113 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2114 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2115 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2116 # If not cross compiling, check that we can run a simple program.
2117 if test "$cross_compiling" != yes; then
2118   if { ac_try='./$ac_file'
2119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120   (eval $ac_try) 2>&5
2121   ac_status=$?
2122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123   (exit $ac_status); }; }; then
2124     cross_compiling=no
2125   else
2126     if test "$cross_compiling" = maybe; then
2127         cross_compiling=yes
2128     else
2129         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2130 If you meant to cross compile, use \`--host'.
2131 See \`config.log' for more details." >&5
2132 echo "$as_me: error: cannot run C compiled programs.
2133 If you meant to cross compile, use \`--host'.
2134 See \`config.log' for more details." >&2;}
2135    { (exit 1); exit 1; }; }
2136     fi
2137   fi
2138 fi
2139 echo "$as_me:$LINENO: result: yes" >&5
2140 echo "${ECHO_T}yes" >&6
2141
2142 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2143 ac_clean_files=$ac_clean_files_save
2144 # Check the compiler produces executables we can run.  If not, either
2145 # the compiler is broken, or we cross compile.
2146 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2147 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2148 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2149 echo "${ECHO_T}$cross_compiling" >&6
2150
2151 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2152 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2154   (eval $ac_link) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }; then
2158   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2159 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2160 # work properly (i.e., refer to `conftest.exe'), while it won't with
2161 # `rm'.
2162 for ac_file in conftest.exe conftest conftest.*; do
2163   test -f "$ac_file" || continue
2164   case $ac_file in
2165     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2166     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2167           export ac_cv_exeext
2168           break;;
2169     * ) break;;
2170   esac
2171 done
2172 else
2173   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2174 See \`config.log' for more details." >&5
2175 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2176 See \`config.log' for more details." >&2;}
2177    { (exit 1); exit 1; }; }
2178 fi
2179
2180 rm -f conftest$ac_cv_exeext
2181 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2182 echo "${ECHO_T}$ac_cv_exeext" >&6
2183
2184 rm -f conftest.$ac_ext
2185 EXEEXT=$ac_cv_exeext
2186 ac_exeext=$EXEEXT
2187 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2188 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2189 if test "${ac_cv_objext+set}" = set; then
2190   echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192   cat >conftest.$ac_ext <<_ACEOF
2193 /* confdefs.h.  */
2194 _ACEOF
2195 cat confdefs.h >>conftest.$ac_ext
2196 cat >>conftest.$ac_ext <<_ACEOF
2197 /* end confdefs.h.  */
2198
2199 int
2200 main ()
2201 {
2202
2203   ;
2204   return 0;
2205 }
2206 _ACEOF
2207 rm -f conftest.o conftest.obj
2208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209   (eval $ac_compile) 2>&5
2210   ac_status=$?
2211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212   (exit $ac_status); }; then
2213   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2214   case $ac_file in
2215     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2216     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2217        break;;
2218   esac
2219 done
2220 else
2221   echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2223
2224 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2227 See \`config.log' for more details." >&2;}
2228    { (exit 1); exit 1; }; }
2229 fi
2230
2231 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2232 fi
2233 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2234 echo "${ECHO_T}$ac_cv_objext" >&6
2235 OBJEXT=$ac_cv_objext
2236 ac_objext=$OBJEXT
2237 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2238 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2239 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2240   echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242   cat >conftest.$ac_ext <<_ACEOF
2243 /* confdefs.h.  */
2244 _ACEOF
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h.  */
2248
2249 int
2250 main ()
2251 {
2252 #ifndef __GNUC__
2253        choke me
2254 #endif
2255
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262   (eval $ac_compile) 2>conftest.er1
2263   ac_status=$?
2264   grep -v '^ *+' conftest.er1 >conftest.err
2265   rm -f conftest.er1
2266   cat conftest.err >&5
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); } &&
2269          { ac_try='test -z "$ac_c_werror_flag"
2270                          || test ! -s conftest.err'
2271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272   (eval $ac_try) 2>&5
2273   ac_status=$?
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); }; } &&
2276          { ac_try='test -s conftest.$ac_objext'
2277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278   (eval $ac_try) 2>&5
2279   ac_status=$?
2280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281   (exit $ac_status); }; }; then
2282   ac_compiler_gnu=yes
2283 else
2284   echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2286
2287 ac_compiler_gnu=no
2288 fi
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2291
2292 fi
2293 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2294 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2295 GCC=`test $ac_compiler_gnu = yes && echo yes`
2296 ac_test_CFLAGS=${CFLAGS+set}
2297 ac_save_CFLAGS=$CFLAGS
2298 CFLAGS="-g"
2299 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2300 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2301 if test "${ac_cv_prog_cc_g+set}" = set; then
2302   echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304   cat >conftest.$ac_ext <<_ACEOF
2305 /* confdefs.h.  */
2306 _ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h.  */
2310
2311 int
2312 main ()
2313 {
2314
2315   ;
2316   return 0;
2317 }
2318 _ACEOF
2319 rm -f conftest.$ac_objext
2320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321   (eval $ac_compile) 2>conftest.er1
2322   ac_status=$?
2323   grep -v '^ *+' conftest.er1 >conftest.err
2324   rm -f conftest.er1
2325   cat conftest.err >&5
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); } &&
2328          { ac_try='test -z "$ac_c_werror_flag"
2329                          || test ! -s conftest.err'
2330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331   (eval $ac_try) 2>&5
2332   ac_status=$?
2333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334   (exit $ac_status); }; } &&
2335          { ac_try='test -s conftest.$ac_objext'
2336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337   (eval $ac_try) 2>&5
2338   ac_status=$?
2339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340   (exit $ac_status); }; }; then
2341   ac_cv_prog_cc_g=yes
2342 else
2343   echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 ac_cv_prog_cc_g=no
2347 fi
2348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2349 fi
2350 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2351 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2352 if test "$ac_test_CFLAGS" = set; then
2353   CFLAGS=$ac_save_CFLAGS
2354 elif test $ac_cv_prog_cc_g = yes; then
2355   if test "$GCC" = yes; then
2356     CFLAGS="-g -O2"
2357   else
2358     CFLAGS="-g"
2359   fi
2360 else
2361   if test "$GCC" = yes; then
2362     CFLAGS="-O2"
2363   else
2364     CFLAGS=
2365   fi
2366 fi
2367 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2368 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2369 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2370   echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372   ac_cv_prog_cc_stdc=no
2373 ac_save_CC=$CC
2374 cat >conftest.$ac_ext <<_ACEOF
2375 /* confdefs.h.  */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h.  */
2380 #include <stdarg.h>
2381 #include <stdio.h>
2382 #include <sys/types.h>
2383 #include <sys/stat.h>
2384 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2385 struct buf { int x; };
2386 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2387 static char *e (p, i)
2388      char **p;
2389      int i;
2390 {
2391   return p[i];
2392 }
2393 static char *f (char * (*g) (char **, int), char **p, ...)
2394 {
2395   char *s;
2396   va_list v;
2397   va_start (v,p);
2398   s = g (p, va_arg (v,int));
2399   va_end (v);
2400   return s;
2401 }
2402
2403 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2404    function prototypes and stuff, but not '\xHH' hex character constants.
2405    These don't provoke an error unfortunately, instead are silently treated
2406    as 'x'.  The following induces an error, until -std1 is added to get
2407    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2408    array size at least.  It's necessary to write '\x00'==0 to get something
2409    that's true only with -std1.  */
2410 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2411
2412 int test (int i, double x);
2413 struct s1 {int (*f) (int a);};
2414 struct s2 {int (*f) (double a);};
2415 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2416 int argc;
2417 char **argv;
2418 int
2419 main ()
2420 {
2421 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2422   ;
2423   return 0;
2424 }
2425 _ACEOF
2426 # Don't try gcc -ansi; that turns off useful extensions and
2427 # breaks some systems' header files.
2428 # AIX                   -qlanglvl=ansi
2429 # Ultrix and OSF/1      -std1
2430 # HP-UX 10.20 and later -Ae
2431 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2432 # SVR4                  -Xc -D__EXTENSIONS__
2433 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2434 do
2435   CC="$ac_save_CC $ac_arg"
2436   rm -f conftest.$ac_objext
2437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2438   (eval $ac_compile) 2>conftest.er1
2439   ac_status=$?
2440   grep -v '^ *+' conftest.er1 >conftest.err
2441   rm -f conftest.er1
2442   cat conftest.err >&5
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); } &&
2445          { ac_try='test -z "$ac_c_werror_flag"
2446                          || test ! -s conftest.err'
2447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448   (eval $ac_try) 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); }; } &&
2452          { ac_try='test -s conftest.$ac_objext'
2453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454   (eval $ac_try) 2>&5
2455   ac_status=$?
2456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457   (exit $ac_status); }; }; then
2458   ac_cv_prog_cc_stdc=$ac_arg
2459 break
2460 else
2461   echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2463
2464 fi
2465 rm -f conftest.err conftest.$ac_objext
2466 done
2467 rm -f conftest.$ac_ext conftest.$ac_objext
2468 CC=$ac_save_CC
2469
2470 fi
2471
2472 case "x$ac_cv_prog_cc_stdc" in
2473   x|xno)
2474     echo "$as_me:$LINENO: result: none needed" >&5
2475 echo "${ECHO_T}none needed" >&6 ;;
2476   *)
2477     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2478 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2479     CC="$CC $ac_cv_prog_cc_stdc" ;;
2480 esac
2481
2482 # Some people use a C++ compiler to compile C.  Since we use `exit',
2483 # in C++ we need to declare it.  In case someone uses the same compiler
2484 # for both compiling C and C++ we need to have the C++ compiler decide
2485 # the declaration of exit, since it's the most demanding environment.
2486 cat >conftest.$ac_ext <<_ACEOF
2487 #ifndef __cplusplus
2488   choke me
2489 #endif
2490 _ACEOF
2491 rm -f conftest.$ac_objext
2492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493   (eval $ac_compile) 2>conftest.er1
2494   ac_status=$?
2495   grep -v '^ *+' conftest.er1 >conftest.err
2496   rm -f conftest.er1
2497   cat conftest.err >&5
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); } &&
2500          { ac_try='test -z "$ac_c_werror_flag"
2501                          || test ! -s conftest.err'
2502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503   (eval $ac_try) 2>&5
2504   ac_status=$?
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); }; } &&
2507          { ac_try='test -s conftest.$ac_objext'
2508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509   (eval $ac_try) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; }; then
2513   for ac_declaration in \
2514    '' \
2515    'extern "C" void std::exit (int) throw (); using std::exit;' \
2516    'extern "C" void std::exit (int); using std::exit;' \
2517    'extern "C" void exit (int) throw ();' \
2518    'extern "C" void exit (int);' \
2519    'void exit (int);'
2520 do
2521   cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h.  */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h.  */
2527 $ac_declaration
2528 #include <stdlib.h>
2529 int
2530 main ()
2531 {
2532 exit (42);
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 rm -f conftest.$ac_objext
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539   (eval $ac_compile) 2>conftest.er1
2540   ac_status=$?
2541   grep -v '^ *+' conftest.er1 >conftest.err
2542   rm -f conftest.er1
2543   cat conftest.err >&5
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); } &&
2546          { ac_try='test -z "$ac_c_werror_flag"
2547                          || test ! -s conftest.err'
2548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549   (eval $ac_try) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); }; } &&
2553          { ac_try='test -s conftest.$ac_objext'
2554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555   (eval $ac_try) 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; }; then
2559   :
2560 else
2561   echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2563
2564 continue
2565 fi
2566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2567   cat >conftest.$ac_ext <<_ACEOF
2568 /* confdefs.h.  */
2569 _ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h.  */
2573 $ac_declaration
2574 int
2575 main ()
2576 {
2577 exit (42);
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584   (eval $ac_compile) 2>conftest.er1
2585   ac_status=$?
2586   grep -v '^ *+' conftest.er1 >conftest.err
2587   rm -f conftest.er1
2588   cat conftest.err >&5
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); } &&
2591          { ac_try='test -z "$ac_c_werror_flag"
2592                          || test ! -s conftest.err'
2593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594   (eval $ac_try) 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); }; } &&
2598          { ac_try='test -s conftest.$ac_objext'
2599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600   (eval $ac_try) 2>&5
2601   ac_status=$?
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); }; }; then
2604   break
2605 else
2606   echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2608
2609 fi
2610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2611 done
2612 rm -f conftest*
2613 if test -n "$ac_declaration"; then
2614   echo '#ifdef __cplusplus' >>confdefs.h
2615   echo $ac_declaration      >>confdefs.h
2616   echo '#endif'             >>confdefs.h
2617 fi
2618
2619 else
2620   echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 fi
2624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2625 ac_ext=c
2626 ac_cpp='$CPP $CPPFLAGS'
2627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630 rm -f .deps 2>/dev/null
2631 mkdir .deps 2>/dev/null
2632 if test -d .deps; then
2633   DEPDIR=.deps
2634 else
2635   # MS-DOS does not allow filenames that begin with a dot.
2636   DEPDIR=_deps
2637 fi
2638 rmdir .deps 2>/dev/null
2639
2640
2641           ac_config_commands="$ac_config_commands depfiles"
2642
2643
2644 am_make=${MAKE-make}
2645 cat > confinc << 'END'
2646 doit:
2647         @echo done
2648 END
2649 # If we don't find an include directive, just comment out the code.
2650 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2651 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2652 am__include="#"
2653 am__quote=
2654 _am_result=none
2655 # First try GNU make style include.
2656 echo "include confinc" > confmf
2657 # We grep out `Entering directory' and `Leaving directory'
2658 # messages which can occur if `w' ends up in MAKEFLAGS.
2659 # In particular we don't look at `^make:' because GNU make might
2660 # be invoked under some other name (usually "gmake"), in which
2661 # case it prints its new name instead of `make'.
2662 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2663    am__include=include
2664    am__quote=
2665    _am_result=GNU
2666 fi
2667 # Now try BSD make style include.
2668 if test "$am__include" = "#"; then
2669    echo '.include "confinc"' > confmf
2670    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2671       am__include=.include
2672       am__quote="\""
2673       _am_result=BSD
2674    fi
2675 fi
2676
2677
2678 echo "$as_me:$LINENO: result: $_am_result" >&5
2679 echo "${ECHO_T}$_am_result" >&6
2680 rm -f confinc confmf
2681
2682 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2683 if test "${enable_dependency_tracking+set}" = set; then
2684   enableval="$enable_dependency_tracking"
2685
2686 fi;
2687 if test "x$enable_dependency_tracking" != xno; then
2688   am_depcomp="$ac_aux_dir/depcomp"
2689   AMDEPBACKSLASH='\'
2690 fi
2691
2692
2693 if test "x$enable_dependency_tracking" != xno; then
2694   AMDEP_TRUE=
2695   AMDEP_FALSE='#'
2696 else
2697   AMDEP_TRUE='#'
2698   AMDEP_FALSE=
2699 fi
2700
2701
2702
2703
2704 depcc="$CC"   am_compiler_list=
2705
2706 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2707 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2708 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2709   echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2712   # We make a subdir and do the tests there.  Otherwise we can end up
2713   # making bogus files that we don't know about and never remove.  For
2714   # instance it was reported that on HP-UX the gcc test will end up
2715   # making a dummy file named `D' -- because `-MD' means `put the output
2716   # in D'.
2717   mkdir conftest.dir
2718   # Copy depcomp to subdir because otherwise we won't find it if we're
2719   # using a relative directory.
2720   cp "$am_depcomp" conftest.dir
2721   cd conftest.dir
2722
2723   am_cv_CC_dependencies_compiler_type=none
2724   if test "$am_compiler_list" = ""; then
2725      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2726   fi
2727   for depmode in $am_compiler_list; do
2728     # We need to recreate these files for each test, as the compiler may
2729     # overwrite some of them when testing with obscure command lines.
2730     # This happens at least with the AIX C compiler.
2731     echo '#include "conftest.h"' > conftest.c
2732     echo 'int i;' > conftest.h
2733     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2734
2735     case $depmode in
2736     nosideeffect)
2737       # after this tag, mechanisms are not by side-effect, so they'll
2738       # only be used when explicitly requested
2739       if test "x$enable_dependency_tracking" = xyes; then
2740         continue
2741       else
2742         break
2743       fi
2744       ;;
2745     none) break ;;
2746     esac
2747     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2748     # mode.  It turns out that the SunPro C++ compiler does not properly
2749     # handle `-M -o', and we need to detect this.
2750     if depmode=$depmode \
2751        source=conftest.c object=conftest.o \
2752        depfile=conftest.Po tmpdepfile=conftest.TPo \
2753        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2754        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2755        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2756       am_cv_CC_dependencies_compiler_type=$depmode
2757       break
2758     fi
2759   done
2760
2761   cd ..
2762   rm -rf conftest.dir
2763 else
2764   am_cv_CC_dependencies_compiler_type=none
2765 fi
2766
2767 fi
2768 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2769 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2770 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2771
2772
2773 ac_ext=cc
2774 ac_cpp='$CXXCPP $CPPFLAGS'
2775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2778 if test -n "$ac_tool_prefix"; then
2779   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2780   do
2781     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2782 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2783 echo "$as_me:$LINENO: checking for $ac_word" >&5
2784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2785 if test "${ac_cv_prog_CXX+set}" = set; then
2786   echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788   if test -n "$CXX"; then
2789   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794   IFS=$as_save_IFS
2795   test -z "$as_dir" && as_dir=.
2796   for ac_exec_ext in '' $ac_executable_extensions; do
2797   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2798     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800     break 2
2801   fi
2802 done
2803 done
2804
2805 fi
2806 fi
2807 CXX=$ac_cv_prog_CXX
2808 if test -n "$CXX"; then
2809   echo "$as_me:$LINENO: result: $CXX" >&5
2810 echo "${ECHO_T}$CXX" >&6
2811 else
2812   echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6
2814 fi
2815
2816     test -n "$CXX" && break
2817   done
2818 fi
2819 if test -z "$CXX"; then
2820   ac_ct_CXX=$CXX
2821   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2822 do
2823   # Extract the first word of "$ac_prog", so it can be a program name with args.
2824 set dummy $ac_prog; ac_word=$2
2825 echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2827 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2828   echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830   if test -n "$ac_ct_CXX"; then
2831   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2835 do
2836   IFS=$as_save_IFS
2837   test -z "$as_dir" && as_dir=.
2838   for ac_exec_ext in '' $ac_executable_extensions; do
2839   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2840     ac_cv_prog_ac_ct_CXX="$ac_prog"
2841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842     break 2
2843   fi
2844 done
2845 done
2846
2847 fi
2848 fi
2849 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2850 if test -n "$ac_ct_CXX"; then
2851   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2852 echo "${ECHO_T}$ac_ct_CXX" >&6
2853 else
2854   echo "$as_me:$LINENO: result: no" >&5
2855 echo "${ECHO_T}no" >&6
2856 fi
2857
2858   test -n "$ac_ct_CXX" && break
2859 done
2860 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2861
2862   CXX=$ac_ct_CXX
2863 fi
2864
2865
2866 # Provide some information about the compiler.
2867 echo "$as_me:$LINENO:" \
2868      "checking for C++ compiler version" >&5
2869 ac_compiler=`set X $ac_compile; echo $2`
2870 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2871   (eval $ac_compiler --version </dev/null >&5) 2>&5
2872   ac_status=$?
2873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874   (exit $ac_status); }
2875 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2876   (eval $ac_compiler -v </dev/null >&5) 2>&5
2877   ac_status=$?
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); }
2880 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2881   (eval $ac_compiler -V </dev/null >&5) 2>&5
2882   ac_status=$?
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); }
2885
2886 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2887 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2888 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2889   echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891   cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h.  */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h.  */
2897
2898 int
2899 main ()
2900 {
2901 #ifndef __GNUC__
2902        choke me
2903 #endif
2904
2905   ;
2906   return 0;
2907 }
2908 _ACEOF
2909 rm -f conftest.$ac_objext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2911   (eval $ac_compile) 2>conftest.er1
2912   ac_status=$?
2913   grep -v '^ *+' conftest.er1 >conftest.err
2914   rm -f conftest.er1
2915   cat conftest.err >&5
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); } &&
2918          { ac_try='test -z "$ac_cxx_werror_flag"
2919                          || test ! -s conftest.err'
2920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921   (eval $ac_try) 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }; } &&
2925          { ac_try='test -s conftest.$ac_objext'
2926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927   (eval $ac_try) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }; }; then
2931   ac_compiler_gnu=yes
2932 else
2933   echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2935
2936 ac_compiler_gnu=no
2937 fi
2938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2939 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2940
2941 fi
2942 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2943 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2944 GXX=`test $ac_compiler_gnu = yes && echo yes`
2945 ac_test_CXXFLAGS=${CXXFLAGS+set}
2946 ac_save_CXXFLAGS=$CXXFLAGS
2947 CXXFLAGS="-g"
2948 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2949 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2950 if test "${ac_cv_prog_cxx_g+set}" = set; then
2951   echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953   cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h.  */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h.  */
2959
2960 int
2961 main ()
2962 {
2963
2964   ;
2965   return 0;
2966 }
2967 _ACEOF
2968 rm -f conftest.$ac_objext
2969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2970   (eval $ac_compile) 2>conftest.er1
2971   ac_status=$?
2972   grep -v '^ *+' conftest.er1 >conftest.err
2973   rm -f conftest.er1
2974   cat conftest.err >&5
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); } &&
2977          { ac_try='test -z "$ac_cxx_werror_flag"
2978                          || test ! -s conftest.err'
2979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980   (eval $ac_try) 2>&5
2981   ac_status=$?
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); }; } &&
2984          { ac_try='test -s conftest.$ac_objext'
2985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986   (eval $ac_try) 2>&5
2987   ac_status=$?
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); }; }; then
2990   ac_cv_prog_cxx_g=yes
2991 else
2992   echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995 ac_cv_prog_cxx_g=no
2996 fi
2997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2998 fi
2999 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3000 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3001 if test "$ac_test_CXXFLAGS" = set; then
3002   CXXFLAGS=$ac_save_CXXFLAGS
3003 elif test $ac_cv_prog_cxx_g = yes; then
3004   if test "$GXX" = yes; then
3005     CXXFLAGS="-g -O2"
3006   else
3007     CXXFLAGS="-g"
3008   fi
3009 else
3010   if test "$GXX" = yes; then
3011     CXXFLAGS="-O2"
3012   else
3013     CXXFLAGS=
3014   fi
3015 fi
3016 for ac_declaration in \
3017    '' \
3018    'extern "C" void std::exit (int) throw (); using std::exit;' \
3019    'extern "C" void std::exit (int); using std::exit;' \
3020    'extern "C" void exit (int) throw ();' \
3021    'extern "C" void exit (int);' \
3022    'void exit (int);'
3023 do
3024   cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030 $ac_declaration
3031 #include <stdlib.h>
3032 int
3033 main ()
3034 {
3035 exit (42);
3036   ;
3037   return 0;
3038 }
3039 _ACEOF
3040 rm -f conftest.$ac_objext
3041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3042   (eval $ac_compile) 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } &&
3049          { ac_try='test -z "$ac_cxx_werror_flag"
3050                          || test ! -s conftest.err'
3051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052   (eval $ac_try) 2>&5
3053   ac_status=$?
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); }; } &&
3056          { ac_try='test -s conftest.$ac_objext'
3057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058   (eval $ac_try) 2>&5
3059   ac_status=$?
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); }; }; then
3062   :
3063 else
3064   echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3066
3067 continue
3068 fi
3069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3070   cat >conftest.$ac_ext <<_ACEOF
3071 /* confdefs.h.  */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h.  */
3076 $ac_declaration
3077 int
3078 main ()
3079 {
3080 exit (42);
3081   ;
3082   return 0;
3083 }
3084 _ACEOF
3085 rm -f conftest.$ac_objext
3086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3087   (eval $ac_compile) 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } &&
3094          { ac_try='test -z "$ac_cxx_werror_flag"
3095                          || test ! -s conftest.err'
3096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097   (eval $ac_try) 2>&5
3098   ac_status=$?
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); }; } &&
3101          { ac_try='test -s conftest.$ac_objext'
3102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103   (eval $ac_try) 2>&5
3104   ac_status=$?
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); }; }; then
3107   break
3108 else
3109   echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112 fi
3113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3114 done
3115 rm -f conftest*
3116 if test -n "$ac_declaration"; then
3117   echo '#ifdef __cplusplus' >>confdefs.h
3118   echo $ac_declaration      >>confdefs.h
3119   echo '#endif'             >>confdefs.h
3120 fi
3121
3122 ac_ext=c
3123 ac_cpp='$CPP $CPPFLAGS'
3124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3127
3128 depcc="$CXX"  am_compiler_list=
3129
3130 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3131 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3132 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3133   echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
3135   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3136   # We make a subdir and do the tests there.  Otherwise we can end up
3137   # making bogus files that we don't know about and never remove.  For
3138   # instance it was reported that on HP-UX the gcc test will end up
3139   # making a dummy file named `D' -- because `-MD' means `put the output
3140   # in D'.
3141   mkdir conftest.dir
3142   # Copy depcomp to subdir because otherwise we won't find it if we're
3143   # using a relative directory.
3144   cp "$am_depcomp" conftest.dir
3145   cd conftest.dir
3146
3147   am_cv_CXX_dependencies_compiler_type=none
3148   if test "$am_compiler_list" = ""; then
3149      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3150   fi
3151   for depmode in $am_compiler_list; do
3152     # We need to recreate these files for each test, as the compiler may
3153     # overwrite some of them when testing with obscure command lines.
3154     # This happens at least with the AIX C compiler.
3155     echo '#include "conftest.h"' > conftest.c
3156     echo 'int i;' > conftest.h
3157     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3158
3159     case $depmode in
3160     nosideeffect)
3161       # after this tag, mechanisms are not by side-effect, so they'll
3162       # only be used when explicitly requested
3163       if test "x$enable_dependency_tracking" = xyes; then
3164         continue
3165       else
3166         break
3167       fi
3168       ;;
3169     none) break ;;
3170     esac
3171     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3172     # mode.  It turns out that the SunPro C++ compiler does not properly
3173     # handle `-M -o', and we need to detect this.
3174     if depmode=$depmode \
3175        source=conftest.c object=conftest.o \
3176        depfile=conftest.Po tmpdepfile=conftest.TPo \
3177        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3178        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3179        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3180       am_cv_CXX_dependencies_compiler_type=$depmode
3181       break
3182     fi
3183   done
3184
3185   cd ..
3186   rm -rf conftest.dir
3187 else
3188   am_cv_CXX_dependencies_compiler_type=none
3189 fi
3190
3191 fi
3192 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3193 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3194 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3195
3196
3197 ac_ext=c
3198 ac_cpp='$CPP $CPPFLAGS'
3199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3203 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3204 # On Suns, sometimes $CPP names a directory.
3205 if test -n "$CPP" && test -d "$CPP"; then
3206   CPP=
3207 fi
3208 if test -z "$CPP"; then
3209   if test "${ac_cv_prog_CPP+set}" = set; then
3210   echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212       # Double quotes because CPP needs to be expanded
3213     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3214     do
3215       ac_preproc_ok=false
3216 for ac_c_preproc_warn_flag in '' yes
3217 do
3218   # Use a header file that comes with gcc, so configuring glibc
3219   # with a fresh cross-compiler works.
3220   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3221   # <limits.h> exists even on freestanding compilers.
3222   # On the NeXT, cc -E runs the code through the compiler's parser,
3223   # not just through cpp. "Syntax error" is here to catch this case.
3224   cat >conftest.$ac_ext <<_ACEOF
3225 /* confdefs.h.  */
3226 _ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h.  */
3230 #ifdef __STDC__
3231 # include <limits.h>
3232 #else
3233 # include <assert.h>
3234 #endif
3235                      Syntax error
3236 _ACEOF
3237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3238   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3239   ac_status=$?
3240   grep -v '^ *+' conftest.er1 >conftest.err
3241   rm -f conftest.er1
3242   cat conftest.err >&5
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); } >/dev/null; then
3245   if test -s conftest.err; then
3246     ac_cpp_err=$ac_c_preproc_warn_flag
3247     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3248   else
3249     ac_cpp_err=
3250   fi
3251 else
3252   ac_cpp_err=yes
3253 fi
3254 if test -z "$ac_cpp_err"; then
3255   :
3256 else
3257   echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260   # Broken: fails on valid input.
3261 continue
3262 fi
3263 rm -f conftest.err conftest.$ac_ext
3264
3265   # OK, works on sane cases.  Now check whether non-existent headers
3266   # can be detected and how.
3267   cat >conftest.$ac_ext <<_ACEOF
3268 /* confdefs.h.  */
3269 _ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h.  */
3273 #include <ac_nonexistent.h>
3274 _ACEOF
3275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3276   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3277   ac_status=$?
3278   grep -v '^ *+' conftest.er1 >conftest.err
3279   rm -f conftest.er1
3280   cat conftest.err >&5
3281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282   (exit $ac_status); } >/dev/null; then
3283   if test -s conftest.err; then
3284     ac_cpp_err=$ac_c_preproc_warn_flag
3285     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3286   else
3287     ac_cpp_err=
3288   fi
3289 else
3290   ac_cpp_err=yes
3291 fi
3292 if test -z "$ac_cpp_err"; then
3293   # Broken: success on invalid input.
3294 continue
3295 else
3296   echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3298
3299   # Passes both tests.
3300 ac_preproc_ok=:
3301 break
3302 fi
3303 rm -f conftest.err conftest.$ac_ext
3304
3305 done
3306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3307 rm -f conftest.err conftest.$ac_ext
3308 if $ac_preproc_ok; then
3309   break
3310 fi
3311
3312     done
3313     ac_cv_prog_CPP=$CPP
3314
3315 fi
3316   CPP=$ac_cv_prog_CPP
3317 else
3318   ac_cv_prog_CPP=$CPP
3319 fi
3320 echo "$as_me:$LINENO: result: $CPP" >&5
3321 echo "${ECHO_T}$CPP" >&6
3322 ac_preproc_ok=false
3323 for ac_c_preproc_warn_flag in '' yes
3324 do
3325   # Use a header file that comes with gcc, so configuring glibc
3326   # with a fresh cross-compiler works.
3327   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3328   # <limits.h> exists even on freestanding compilers.
3329   # On the NeXT, cc -E runs the code through the compiler's parser,
3330   # not just through cpp. "Syntax error" is here to catch this case.
3331   cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h.  */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h.  */
3337 #ifdef __STDC__
3338 # include <limits.h>
3339 #else
3340 # include <assert.h>
3341 #endif
3342                      Syntax error
3343 _ACEOF
3344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3345   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3346   ac_status=$?
3347   grep -v '^ *+' conftest.er1 >conftest.err
3348   rm -f conftest.er1
3349   cat conftest.err >&5
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); } >/dev/null; then
3352   if test -s conftest.err; then
3353     ac_cpp_err=$ac_c_preproc_warn_flag
3354     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3355   else
3356     ac_cpp_err=
3357   fi
3358 else
3359   ac_cpp_err=yes
3360 fi
3361 if test -z "$ac_cpp_err"; then
3362   :
3363 else
3364   echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367   # Broken: fails on valid input.
3368 continue
3369 fi
3370 rm -f conftest.err conftest.$ac_ext
3371
3372   # OK, works on sane cases.  Now check whether non-existent headers
3373   # can be detected and how.
3374   cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h.  */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h.  */
3380 #include <ac_nonexistent.h>
3381 _ACEOF
3382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3383   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3384   ac_status=$?
3385   grep -v '^ *+' conftest.er1 >conftest.err
3386   rm -f conftest.er1
3387   cat conftest.err >&5
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); } >/dev/null; then
3390   if test -s conftest.err; then
3391     ac_cpp_err=$ac_c_preproc_warn_flag
3392     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3393   else
3394     ac_cpp_err=
3395   fi
3396 else
3397   ac_cpp_err=yes
3398 fi
3399 if test -z "$ac_cpp_err"; then
3400   # Broken: success on invalid input.
3401 continue
3402 else
3403   echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406   # Passes both tests.
3407 ac_preproc_ok=:
3408 break
3409 fi
3410 rm -f conftest.err conftest.$ac_ext
3411
3412 done
3413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3414 rm -f conftest.err conftest.$ac_ext
3415 if $ac_preproc_ok; then
3416   :
3417 else
3418   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3419 See \`config.log' for more details." >&5
3420 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3421 See \`config.log' for more details." >&2;}
3422    { (exit 1); exit 1; }; }
3423 fi
3424
3425 ac_ext=c
3426 ac_cpp='$CPP $CPPFLAGS'
3427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430
3431
3432 for ac_prog in flex lex
3433 do
3434   # Extract the first word of "$ac_prog", so it can be a program name with args.
3435 set dummy $ac_prog; ac_word=$2
3436 echo "$as_me:$LINENO: checking for $ac_word" >&5
3437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3438 if test "${ac_cv_prog_LEX+set}" = set; then
3439   echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441   if test -n "$LEX"; then
3442   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3443 else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3446 do
3447   IFS=$as_save_IFS
3448   test -z "$as_dir" && as_dir=.
3449   for ac_exec_ext in '' $ac_executable_extensions; do
3450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451     ac_cv_prog_LEX="$ac_prog"
3452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3453     break 2
3454   fi
3455 done
3456 done
3457
3458 fi
3459 fi
3460 LEX=$ac_cv_prog_LEX
3461 if test -n "$LEX"; then
3462   echo "$as_me:$LINENO: result: $LEX" >&5
3463 echo "${ECHO_T}$LEX" >&6
3464 else
3465   echo "$as_me:$LINENO: result: no" >&5
3466 echo "${ECHO_T}no" >&6
3467 fi
3468
3469   test -n "$LEX" && break
3470 done
3471 test -n "$LEX" || LEX=":"
3472
3473 if test -z "$LEXLIB"
3474 then
3475   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3476 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3477 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3478   echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480   ac_check_lib_save_LIBS=$LIBS
3481 LIBS="-lfl  $LIBS"
3482 cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h.  */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h.  */
3488
3489 /* Override any gcc2 internal prototype to avoid an error.  */
3490 #ifdef __cplusplus
3491 extern "C"
3492 #endif
3493 /* We use char because int might match the return type of a gcc2
3494    builtin and then its argument prototype would still apply.  */
3495 char yywrap ();
3496 int
3497 main ()
3498 {
3499 yywrap ();
3500   ;
3501   return 0;
3502 }
3503 _ACEOF
3504 rm -f conftest.$ac_objext conftest$ac_exeext
3505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3506   (eval $ac_link) 2>conftest.er1
3507   ac_status=$?
3508   grep -v '^ *+' conftest.er1 >conftest.err
3509   rm -f conftest.er1
3510   cat conftest.err >&5
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); } &&
3513          { ac_try='test -z "$ac_c_werror_flag"
3514                          || test ! -s conftest.err'
3515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516   (eval $ac_try) 2>&5
3517   ac_status=$?
3518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519   (exit $ac_status); }; } &&
3520          { ac_try='test -s conftest$ac_exeext'
3521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522   (eval $ac_try) 2>&5
3523   ac_status=$?
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); }; }; then
3526   ac_cv_lib_fl_yywrap=yes
3527 else
3528   echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3530
3531 ac_cv_lib_fl_yywrap=no
3532 fi
3533 rm -f conftest.err conftest.$ac_objext \
3534       conftest$ac_exeext conftest.$ac_ext
3535 LIBS=$ac_check_lib_save_LIBS
3536 fi
3537 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3538 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3539 if test $ac_cv_lib_fl_yywrap = yes; then
3540   LEXLIB="-lfl"
3541 else
3542   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3543 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3544 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547   ac_check_lib_save_LIBS=$LIBS
3548 LIBS="-ll  $LIBS"
3549 cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h.  */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h.  */
3555
3556 /* Override any gcc2 internal prototype to avoid an error.  */
3557 #ifdef __cplusplus
3558 extern "C"
3559 #endif
3560 /* We use char because int might match the return type of a gcc2
3561    builtin and then its argument prototype would still apply.  */
3562 char yywrap ();
3563 int
3564 main ()
3565 {
3566 yywrap ();
3567   ;
3568   return 0;
3569 }
3570 _ACEOF
3571 rm -f conftest.$ac_objext conftest$ac_exeext
3572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3573   (eval $ac_link) 2>conftest.er1
3574   ac_status=$?
3575   grep -v '^ *+' conftest.er1 >conftest.err
3576   rm -f conftest.er1
3577   cat conftest.err >&5
3578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579   (exit $ac_status); } &&
3580          { ac_try='test -z "$ac_c_werror_flag"
3581                          || test ! -s conftest.err'
3582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583   (eval $ac_try) 2>&5
3584   ac_status=$?
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); }; } &&
3587          { ac_try='test -s conftest$ac_exeext'
3588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589   (eval $ac_try) 2>&5
3590   ac_status=$?
3591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592   (exit $ac_status); }; }; then
3593   ac_cv_lib_l_yywrap=yes
3594 else
3595   echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598 ac_cv_lib_l_yywrap=no
3599 fi
3600 rm -f conftest.err conftest.$ac_objext \
3601       conftest$ac_exeext conftest.$ac_ext
3602 LIBS=$ac_check_lib_save_LIBS
3603 fi
3604 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3605 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3606 if test $ac_cv_lib_l_yywrap = yes; then
3607   LEXLIB="-ll"
3608 fi
3609
3610 fi
3611
3612 fi
3613
3614 if test "x$LEX" != "x:"; then
3615   echo "$as_me:$LINENO: checking lex output file root" >&5
3616 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3617 if test "${ac_cv_prog_lex_root+set}" = set; then
3618   echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620   # The minimal lex program is just a single line: %%.  But some broken lexes
3621 # (Solaris, I think it was) want two %% lines, so accommodate them.
3622 cat >conftest.l <<_ACEOF
3623 %%
3624 %%
3625 _ACEOF
3626 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3627   (eval $LEX conftest.l) 2>&5
3628   ac_status=$?
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); }
3631 if test -f lex.yy.c; then
3632   ac_cv_prog_lex_root=lex.yy
3633 elif test -f lexyy.c; then
3634   ac_cv_prog_lex_root=lexyy
3635 else
3636   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3637 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3638    { (exit 1); exit 1; }; }
3639 fi
3640 fi
3641 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3642 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3643 rm -f conftest.l
3644 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3645
3646 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3647 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3648 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3649   echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651   # POSIX says lex can declare yytext either as a pointer or an array; the
3652 # default is implementation-dependent. Figure out which it is, since
3653 # not all implementations provide the %pointer and %array declarations.
3654 ac_cv_prog_lex_yytext_pointer=no
3655 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3656 ac_save_LIBS=$LIBS
3657 LIBS="$LIBS $LEXLIB"
3658 cat >conftest.$ac_ext <<_ACEOF
3659 `cat $LEX_OUTPUT_ROOT.c`
3660 _ACEOF
3661 rm -f conftest.$ac_objext conftest$ac_exeext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3663   (eval $ac_link) 2>conftest.er1
3664   ac_status=$?
3665   grep -v '^ *+' conftest.er1 >conftest.err
3666   rm -f conftest.er1
3667   cat conftest.err >&5
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); } &&
3670          { ac_try='test -z "$ac_c_werror_flag"
3671                          || test ! -s conftest.err'
3672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673   (eval $ac_try) 2>&5
3674   ac_status=$?
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); }; } &&
3677          { ac_try='test -s conftest$ac_exeext'
3678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679   (eval $ac_try) 2>&5
3680   ac_status=$?
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); }; }; then
3683   ac_cv_prog_lex_yytext_pointer=yes
3684 else
3685   echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688 fi
3689 rm -f conftest.err conftest.$ac_objext \
3690       conftest$ac_exeext conftest.$ac_ext
3691 LIBS=$ac_save_LIBS
3692 rm -f "${LEX_OUTPUT_ROOT}.c"
3693
3694 fi
3695 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3696 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3697 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3698
3699 cat >>confdefs.h <<\_ACEOF
3700 #define YYTEXT_POINTER 1
3701 _ACEOF
3702
3703 fi
3704
3705 fi
3706 if test "$LEX" = :; then
3707   LEX=${am_missing_run}flex
3708 fi
3709 # Find a good install program.  We prefer a C program (faster),
3710 # so one script is as good as another.  But avoid the broken or
3711 # incompatible versions:
3712 # SysV /etc/install, /usr/sbin/install
3713 # SunOS /usr/etc/install
3714 # IRIX /sbin/install
3715 # AIX /bin/install
3716 # AmigaOS /C/install, which installs bootblocks on floppy discs
3717 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3718 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3719 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3720 # OS/2's system install, which has a completely different semantic
3721 # ./install, which can be erroneously created by make from ./install.sh.
3722 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3723 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3724 if test -z "$INSTALL"; then
3725 if test "${ac_cv_path_install+set}" = set; then
3726   echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 for as_dir in $PATH
3730 do
3731   IFS=$as_save_IFS
3732   test -z "$as_dir" && as_dir=.
3733   # Account for people who put trailing slashes in PATH elements.
3734 case $as_dir/ in
3735   ./ | .// | /cC/* | \
3736   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3737   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3738   /usr/ucb/* ) ;;
3739   *)
3740     # OSF1 and SCO ODT 3.0 have their own names for install.
3741     # Don't use installbsd from OSF since it installs stuff as root
3742     # by default.
3743     for ac_prog in ginstall scoinst install; do
3744       for ac_exec_ext in '' $ac_executable_extensions; do
3745         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3746           if test $ac_prog = install &&
3747             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3748             # AIX install.  It has an incompatible calling convention.
3749             :
3750           elif test $ac_prog = install &&
3751             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3752             # program-specific install script used by HP pwplus--don't use.
3753             :
3754           else
3755             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3756             break 3
3757           fi
3758         fi
3759       done
3760     done
3761     ;;
3762 esac
3763 done
3764
3765
3766 fi
3767   if test "${ac_cv_path_install+set}" = set; then
3768     INSTALL=$ac_cv_path_install
3769   else
3770     # As a last resort, use the slow shell script.  We don't cache a
3771     # path for INSTALL within a source directory, because that will
3772     # break other packages using the cache if that directory is
3773     # removed, or if the path is relative.
3774     INSTALL=$ac_install_sh
3775   fi
3776 fi
3777 echo "$as_me:$LINENO: result: $INSTALL" >&5
3778 echo "${ECHO_T}$INSTALL" >&6
3779
3780 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3781 # It thinks the first close brace ends the variable substitution.
3782 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3783
3784 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3785
3786 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3787
3788 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3789 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3790 LN_S=$as_ln_s
3791 if test "$LN_S" = "ln -s"; then
3792   echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3794 else
3795   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3796 echo "${ECHO_T}no, using $LN_S" >&6
3797 fi
3798
3799 if test -n "$ac_tool_prefix"; then
3800   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3801 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3802 echo "$as_me:$LINENO: checking for $ac_word" >&5
3803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3804 if test "${ac_cv_prog_RANLIB+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807   if test -n "$RANLIB"; then
3808   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3812 do
3813   IFS=$as_save_IFS
3814   test -z "$as_dir" && as_dir=.
3815   for ac_exec_ext in '' $ac_executable_extensions; do
3816   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3819     break 2
3820   fi
3821 done
3822 done
3823
3824 fi
3825 fi
3826 RANLIB=$ac_cv_prog_RANLIB
3827 if test -n "$RANLIB"; then
3828   echo "$as_me:$LINENO: result: $RANLIB" >&5
3829 echo "${ECHO_T}$RANLIB" >&6
3830 else
3831   echo "$as_me:$LINENO: result: no" >&5
3832 echo "${ECHO_T}no" >&6
3833 fi
3834
3835 fi
3836 if test -z "$ac_cv_prog_RANLIB"; then
3837   ac_ct_RANLIB=$RANLIB
3838   # Extract the first word of "ranlib", so it can be a program name with args.
3839 set dummy ranlib; ac_word=$2
3840 echo "$as_me:$LINENO: checking for $ac_word" >&5
3841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3842 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3843   echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845   if test -n "$ac_ct_RANLIB"; then
3846   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH
3850 do
3851   IFS=$as_save_IFS
3852   test -z "$as_dir" && as_dir=.
3853   for ac_exec_ext in '' $ac_executable_extensions; do
3854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855     ac_cv_prog_ac_ct_RANLIB="ranlib"
3856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3857     break 2
3858   fi
3859 done
3860 done
3861
3862   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3863 fi
3864 fi
3865 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3866 if test -n "$ac_ct_RANLIB"; then
3867   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3868 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3869 else
3870   echo "$as_me:$LINENO: result: no" >&5
3871 echo "${ECHO_T}no" >&6
3872 fi
3873
3874   RANLIB=$ac_ct_RANLIB
3875 else
3876   RANLIB="$ac_cv_prog_RANLIB"
3877 fi
3878
3879 for ac_prog in 'bison -y' byacc
3880 do
3881   # Extract the first word of "$ac_prog", so it can be a program name with args.
3882 set dummy $ac_prog; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_YACC+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   if test -n "$YACC"; then
3889   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894   IFS=$as_save_IFS
3895   test -z "$as_dir" && as_dir=.
3896   for ac_exec_ext in '' $ac_executable_extensions; do
3897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898     ac_cv_prog_YACC="$ac_prog"
3899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900     break 2
3901   fi
3902 done
3903 done
3904
3905 fi
3906 fi
3907 YACC=$ac_cv_prog_YACC
3908 if test -n "$YACC"; then
3909   echo "$as_me:$LINENO: result: $YACC" >&5
3910 echo "${ECHO_T}$YACC" >&6
3911 else
3912   echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3914 fi
3915
3916   test -n "$YACC" && break
3917 done
3918 test -n "$YACC" || YACC="yacc"
3919
3920 for ac_prog in gawk mawk nawk awk
3921 do
3922   # Extract the first word of "$ac_prog", so it can be a program name with args.
3923 set dummy $ac_prog; ac_word=$2
3924 echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_AWK+set}" = set; then
3927   echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929   if test -n "$AWK"; then
3930   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3934 do
3935   IFS=$as_save_IFS
3936   test -z "$as_dir" && as_dir=.
3937   for ac_exec_ext in '' $ac_executable_extensions; do
3938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939     ac_cv_prog_AWK="$ac_prog"
3940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941     break 2
3942   fi
3943 done
3944 done
3945
3946 fi
3947 fi
3948 AWK=$ac_cv_prog_AWK
3949 if test -n "$AWK"; then
3950   echo "$as_me:$LINENO: result: $AWK" >&5
3951 echo "${ECHO_T}$AWK" >&6
3952 else
3953   echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3955 fi
3956
3957   test -n "$AWK" && break
3958 done
3959
3960
3961 # Extract the first word of "xml2-config", so it can be a program name with args.
3962 set dummy xml2-config; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_path_XML_CONFIG+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   case $XML_CONFIG in
3969   [\\/]* | ?:[\\/]*)
3970   ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
3971   ;;
3972   *)
3973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3975 do
3976   IFS=$as_save_IFS
3977   test -z "$as_dir" && as_dir=.
3978   for ac_exec_ext in '' $ac_executable_extensions; do
3979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980     ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982     break 2
3983   fi
3984 done
3985 done
3986
3987   test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
3988   ;;
3989 esac
3990 fi
3991 XML_CONFIG=$ac_cv_path_XML_CONFIG
3992
3993 if test -n "$XML_CONFIG"; then
3994   echo "$as_me:$LINENO: result: $XML_CONFIG" >&5
3995 echo "${ECHO_T}$XML_CONFIG" >&6
3996 else
3997   echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
3999 fi
4000
4001
4002 if test $XML_CONFIG = "no"
4003 then
4004    echo "XML library not found (see http://xmlsoft.org/)."
4005    exit 1;
4006 fi
4007
4008
4009
4010 echo "$as_me:$LINENO: checking for X" >&5
4011 echo $ECHO_N "checking for X... $ECHO_C" >&6
4012
4013
4014 # Check whether --with-x or --without-x was given.
4015 if test "${with_x+set}" = set; then
4016   withval="$with_x"
4017
4018 fi;
4019 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4020 if test "x$with_x" = xno; then
4021   # The user explicitly disabled X.
4022   have_x=disabled
4023 else
4024   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4025     # Both variables are already set.
4026     have_x=yes
4027   else
4028     if test "${ac_cv_have_x+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031   # One or both of the vars are not set, and there is no cached value.
4032 ac_x_includes=no ac_x_libraries=no
4033 rm -fr conftest.dir
4034 if mkdir conftest.dir; then
4035   cd conftest.dir
4036   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4037   cat >Imakefile <<'_ACEOF'
4038 acfindx:
4039         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4040 _ACEOF
4041   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4042     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4043     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4044     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4045     for ac_extension in a so sl; do
4046       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4047          test -f $ac_im_libdir/libX11.$ac_extension; then
4048         ac_im_usrlibdir=$ac_im_libdir; break
4049       fi
4050     done
4051     # Screen out bogus values from the imake configuration.  They are
4052     # bogus both because they are the default anyway, and because
4053     # using them would break gcc on systems where it needs fixed includes.
4054     case $ac_im_incroot in
4055         /usr/include) ;;
4056         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4057     esac
4058     case $ac_im_usrlibdir in
4059         /usr/lib | /lib) ;;
4060         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4061     esac
4062   fi
4063   cd ..
4064   rm -fr conftest.dir
4065 fi
4066
4067 # Standard set of common directories for X headers.
4068 # Check X11 before X11Rn because it is often a symlink to the current release.
4069 ac_x_header_dirs='
4070 /usr/X11/include
4071 /usr/X11R6/include
4072 /usr/X11R5/include
4073 /usr/X11R4/include
4074
4075 /usr/include/X11
4076 /usr/include/X11R6
4077 /usr/include/X11R5
4078 /usr/include/X11R4
4079
4080 /usr/local/X11/include
4081 /usr/local/X11R6/include
4082 /usr/local/X11R5/include
4083 /usr/local/X11R4/include
4084
4085 /usr/local/include/X11
4086 /usr/local/include/X11R6
4087 /usr/local/include/X11R5
4088 /usr/local/include/X11R4
4089
4090 /usr/X386/include
4091 /usr/x386/include
4092 /usr/XFree86/include/X11
4093
4094 /usr/include
4095 /usr/local/include
4096 /usr/unsupported/include
4097 /usr/athena/include
4098 /usr/local/x11r5/include
4099 /usr/lpp/Xamples/include
4100
4101 /usr/openwin/include
4102 /usr/openwin/share/include'
4103
4104 if test "$ac_x_includes" = no; then
4105   # Guess where to find include files, by looking for Intrinsic.h.
4106   # First, try using that file with no special directory specified.
4107   cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h.  */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h.  */
4113 #include <X11/Intrinsic.h>
4114 _ACEOF
4115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4116   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4117   ac_status=$?
4118   grep -v '^ *+' conftest.er1 >conftest.err
4119   rm -f conftest.er1
4120   cat conftest.err >&5
4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); } >/dev/null; then
4123   if test -s conftest.err; then
4124     ac_cpp_err=$ac_c_preproc_warn_flag
4125     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4126   else
4127     ac_cpp_err=
4128   fi
4129 else
4130   ac_cpp_err=yes
4131 fi
4132 if test -z "$ac_cpp_err"; then
4133   # We can compile using X headers with no special include directory.
4134 ac_x_includes=
4135 else
4136   echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4138
4139   for ac_dir in $ac_x_header_dirs; do
4140   if test -r "$ac_dir/X11/Intrinsic.h"; then
4141     ac_x_includes=$ac_dir
4142     break
4143   fi
4144 done
4145 fi
4146 rm -f conftest.err conftest.$ac_ext
4147 fi # $ac_x_includes = no
4148
4149 if test "$ac_x_libraries" = no; then
4150   # Check for the libraries.
4151   # See if we find them without any special options.
4152   # Don't add to $LIBS permanently.
4153   ac_save_LIBS=$LIBS
4154   LIBS="-lXt $LIBS"
4155   cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h.  */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h.  */
4161 #include <X11/Intrinsic.h>
4162 int
4163 main ()
4164 {
4165 XtMalloc (0)
4166   ;
4167   return 0;
4168 }
4169 _ACEOF
4170 rm -f conftest.$ac_objext conftest$ac_exeext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4172   (eval $ac_link) 2>conftest.er1
4173   ac_status=$?
4174   grep -v '^ *+' conftest.er1 >conftest.err
4175   rm -f conftest.er1
4176   cat conftest.err >&5
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); } &&
4179          { ac_try='test -z "$ac_c_werror_flag"
4180                          || test ! -s conftest.err'
4181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182   (eval $ac_try) 2>&5
4183   ac_status=$?
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); }; } &&
4186          { ac_try='test -s conftest$ac_exeext'
4187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188   (eval $ac_try) 2>&5
4189   ac_status=$?
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); }; }; then
4192   LIBS=$ac_save_LIBS
4193 # We can link X programs with no special library path.
4194 ac_x_libraries=
4195 else
4196   echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4198
4199 LIBS=$ac_save_LIBS
4200 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4201 do
4202   # Don't even attempt the hair of trying to link an X program!
4203   for ac_extension in a so sl; do
4204     if test -r $ac_dir/libXt.$ac_extension; then
4205       ac_x_libraries=$ac_dir
4206       break 2
4207     fi
4208   done
4209 done
4210 fi
4211 rm -f conftest.err conftest.$ac_objext \
4212       conftest$ac_exeext conftest.$ac_ext
4213 fi # $ac_x_libraries = no
4214
4215 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4216   # Didn't find X anywhere.  Cache the known absence of X.
4217   ac_cv_have_x="have_x=no"
4218 else
4219   # Record where we found X for the cache.
4220   ac_cv_have_x="have_x=yes \
4221                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4222 fi
4223 fi
4224
4225   fi
4226   eval "$ac_cv_have_x"
4227 fi # $with_x != no
4228
4229 if test "$have_x" != yes; then
4230   echo "$as_me:$LINENO: result: $have_x" >&5
4231 echo "${ECHO_T}$have_x" >&6
4232   no_x=yes
4233 else
4234   # If each of the values was on the command line, it overrides each guess.
4235   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4236   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4237   # Update the cache value to reflect the command line values.
4238   ac_cv_have_x="have_x=yes \
4239                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4240   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4241 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4242 fi
4243
4244 if test "$no_x" = yes; then
4245   # Not all programs may use this symbol, but it does not hurt to define it.
4246
4247 cat >>confdefs.h <<\_ACEOF
4248 #define X_DISPLAY_MISSING 1
4249 _ACEOF
4250
4251   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4252 else
4253   if test -n "$x_includes"; then
4254     X_CFLAGS="$X_CFLAGS -I$x_includes"
4255   fi
4256
4257   # It would also be nice to do this for all -L options, not just this one.
4258   if test -n "$x_libraries"; then
4259     X_LIBS="$X_LIBS -L$x_libraries"
4260     # For Solaris; some versions of Sun CC require a space after -R and
4261     # others require no space.  Words are not sufficient . . . .
4262     case `(uname -sr) 2>/dev/null` in
4263     "SunOS 5"*)
4264       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4265 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4266       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4267       cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h.  */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h.  */
4273
4274 int
4275 main ()
4276 {
4277
4278   ;
4279   return 0;
4280 }
4281 _ACEOF
4282 rm -f conftest.$ac_objext conftest$ac_exeext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284   (eval $ac_link) 2>conftest.er1
4285   ac_status=$?
4286   grep -v '^ *+' conftest.er1 >conftest.err
4287   rm -f conftest.er1
4288   cat conftest.err >&5
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); } &&
4291          { ac_try='test -z "$ac_c_werror_flag"
4292                          || test ! -s conftest.err'
4293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294   (eval $ac_try) 2>&5
4295   ac_status=$?
4296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297   (exit $ac_status); }; } &&
4298          { ac_try='test -s conftest$ac_exeext'
4299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300   (eval $ac_try) 2>&5
4301   ac_status=$?
4302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303   (exit $ac_status); }; }; then
4304   ac_R_nospace=yes
4305 else
4306   echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4308
4309 ac_R_nospace=no
4310 fi
4311 rm -f conftest.err conftest.$ac_objext \
4312       conftest$ac_exeext conftest.$ac_ext
4313       if test $ac_R_nospace = yes; then
4314         echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4316         X_LIBS="$X_LIBS -R$x_libraries"
4317       else
4318         LIBS="$ac_xsave_LIBS -R $x_libraries"
4319         cat >conftest.$ac_ext <<_ACEOF
4320 /* confdefs.h.  */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h.  */
4325
4326 int
4327 main ()
4328 {
4329
4330   ;
4331   return 0;
4332 }
4333 _ACEOF
4334 rm -f conftest.$ac_objext conftest$ac_exeext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4336   (eval $ac_link) 2>conftest.er1
4337   ac_status=$?
4338   grep -v '^ *+' conftest.er1 >conftest.err
4339   rm -f conftest.er1
4340   cat conftest.err >&5
4341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); } &&
4343          { ac_try='test -z "$ac_c_werror_flag"
4344                          || test ! -s conftest.err'
4345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346   (eval $ac_try) 2>&5
4347   ac_status=$?
4348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); }; } &&
4350          { ac_try='test -s conftest$ac_exeext'
4351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352   (eval $ac_try) 2>&5
4353   ac_status=$?
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); }; }; then
4356   ac_R_space=yes
4357 else
4358   echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4360
4361 ac_R_space=no
4362 fi
4363 rm -f conftest.err conftest.$ac_objext \
4364       conftest$ac_exeext conftest.$ac_ext
4365         if test $ac_R_space = yes; then
4366           echo "$as_me:$LINENO: result: yes" >&5
4367 echo "${ECHO_T}yes" >&6
4368           X_LIBS="$X_LIBS -R $x_libraries"
4369         else
4370           echo "$as_me:$LINENO: result: neither works" >&5
4371 echo "${ECHO_T}neither works" >&6
4372         fi
4373       fi
4374       LIBS=$ac_xsave_LIBS
4375     esac
4376   fi
4377
4378   # Check for system-dependent libraries X programs must link with.
4379   # Do this before checking for the system-independent R6 libraries
4380   # (-lICE), since we may need -lsocket or whatever for X linking.
4381
4382   if test "$ISC" = yes; then
4383     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4384   else
4385     # Martyn Johnson says this is needed for Ultrix, if the X
4386     # libraries were built with DECnet support.  And Karl Berry says
4387     # the Alpha needs dnet_stub (dnet does not exist).
4388     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4389     cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h.  */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h.  */
4395
4396 /* Override any gcc2 internal prototype to avoid an error.  */
4397 #ifdef __cplusplus
4398 extern "C"
4399 #endif
4400 /* We use char because int might match the return type of a gcc2
4401    builtin and then its argument prototype would still apply.  */
4402 char XOpenDisplay ();
4403 int
4404 main ()
4405 {
4406 XOpenDisplay ();
4407   ;
4408   return 0;
4409 }
4410 _ACEOF
4411 rm -f conftest.$ac_objext conftest$ac_exeext
4412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4413   (eval $ac_link) 2>conftest.er1
4414   ac_status=$?
4415   grep -v '^ *+' conftest.er1 >conftest.err
4416   rm -f conftest.er1
4417   cat conftest.err >&5
4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); } &&
4420          { ac_try='test -z "$ac_c_werror_flag"
4421                          || test ! -s conftest.err'
4422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423   (eval $ac_try) 2>&5
4424   ac_status=$?
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); }; } &&
4427          { ac_try='test -s conftest$ac_exeext'
4428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429   (eval $ac_try) 2>&5
4430   ac_status=$?
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); }; }; then
4433   :
4434 else
4435   echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4437
4438 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4439 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4440 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4441   echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443   ac_check_lib_save_LIBS=$LIBS
4444 LIBS="-ldnet  $LIBS"
4445 cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h.  */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h.  */
4451
4452 /* Override any gcc2 internal prototype to avoid an error.  */
4453 #ifdef __cplusplus
4454 extern "C"
4455 #endif
4456 /* We use char because int might match the return type of a gcc2
4457    builtin and then its argument prototype would still apply.  */
4458 char dnet_ntoa ();
4459 int
4460 main ()
4461 {
4462 dnet_ntoa ();
4463   ;
4464   return 0;
4465 }
4466 _ACEOF
4467 rm -f conftest.$ac_objext conftest$ac_exeext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4469   (eval $ac_link) 2>conftest.er1
4470   ac_status=$?
4471   grep -v '^ *+' conftest.er1 >conftest.err
4472   rm -f conftest.er1
4473   cat conftest.err >&5
4474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475   (exit $ac_status); } &&
4476          { ac_try='test -z "$ac_c_werror_flag"
4477                          || test ! -s conftest.err'
4478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479   (eval $ac_try) 2>&5
4480   ac_status=$?
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); }; } &&
4483          { ac_try='test -s conftest$ac_exeext'
4484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485   (eval $ac_try) 2>&5
4486   ac_status=$?
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); }; }; then
4489   ac_cv_lib_dnet_dnet_ntoa=yes
4490 else
4491   echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4493
4494 ac_cv_lib_dnet_dnet_ntoa=no
4495 fi
4496 rm -f conftest.err conftest.$ac_objext \
4497       conftest$ac_exeext conftest.$ac_ext
4498 LIBS=$ac_check_lib_save_LIBS
4499 fi
4500 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4501 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4502 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4503   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4504 fi
4505
4506     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4507       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4508 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4509 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4510   echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512   ac_check_lib_save_LIBS=$LIBS
4513 LIBS="-ldnet_stub  $LIBS"
4514 cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h.  */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h.  */
4520
4521 /* Override any gcc2 internal prototype to avoid an error.  */
4522 #ifdef __cplusplus
4523 extern "C"
4524 #endif
4525 /* We use char because int might match the return type of a gcc2
4526    builtin and then its argument prototype would still apply.  */
4527 char dnet_ntoa ();
4528 int
4529 main ()
4530 {
4531 dnet_ntoa ();
4532   ;
4533   return 0;
4534 }
4535 _ACEOF
4536 rm -f conftest.$ac_objext conftest$ac_exeext
4537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4538   (eval $ac_link) 2>conftest.er1
4539   ac_status=$?
4540   grep -v '^ *+' conftest.er1 >conftest.err
4541   rm -f conftest.er1
4542   cat conftest.err >&5
4543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544   (exit $ac_status); } &&
4545          { ac_try='test -z "$ac_c_werror_flag"
4546                          || test ! -s conftest.err'
4547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548   (eval $ac_try) 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); }; } &&
4552          { ac_try='test -s conftest$ac_exeext'
4553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554   (eval $ac_try) 2>&5
4555   ac_status=$?
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); }; }; then
4558   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4559 else
4560   echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4562
4563 ac_cv_lib_dnet_stub_dnet_ntoa=no
4564 fi
4565 rm -f conftest.err conftest.$ac_objext \
4566       conftest$ac_exeext conftest.$ac_ext
4567 LIBS=$ac_check_lib_save_LIBS
4568 fi
4569 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4570 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4571 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4572   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4573 fi
4574
4575     fi
4576 fi
4577 rm -f conftest.err conftest.$ac_objext \
4578       conftest$ac_exeext conftest.$ac_ext
4579     LIBS="$ac_xsave_LIBS"
4580
4581     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4582     # to get the SysV transport functions.
4583     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4584     # needs -lnsl.
4585     # The nsl library prevents programs from opening the X display
4586     # on Irix 5.2, according to T.E. Dickey.
4587     # The functions gethostbyname, getservbyname, and inet_addr are
4588     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4589     echo "$as_me:$LINENO: checking for gethostbyname" >&5
4590 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4591 if test "${ac_cv_func_gethostbyname+set}" = set; then
4592   echo $ECHO_N "(cached) $ECHO_C" >&6
4593 else
4594   cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h.  */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h.  */
4600 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4602 #define gethostbyname innocuous_gethostbyname
4603
4604 /* System header to define __stub macros and hopefully few prototypes,
4605     which can conflict with char gethostbyname (); below.
4606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4607     <limits.h> exists even on freestanding compilers.  */
4608
4609 #ifdef __STDC__
4610 # include <limits.h>
4611 #else
4612 # include <assert.h>
4613 #endif
4614
4615 #undef gethostbyname
4616
4617 /* Override any gcc2 internal prototype to avoid an error.  */
4618 #ifdef __cplusplus
4619 extern "C"
4620 {
4621 #endif
4622 /* We use char because int might match the return type of a gcc2
4623    builtin and then its argument prototype would still apply.  */
4624 char gethostbyname ();
4625 /* The GNU C library defines this for functions which it implements
4626     to always fail with ENOSYS.  Some functions are actually named
4627     something starting with __ and the normal name is an alias.  */
4628 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4629 choke me
4630 #else
4631 char (*f) () = gethostbyname;
4632 #endif
4633 #ifdef __cplusplus
4634 }
4635 #endif
4636
4637 int
4638 main ()
4639 {
4640 return f != gethostbyname;
4641   ;
4642   return 0;
4643 }
4644 _ACEOF
4645 rm -f conftest.$ac_objext conftest$ac_exeext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4647   (eval $ac_link) 2>conftest.er1
4648   ac_status=$?
4649   grep -v '^ *+' conftest.er1 >conftest.err
4650   rm -f conftest.er1
4651   cat conftest.err >&5
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); } &&
4654          { ac_try='test -z "$ac_c_werror_flag"
4655                          || test ! -s conftest.err'
4656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657   (eval $ac_try) 2>&5
4658   ac_status=$?
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); }; } &&
4661          { ac_try='test -s conftest$ac_exeext'
4662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663   (eval $ac_try) 2>&5
4664   ac_status=$?
4665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666   (exit $ac_status); }; }; then
4667   ac_cv_func_gethostbyname=yes
4668 else
4669   echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4671
4672 ac_cv_func_gethostbyname=no
4673 fi
4674 rm -f conftest.err conftest.$ac_objext \
4675       conftest$ac_exeext conftest.$ac_ext
4676 fi
4677 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4678 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4679
4680     if test $ac_cv_func_gethostbyname = no; then
4681       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4682 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4683 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4684   echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686   ac_check_lib_save_LIBS=$LIBS
4687 LIBS="-lnsl  $LIBS"
4688 cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h.  */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h.  */
4694
4695 /* Override any gcc2 internal prototype to avoid an error.  */
4696 #ifdef __cplusplus
4697 extern "C"
4698 #endif
4699 /* We use char because int might match the return type of a gcc2
4700    builtin and then its argument prototype would still apply.  */
4701 char gethostbyname ();
4702 int
4703 main ()
4704 {
4705 gethostbyname ();
4706   ;
4707   return 0;
4708 }
4709 _ACEOF
4710 rm -f conftest.$ac_objext conftest$ac_exeext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712   (eval $ac_link) 2>conftest.er1
4713   ac_status=$?
4714   grep -v '^ *+' conftest.er1 >conftest.err
4715   rm -f conftest.er1
4716   cat conftest.err >&5
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); } &&
4719          { ac_try='test -z "$ac_c_werror_flag"
4720                          || test ! -s conftest.err'
4721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722   (eval $ac_try) 2>&5
4723   ac_status=$?
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); }; } &&
4726          { ac_try='test -s conftest$ac_exeext'
4727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728   (eval $ac_try) 2>&5
4729   ac_status=$?
4730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731   (exit $ac_status); }; }; then
4732   ac_cv_lib_nsl_gethostbyname=yes
4733 else
4734   echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4736
4737 ac_cv_lib_nsl_gethostbyname=no
4738 fi
4739 rm -f conftest.err conftest.$ac_objext \
4740       conftest$ac_exeext conftest.$ac_ext
4741 LIBS=$ac_check_lib_save_LIBS
4742 fi
4743 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4744 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4745 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4746   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4747 fi
4748
4749       if test $ac_cv_lib_nsl_gethostbyname = no; then
4750         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4751 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4752 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4753   echo $ECHO_N "(cached) $ECHO_C" >&6
4754 else
4755   ac_check_lib_save_LIBS=$LIBS
4756 LIBS="-lbsd  $LIBS"
4757 cat >conftest.$ac_ext <<_ACEOF
4758 /* confdefs.h.  */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h.  */
4763
4764 /* Override any gcc2 internal prototype to avoid an error.  */
4765 #ifdef __cplusplus
4766 extern "C"
4767 #endif
4768 /* We use char because int might match the return type of a gcc2
4769    builtin and then its argument prototype would still apply.  */
4770 char gethostbyname ();
4771 int
4772 main ()
4773 {
4774 gethostbyname ();
4775   ;
4776   return 0;
4777 }
4778 _ACEOF
4779 rm -f conftest.$ac_objext conftest$ac_exeext
4780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4781   (eval $ac_link) 2>conftest.er1
4782   ac_status=$?
4783   grep -v '^ *+' conftest.er1 >conftest.err
4784   rm -f conftest.er1
4785   cat conftest.err >&5
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); } &&
4788          { ac_try='test -z "$ac_c_werror_flag"
4789                          || test ! -s conftest.err'
4790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791   (eval $ac_try) 2>&5
4792   ac_status=$?
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); }; } &&
4795          { ac_try='test -s conftest$ac_exeext'
4796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797   (eval $ac_try) 2>&5
4798   ac_status=$?
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); }; }; then
4801   ac_cv_lib_bsd_gethostbyname=yes
4802 else
4803   echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4805
4806 ac_cv_lib_bsd_gethostbyname=no
4807 fi
4808 rm -f conftest.err conftest.$ac_objext \
4809       conftest$ac_exeext conftest.$ac_ext
4810 LIBS=$ac_check_lib_save_LIBS
4811 fi
4812 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4813 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4814 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4815   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4816 fi
4817
4818       fi
4819     fi
4820
4821     # lieder@skyler.mavd.honeywell.com says without -lsocket,
4822     # socket/setsockopt and other routines are undefined under SCO ODT
4823     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4824     # on later versions), says Simon Leinen: it contains gethostby*
4825     # variants that don't use the name server (or something).  -lsocket
4826     # must be given before -lnsl if both are needed.  We assume that
4827     # if connect needs -lnsl, so does gethostbyname.
4828     echo "$as_me:$LINENO: checking for connect" >&5
4829 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4830 if test "${ac_cv_func_connect+set}" = set; then
4831   echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833   cat >conftest.$ac_ext <<_ACEOF
4834 /* confdefs.h.  */
4835 _ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h.  */
4839 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4841 #define connect innocuous_connect
4842
4843 /* System header to define __stub macros and hopefully few prototypes,
4844     which can conflict with char connect (); below.
4845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4846     <limits.h> exists even on freestanding compilers.  */
4847
4848 #ifdef __STDC__
4849 # include <limits.h>
4850 #else
4851 # include <assert.h>
4852 #endif
4853
4854 #undef connect
4855
4856 /* Override any gcc2 internal prototype to avoid an error.  */
4857 #ifdef __cplusplus
4858 extern "C"
4859 {
4860 #endif
4861 /* We use char because int might match the return type of a gcc2
4862    builtin and then its argument prototype would still apply.  */
4863 char connect ();
4864 /* The GNU C library defines this for functions which it implements
4865     to always fail with ENOSYS.  Some functions are actually named
4866     something starting with __ and the normal name is an alias.  */
4867 #if defined (__stub_connect) || defined (__stub___connect)
4868 choke me
4869 #else
4870 char (*f) () = connect;
4871 #endif
4872 #ifdef __cplusplus
4873 }
4874 #endif
4875
4876 int
4877 main ()
4878 {
4879 return f != connect;
4880   ;
4881   return 0;
4882 }
4883 _ACEOF
4884 rm -f conftest.$ac_objext conftest$ac_exeext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4886   (eval $ac_link) 2>conftest.er1
4887   ac_status=$?
4888   grep -v '^ *+' conftest.er1 >conftest.err
4889   rm -f conftest.er1
4890   cat conftest.err >&5
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); } &&
4893          { ac_try='test -z "$ac_c_werror_flag"
4894                          || test ! -s conftest.err'
4895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896   (eval $ac_try) 2>&5
4897   ac_status=$?
4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899   (exit $ac_status); }; } &&
4900          { ac_try='test -s conftest$ac_exeext'
4901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902   (eval $ac_try) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); }; }; then
4906   ac_cv_func_connect=yes
4907 else
4908   echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4910
4911 ac_cv_func_connect=no
4912 fi
4913 rm -f conftest.err conftest.$ac_objext \
4914       conftest$ac_exeext conftest.$ac_ext
4915 fi
4916 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4917 echo "${ECHO_T}$ac_cv_func_connect" >&6
4918
4919     if test $ac_cv_func_connect = no; then
4920       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4921 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4922 if test "${ac_cv_lib_socket_connect+set}" = set; then
4923   echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925   ac_check_lib_save_LIBS=$LIBS
4926 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4927 cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h.  */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h.  */
4933
4934 /* Override any gcc2 internal prototype to avoid an error.  */
4935 #ifdef __cplusplus
4936 extern "C"
4937 #endif
4938 /* We use char because int might match the return type of a gcc2
4939    builtin and then its argument prototype would still apply.  */
4940 char connect ();
4941 int
4942 main ()
4943 {
4944 connect ();
4945   ;
4946   return 0;
4947 }
4948 _ACEOF
4949 rm -f conftest.$ac_objext conftest$ac_exeext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4951   (eval $ac_link) 2>conftest.er1
4952   ac_status=$?
4953   grep -v '^ *+' conftest.er1 >conftest.err
4954   rm -f conftest.er1
4955   cat conftest.err >&5
4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); } &&
4958          { ac_try='test -z "$ac_c_werror_flag"
4959                          || test ! -s conftest.err'
4960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961   (eval $ac_try) 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); }; } &&
4965          { ac_try='test -s conftest$ac_exeext'
4966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967   (eval $ac_try) 2>&5
4968   ac_status=$?
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); }; }; then
4971   ac_cv_lib_socket_connect=yes
4972 else
4973   echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 ac_cv_lib_socket_connect=no
4977 fi
4978 rm -f conftest.err conftest.$ac_objext \
4979       conftest$ac_exeext conftest.$ac_ext
4980 LIBS=$ac_check_lib_save_LIBS
4981 fi
4982 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4983 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4984 if test $ac_cv_lib_socket_connect = yes; then
4985   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4986 fi
4987
4988     fi
4989
4990     # Guillermo Gomez says -lposix is necessary on A/UX.
4991     echo "$as_me:$LINENO: checking for remove" >&5
4992 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4993 if test "${ac_cv_func_remove+set}" = set; then
4994   echo $ECHO_N "(cached) $ECHO_C" >&6
4995 else
4996   cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h.  */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h.  */
5002 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5004 #define remove innocuous_remove
5005
5006 /* System header to define __stub macros and hopefully few prototypes,
5007     which can conflict with char remove (); below.
5008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5009     <limits.h> exists even on freestanding compilers.  */
5010
5011 #ifdef __STDC__
5012 # include <limits.h>
5013 #else
5014 # include <assert.h>
5015 #endif
5016
5017 #undef remove
5018
5019 /* Override any gcc2 internal prototype to avoid an error.  */
5020 #ifdef __cplusplus
5021 extern "C"
5022 {
5023 #endif
5024 /* We use char because int might match the return type of a gcc2
5025    builtin and then its argument prototype would still apply.  */
5026 char remove ();
5027 /* The GNU C library defines this for functions which it implements
5028     to always fail with ENOSYS.  Some functions are actually named
5029     something starting with __ and the normal name is an alias.  */
5030 #if defined (__stub_remove) || defined (__stub___remove)
5031 choke me
5032 #else
5033 char (*f) () = remove;
5034 #endif
5035 #ifdef __cplusplus
5036 }
5037 #endif
5038
5039 int
5040 main ()
5041 {
5042 return f != remove;
5043   ;
5044   return 0;
5045 }
5046 _ACEOF
5047 rm -f conftest.$ac_objext conftest$ac_exeext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5049   (eval $ac_link) 2>conftest.er1
5050   ac_status=$?
5051   grep -v '^ *+' conftest.er1 >conftest.err
5052   rm -f conftest.er1
5053   cat conftest.err >&5
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); } &&
5056          { ac_try='test -z "$ac_c_werror_flag"
5057                          || test ! -s conftest.err'
5058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059   (eval $ac_try) 2>&5
5060   ac_status=$?
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); }; } &&
5063          { ac_try='test -s conftest$ac_exeext'
5064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065   (eval $ac_try) 2>&5
5066   ac_status=$?
5067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); }; }; then
5069   ac_cv_func_remove=yes
5070 else
5071   echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5073
5074 ac_cv_func_remove=no
5075 fi
5076 rm -f conftest.err conftest.$ac_objext \
5077       conftest$ac_exeext conftest.$ac_ext
5078 fi
5079 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5080 echo "${ECHO_T}$ac_cv_func_remove" >&6
5081
5082     if test $ac_cv_func_remove = no; then
5083       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5084 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5085 if test "${ac_cv_lib_posix_remove+set}" = set; then
5086   echo $ECHO_N "(cached) $ECHO_C" >&6
5087 else
5088   ac_check_lib_save_LIBS=$LIBS
5089 LIBS="-lposix  $LIBS"
5090 cat >conftest.$ac_ext <<_ACEOF
5091 /* confdefs.h.  */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h.  */
5096
5097 /* Override any gcc2 internal prototype to avoid an error.  */
5098 #ifdef __cplusplus
5099 extern "C"
5100 #endif
5101 /* We use char because int might match the return type of a gcc2
5102    builtin and then its argument prototype would still apply.  */
5103 char remove ();
5104 int
5105 main ()
5106 {
5107 remove ();
5108   ;
5109   return 0;
5110 }
5111 _ACEOF
5112 rm -f conftest.$ac_objext conftest$ac_exeext
5113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5114   (eval $ac_link) 2>conftest.er1
5115   ac_status=$?
5116   grep -v '^ *+' conftest.er1 >conftest.err
5117   rm -f conftest.er1
5118   cat conftest.err >&5
5119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); } &&
5121          { ac_try='test -z "$ac_c_werror_flag"
5122                          || test ! -s conftest.err'
5123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124   (eval $ac_try) 2>&5
5125   ac_status=$?
5126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127   (exit $ac_status); }; } &&
5128          { ac_try='test -s conftest$ac_exeext'
5129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130   (eval $ac_try) 2>&5
5131   ac_status=$?
5132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133   (exit $ac_status); }; }; then
5134   ac_cv_lib_posix_remove=yes
5135 else
5136   echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5138
5139 ac_cv_lib_posix_remove=no
5140 fi
5141 rm -f conftest.err conftest.$ac_objext \
5142       conftest$ac_exeext conftest.$ac_ext
5143 LIBS=$ac_check_lib_save_LIBS
5144 fi
5145 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5146 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5147 if test $ac_cv_lib_posix_remove = yes; then
5148   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5149 fi
5150
5151     fi
5152
5153     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5154     echo "$as_me:$LINENO: checking for shmat" >&5
5155 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5156 if test "${ac_cv_func_shmat+set}" = set; then
5157   echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159   cat >conftest.$ac_ext <<_ACEOF
5160 /* confdefs.h.  */
5161 _ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h.  */
5165 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5167 #define shmat innocuous_shmat
5168
5169 /* System header to define __stub macros and hopefully few prototypes,
5170     which can conflict with char shmat (); below.
5171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5172     <limits.h> exists even on freestanding compilers.  */
5173
5174 #ifdef __STDC__
5175 # include <limits.h>
5176 #else
5177 # include <assert.h>
5178 #endif
5179
5180 #undef shmat
5181
5182 /* Override any gcc2 internal prototype to avoid an error.  */
5183 #ifdef __cplusplus
5184 extern "C"
5185 {
5186 #endif
5187 /* We use char because int might match the return type of a gcc2
5188    builtin and then its argument prototype would still apply.  */
5189 char shmat ();
5190 /* The GNU C library defines this for functions which it implements
5191     to always fail with ENOSYS.  Some functions are actually named
5192     something starting with __ and the normal name is an alias.  */
5193 #if defined (__stub_shmat) || defined (__stub___shmat)
5194 choke me
5195 #else
5196 char (*f) () = shmat;
5197 #endif
5198 #ifdef __cplusplus
5199 }
5200 #endif
5201
5202 int
5203 main ()
5204 {
5205 return f != shmat;
5206   ;
5207   return 0;
5208 }
5209 _ACEOF
5210 rm -f conftest.$ac_objext conftest$ac_exeext
5211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5212   (eval $ac_link) 2>conftest.er1
5213   ac_status=$?
5214   grep -v '^ *+' conftest.er1 >conftest.err
5215   rm -f conftest.er1
5216   cat conftest.err >&5
5217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218   (exit $ac_status); } &&
5219          { ac_try='test -z "$ac_c_werror_flag"
5220                          || test ! -s conftest.err'
5221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222   (eval $ac_try) 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }; } &&
5226          { ac_try='test -s conftest$ac_exeext'
5227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228   (eval $ac_try) 2>&5
5229   ac_status=$?
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); }; }; then
5232   ac_cv_func_shmat=yes
5233 else
5234   echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5236
5237 ac_cv_func_shmat=no
5238 fi
5239 rm -f conftest.err conftest.$ac_objext \
5240       conftest$ac_exeext conftest.$ac_ext
5241 fi
5242 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5243 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5244
5245     if test $ac_cv_func_shmat = no; then
5246       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5247 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5248 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5249   echo $ECHO_N "(cached) $ECHO_C" >&6
5250 else
5251   ac_check_lib_save_LIBS=$LIBS
5252 LIBS="-lipc  $LIBS"
5253 cat >conftest.$ac_ext <<_ACEOF
5254 /* confdefs.h.  */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h.  */
5259
5260 /* Override any gcc2 internal prototype to avoid an error.  */
5261 #ifdef __cplusplus
5262 extern "C"
5263 #endif
5264 /* We use char because int might match the return type of a gcc2
5265    builtin and then its argument prototype would still apply.  */
5266 char shmat ();
5267 int
5268 main ()
5269 {
5270 shmat ();
5271   ;
5272   return 0;
5273 }
5274 _ACEOF
5275 rm -f conftest.$ac_objext conftest$ac_exeext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5277   (eval $ac_link) 2>conftest.er1
5278   ac_status=$?
5279   grep -v '^ *+' conftest.er1 >conftest.err
5280   rm -f conftest.er1
5281   cat conftest.err >&5
5282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283   (exit $ac_status); } &&
5284          { ac_try='test -z "$ac_c_werror_flag"
5285                          || test ! -s conftest.err'
5286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287   (eval $ac_try) 2>&5
5288   ac_status=$?
5289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290   (exit $ac_status); }; } &&
5291          { ac_try='test -s conftest$ac_exeext'
5292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293   (eval $ac_try) 2>&5
5294   ac_status=$?
5295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); }; }; then
5297   ac_cv_lib_ipc_shmat=yes
5298 else
5299   echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5301
5302 ac_cv_lib_ipc_shmat=no
5303 fi
5304 rm -f conftest.err conftest.$ac_objext \
5305       conftest$ac_exeext conftest.$ac_ext
5306 LIBS=$ac_check_lib_save_LIBS
5307 fi
5308 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5309 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5310 if test $ac_cv_lib_ipc_shmat = yes; then
5311   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5312 fi
5313
5314     fi
5315   fi
5316
5317   # Check for libraries that X11R6 Xt/Xaw programs need.
5318   ac_save_LDFLAGS=$LDFLAGS
5319   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5320   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5321   # check for ICE first), but we must link in the order -lSM -lICE or
5322   # we get undefined symbols.  So assume we have SM if we have ICE.
5323   # These have to be linked with before -lX11, unlike the other
5324   # libraries we check for below, so use a different variable.
5325   # John Interrante, Karl Berry
5326   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5327 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5328 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5329   echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331   ac_check_lib_save_LIBS=$LIBS
5332 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5333 cat >conftest.$ac_ext <<_ACEOF
5334 /* confdefs.h.  */
5335 _ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h.  */
5339
5340 /* Override any gcc2 internal prototype to avoid an error.  */
5341 #ifdef __cplusplus
5342 extern "C"
5343 #endif
5344 /* We use char because int might match the return type of a gcc2
5345    builtin and then its argument prototype would still apply.  */
5346 char IceConnectionNumber ();
5347 int
5348 main ()
5349 {
5350 IceConnectionNumber ();
5351   ;
5352   return 0;
5353 }
5354 _ACEOF
5355 rm -f conftest.$ac_objext conftest$ac_exeext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5357   (eval $ac_link) 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"
5365                          || test ! -s conftest.err'
5366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367   (eval $ac_try) 2>&5
5368   ac_status=$?
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); }; } &&
5371          { ac_try='test -s conftest$ac_exeext'
5372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373   (eval $ac_try) 2>&5
5374   ac_status=$?
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); }; }; then
5377   ac_cv_lib_ICE_IceConnectionNumber=yes
5378 else
5379   echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.$ac_ext >&5
5381
5382 ac_cv_lib_ICE_IceConnectionNumber=no
5383 fi
5384 rm -f conftest.err conftest.$ac_objext \
5385       conftest$ac_exeext conftest.$ac_ext
5386 LIBS=$ac_check_lib_save_LIBS
5387 fi
5388 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5389 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5390 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5391   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5392 fi
5393
5394   LDFLAGS=$ac_save_LDFLAGS
5395
5396 fi
5397
5398
5399 XML_CFLAGS=`$XML_CONFIG --cflags`
5400 XML_LFLAGS=`$XML_CONFIG --libs`
5401
5402 LIBS="$LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS"
5403 LIBS="$LIBS -L/usr/local/lib $XML_LFLAGS"
5404 CFLAGS="$CFLAGS $X_CFLAGS $XML_CFLAGS "
5405 CXXFLAGS="$CXXFLAGS  -Wno-deprecated $X_CFLAGS $XML_CFLAGS"
5406
5407
5408 echo "$as_me:$LINENO: checking for main in -lAXE" >&5
5409 echo $ECHO_N "checking for main in -lAXE... $ECHO_C" >&6
5410 if test "${ac_cv_lib_AXE_main+set}" = set; then
5411   echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413   ac_check_lib_save_LIBS=$LIBS
5414 LIBS="-lAXE  $LIBS"
5415 cat >conftest.$ac_ext <<_ACEOF
5416 /* confdefs.h.  */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h.  */
5421
5422
5423 int
5424 main ()
5425 {
5426 main ();
5427   ;
5428   return 0;
5429 }
5430 _ACEOF
5431 rm -f conftest.$ac_objext conftest$ac_exeext
5432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5433   (eval $ac_link) 2>conftest.er1
5434   ac_status=$?
5435   grep -v '^ *+' conftest.er1 >conftest.err
5436   rm -f conftest.er1
5437   cat conftest.err >&5
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); } &&
5440          { ac_try='test -z "$ac_c_werror_flag"
5441                          || test ! -s conftest.err'
5442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443   (eval $ac_try) 2>&5
5444   ac_status=$?
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); }; } &&
5447          { ac_try='test -s conftest$ac_exeext'
5448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449   (eval $ac_try) 2>&5
5450   ac_status=$?
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); }; }; then
5453   ac_cv_lib_AXE_main=yes
5454 else
5455   echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5457
5458 ac_cv_lib_AXE_main=no
5459 fi
5460 rm -f conftest.err conftest.$ac_objext \
5461       conftest$ac_exeext conftest.$ac_ext
5462 LIBS=$ac_check_lib_save_LIBS
5463 fi
5464 echo "$as_me:$LINENO: result: $ac_cv_lib_AXE_main" >&5
5465 echo "${ECHO_T}$ac_cv_lib_AXE_main" >&6
5466 if test $ac_cv_lib_AXE_main = yes; then
5467   cat >>confdefs.h <<_ACEOF
5468 #define HAVE_LIBAXE 1
5469 _ACEOF
5470
5471   LIBS="-lAXE $LIBS"
5472
5473 else
5474   { { echo "$as_me:$LINENO: error: AXE Library is not installed" >&5
5475 echo "$as_me: error: AXE Library is not installed" >&2;}
5476    { (exit 1); exit 1; }; }
5477 fi
5478
5479 #AC_CHECK_LIB(X11, XOpenDisplay)
5480 #AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData)
5481 #AC_CHECK_LIB(pthread, pthread_create)
5482
5483 echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
5484 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6
5485 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
5486   echo $ECHO_N "(cached) $ECHO_C" >&6
5487 else
5488   ac_check_lib_save_LIBS=$LIBS
5489 LIBS="-lxml2  $LIBS"
5490 cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h.  */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h.  */
5496
5497 /* Override any gcc2 internal prototype to avoid an error.  */
5498 #ifdef __cplusplus
5499 extern "C"
5500 #endif
5501 /* We use char because int might match the return type of a gcc2
5502    builtin and then its argument prototype would still apply.  */
5503 char xmlParseFile ();
5504 int
5505 main ()
5506 {
5507 xmlParseFile ();
5508   ;
5509   return 0;
5510 }
5511 _ACEOF
5512 rm -f conftest.$ac_objext conftest$ac_exeext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5514   (eval $ac_link) 2>conftest.er1
5515   ac_status=$?
5516   grep -v '^ *+' conftest.er1 >conftest.err
5517   rm -f conftest.er1
5518   cat conftest.err >&5
5519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520   (exit $ac_status); } &&
5521          { ac_try='test -z "$ac_c_werror_flag"
5522                          || test ! -s conftest.err'
5523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524   (eval $ac_try) 2>&5
5525   ac_status=$?
5526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527   (exit $ac_status); }; } &&
5528          { ac_try='test -s conftest$ac_exeext'
5529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530   (eval $ac_try) 2>&5
5531   ac_status=$?
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); }; }; then
5534   ac_cv_lib_xml2_xmlParseFile=yes
5535 else
5536   echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5538
5539 ac_cv_lib_xml2_xmlParseFile=no
5540 fi
5541 rm -f conftest.err conftest.$ac_objext \
5542       conftest$ac_exeext conftest.$ac_ext
5543 LIBS=$ac_check_lib_save_LIBS
5544 fi
5545 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
5546 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6
5547 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
5548   cat >>confdefs.h <<_ACEOF
5549 #define HAVE_LIBXML2 1
5550 _ACEOF
5551
5552   LIBS="-lxml2 $LIBS"
5553
5554 fi
5555
5556
5557 # Find PostgreSQL includes and libraries
5558 for ac_prog in pqxx-config
5559 do
5560   # Extract the first word of "$ac_prog", so it can be a program name with args.
5561 set dummy $ac_prog; ac_word=$2
5562 echo "$as_me:$LINENO: checking for $ac_word" >&5
5563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5564 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
5565   echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567   case $PG_CONFIG in
5568   [\\/]* | ?:[\\/]*)
5569   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
5570   ;;
5571   *)
5572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575   IFS=$as_save_IFS
5576   test -z "$as_dir" && as_dir=.
5577   for ac_exec_ext in '' $ac_executable_extensions; do
5578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5579     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5581     break 2
5582   fi
5583 done
5584 done
5585
5586   ;;
5587 esac
5588 fi
5589 PG_CONFIG=$ac_cv_path_PG_CONFIG
5590
5591 if test -n "$PG_CONFIG"; then
5592   echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
5593 echo "${ECHO_T}$PG_CONFIG" >&6
5594 else
5595   echo "$as_me:$LINENO: result: no" >&5
5596 echo "${ECHO_T}no" >&6
5597 fi
5598
5599   test -n "$PG_CONFIG" && break
5600 done
5601
5602 if test -z "$PG_CONFIG" || test ! -r "$PG_CONFIG"; then
5603         { { echo "$as_me:$LINENO: error: libpqxx configuration script was not found" >&5
5604 echo "$as_me: error: libpqxx configuration script was not found" >&2;}
5605    { (exit 1); exit 1; }; }
5606 fi
5607 with_postgres_include=`$PG_CONFIG --cflags`
5608 { echo "$as_me:$LINENO: using PostgreSQL headers at $with_postgres_include" >&5
5609 echo "$as_me: using PostgreSQL headers at $with_postgres_include" >&6;}
5610 with_postgres_lib=`$PG_CONFIG --libs`
5611 { echo "$as_me:$LINENO: using PostgreSQL libraries at $with_postgres_lib" >&5
5612 echo "$as_me: using PostgreSQL libraries at $with_postgres_lib" >&6;}
5613
5614
5615
5616 POSTGRES_LIB="${with_postgres_lib}"
5617
5618 POSTGRES_INCLUDE="${with_postgres_include}"
5619
5620
5621
5622 # Checks for libraries.
5623
5624 echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
5625 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6
5626 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
5627   echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629   ac_check_lib_save_LIBS=$LIBS
5630 LIBS="-lpq -L${with_postgres_lib} $LIBS"
5631 cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h.  */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h.  */
5637
5638 /* Override any gcc2 internal prototype to avoid an error.  */
5639 #ifdef __cplusplus
5640 extern "C"
5641 #endif
5642 /* We use char because int might match the return type of a gcc2
5643    builtin and then its argument prototype would still apply.  */
5644 char PQexec ();
5645 int
5646 main ()
5647 {
5648 PQexec ();
5649   ;
5650   return 0;
5651 }
5652 _ACEOF
5653 rm -f conftest.$ac_objext conftest$ac_exeext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655   (eval $ac_link) 2>conftest.er1
5656   ac_status=$?
5657   grep -v '^ *+' conftest.er1 >conftest.err
5658   rm -f conftest.er1
5659   cat conftest.err >&5
5660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); } &&
5662          { ac_try='test -z "$ac_c_werror_flag"
5663                          || test ! -s conftest.err'
5664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665   (eval $ac_try) 2>&5
5666   ac_status=$?
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); }; } &&
5669          { ac_try='test -s conftest$ac_exeext'
5670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671   (eval $ac_try) 2>&5
5672   ac_status=$?
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); }; }; then
5675   ac_cv_lib_pq_PQexec=yes
5676 else
5677   echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5679
5680 ac_cv_lib_pq_PQexec=no
5681 fi
5682 rm -f conftest.err conftest.$ac_objext \
5683       conftest$ac_exeext conftest.$ac_ext
5684 LIBS=$ac_check_lib_save_LIBS
5685 fi
5686 echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
5687 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6
5688 if test $ac_cv_lib_pq_PQexec = yes; then
5689   cat >>confdefs.h <<_ACEOF
5690 #define HAVE_LIBPQ 1
5691 _ACEOF
5692
5693   LIBS="-lpq $LIBS"
5694
5695 else
5696   { { echo "$as_me:$LINENO: error: Failed to find a suitable libpq.
5697
5698 PostgreSQL's libpq needs to be installed.
5699 Perhaps you need to specify --with-postgres-lib?
5700 " >&5
5701 echo "$as_me: error: Failed to find a suitable libpq.
5702
5703 PostgreSQL's libpq needs to be installed.
5704 Perhaps you need to specify --with-postgres-lib?
5705 " >&2;}
5706    { (exit 1); exit 1; }; }
5707 fi
5708
5709
5710
5711 CXXFLAGS="$CXXFLAGS $POSTGRES_INCLUDE"
5712 LIBS="$LIBS $POSTGRES_LIB"
5713
5714 #
5715 #  There is no convenient way to detect libpqxx, so we'll
5716 #  use fixed paths for the time being.
5717
5718 CXXFLAGS="$CXXFLAGS -I/usr/local/pqxx/include"
5719 LIBS="$LIBS -L/usr/local/pqxx/lib -lpqxx"
5720
5721
5722
5723
5724
5725
5726 ac_header_dirent=no
5727 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5728   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5729 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5730 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h.  */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h.  */
5740 #include <sys/types.h>
5741 #include <$ac_hdr>
5742
5743 int
5744 main ()
5745 {
5746 if ((DIR *) 0)
5747 return 0;
5748   ;
5749   return 0;
5750 }
5751 _ACEOF
5752 rm -f conftest.$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754   (eval $ac_compile) 2>conftest.er1
5755   ac_status=$?
5756   grep -v '^ *+' conftest.er1 >conftest.err
5757   rm -f conftest.er1
5758   cat conftest.err >&5
5759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760   (exit $ac_status); } &&
5761          { ac_try='test -z "$ac_c_werror_flag"
5762                          || test ! -s conftest.err'
5763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764   (eval $ac_try) 2>&5
5765   ac_status=$?
5766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767   (exit $ac_status); }; } &&
5768          { ac_try='test -s conftest.$ac_objext'
5769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770   (eval $ac_try) 2>&5
5771   ac_status=$?
5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773   (exit $ac_status); }; }; then
5774   eval "$as_ac_Header=yes"
5775 else
5776   echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5778
5779 eval "$as_ac_Header=no"
5780 fi
5781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5782 fi
5783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5786   cat >>confdefs.h <<_ACEOF
5787 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5788 _ACEOF
5789
5790 ac_header_dirent=$ac_hdr; break
5791 fi
5792
5793 done
5794 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5795 if test $ac_header_dirent = dirent.h; then
5796   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5797 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5798 if test "${ac_cv_search_opendir+set}" = set; then
5799   echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801   ac_func_search_save_LIBS=$LIBS
5802 ac_cv_search_opendir=no
5803 cat >conftest.$ac_ext <<_ACEOF
5804 /* confdefs.h.  */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h.  */
5809
5810 /* Override any gcc2 internal prototype to avoid an error.  */
5811 #ifdef __cplusplus
5812 extern "C"
5813 #endif
5814 /* We use char because int might match the return type of a gcc2
5815    builtin and then its argument prototype would still apply.  */
5816 char opendir ();
5817 int
5818 main ()
5819 {
5820 opendir ();
5821   ;
5822   return 0;
5823 }
5824 _ACEOF
5825 rm -f conftest.$ac_objext conftest$ac_exeext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5827   (eval $ac_link) 2>conftest.er1
5828   ac_status=$?
5829   grep -v '^ *+' conftest.er1 >conftest.err
5830   rm -f conftest.er1
5831   cat conftest.err >&5
5832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833   (exit $ac_status); } &&
5834          { ac_try='test -z "$ac_c_werror_flag"
5835                          || test ! -s conftest.err'
5836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837   (eval $ac_try) 2>&5
5838   ac_status=$?
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); }; } &&
5841          { ac_try='test -s conftest$ac_exeext'
5842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843   (eval $ac_try) 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }; }; then
5847   ac_cv_search_opendir="none required"
5848 else
5849   echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 fi
5853 rm -f conftest.err conftest.$ac_objext \
5854       conftest$ac_exeext conftest.$ac_ext
5855 if test "$ac_cv_search_opendir" = no; then
5856   for ac_lib in dir; do
5857     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5858     cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h.  */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h.  */
5864
5865 /* Override any gcc2 internal prototype to avoid an error.  */
5866 #ifdef __cplusplus
5867 extern "C"
5868 #endif
5869 /* We use char because int might match the return type of a gcc2
5870    builtin and then its argument prototype would still apply.  */
5871 char opendir ();
5872 int
5873 main ()
5874 {
5875 opendir ();
5876   ;
5877   return 0;
5878 }
5879 _ACEOF
5880 rm -f conftest.$ac_objext conftest$ac_exeext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5882   (eval $ac_link) 2>conftest.er1
5883   ac_status=$?
5884   grep -v '^ *+' conftest.er1 >conftest.err
5885   rm -f conftest.er1
5886   cat conftest.err >&5
5887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); } &&
5889          { ac_try='test -z "$ac_c_werror_flag"
5890                          || test ! -s conftest.err'
5891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892   (eval $ac_try) 2>&5
5893   ac_status=$?
5894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); }; } &&
5896          { ac_try='test -s conftest$ac_exeext'
5897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898   (eval $ac_try) 2>&5
5899   ac_status=$?
5900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901   (exit $ac_status); }; }; then
5902   ac_cv_search_opendir="-l$ac_lib"
5903 break
5904 else
5905   echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5907
5908 fi
5909 rm -f conftest.err conftest.$ac_objext \
5910       conftest$ac_exeext conftest.$ac_ext
5911   done
5912 fi
5913 LIBS=$ac_func_search_save_LIBS
5914 fi
5915 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5916 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5917 if test "$ac_cv_search_opendir" != no; then
5918   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5919
5920 fi
5921
5922 else
5923   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5924 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5925 if test "${ac_cv_search_opendir+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   ac_func_search_save_LIBS=$LIBS
5929 ac_cv_search_opendir=no
5930 cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h.  */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h.  */
5936
5937 /* Override any gcc2 internal prototype to avoid an error.  */
5938 #ifdef __cplusplus
5939 extern "C"
5940 #endif
5941 /* We use char because int might match the return type of a gcc2
5942    builtin and then its argument prototype would still apply.  */
5943 char opendir ();
5944 int
5945 main ()
5946 {
5947 opendir ();
5948   ;
5949   return 0;
5950 }
5951 _ACEOF
5952 rm -f conftest.$ac_objext conftest$ac_exeext
5953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954   (eval $ac_link) 2>conftest.er1
5955   ac_status=$?
5956   grep -v '^ *+' conftest.er1 >conftest.err
5957   rm -f conftest.er1
5958   cat conftest.err >&5
5959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960   (exit $ac_status); } &&
5961          { ac_try='test -z "$ac_c_werror_flag"
5962                          || test ! -s conftest.err'
5963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964   (eval $ac_try) 2>&5
5965   ac_status=$?
5966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967   (exit $ac_status); }; } &&
5968          { ac_try='test -s conftest$ac_exeext'
5969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970   (eval $ac_try) 2>&5
5971   ac_status=$?
5972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973   (exit $ac_status); }; }; then
5974   ac_cv_search_opendir="none required"
5975 else
5976   echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5978
5979 fi
5980 rm -f conftest.err conftest.$ac_objext \
5981       conftest$ac_exeext conftest.$ac_ext
5982 if test "$ac_cv_search_opendir" = no; then
5983   for ac_lib in x; do
5984     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5985     cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h.  */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h.  */
5991
5992 /* Override any gcc2 internal prototype to avoid an error.  */
5993 #ifdef __cplusplus
5994 extern "C"
5995 #endif
5996 /* We use char because int might match the return type of a gcc2
5997    builtin and then its argument prototype would still apply.  */
5998 char opendir ();
5999 int
6000 main ()
6001 {
6002 opendir ();
6003   ;
6004   return 0;
6005 }
6006 _ACEOF
6007 rm -f conftest.$ac_objext conftest$ac_exeext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6009   (eval $ac_link) 2>conftest.er1
6010   ac_status=$?
6011   grep -v '^ *+' conftest.er1 >conftest.err
6012   rm -f conftest.er1
6013   cat conftest.err >&5
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); } &&
6016          { ac_try='test -z "$ac_c_werror_flag"
6017                          || test ! -s conftest.err'
6018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019   (eval $ac_try) 2>&5
6020   ac_status=$?
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); }; } &&
6023          { ac_try='test -s conftest$ac_exeext'
6024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025   (eval $ac_try) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); }; }; then
6029   ac_cv_search_opendir="-l$ac_lib"
6030 break
6031 else
6032   echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6034
6035 fi
6036 rm -f conftest.err conftest.$ac_objext \
6037       conftest$ac_exeext conftest.$ac_ext
6038   done
6039 fi
6040 LIBS=$ac_func_search_save_LIBS
6041 fi
6042 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6043 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6044 if test "$ac_cv_search_opendir" != no; then
6045   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6046
6047 fi
6048
6049 fi
6050
6051 echo "$as_me:$LINENO: checking for egrep" >&5
6052 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6053 if test "${ac_cv_prog_egrep+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6057     then ac_cv_prog_egrep='grep -E'
6058     else ac_cv_prog_egrep='egrep'
6059     fi
6060 fi
6061 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6062 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6063  EGREP=$ac_cv_prog_egrep
6064
6065
6066 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6067 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6068 if test "${ac_cv_header_stdc+set}" = set; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071   cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h.  */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h.  */
6077 #include <stdlib.h>
6078 #include <stdarg.h>
6079 #include <string.h>
6080 #include <float.h>
6081
6082 int
6083 main ()
6084 {
6085
6086   ;
6087   return 0;
6088 }
6089 _ACEOF
6090 rm -f conftest.$ac_objext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6092   (eval $ac_compile) 2>conftest.er1
6093   ac_status=$?
6094   grep -v '^ *+' conftest.er1 >conftest.err
6095   rm -f conftest.er1
6096   cat conftest.err >&5
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); } &&
6099          { ac_try='test -z "$ac_c_werror_flag"
6100                          || test ! -s conftest.err'
6101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102   (eval $ac_try) 2>&5
6103   ac_status=$?
6104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105   (exit $ac_status); }; } &&
6106          { ac_try='test -s conftest.$ac_objext'
6107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108   (eval $ac_try) 2>&5
6109   ac_status=$?
6110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111   (exit $ac_status); }; }; then
6112   ac_cv_header_stdc=yes
6113 else
6114   echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6116
6117 ac_cv_header_stdc=no
6118 fi
6119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6120
6121 if test $ac_cv_header_stdc = yes; then
6122   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6123   cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h.  */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h.  */
6129 #include <string.h>
6130
6131 _ACEOF
6132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6133   $EGREP "memchr" >/dev/null 2>&1; then
6134   :
6135 else
6136   ac_cv_header_stdc=no
6137 fi
6138 rm -f conftest*
6139
6140 fi
6141
6142 if test $ac_cv_header_stdc = yes; then
6143   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6144   cat >conftest.$ac_ext <<_ACEOF
6145 /* confdefs.h.  */
6146 _ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h.  */
6150 #include <stdlib.h>
6151
6152 _ACEOF
6153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6154   $EGREP "free" >/dev/null 2>&1; then
6155   :
6156 else
6157   ac_cv_header_stdc=no
6158 fi
6159 rm -f conftest*
6160
6161 fi
6162
6163 if test $ac_cv_header_stdc = yes; then
6164   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6165   if test "$cross_compiling" = yes; then
6166   :
6167 else
6168   cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174 #include <ctype.h>
6175 #if ((' ' & 0x0FF) == 0x020)
6176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6178 #else
6179 # define ISLOWER(c) \
6180                    (('a' <= (c) && (c) <= 'i') \
6181                      || ('j' <= (c) && (c) <= 'r') \
6182                      || ('s' <= (c) && (c) <= 'z'))
6183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6184 #endif
6185
6186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6187 int
6188 main ()
6189 {
6190   int i;
6191   for (i = 0; i < 256; i++)
6192     if (XOR (islower (i), ISLOWER (i))
6193         || toupper (i) != TOUPPER (i))
6194       exit(2);
6195   exit (0);
6196 }
6197 _ACEOF
6198 rm -f conftest$ac_exeext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200   (eval $ac_link) 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205   (eval $ac_try) 2>&5
6206   ac_status=$?
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); }; }; then
6209   :
6210 else
6211   echo "$as_me: program exited with status $ac_status" >&5
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6214
6215 ( exit $ac_status )
6216 ac_cv_header_stdc=no
6217 fi
6218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6219 fi
6220 fi
6221 fi
6222 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6223 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6224 if test $ac_cv_header_stdc = yes; then
6225
6226 cat >>confdefs.h <<\_ACEOF
6227 #define STDC_HEADERS 1
6228 _ACEOF
6229
6230 fi
6231
6232 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6243                   inttypes.h stdint.h unistd.h
6244 do
6245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6246 echo "$as_me:$LINENO: checking for $ac_header" >&5
6247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6249   echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251   cat >conftest.$ac_ext <<_ACEOF
6252 /* confdefs.h.  */
6253 _ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h.  */
6257 $ac_includes_default
6258
6259 #include <$ac_header>
6260 _ACEOF
6261 rm -f conftest.$ac_objext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6263   (eval $ac_compile) 2>conftest.er1
6264   ac_status=$?
6265   grep -v '^ *+' conftest.er1 >conftest.err
6266   rm -f conftest.er1
6267   cat conftest.err >&5
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); } &&
6270          { ac_try='test -z "$ac_c_werror_flag"
6271                          || test ! -s conftest.err'
6272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273   (eval $ac_try) 2>&5
6274   ac_status=$?
6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276   (exit $ac_status); }; } &&
6277          { ac_try='test -s conftest.$ac_objext'
6278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279   (eval $ac_try) 2>&5
6280   ac_status=$?
6281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282   (exit $ac_status); }; }; then
6283   eval "$as_ac_Header=yes"
6284 else
6285   echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6287
6288 eval "$as_ac_Header=no"
6289 fi
6290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6291 fi
6292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6295   cat >>confdefs.h <<_ACEOF
6296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6297 _ACEOF
6298
6299 fi
6300
6301 done
6302
6303
6304
6305 for ac_header in unistd.h
6306 do
6307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6309   echo "$as_me:$LINENO: checking for $ac_header" >&5
6310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6312   echo $ECHO_N "(cached) $ECHO_C" >&6
6313 fi
6314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6316 else
6317   # Is the header compilable?
6318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6320 cat >conftest.$ac_ext <<_ACEOF
6321 /* confdefs.h.  */
6322 _ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h.  */
6326 $ac_includes_default
6327 #include <$ac_header>
6328 _ACEOF
6329 rm -f conftest.$ac_objext
6330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6331   (eval $ac_compile) 2>conftest.er1
6332   ac_status=$?
6333   grep -v '^ *+' conftest.er1 >conftest.err
6334   rm -f conftest.er1
6335   cat conftest.err >&5
6336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337   (exit $ac_status); } &&
6338          { ac_try='test -z "$ac_c_werror_flag"
6339                          || test ! -s conftest.err'
6340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341   (eval $ac_try) 2>&5
6342   ac_status=$?
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); }; } &&
6345          { ac_try='test -s conftest.$ac_objext'
6346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347   (eval $ac_try) 2>&5
6348   ac_status=$?
6349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350   (exit $ac_status); }; }; then
6351   ac_header_compiler=yes
6352 else
6353   echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6355
6356 ac_header_compiler=no
6357 fi
6358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6359 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6360 echo "${ECHO_T}$ac_header_compiler" >&6
6361
6362 # Is the header present?
6363 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6365 cat >conftest.$ac_ext <<_ACEOF
6366 /* confdefs.h.  */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h.  */
6371 #include <$ac_header>
6372 _ACEOF
6373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6374   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6375   ac_status=$?
6376   grep -v '^ *+' conftest.er1 >conftest.err
6377   rm -f conftest.er1
6378   cat conftest.err >&5
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); } >/dev/null; then
6381   if test -s conftest.err; then
6382     ac_cpp_err=$ac_c_preproc_warn_flag
6383     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6384   else
6385     ac_cpp_err=
6386   fi
6387 else
6388   ac_cpp_err=yes
6389 fi
6390 if test -z "$ac_cpp_err"; then
6391   ac_header_preproc=yes
6392 else
6393   echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6395
6396   ac_header_preproc=no
6397 fi
6398 rm -f conftest.err conftest.$ac_ext
6399 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6400 echo "${ECHO_T}$ac_header_preproc" >&6
6401
6402 # So?  What about this header?
6403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6404   yes:no: )
6405     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6409     ac_header_preproc=yes
6410     ;;
6411   no:yes:* )
6412     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6414     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6415 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6416     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6418     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6419 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6420     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6422     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6424     (
6425       cat <<\_ASBOX
6426 ## ------------------------------------------ ##
6427 ## Report this to the AC_PACKAGE_NAME lists.  ##
6428 ## ------------------------------------------ ##
6429 _ASBOX
6430     ) |
6431       sed "s/^/$as_me: WARNING:     /" >&2
6432     ;;
6433 esac
6434 echo "$as_me:$LINENO: checking for $ac_header" >&5
6435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6437   echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439   eval "$as_ac_Header=\$ac_header_preproc"
6440 fi
6441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6443
6444 fi
6445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6446   cat >>confdefs.h <<_ACEOF
6447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6448 _ACEOF
6449
6450 fi
6451
6452 done
6453
6454
6455 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6456 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6457 if test "${ac_cv_c_const+set}" = set; then
6458   echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460   cat >conftest.$ac_ext <<_ACEOF
6461 /* confdefs.h.  */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h.  */
6466
6467 int
6468 main ()
6469 {
6470 /* FIXME: Include the comments suggested by Paul. */
6471 #ifndef __cplusplus
6472   /* Ultrix mips cc rejects this.  */
6473   typedef int charset[2];
6474   const charset x;
6475   /* SunOS 4.1.1 cc rejects this.  */
6476   char const *const *ccp;
6477   char **p;
6478   /* NEC SVR4.0.2 mips cc rejects this.  */
6479   struct point {int x, y;};
6480   static struct point const zero = {0,0};
6481   /* AIX XL C 1.02.0.0 rejects this.
6482      It does not let you subtract one const X* pointer from another in
6483      an arm of an if-expression whose if-part is not a constant
6484      expression */
6485   const char *g = "string";
6486   ccp = &g + (g ? g-g : 0);
6487   /* HPUX 7.0 cc rejects these. */
6488   ++ccp;
6489   p = (char**) ccp;
6490   ccp = (char const *const *) p;
6491   { /* SCO 3.2v4 cc rejects this.  */
6492     char *t;
6493     char const *s = 0 ? (char *) 0 : (char const *) 0;
6494
6495     *t++ = 0;
6496   }
6497   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6498     int x[] = {25, 17};
6499     const int *foo = &x[0];
6500     ++foo;
6501   }
6502   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6503     typedef const int *iptr;
6504     iptr p = 0;
6505     ++p;
6506   }
6507   { /* AIX XL C 1.02.0.0 rejects this saying
6508        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6509     struct s { int j; const int *ap[3]; };
6510     struct s *b; b->j = 5;
6511   }
6512   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6513     const int foo = 10;
6514   }
6515 #endif
6516
6517   ;
6518   return 0;
6519 }
6520 _ACEOF
6521 rm -f conftest.$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523   (eval $ac_compile) 2>conftest.er1
6524   ac_status=$?
6525   grep -v '^ *+' conftest.er1 >conftest.err
6526   rm -f conftest.er1
6527   cat conftest.err >&5
6528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529   (exit $ac_status); } &&
6530          { ac_try='test -z "$ac_c_werror_flag"
6531                          || test ! -s conftest.err'
6532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533   (eval $ac_try) 2>&5
6534   ac_status=$?
6535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); }; } &&
6537          { ac_try='test -s conftest.$ac_objext'
6538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539   (eval $ac_try) 2>&5
6540   ac_status=$?
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); }; }; then
6543   ac_cv_c_const=yes
6544 else
6545   echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6547
6548 ac_cv_c_const=no
6549 fi
6550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6551 fi
6552 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6553 echo "${ECHO_T}$ac_cv_c_const" >&6
6554 if test $ac_cv_c_const = no; then
6555
6556 cat >>confdefs.h <<\_ACEOF
6557 #define const
6558 _ACEOF
6559
6560 fi
6561
6562
6563
6564
6565
6566 for ac_func in strtod strtol strtoul
6567 do
6568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6569 echo "$as_me:$LINENO: checking for $ac_func" >&5
6570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6571 if eval "test \"\${$as_ac_var+set}\" = set"; then
6572   echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574   cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h.  */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h.  */
6580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6582 #define $ac_func innocuous_$ac_func
6583
6584 /* System header to define __stub macros and hopefully few prototypes,
6585     which can conflict with char $ac_func (); below.
6586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6587     <limits.h> exists even on freestanding compilers.  */
6588
6589 #ifdef __STDC__
6590 # include <limits.h>
6591 #else
6592 # include <assert.h>
6593 #endif
6594
6595 #undef $ac_func
6596
6597 /* Override any gcc2 internal prototype to avoid an error.  */
6598 #ifdef __cplusplus
6599 extern "C"
6600 {
6601 #endif
6602 /* We use char because int might match the return type of a gcc2
6603    builtin and then its argument prototype would still apply.  */
6604 char $ac_func ();
6605 /* The GNU C library defines this for functions which it implements
6606     to always fail with ENOSYS.  Some functions are actually named
6607     something starting with __ and the normal name is an alias.  */
6608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6609 choke me
6610 #else
6611 char (*f) () = $ac_func;
6612 #endif
6613 #ifdef __cplusplus
6614 }
6615 #endif
6616
6617 int
6618 main ()
6619 {
6620 return f != $ac_func;
6621   ;
6622   return 0;
6623 }
6624 _ACEOF
6625 rm -f conftest.$ac_objext conftest$ac_exeext
6626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6627   (eval $ac_link) 2>conftest.er1
6628   ac_status=$?
6629   grep -v '^ *+' conftest.er1 >conftest.err
6630   rm -f conftest.er1
6631   cat conftest.err >&5
6632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633   (exit $ac_status); } &&
6634          { ac_try='test -z "$ac_c_werror_flag"
6635                          || test ! -s conftest.err'
6636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637   (eval $ac_try) 2>&5
6638   ac_status=$?
6639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640   (exit $ac_status); }; } &&
6641          { ac_try='test -s conftest$ac_exeext'
6642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643   (eval $ac_try) 2>&5
6644   ac_status=$?
6645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646   (exit $ac_status); }; }; then
6647   eval "$as_ac_var=yes"
6648 else
6649   echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6651
6652 eval "$as_ac_var=no"
6653 fi
6654 rm -f conftest.err conftest.$ac_objext \
6655       conftest$ac_exeext conftest.$ac_ext
6656 fi
6657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6659 if test `eval echo '${'$as_ac_var'}'` = yes; then
6660   cat >>confdefs.h <<_ACEOF
6661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6662 _ACEOF
6663
6664 fi
6665 done
6666
6667
6668
6669 DocumentRoot=/var/www/html
6670
6671 #AC_OUTPUT(Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile src/web/Makefile)
6672                                         ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile"
6673 cat >confcache <<\_ACEOF
6674 # This file is a shell script that caches the results of configure
6675 # tests run on this system so they can be shared between configure
6676 # scripts and configure runs, see configure's option --config-cache.
6677 # It is not useful on other systems.  If it contains results you don't
6678 # want to keep, you may remove or edit it.
6679 #
6680 # config.status only pays attention to the cache file if you give it
6681 # the --recheck option to rerun configure.
6682 #
6683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6685 # following values.
6686
6687 _ACEOF
6688
6689 # The following way of writing the cache mishandles newlines in values,
6690 # but we know of no workaround that is simple, portable, and efficient.
6691 # So, don't put newlines in cache variables' values.
6692 # Ultrix sh set writes to stderr and can't be redirected directly,
6693 # and sets the high bit in the cache file unless we assign to the vars.
6694 {
6695   (set) 2>&1 |
6696     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6697     *ac_space=\ *)
6698       # `set' does not quote correctly, so add quotes (double-quote
6699       # substitution turns \\\\ into \\, and sed turns \\ into \).
6700       sed -n \
6701         "s/'/'\\\\''/g;
6702           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6703       ;;
6704     *)
6705       # `set' quotes correctly as required by POSIX, so do not add quotes.
6706       sed -n \
6707         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6708       ;;
6709     esac;
6710 } |
6711   sed '
6712      t clear
6713      : clear
6714      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6715      t end
6716      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6717      : end' >>confcache
6718 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6719   if test -w $cache_file; then
6720     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6721     cat confcache >$cache_file
6722   else
6723     echo "not updating unwritable cache $cache_file"
6724   fi
6725 fi
6726 rm -f confcache
6727
6728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6729 # Let make expand exec_prefix.
6730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6731
6732 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6733 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6734 # trailing colons and then remove the whole line if VPATH becomes empty
6735 # (actually we leave an empty line to preserve line numbers).
6736 if test "x$srcdir" = x.; then
6737   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6738 s/:*\$(srcdir):*/:/;
6739 s/:*\${srcdir}:*/:/;
6740 s/:*@srcdir@:*/:/;
6741 s/^\([^=]*=[     ]*\):*/\1/;
6742 s/:*$//;
6743 s/^[^=]*=[       ]*$//;
6744 }'
6745 fi
6746
6747 # Transform confdefs.h into DEFS.
6748 # Protect against shell expansion while executing Makefile rules.
6749 # Protect against Makefile macro expansion.
6750 #
6751 # If the first sed substitution is executed (which looks for macros that
6752 # take arguments), then we branch to the quote section.  Otherwise,
6753 # look for a macro that doesn't take arguments.
6754 cat >confdef2opt.sed <<\_ACEOF
6755 t clear
6756 : clear
6757 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
6758 t quote
6759 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
6760 t quote
6761 d
6762 : quote
6763 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
6764 s,\[,\\&,g
6765 s,\],\\&,g
6766 s,\$,$$,g
6767 p
6768 _ACEOF
6769 # We use echo to avoid assuming a particular line-breaking character.
6770 # The extra dot is to prevent the shell from consuming trailing
6771 # line-breaks from the sub-command output.  A line-break within
6772 # single-quotes doesn't work because, if this script is created in a
6773 # platform that uses two characters for line-breaks (e.g., DOS), tr
6774 # would break.
6775 ac_LF_and_DOT=`echo; echo .`
6776 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6777 rm -f confdef2opt.sed
6778
6779
6780 ac_libobjs=
6781 ac_ltlibobjs=
6782 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6783   # 1. Remove the extension, and $U if already installed.
6784   ac_i=`echo "$ac_i" |
6785          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6786   # 2. Add them.
6787   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6788   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6789 done
6790 LIBOBJS=$ac_libobjs
6791
6792 LTLIBOBJS=$ac_ltlibobjs
6793
6794
6795 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6796   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6797 Usually this means the macro was only invoked conditionally." >&5
6798 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6799 Usually this means the macro was only invoked conditionally." >&2;}
6800    { (exit 1); exit 1; }; }
6801 fi
6802
6803 : ${CONFIG_STATUS=./config.status}
6804 ac_clean_files_save=$ac_clean_files
6805 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6806 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6807 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6808 cat >$CONFIG_STATUS <<_ACEOF
6809 #! $SHELL
6810 # Generated by $as_me.
6811 # Run this file to recreate the current configuration.
6812 # Compiler output produced by configure, useful for debugging
6813 # configure, is in config.log if it exists.
6814
6815 debug=false
6816 ac_cs_recheck=false
6817 ac_cs_silent=false
6818 SHELL=\${CONFIG_SHELL-$SHELL}
6819 _ACEOF
6820
6821 cat >>$CONFIG_STATUS <<\_ACEOF
6822 ## --------------------- ##
6823 ## M4sh Initialization.  ##
6824 ## --------------------- ##
6825
6826 # Be Bourne compatible
6827 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6828   emulate sh
6829   NULLCMD=:
6830   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6831   # is contrary to our usage.  Disable this feature.
6832   alias -g '${1+"$@"}'='"$@"'
6833 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6834   set -o posix
6835 fi
6836 DUALCASE=1; export DUALCASE # for MKS sh
6837
6838 # Support unset when possible.
6839 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6840   as_unset=unset
6841 else
6842   as_unset=false
6843 fi
6844
6845
6846 # Work around bugs in pre-3.0 UWIN ksh.
6847 $as_unset ENV MAIL MAILPATH
6848 PS1='$ '
6849 PS2='> '
6850 PS4='+ '
6851
6852 # NLS nuisances.
6853 for as_var in \
6854   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6855   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6856   LC_TELEPHONE LC_TIME
6857 do
6858   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6859     eval $as_var=C; export $as_var
6860   else
6861     $as_unset $as_var
6862   fi
6863 done
6864
6865 # Required to use basename.
6866 if expr a : '\(a\)' >/dev/null 2>&1; then
6867   as_expr=expr
6868 else
6869   as_expr=false
6870 fi
6871
6872 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6873   as_basename=basename
6874 else
6875   as_basename=false
6876 fi
6877
6878
6879 # Name of the executable.
6880 as_me=`$as_basename "$0" ||
6881 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6882          X"$0" : 'X\(//\)$' \| \
6883          X"$0" : 'X\(/\)$' \| \
6884          .     : '\(.\)' 2>/dev/null ||
6885 echo X/"$0" |
6886     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6887           /^X\/\(\/\/\)$/{ s//\1/; q; }
6888           /^X\/\(\/\).*/{ s//\1/; q; }
6889           s/.*/./; q'`
6890
6891
6892 # PATH needs CR, and LINENO needs CR and PATH.
6893 # Avoid depending upon Character Ranges.
6894 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6895 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6896 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6897 as_cr_digits='0123456789'
6898 as_cr_alnum=$as_cr_Letters$as_cr_digits
6899
6900 # The user is always right.
6901 if test "${PATH_SEPARATOR+set}" != set; then
6902   echo "#! /bin/sh" >conf$$.sh
6903   echo  "exit 0"   >>conf$$.sh
6904   chmod +x conf$$.sh
6905   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6906     PATH_SEPARATOR=';'
6907   else
6908     PATH_SEPARATOR=:
6909   fi
6910   rm -f conf$$.sh
6911 fi
6912
6913
6914   as_lineno_1=$LINENO
6915   as_lineno_2=$LINENO
6916   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6917   test "x$as_lineno_1" != "x$as_lineno_2" &&
6918   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6919   # Find who we are.  Look in the path if we contain no path at all
6920   # relative or not.
6921   case $0 in
6922     *[\\/]* ) as_myself=$0 ;;
6923     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6929 done
6930
6931        ;;
6932   esac
6933   # We did not find ourselves, most probably we were run as `sh COMMAND'
6934   # in which case we are not to be found in the path.
6935   if test "x$as_myself" = x; then
6936     as_myself=$0
6937   fi
6938   if test ! -f "$as_myself"; then
6939     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6940 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6941    { (exit 1); exit 1; }; }
6942   fi
6943   case $CONFIG_SHELL in
6944   '')
6945     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6947 do
6948   IFS=$as_save_IFS
6949   test -z "$as_dir" && as_dir=.
6950   for as_base in sh bash ksh sh5; do
6951          case $as_dir in
6952          /*)
6953            if ("$as_dir/$as_base" -c '
6954   as_lineno_1=$LINENO
6955   as_lineno_2=$LINENO
6956   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6957   test "x$as_lineno_1" != "x$as_lineno_2" &&
6958   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6959              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6960              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6961              CONFIG_SHELL=$as_dir/$as_base
6962              export CONFIG_SHELL
6963              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6964            fi;;
6965          esac
6966        done
6967 done
6968 ;;
6969   esac
6970
6971   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6972   # uniformly replaced by the line number.  The first 'sed' inserts a
6973   # line-number line before each line; the second 'sed' does the real
6974   # work.  The second script uses 'N' to pair each line-number line
6975   # with the numbered line, and appends trailing '-' during
6976   # substitution so that $LINENO is not a special case at line end.
6977   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6978   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6979   sed '=' <$as_myself |
6980     sed '
6981       N
6982       s,$,-,
6983       : loop
6984       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6985       t loop
6986       s,-$,,
6987       s,^['$as_cr_digits']*\n,,
6988     ' >$as_me.lineno &&
6989   chmod +x $as_me.lineno ||
6990     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6991 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6992    { (exit 1); exit 1; }; }
6993
6994   # Don't try to exec as it changes $[0], causing all sort of problems
6995   # (the dirname of $[0] is not the place where we might find the
6996   # original and so on.  Autoconf is especially sensible to this).
6997   . ./$as_me.lineno
6998   # Exit status is that of the last command.
6999   exit
7000 }
7001
7002
7003 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7004   *c*,-n*) ECHO_N= ECHO_C='
7005 ' ECHO_T='      ' ;;
7006   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7007   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7008 esac
7009
7010 if expr a : '\(a\)' >/dev/null 2>&1; then
7011   as_expr=expr
7012 else
7013   as_expr=false
7014 fi
7015
7016 rm -f conf$$ conf$$.exe conf$$.file
7017 echo >conf$$.file
7018 if ln -s conf$$.file conf$$ 2>/dev/null; then
7019   # We could just check for DJGPP; but this test a) works b) is more generic
7020   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7021   if test -f conf$$.exe; then
7022     # Don't use ln at all; we don't have any links
7023     as_ln_s='cp -p'
7024   else
7025     as_ln_s='ln -s'
7026   fi
7027 elif ln conf$$.file conf$$ 2>/dev/null; then
7028   as_ln_s=ln
7029 else
7030   as_ln_s='cp -p'
7031 fi
7032 rm -f conf$$ conf$$.exe conf$$.file
7033
7034 if mkdir -p . 2>/dev/null; then
7035   as_mkdir_p=:
7036 else
7037   test -d ./-p && rmdir ./-p
7038   as_mkdir_p=false
7039 fi
7040
7041 as_executable_p="test -f"
7042
7043 # Sed expression to map a string onto a valid CPP name.
7044 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7045
7046 # Sed expression to map a string onto a valid variable name.
7047 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7048
7049
7050 # IFS
7051 # We need space, tab and new line, in precisely that order.
7052 as_nl='
7053 '
7054 IFS="   $as_nl"
7055
7056 # CDPATH.
7057 $as_unset CDPATH
7058
7059 exec 6>&1
7060
7061 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7062 # report actual input values of CONFIG_FILES etc. instead of their
7063 # values after options handling.  Logging --version etc. is OK.
7064 exec 5>>config.log
7065 {
7066   echo
7067   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7068 ## Running $as_me. ##
7069 _ASBOX
7070 } >&5
7071 cat >&5 <<_CSEOF
7072
7073 This file was extended by $as_me, which was
7074 generated by GNU Autoconf 2.59.  Invocation command line was
7075
7076   CONFIG_FILES    = $CONFIG_FILES
7077   CONFIG_HEADERS  = $CONFIG_HEADERS
7078   CONFIG_LINKS    = $CONFIG_LINKS
7079   CONFIG_COMMANDS = $CONFIG_COMMANDS
7080   $ $0 $@
7081
7082 _CSEOF
7083 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7084 echo >&5
7085 _ACEOF
7086
7087 # Files that config.status was made for.
7088 if test -n "$ac_config_files"; then
7089   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7090 fi
7091
7092 if test -n "$ac_config_headers"; then
7093   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7094 fi
7095
7096 if test -n "$ac_config_links"; then
7097   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7098 fi
7099
7100 if test -n "$ac_config_commands"; then
7101   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7102 fi
7103
7104 cat >>$CONFIG_STATUS <<\_ACEOF
7105
7106 ac_cs_usage="\
7107 \`$as_me' instantiates files from templates according to the
7108 current configuration.
7109
7110 Usage: $0 [OPTIONS] [FILE]...
7111
7112   -h, --help       print this help, then exit
7113   -V, --version    print version number, then exit
7114   -q, --quiet      do not print progress messages
7115   -d, --debug      don't remove temporary files
7116       --recheck    update $as_me by reconfiguring in the same conditions
7117   --file=FILE[:TEMPLATE]
7118                    instantiate the configuration file FILE
7119
7120 Configuration files:
7121 $config_files
7122
7123 Configuration commands:
7124 $config_commands
7125
7126 Report bugs to <bug-autoconf@gnu.org>."
7127 _ACEOF
7128
7129 cat >>$CONFIG_STATUS <<_ACEOF
7130 ac_cs_version="\\
7131 config.status
7132 configured by $0, generated by GNU Autoconf 2.59,
7133   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7134
7135 Copyright (C) 2003 Free Software Foundation, Inc.
7136 This config.status script is free software; the Free Software Foundation
7137 gives unlimited permission to copy, distribute and modify it."
7138 srcdir=$srcdir
7139 INSTALL="$INSTALL"
7140 _ACEOF
7141
7142 cat >>$CONFIG_STATUS <<\_ACEOF
7143 # If no file are specified by the user, then we need to provide default
7144 # value.  By we need to know if files were specified by the user.
7145 ac_need_defaults=:
7146 while test $# != 0
7147 do
7148   case $1 in
7149   --*=*)
7150     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7151     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7152     ac_shift=:
7153     ;;
7154   -*)
7155     ac_option=$1
7156     ac_optarg=$2
7157     ac_shift=shift
7158     ;;
7159   *) # This is not an option, so the user has probably given explicit
7160      # arguments.
7161      ac_option=$1
7162      ac_need_defaults=false;;
7163   esac
7164
7165   case $ac_option in
7166   # Handling of the options.
7167 _ACEOF
7168 cat >>$CONFIG_STATUS <<\_ACEOF
7169   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7170     ac_cs_recheck=: ;;
7171   --version | --vers* | -V )
7172     echo "$ac_cs_version"; exit 0 ;;
7173   --he | --h)
7174     # Conflict between --help and --header
7175     { { echo "$as_me:$LINENO: error: ambiguous option: $1
7176 Try \`$0 --help' for more information." >&5
7177 echo "$as_me: error: ambiguous option: $1
7178 Try \`$0 --help' for more information." >&2;}
7179    { (exit 1); exit 1; }; };;
7180   --help | --hel | -h )
7181     echo "$ac_cs_usage"; exit 0 ;;
7182   --debug | --d* | -d )
7183     debug=: ;;
7184   --file | --fil | --fi | --f )
7185     $ac_shift
7186     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7187     ac_need_defaults=false;;
7188   --header | --heade | --head | --hea )
7189     $ac_shift
7190     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7191     ac_need_defaults=false;;
7192   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7193   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7194     ac_cs_silent=: ;;
7195
7196   # This is an error.
7197   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7198 Try \`$0 --help' for more information." >&5
7199 echo "$as_me: error: unrecognized option: $1
7200 Try \`$0 --help' for more information." >&2;}
7201    { (exit 1); exit 1; }; } ;;
7202
7203   *) ac_config_targets="$ac_config_targets $1" ;;
7204
7205   esac
7206   shift
7207 done
7208
7209 ac_configure_extra_args=
7210
7211 if $ac_cs_silent; then
7212   exec 6>/dev/null
7213   ac_configure_extra_args="$ac_configure_extra_args --silent"
7214 fi
7215
7216 _ACEOF
7217 cat >>$CONFIG_STATUS <<_ACEOF
7218 if \$ac_cs_recheck; then
7219   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7220   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7221 fi
7222
7223 _ACEOF
7224
7225 cat >>$CONFIG_STATUS <<_ACEOF
7226 #
7227 # INIT-COMMANDS section.
7228 #
7229
7230 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7231
7232 _ACEOF
7233
7234
7235
7236 cat >>$CONFIG_STATUS <<\_ACEOF
7237 for ac_config_target in $ac_config_targets
7238 do
7239   case "$ac_config_target" in
7240   # Handling of arguments.
7241   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7242   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7243   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
7244   "src/gcm_input/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gcm_input/Makefile" ;;
7245   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7246   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7247 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7248    { (exit 1); exit 1; }; };;
7249   esac
7250 done
7251
7252 # If the user did not use the arguments to specify the items to instantiate,
7253 # then the envvar interface is used.  Set only those that are not.
7254 # We use the long form for the default assignment because of an extremely
7255 # bizarre bug on SunOS 4.1.3.
7256 if $ac_need_defaults; then
7257   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7258   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7259 fi
7260
7261 # Have a temporary directory for convenience.  Make it in the build tree
7262 # simply because there is no reason to put it here, and in addition,
7263 # creating and moving files from /tmp can sometimes cause problems.
7264 # Create a temporary directory, and hook for its removal unless debugging.
7265 $debug ||
7266 {
7267   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7268   trap '{ (exit 1); exit 1; }' 1 2 13 15
7269 }
7270
7271 # Create a (secure) tmp directory for tmp files.
7272
7273 {
7274   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7275   test -n "$tmp" && test -d "$tmp"
7276 }  ||
7277 {
7278   tmp=./confstat$$-$RANDOM
7279   (umask 077 && mkdir $tmp)
7280 } ||
7281 {
7282    echo "$me: cannot create a temporary directory in ." >&2
7283    { (exit 1); exit 1; }
7284 }
7285
7286 _ACEOF
7287
7288 cat >>$CONFIG_STATUS <<_ACEOF
7289
7290 #
7291 # CONFIG_FILES section.
7292 #
7293
7294 # No need to generate the scripts if there are no CONFIG_FILES.
7295 # This happens for instance when ./config.status config.h
7296 if test -n "\$CONFIG_FILES"; then
7297   # Protect against being on the right side of a sed subst in config.status.
7298   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7299    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7300 s,@SHELL@,$SHELL,;t t
7301 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7302 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7303 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7304 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7305 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7306 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7307 s,@exec_prefix@,$exec_prefix,;t t
7308 s,@prefix@,$prefix,;t t
7309 s,@program_transform_name@,$program_transform_name,;t t
7310 s,@bindir@,$bindir,;t t
7311 s,@sbindir@,$sbindir,;t t
7312 s,@libexecdir@,$libexecdir,;t t
7313 s,@datadir@,$datadir,;t t
7314 s,@sysconfdir@,$sysconfdir,;t t
7315 s,@sharedstatedir@,$sharedstatedir,;t t
7316 s,@localstatedir@,$localstatedir,;t t
7317 s,@libdir@,$libdir,;t t
7318 s,@includedir@,$includedir,;t t
7319 s,@oldincludedir@,$oldincludedir,;t t
7320 s,@infodir@,$infodir,;t t
7321 s,@mandir@,$mandir,;t t
7322 s,@build_alias@,$build_alias,;t t
7323 s,@host_alias@,$host_alias,;t t
7324 s,@target_alias@,$target_alias,;t t
7325 s,@DEFS@,$DEFS,;t t
7326 s,@ECHO_C@,$ECHO_C,;t t
7327 s,@ECHO_N@,$ECHO_N,;t t
7328 s,@ECHO_T@,$ECHO_T,;t t
7329 s,@LIBS@,$LIBS,;t t
7330 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7331 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7332 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7333 s,@PACKAGE@,$PACKAGE,;t t
7334 s,@VERSION@,$VERSION,;t t
7335 s,@ACLOCAL@,$ACLOCAL,;t t
7336 s,@AUTOCONF@,$AUTOCONF,;t t
7337 s,@AUTOMAKE@,$AUTOMAKE,;t t
7338 s,@AUTOHEADER@,$AUTOHEADER,;t t
7339 s,@MAKEINFO@,$MAKEINFO,;t t
7340 s,@AMTAR@,$AMTAR,;t t
7341 s,@install_sh@,$install_sh,;t t
7342 s,@STRIP@,$STRIP,;t t
7343 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7344 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7345 s,@AWK@,$AWK,;t t
7346 s,@SET_MAKE@,$SET_MAKE,;t t
7347 s,@CC@,$CC,;t t
7348 s,@CFLAGS@,$CFLAGS,;t t
7349 s,@LDFLAGS@,$LDFLAGS,;t t
7350 s,@CPPFLAGS@,$CPPFLAGS,;t t
7351 s,@ac_ct_CC@,$ac_ct_CC,;t t
7352 s,@EXEEXT@,$EXEEXT,;t t
7353 s,@OBJEXT@,$OBJEXT,;t t
7354 s,@DEPDIR@,$DEPDIR,;t t
7355 s,@am__include@,$am__include,;t t
7356 s,@am__quote@,$am__quote,;t t
7357 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7358 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7359 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7360 s,@CCDEPMODE@,$CCDEPMODE,;t t
7361 s,@CXX@,$CXX,;t t
7362 s,@CXXFLAGS@,$CXXFLAGS,;t t
7363 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7364 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
7365 s,@CPP@,$CPP,;t t
7366 s,@LEX@,$LEX,;t t
7367 s,@LEXLIB@,$LEXLIB,;t t
7368 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7369 s,@LN_S@,$LN_S,;t t
7370 s,@RANLIB@,$RANLIB,;t t
7371 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7372 s,@YACC@,$YACC,;t t
7373 s,@XML_CONFIG@,$XML_CONFIG,;t t
7374 s,@X_CFLAGS@,$X_CFLAGS,;t t
7375 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
7376 s,@X_LIBS@,$X_LIBS,;t t
7377 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
7378 s,@PG_CONFIG@,$PG_CONFIG,;t t
7379 s,@with_postgres_lib@,$with_postgres_lib,;t t
7380 s,@with_postgres_include@,$with_postgres_include,;t t
7381 s,@POSTGRES_LIB@,$POSTGRES_LIB,;t t
7382 s,@POSTGRES_INCLUDE@,$POSTGRES_INCLUDE,;t t
7383 s,@EGREP@,$EGREP,;t t
7384 s,@LIBOBJS@,$LIBOBJS,;t t
7385 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7386 CEOF
7387
7388 _ACEOF
7389
7390   cat >>$CONFIG_STATUS <<\_ACEOF
7391   # Split the substitutions into bite-sized pieces for seds with
7392   # small command number limits, like on Digital OSF/1 and HP-UX.
7393   ac_max_sed_lines=48
7394   ac_sed_frag=1 # Number of current file.
7395   ac_beg=1 # First line for current file.
7396   ac_end=$ac_max_sed_lines # Line after last line for current file.
7397   ac_more_lines=:
7398   ac_sed_cmds=
7399   while $ac_more_lines; do
7400     if test $ac_beg -gt 1; then
7401       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7402     else
7403       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7404     fi
7405     if test ! -s $tmp/subs.frag; then
7406       ac_more_lines=false
7407     else
7408       # The purpose of the label and of the branching condition is to
7409       # speed up the sed processing (if there are no `@' at all, there
7410       # is no need to browse any of the substitutions).
7411       # These are the two extra sed commands mentioned above.
7412       (echo ':t
7413   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7414       if test -z "$ac_sed_cmds"; then
7415         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7416       else
7417         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7418       fi
7419       ac_sed_frag=`expr $ac_sed_frag + 1`
7420       ac_beg=$ac_end
7421       ac_end=`expr $ac_end + $ac_max_sed_lines`
7422     fi
7423   done
7424   if test -z "$ac_sed_cmds"; then
7425     ac_sed_cmds=cat
7426   fi
7427 fi # test -n "$CONFIG_FILES"
7428
7429 _ACEOF
7430 cat >>$CONFIG_STATUS <<\_ACEOF
7431 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7432   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7433   case $ac_file in
7434   - | *:- | *:-:* ) # input from stdin
7435         cat >$tmp/stdin
7436         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7437         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7438   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7439         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7440   * )   ac_file_in=$ac_file.in ;;
7441   esac
7442
7443   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7444   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7445 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7446          X"$ac_file" : 'X\(//\)[^/]' \| \
7447          X"$ac_file" : 'X\(//\)$' \| \
7448          X"$ac_file" : 'X\(/\)' \| \
7449          .     : '\(.\)' 2>/dev/null ||
7450 echo X"$ac_file" |
7451     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7452           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7453           /^X\(\/\/\)$/{ s//\1/; q; }
7454           /^X\(\/\).*/{ s//\1/; q; }
7455           s/.*/./; q'`
7456   { if $as_mkdir_p; then
7457     mkdir -p "$ac_dir"
7458   else
7459     as_dir="$ac_dir"
7460     as_dirs=
7461     while test ! -d "$as_dir"; do
7462       as_dirs="$as_dir $as_dirs"
7463       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7464 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7465          X"$as_dir" : 'X\(//\)[^/]' \| \
7466          X"$as_dir" : 'X\(//\)$' \| \
7467          X"$as_dir" : 'X\(/\)' \| \
7468          .     : '\(.\)' 2>/dev/null ||
7469 echo X"$as_dir" |
7470     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7471           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7472           /^X\(\/\/\)$/{ s//\1/; q; }
7473           /^X\(\/\).*/{ s//\1/; q; }
7474           s/.*/./; q'`
7475     done
7476     test ! -n "$as_dirs" || mkdir $as_dirs
7477   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7478 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7479    { (exit 1); exit 1; }; }; }
7480
7481   ac_builddir=.
7482
7483 if test "$ac_dir" != .; then
7484   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7485   # A "../" for each directory in $ac_dir_suffix.
7486   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7487 else
7488   ac_dir_suffix= ac_top_builddir=
7489 fi
7490
7491 case $srcdir in
7492   .)  # No --srcdir option.  We are building in place.
7493     ac_srcdir=.
7494     if test -z "$ac_top_builddir"; then
7495        ac_top_srcdir=.
7496     else
7497        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7498     fi ;;
7499   [\\/]* | ?:[\\/]* )  # Absolute path.
7500     ac_srcdir=$srcdir$ac_dir_suffix;
7501     ac_top_srcdir=$srcdir ;;
7502   *) # Relative path.
7503     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7504     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7505 esac
7506
7507 # Do not use `cd foo && pwd` to compute absolute paths, because
7508 # the directories may not exist.
7509 case `pwd` in
7510 .) ac_abs_builddir="$ac_dir";;
7511 *)
7512   case "$ac_dir" in
7513   .) ac_abs_builddir=`pwd`;;
7514   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7515   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7516   esac;;
7517 esac
7518 case $ac_abs_builddir in
7519 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7520 *)
7521   case ${ac_top_builddir}. in
7522   .) ac_abs_top_builddir=$ac_abs_builddir;;
7523   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7524   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7525   esac;;
7526 esac
7527 case $ac_abs_builddir in
7528 .) ac_abs_srcdir=$ac_srcdir;;
7529 *)
7530   case $ac_srcdir in
7531   .) ac_abs_srcdir=$ac_abs_builddir;;
7532   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7533   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7534   esac;;
7535 esac
7536 case $ac_abs_builddir in
7537 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7538 *)
7539   case $ac_top_srcdir in
7540   .) ac_abs_top_srcdir=$ac_abs_builddir;;
7541   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7542   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7543   esac;;
7544 esac
7545
7546
7547   case $INSTALL in
7548   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7549   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7550   esac
7551
7552   if test x"$ac_file" != x-; then
7553     { echo "$as_me:$LINENO: creating $ac_file" >&5
7554 echo "$as_me: creating $ac_file" >&6;}
7555     rm -f "$ac_file"
7556   fi
7557   # Let's still pretend it is `configure' which instantiates (i.e., don't
7558   # use $as_me), people would be surprised to read:
7559   #    /* config.h.  Generated by config.status.  */
7560   if test x"$ac_file" = x-; then
7561     configure_input=
7562   else
7563     configure_input="$ac_file.  "
7564   fi
7565   configure_input=$configure_input"Generated from `echo $ac_file_in |
7566                                      sed 's,.*/,,'` by configure."
7567
7568   # First look for the input files in the build tree, otherwise in the
7569   # src tree.
7570   ac_file_inputs=`IFS=:
7571     for f in $ac_file_in; do
7572       case $f in
7573       -) echo $tmp/stdin ;;
7574       [\\/$]*)
7575          # Absolute (can't be DOS-style, as IFS=:)
7576          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7577 echo "$as_me: error: cannot find input file: $f" >&2;}
7578    { (exit 1); exit 1; }; }
7579          echo "$f";;
7580       *) # Relative
7581          if test -f "$f"; then
7582            # Build tree
7583            echo "$f"
7584          elif test -f "$srcdir/$f"; then
7585            # Source tree
7586            echo "$srcdir/$f"
7587          else
7588            # /dev/null tree
7589            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7590 echo "$as_me: error: cannot find input file: $f" >&2;}
7591    { (exit 1); exit 1; }; }
7592          fi;;
7593       esac
7594     done` || { (exit 1); exit 1; }
7595 _ACEOF
7596 cat >>$CONFIG_STATUS <<_ACEOF
7597   sed "$ac_vpsub
7598 $extrasub
7599 _ACEOF
7600 cat >>$CONFIG_STATUS <<\_ACEOF
7601 :t
7602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7603 s,@configure_input@,$configure_input,;t t
7604 s,@srcdir@,$ac_srcdir,;t t
7605 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7606 s,@top_srcdir@,$ac_top_srcdir,;t t
7607 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7608 s,@builddir@,$ac_builddir,;t t
7609 s,@abs_builddir@,$ac_abs_builddir,;t t
7610 s,@top_builddir@,$ac_top_builddir,;t t
7611 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7612 s,@INSTALL@,$ac_INSTALL,;t t
7613 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7614   rm -f $tmp/stdin
7615   if test x"$ac_file" != x-; then
7616     mv $tmp/out $ac_file
7617   else
7618     cat $tmp/out
7619     rm -f $tmp/out
7620   fi
7621
7622 done
7623 _ACEOF
7624 cat >>$CONFIG_STATUS <<\_ACEOF
7625
7626 #
7627 # CONFIG_COMMANDS section.
7628 #
7629 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7630   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7631   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7632   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7633 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7634          X"$ac_dest" : 'X\(//\)[^/]' \| \
7635          X"$ac_dest" : 'X\(//\)$' \| \
7636          X"$ac_dest" : 'X\(/\)' \| \
7637          .     : '\(.\)' 2>/dev/null ||
7638 echo X"$ac_dest" |
7639     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7640           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7641           /^X\(\/\/\)$/{ s//\1/; q; }
7642           /^X\(\/\).*/{ s//\1/; q; }
7643           s/.*/./; q'`
7644   { if $as_mkdir_p; then
7645     mkdir -p "$ac_dir"
7646   else
7647     as_dir="$ac_dir"
7648     as_dirs=
7649     while test ! -d "$as_dir"; do
7650       as_dirs="$as_dir $as_dirs"
7651       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7652 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7653          X"$as_dir" : 'X\(//\)[^/]' \| \
7654          X"$as_dir" : 'X\(//\)$' \| \
7655          X"$as_dir" : 'X\(/\)' \| \
7656          .     : '\(.\)' 2>/dev/null ||
7657 echo X"$as_dir" |
7658     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7659           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7660           /^X\(\/\/\)$/{ s//\1/; q; }
7661           /^X\(\/\).*/{ s//\1/; q; }
7662           s/.*/./; q'`
7663     done
7664     test ! -n "$as_dirs" || mkdir $as_dirs
7665   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7666 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7667    { (exit 1); exit 1; }; }; }
7668
7669   ac_builddir=.
7670
7671 if test "$ac_dir" != .; then
7672   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7673   # A "../" for each directory in $ac_dir_suffix.
7674   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7675 else
7676   ac_dir_suffix= ac_top_builddir=
7677 fi
7678
7679 case $srcdir in
7680   .)  # No --srcdir option.  We are building in place.
7681     ac_srcdir=.
7682     if test -z "$ac_top_builddir"; then
7683        ac_top_srcdir=.
7684     else
7685        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7686     fi ;;
7687   [\\/]* | ?:[\\/]* )  # Absolute path.
7688     ac_srcdir=$srcdir$ac_dir_suffix;
7689     ac_top_srcdir=$srcdir ;;
7690   *) # Relative path.
7691     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7692     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7693 esac
7694
7695 # Do not use `cd foo && pwd` to compute absolute paths, because
7696 # the directories may not exist.
7697 case `pwd` in
7698 .) ac_abs_builddir="$ac_dir";;
7699 *)
7700   case "$ac_dir" in
7701   .) ac_abs_builddir=`pwd`;;
7702   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7703   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7704   esac;;
7705 esac
7706 case $ac_abs_builddir in
7707 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7708 *)
7709   case ${ac_top_builddir}. in
7710   .) ac_abs_top_builddir=$ac_abs_builddir;;
7711   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7712   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7713   esac;;
7714 esac
7715 case $ac_abs_builddir in
7716 .) ac_abs_srcdir=$ac_srcdir;;
7717 *)
7718   case $ac_srcdir in
7719   .) ac_abs_srcdir=$ac_abs_builddir;;
7720   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7721   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7722   esac;;
7723 esac
7724 case $ac_abs_builddir in
7725 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7726 *)
7727   case $ac_top_srcdir in
7728   .) ac_abs_top_srcdir=$ac_abs_builddir;;
7729   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7730   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7731   esac;;
7732 esac
7733
7734
7735   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7736 echo "$as_me: executing $ac_dest commands" >&6;}
7737   case $ac_dest in
7738     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7739   # Strip MF so we end up with the name of the file.
7740   mf=`echo "$mf" | sed -e 's/:.*$//'`
7741   # Check whether this is an Automake generated Makefile or not.
7742   # We used to match only the files named `Makefile.in', but
7743   # some people rename them; so instead we look at the file content.
7744   # Grep'ing the first line is not enough: some people post-process
7745   # each Makefile.in and add a new line on top of each file to say so.
7746   # So let's grep whole file.
7747   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7748     dirpart=`(dirname "$mf") 2>/dev/null ||
7749 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7750          X"$mf" : 'X\(//\)[^/]' \| \
7751          X"$mf" : 'X\(//\)$' \| \
7752          X"$mf" : 'X\(/\)' \| \
7753          .     : '\(.\)' 2>/dev/null ||
7754 echo X"$mf" |
7755     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7756           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7757           /^X\(\/\/\)$/{ s//\1/; q; }
7758           /^X\(\/\).*/{ s//\1/; q; }
7759           s/.*/./; q'`
7760   else
7761     continue
7762   fi
7763   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7764   # Extract the definition of DEP_FILES from the Makefile without
7765   # running `make'.
7766   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7767   test -z "$DEPDIR" && continue
7768   # When using ansi2knr, U may be empty or an underscore; expand it
7769   U=`sed -n -e '/^U = / s///p' < "$mf"`
7770   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7771   # We invoke sed twice because it is the simplest approach to
7772   # changing $(DEPDIR) to its actual value in the expansion.
7773   for file in `sed -n -e '
7774     /^DEP_FILES = .*\\\\$/ {
7775       s/^DEP_FILES = //
7776       :loop
7777         s/\\\\$//
7778         p
7779         n
7780         /\\\\$/ b loop
7781       p
7782     }
7783     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7784        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7785     # Make sure the directory exists.
7786     test -f "$dirpart/$file" && continue
7787     fdir=`(dirname "$file") 2>/dev/null ||
7788 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7789          X"$file" : 'X\(//\)[^/]' \| \
7790          X"$file" : 'X\(//\)$' \| \
7791          X"$file" : 'X\(/\)' \| \
7792          .     : '\(.\)' 2>/dev/null ||
7793 echo X"$file" |
7794     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7795           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7796           /^X\(\/\/\)$/{ s//\1/; q; }
7797           /^X\(\/\).*/{ s//\1/; q; }
7798           s/.*/./; q'`
7799     { if $as_mkdir_p; then
7800     mkdir -p $dirpart/$fdir
7801   else
7802     as_dir=$dirpart/$fdir
7803     as_dirs=
7804     while test ! -d "$as_dir"; do
7805       as_dirs="$as_dir $as_dirs"
7806       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7808          X"$as_dir" : 'X\(//\)[^/]' \| \
7809          X"$as_dir" : 'X\(//\)$' \| \
7810          X"$as_dir" : 'X\(/\)' \| \
7811          .     : '\(.\)' 2>/dev/null ||
7812 echo X"$as_dir" |
7813     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7814           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7815           /^X\(\/\/\)$/{ s//\1/; q; }
7816           /^X\(\/\).*/{ s//\1/; q; }
7817           s/.*/./; q'`
7818     done
7819     test ! -n "$as_dirs" || mkdir $as_dirs
7820   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7821 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7822    { (exit 1); exit 1; }; }; }
7823
7824     # echo "creating $dirpart/$file"
7825     echo '# dummy' > "$dirpart/$file"
7826   done
7827 done
7828  ;;
7829   esac
7830 done
7831 _ACEOF
7832
7833 cat >>$CONFIG_STATUS <<\_ACEOF
7834
7835 { (exit 0); exit 0; }
7836 _ACEOF
7837 chmod +x $CONFIG_STATUS
7838 ac_clean_files=$ac_clean_files_save
7839
7840
7841 # configure is writing to config.log, and then calls config.status.
7842 # config.status does its own redirection, appending to config.log.
7843 # Unfortunately, on DOS this fails, as config.log is still kept open
7844 # by configure, so config.status won't be able to write to it; its
7845 # output is simply discarded.  So we exec the FD to /dev/null,
7846 # effectively closing config.log, so it can be properly (re)opened and
7847 # appended to by config.status.  When coming back to configure, we
7848 # need to make the FD available again.
7849 if test "$no_create" != yes; then
7850   ac_cs_success=:
7851   ac_config_status_args=
7852   test "$silent" = yes &&
7853     ac_config_status_args="$ac_config_status_args --quiet"
7854   exec 5>/dev/null
7855   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7856   exec 5>>config.log
7857   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7858   # would make configure fail if this is the last instruction.
7859   $ac_cs_success || { (exit 1); exit 1; }
7860 fi
7861