Added GRANTS in the database for the admin group.
[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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE 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 build
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.8"
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 # expand $ac_aux_dir to an absolute path
1481 am_aux_dir=`cd $ac_aux_dir && pwd`
1482
1483 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1484 # Use eval to expand $SHELL
1485 if eval "$MISSING --run true"; then
1486   am_missing_run="$MISSING --run "
1487 else
1488   am_missing_run=
1489   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1490 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1491 fi
1492
1493 if mkdir -p -- . 2>/dev/null; then
1494   # Keeping the `.' argument allows $(mkdir_p) to be used without
1495   # argument.  Indeed, we sometimes output rules like
1496   #   $(mkdir_p) $(somedir)
1497   # where $(somedir) is conditionally defined.
1498   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1499   # expensive solution, as it forces Make to start a sub-shell.)
1500   mkdir_p='mkdir -p -- .'
1501 else
1502   # On NextStep and OpenStep, the `mkdir' command does not
1503   # recognize any option.  It will interpret all options as
1504   # directories to create, and then abort because `.' already
1505   # exists.
1506   for d in ./-p ./--;
1507   do
1508     test -d $d && rmdir $d
1509   done
1510   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1511   if test -f "$ac_aux_dir/mkinstalldirs"; then
1512     mkdir_p='$(mkinstalldirs)'
1513   else
1514     mkdir_p='$(install_sh) -d'
1515   fi
1516 fi
1517
1518 for ac_prog in gawk mawk nawk awk
1519 do
1520   # Extract the first word of "$ac_prog", so it can be a program name with args.
1521 set dummy $ac_prog; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_AWK+set}" = set; then
1525   echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527   if test -n "$AWK"; then
1528   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1529 else
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 for as_dir in $PATH
1532 do
1533   IFS=$as_save_IFS
1534   test -z "$as_dir" && as_dir=.
1535   for ac_exec_ext in '' $ac_executable_extensions; do
1536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537     ac_cv_prog_AWK="$ac_prog"
1538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539     break 2
1540   fi
1541 done
1542 done
1543
1544 fi
1545 fi
1546 AWK=$ac_cv_prog_AWK
1547 if test -n "$AWK"; then
1548   echo "$as_me:$LINENO: result: $AWK" >&5
1549 echo "${ECHO_T}$AWK" >&6
1550 else
1551   echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1553 fi
1554
1555   test -n "$AWK" && break
1556 done
1557
1558 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1559 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1560 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1561 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1562   echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564   cat >conftest.make <<\_ACEOF
1565 all:
1566         @echo 'ac_maketemp="$(MAKE)"'
1567 _ACEOF
1568 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1569 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1570 if test -n "$ac_maketemp"; then
1571   eval ac_cv_prog_make_${ac_make}_set=yes
1572 else
1573   eval ac_cv_prog_make_${ac_make}_set=no
1574 fi
1575 rm -f conftest.make
1576 fi
1577 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1578   echo "$as_me:$LINENO: result: yes" >&5
1579 echo "${ECHO_T}yes" >&6
1580   SET_MAKE=
1581 else
1582   echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1584   SET_MAKE="MAKE=${MAKE-make}"
1585 fi
1586
1587 rm -rf .tst 2>/dev/null
1588 mkdir .tst 2>/dev/null
1589 if test -d .tst; then
1590   am__leading_dot=.
1591 else
1592   am__leading_dot=_
1593 fi
1594 rmdir .tst 2>/dev/null
1595
1596 # test to see if srcdir already configured
1597 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1598    test -f $srcdir/config.status; then
1599   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1600 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1601    { (exit 1); exit 1; }; }
1602 fi
1603
1604 # test whether we have cygpath
1605 if test -z "$CYGPATH_W"; then
1606   if (cygpath --version) >/dev/null 2>/dev/null; then
1607     CYGPATH_W='cygpath -w'
1608   else
1609     CYGPATH_W=echo
1610   fi
1611 fi
1612
1613
1614 # Define the identity of the package.
1615  PACKAGE=GnuCoMo
1616  VERSION=0.0.10
1617
1618
1619 cat >>confdefs.h <<_ACEOF
1620 #define PACKAGE "$PACKAGE"
1621 _ACEOF
1622
1623
1624 cat >>confdefs.h <<_ACEOF
1625 #define VERSION "$VERSION"
1626 _ACEOF
1627
1628 # Some tools Automake needs.
1629
1630 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1631
1632
1633 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1634
1635
1636 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1637
1638
1639 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1640
1641
1642 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1643
1644
1645 AMTAR=${AMTAR-"${am_missing_run}tar"}
1646
1647 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1648
1649 # Installed binaries are usually stripped using `strip' when the user
1650 # run `make install-strip'.  However `strip' might not be the right
1651 # tool to use in cross-compilation environments, therefore Automake
1652 # will honor the `STRIP' environment variable to overrule this program.
1653 if test "$cross_compiling" != no; then
1654   if test -n "$ac_tool_prefix"; then
1655   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1656 set dummy ${ac_tool_prefix}strip; ac_word=$2
1657 echo "$as_me:$LINENO: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_STRIP+set}" = set; then
1660   echo $ECHO_N "(cached) $ECHO_C" >&6
1661 else
1662   if test -n "$STRIP"; then
1663   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1664 else
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1667 do
1668   IFS=$as_save_IFS
1669   test -z "$as_dir" && as_dir=.
1670   for ac_exec_ext in '' $ac_executable_extensions; do
1671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674     break 2
1675   fi
1676 done
1677 done
1678
1679 fi
1680 fi
1681 STRIP=$ac_cv_prog_STRIP
1682 if test -n "$STRIP"; then
1683   echo "$as_me:$LINENO: result: $STRIP" >&5
1684 echo "${ECHO_T}$STRIP" >&6
1685 else
1686   echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1688 fi
1689
1690 fi
1691 if test -z "$ac_cv_prog_STRIP"; then
1692   ac_ct_STRIP=$STRIP
1693   # Extract the first word of "strip", so it can be a program name with args.
1694 set dummy strip; ac_word=$2
1695 echo "$as_me:$LINENO: checking for $ac_word" >&5
1696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1698   echo $ECHO_N "(cached) $ECHO_C" >&6
1699 else
1700   if test -n "$ac_ct_STRIP"; then
1701   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1702 else
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 for as_dir in $PATH
1705 do
1706   IFS=$as_save_IFS
1707   test -z "$as_dir" && as_dir=.
1708   for ac_exec_ext in '' $ac_executable_extensions; do
1709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710     ac_cv_prog_ac_ct_STRIP="strip"
1711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712     break 2
1713   fi
1714 done
1715 done
1716
1717   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1718 fi
1719 fi
1720 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1721 if test -n "$ac_ct_STRIP"; then
1722   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1723 echo "${ECHO_T}$ac_ct_STRIP" >&6
1724 else
1725   echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1727 fi
1728
1729   STRIP=$ac_ct_STRIP
1730 else
1731   STRIP="$ac_cv_prog_STRIP"
1732 fi
1733
1734 fi
1735 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1736
1737 # We need awk for the "check" target.  The system "awk" is bad on
1738 # some platforms.
1739
1740
1741
1742
1743
1744 ac_ext=c
1745 ac_cpp='$CPP $CPPFLAGS'
1746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1749 if test -n "$ac_tool_prefix"; then
1750   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1751 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1752 echo "$as_me:$LINENO: checking for $ac_word" >&5
1753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754 if test "${ac_cv_prog_CC+set}" = set; then
1755   echo $ECHO_N "(cached) $ECHO_C" >&6
1756 else
1757   if test -n "$CC"; then
1758   ac_cv_prog_CC="$CC" # Let the user override the test.
1759 else
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 for as_dir in $PATH
1762 do
1763   IFS=$as_save_IFS
1764   test -z "$as_dir" && as_dir=.
1765   for ac_exec_ext in '' $ac_executable_extensions; do
1766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769     break 2
1770   fi
1771 done
1772 done
1773
1774 fi
1775 fi
1776 CC=$ac_cv_prog_CC
1777 if test -n "$CC"; then
1778   echo "$as_me:$LINENO: result: $CC" >&5
1779 echo "${ECHO_T}$CC" >&6
1780 else
1781   echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1783 fi
1784
1785 fi
1786 if test -z "$ac_cv_prog_CC"; then
1787   ac_ct_CC=$CC
1788   # Extract the first word of "gcc", so it can be a program name with args.
1789 set dummy gcc; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793   echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795   if test -n "$ac_ct_CC"; then
1796   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1800 do
1801   IFS=$as_save_IFS
1802   test -z "$as_dir" && as_dir=.
1803   for ac_exec_ext in '' $ac_executable_extensions; do
1804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805     ac_cv_prog_ac_ct_CC="gcc"
1806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807     break 2
1808   fi
1809 done
1810 done
1811
1812 fi
1813 fi
1814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815 if test -n "$ac_ct_CC"; then
1816   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817 echo "${ECHO_T}$ac_ct_CC" >&6
1818 else
1819   echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1821 fi
1822
1823   CC=$ac_ct_CC
1824 else
1825   CC="$ac_cv_prog_CC"
1826 fi
1827
1828 if test -z "$CC"; then
1829   if test -n "$ac_tool_prefix"; then
1830   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1831 set dummy ${ac_tool_prefix}cc; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_CC+set}" = set; then
1835   echo $ECHO_N "(cached) $ECHO_C" >&6
1836 else
1837   if test -n "$CC"; then
1838   ac_cv_prog_CC="$CC" # Let the user override the test.
1839 else
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 for as_dir in $PATH
1842 do
1843   IFS=$as_save_IFS
1844   test -z "$as_dir" && as_dir=.
1845   for ac_exec_ext in '' $ac_executable_extensions; do
1846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847     ac_cv_prog_CC="${ac_tool_prefix}cc"
1848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849     break 2
1850   fi
1851 done
1852 done
1853
1854 fi
1855 fi
1856 CC=$ac_cv_prog_CC
1857 if test -n "$CC"; then
1858   echo "$as_me:$LINENO: result: $CC" >&5
1859 echo "${ECHO_T}$CC" >&6
1860 else
1861   echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1863 fi
1864
1865 fi
1866 if test -z "$ac_cv_prog_CC"; then
1867   ac_ct_CC=$CC
1868   # Extract the first word of "cc", so it can be a program name with args.
1869 set dummy cc; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   if test -n "$ac_ct_CC"; then
1876   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1877 else
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     ac_cv_prog_ac_ct_CC="cc"
1886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887     break 2
1888   fi
1889 done
1890 done
1891
1892 fi
1893 fi
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1898 else
1899   echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1901 fi
1902
1903   CC=$ac_ct_CC
1904 else
1905   CC="$ac_cv_prog_CC"
1906 fi
1907
1908 fi
1909 if test -z "$CC"; then
1910   # Extract the first word of "cc", so it can be a program name with args.
1911 set dummy cc; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_CC+set}" = set; then
1915   echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917   if test -n "$CC"; then
1918   ac_cv_prog_CC="$CC" # Let the user override the test.
1919 else
1920   ac_prog_rejected=no
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 for as_dir in $PATH
1923 do
1924   IFS=$as_save_IFS
1925   test -z "$as_dir" && as_dir=.
1926   for ac_exec_ext in '' $ac_executable_extensions; do
1927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1929        ac_prog_rejected=yes
1930        continue
1931      fi
1932     ac_cv_prog_CC="cc"
1933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934     break 2
1935   fi
1936 done
1937 done
1938
1939 if test $ac_prog_rejected = yes; then
1940   # We found a bogon in the path, so make sure we never use it.
1941   set dummy $ac_cv_prog_CC
1942   shift
1943   if test $# != 0; then
1944     # We chose a different compiler from the bogus one.
1945     # However, it has the same basename, so the bogon will be chosen
1946     # first if we set CC to just the basename; use the full file name.
1947     shift
1948     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1949   fi
1950 fi
1951 fi
1952 fi
1953 CC=$ac_cv_prog_CC
1954 if test -n "$CC"; then
1955   echo "$as_me:$LINENO: result: $CC" >&5
1956 echo "${ECHO_T}$CC" >&6
1957 else
1958   echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1960 fi
1961
1962 fi
1963 if test -z "$CC"; then
1964   if test -n "$ac_tool_prefix"; then
1965   for ac_prog in cl
1966   do
1967     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972   echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974   if test -n "$CC"; then
1975   ac_cv_prog_CC="$CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980   IFS=$as_save_IFS
1981   test -z "$as_dir" && as_dir=.
1982   for ac_exec_ext in '' $ac_executable_extensions; do
1983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986     break 2
1987   fi
1988 done
1989 done
1990
1991 fi
1992 fi
1993 CC=$ac_cv_prog_CC
1994 if test -n "$CC"; then
1995   echo "$as_me:$LINENO: result: $CC" >&5
1996 echo "${ECHO_T}$CC" >&6
1997 else
1998   echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2000 fi
2001
2002     test -n "$CC" && break
2003   done
2004 fi
2005 if test -z "$CC"; then
2006   ac_ct_CC=$CC
2007   for ac_prog in cl
2008 do
2009   # Extract the first word of "$ac_prog", so it can be a program name with args.
2010 set dummy $ac_prog; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2014   echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016   if test -n "$ac_ct_CC"; then
2017   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022   IFS=$as_save_IFS
2023   test -z "$as_dir" && as_dir=.
2024   for ac_exec_ext in '' $ac_executable_extensions; do
2025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026     ac_cv_prog_ac_ct_CC="$ac_prog"
2027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028     break 2
2029   fi
2030 done
2031 done
2032
2033 fi
2034 fi
2035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2036 if test -n "$ac_ct_CC"; then
2037   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2038 echo "${ECHO_T}$ac_ct_CC" >&6
2039 else
2040   echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2042 fi
2043
2044   test -n "$ac_ct_CC" && break
2045 done
2046
2047   CC=$ac_ct_CC
2048 fi
2049
2050 fi
2051
2052
2053 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2054 See \`config.log' for more details." >&5
2055 echo "$as_me: error: no acceptable C compiler found in \$PATH
2056 See \`config.log' for more details." >&2;}
2057    { (exit 1); exit 1; }; }
2058
2059 # Provide some information about the compiler.
2060 echo "$as_me:$LINENO:" \
2061      "checking for C compiler version" >&5
2062 ac_compiler=`set X $ac_compile; echo $2`
2063 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2064   (eval $ac_compiler --version </dev/null >&5) 2>&5
2065   ac_status=$?
2066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067   (exit $ac_status); }
2068 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2069   (eval $ac_compiler -v </dev/null >&5) 2>&5
2070   ac_status=$?
2071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072   (exit $ac_status); }
2073 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2074   (eval $ac_compiler -V </dev/null >&5) 2>&5
2075   ac_status=$?
2076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077   (exit $ac_status); }
2078
2079 cat >conftest.$ac_ext <<_ACEOF
2080 /* confdefs.h.  */
2081 _ACEOF
2082 cat confdefs.h >>conftest.$ac_ext
2083 cat >>conftest.$ac_ext <<_ACEOF
2084 /* end confdefs.h.  */
2085
2086 int
2087 main ()
2088 {
2089
2090   ;
2091   return 0;
2092 }
2093 _ACEOF
2094 ac_clean_files_save=$ac_clean_files
2095 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2096 # Try to create an executable without -o first, disregard a.out.
2097 # It will help us diagnose broken compilers, and finding out an intuition
2098 # of exeext.
2099 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2100 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2101 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2102 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2103   (eval $ac_link_default) 2>&5
2104   ac_status=$?
2105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106   (exit $ac_status); }; then
2107   # Find the output, starting from the most likely.  This scheme is
2108 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2109 # resort.
2110
2111 # Be careful to initialize this variable, since it used to be cached.
2112 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2113 ac_cv_exeext=
2114 # b.out is created by i960 compilers.
2115 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2116 do
2117   test -f "$ac_file" || continue
2118   case $ac_file in
2119     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2120         ;;
2121     conftest.$ac_ext )
2122         # This is the source file.
2123         ;;
2124     [ab].out )
2125         # We found the default executable, but exeext='' is most
2126         # certainly right.
2127         break;;
2128     *.* )
2129         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2130         # FIXME: I believe we export ac_cv_exeext for Libtool,
2131         # but it would be cool to find out if it's true.  Does anybody
2132         # maintain Libtool? --akim.
2133         export ac_cv_exeext
2134         break;;
2135     * )
2136         break;;
2137   esac
2138 done
2139 else
2140   echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2142
2143 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2144 See \`config.log' for more details." >&5
2145 echo "$as_me: error: C compiler cannot create executables
2146 See \`config.log' for more details." >&2;}
2147    { (exit 77); exit 77; }; }
2148 fi
2149
2150 ac_exeext=$ac_cv_exeext
2151 echo "$as_me:$LINENO: result: $ac_file" >&5
2152 echo "${ECHO_T}$ac_file" >&6
2153
2154 # Check the compiler produces executables we can run.  If not, either
2155 # the compiler is broken, or we cross compile.
2156 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2157 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2158 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2159 # If not cross compiling, check that we can run a simple program.
2160 if test "$cross_compiling" != yes; then
2161   if { ac_try='./$ac_file'
2162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163   (eval $ac_try) 2>&5
2164   ac_status=$?
2165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166   (exit $ac_status); }; }; then
2167     cross_compiling=no
2168   else
2169     if test "$cross_compiling" = maybe; then
2170         cross_compiling=yes
2171     else
2172         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2173 If you meant to cross compile, use \`--host'.
2174 See \`config.log' for more details." >&5
2175 echo "$as_me: error: cannot run C compiled programs.
2176 If you meant to cross compile, use \`--host'.
2177 See \`config.log' for more details." >&2;}
2178    { (exit 1); exit 1; }; }
2179     fi
2180   fi
2181 fi
2182 echo "$as_me:$LINENO: result: yes" >&5
2183 echo "${ECHO_T}yes" >&6
2184
2185 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2186 ac_clean_files=$ac_clean_files_save
2187 # Check the compiler produces executables we can run.  If not, either
2188 # the compiler is broken, or we cross compile.
2189 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2190 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2191 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2192 echo "${ECHO_T}$cross_compiling" >&6
2193
2194 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2195 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2197   (eval $ac_link) 2>&5
2198   ac_status=$?
2199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200   (exit $ac_status); }; then
2201   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2202 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2203 # work properly (i.e., refer to `conftest.exe'), while it won't with
2204 # `rm'.
2205 for ac_file in conftest.exe conftest conftest.*; do
2206   test -f "$ac_file" || continue
2207   case $ac_file in
2208     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2209     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2210           export ac_cv_exeext
2211           break;;
2212     * ) break;;
2213   esac
2214 done
2215 else
2216   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2217 See \`config.log' for more details." >&5
2218 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2219 See \`config.log' for more details." >&2;}
2220    { (exit 1); exit 1; }; }
2221 fi
2222
2223 rm -f conftest$ac_cv_exeext
2224 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2225 echo "${ECHO_T}$ac_cv_exeext" >&6
2226
2227 rm -f conftest.$ac_ext
2228 EXEEXT=$ac_cv_exeext
2229 ac_exeext=$EXEEXT
2230 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2231 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2232 if test "${ac_cv_objext+set}" = set; then
2233   echo $ECHO_N "(cached) $ECHO_C" >&6
2234 else
2235   cat >conftest.$ac_ext <<_ACEOF
2236 /* confdefs.h.  */
2237 _ACEOF
2238 cat confdefs.h >>conftest.$ac_ext
2239 cat >>conftest.$ac_ext <<_ACEOF
2240 /* end confdefs.h.  */
2241
2242 int
2243 main ()
2244 {
2245
2246   ;
2247   return 0;
2248 }
2249 _ACEOF
2250 rm -f conftest.o conftest.obj
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252   (eval $ac_compile) 2>&5
2253   ac_status=$?
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); }; then
2256   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2257   case $ac_file in
2258     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2259     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2260        break;;
2261   esac
2262 done
2263 else
2264   echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2266
2267 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2270 See \`config.log' for more details." >&2;}
2271    { (exit 1); exit 1; }; }
2272 fi
2273
2274 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2275 fi
2276 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2277 echo "${ECHO_T}$ac_cv_objext" >&6
2278 OBJEXT=$ac_cv_objext
2279 ac_objext=$OBJEXT
2280 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2281 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2282 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2283   echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285   cat >conftest.$ac_ext <<_ACEOF
2286 /* confdefs.h.  */
2287 _ACEOF
2288 cat confdefs.h >>conftest.$ac_ext
2289 cat >>conftest.$ac_ext <<_ACEOF
2290 /* end confdefs.h.  */
2291
2292 int
2293 main ()
2294 {
2295 #ifndef __GNUC__
2296        choke me
2297 #endif
2298
2299   ;
2300   return 0;
2301 }
2302 _ACEOF
2303 rm -f conftest.$ac_objext
2304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2305   (eval $ac_compile) 2>conftest.er1
2306   ac_status=$?
2307   grep -v '^ *+' conftest.er1 >conftest.err
2308   rm -f conftest.er1
2309   cat conftest.err >&5
2310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311   (exit $ac_status); } &&
2312          { ac_try='test -z "$ac_c_werror_flag"
2313                          || test ! -s conftest.err'
2314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315   (eval $ac_try) 2>&5
2316   ac_status=$?
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); }; } &&
2319          { ac_try='test -s conftest.$ac_objext'
2320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321   (eval $ac_try) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; }; then
2325   ac_compiler_gnu=yes
2326 else
2327   echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 ac_compiler_gnu=no
2331 fi
2332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2333 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2334
2335 fi
2336 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2337 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2338 GCC=`test $ac_compiler_gnu = yes && echo yes`
2339 ac_test_CFLAGS=${CFLAGS+set}
2340 ac_save_CFLAGS=$CFLAGS
2341 CFLAGS="-g"
2342 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2343 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2344 if test "${ac_cv_prog_cc_g+set}" = set; then
2345   echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347   cat >conftest.$ac_ext <<_ACEOF
2348 /* confdefs.h.  */
2349 _ACEOF
2350 cat confdefs.h >>conftest.$ac_ext
2351 cat >>conftest.$ac_ext <<_ACEOF
2352 /* end confdefs.h.  */
2353
2354 int
2355 main ()
2356 {
2357
2358   ;
2359   return 0;
2360 }
2361 _ACEOF
2362 rm -f conftest.$ac_objext
2363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364   (eval $ac_compile) 2>conftest.er1
2365   ac_status=$?
2366   grep -v '^ *+' conftest.er1 >conftest.err
2367   rm -f conftest.er1
2368   cat conftest.err >&5
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); } &&
2371          { ac_try='test -z "$ac_c_werror_flag"
2372                          || test ! -s conftest.err'
2373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374   (eval $ac_try) 2>&5
2375   ac_status=$?
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); }; } &&
2378          { ac_try='test -s conftest.$ac_objext'
2379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380   (eval $ac_try) 2>&5
2381   ac_status=$?
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); }; }; then
2384   ac_cv_prog_cc_g=yes
2385 else
2386   echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 ac_cv_prog_cc_g=no
2390 fi
2391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2392 fi
2393 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2394 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2395 if test "$ac_test_CFLAGS" = set; then
2396   CFLAGS=$ac_save_CFLAGS
2397 elif test $ac_cv_prog_cc_g = yes; then
2398   if test "$GCC" = yes; then
2399     CFLAGS="-g -O2"
2400   else
2401     CFLAGS="-g"
2402   fi
2403 else
2404   if test "$GCC" = yes; then
2405     CFLAGS="-O2"
2406   else
2407     CFLAGS=
2408   fi
2409 fi
2410 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2411 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2412 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2413   echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415   ac_cv_prog_cc_stdc=no
2416 ac_save_CC=$CC
2417 cat >conftest.$ac_ext <<_ACEOF
2418 /* confdefs.h.  */
2419 _ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h.  */
2423 #include <stdarg.h>
2424 #include <stdio.h>
2425 #include <sys/types.h>
2426 #include <sys/stat.h>
2427 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2428 struct buf { int x; };
2429 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2430 static char *e (p, i)
2431      char **p;
2432      int i;
2433 {
2434   return p[i];
2435 }
2436 static char *f (char * (*g) (char **, int), char **p, ...)
2437 {
2438   char *s;
2439   va_list v;
2440   va_start (v,p);
2441   s = g (p, va_arg (v,int));
2442   va_end (v);
2443   return s;
2444 }
2445
2446 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2447    function prototypes and stuff, but not '\xHH' hex character constants.
2448    These don't provoke an error unfortunately, instead are silently treated
2449    as 'x'.  The following induces an error, until -std1 is added to get
2450    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2451    array size at least.  It's necessary to write '\x00'==0 to get something
2452    that's true only with -std1.  */
2453 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2454
2455 int test (int i, double x);
2456 struct s1 {int (*f) (int a);};
2457 struct s2 {int (*f) (double a);};
2458 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2459 int argc;
2460 char **argv;
2461 int
2462 main ()
2463 {
2464 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2465   ;
2466   return 0;
2467 }
2468 _ACEOF
2469 # Don't try gcc -ansi; that turns off useful extensions and
2470 # breaks some systems' header files.
2471 # AIX                   -qlanglvl=ansi
2472 # Ultrix and OSF/1      -std1
2473 # HP-UX 10.20 and later -Ae
2474 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2475 # SVR4                  -Xc -D__EXTENSIONS__
2476 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2477 do
2478   CC="$ac_save_CC $ac_arg"
2479   rm -f conftest.$ac_objext
2480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2481   (eval $ac_compile) 2>conftest.er1
2482   ac_status=$?
2483   grep -v '^ *+' conftest.er1 >conftest.err
2484   rm -f conftest.er1
2485   cat conftest.err >&5
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); } &&
2488          { ac_try='test -z "$ac_c_werror_flag"
2489                          || test ! -s conftest.err'
2490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491   (eval $ac_try) 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }; } &&
2495          { ac_try='test -s conftest.$ac_objext'
2496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497   (eval $ac_try) 2>&5
2498   ac_status=$?
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); }; }; then
2501   ac_cv_prog_cc_stdc=$ac_arg
2502 break
2503 else
2504   echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2506
2507 fi
2508 rm -f conftest.err conftest.$ac_objext
2509 done
2510 rm -f conftest.$ac_ext conftest.$ac_objext
2511 CC=$ac_save_CC
2512
2513 fi
2514
2515 case "x$ac_cv_prog_cc_stdc" in
2516   x|xno)
2517     echo "$as_me:$LINENO: result: none needed" >&5
2518 echo "${ECHO_T}none needed" >&6 ;;
2519   *)
2520     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2521 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2522     CC="$CC $ac_cv_prog_cc_stdc" ;;
2523 esac
2524
2525 # Some people use a C++ compiler to compile C.  Since we use `exit',
2526 # in C++ we need to declare it.  In case someone uses the same compiler
2527 # for both compiling C and C++ we need to have the C++ compiler decide
2528 # the declaration of exit, since it's the most demanding environment.
2529 cat >conftest.$ac_ext <<_ACEOF
2530 #ifndef __cplusplus
2531   choke me
2532 #endif
2533 _ACEOF
2534 rm -f conftest.$ac_objext
2535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2536   (eval $ac_compile) 2>conftest.er1
2537   ac_status=$?
2538   grep -v '^ *+' conftest.er1 >conftest.err
2539   rm -f conftest.er1
2540   cat conftest.err >&5
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); } &&
2543          { ac_try='test -z "$ac_c_werror_flag"
2544                          || test ! -s conftest.err'
2545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546   (eval $ac_try) 2>&5
2547   ac_status=$?
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); }; } &&
2550          { ac_try='test -s conftest.$ac_objext'
2551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552   (eval $ac_try) 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }; }; then
2556   for ac_declaration in \
2557    '' \
2558    'extern "C" void std::exit (int) throw (); using std::exit;' \
2559    'extern "C" void std::exit (int); using std::exit;' \
2560    'extern "C" void exit (int) throw ();' \
2561    'extern "C" void exit (int);' \
2562    'void exit (int);'
2563 do
2564   cat >conftest.$ac_ext <<_ACEOF
2565 /* confdefs.h.  */
2566 _ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h.  */
2570 $ac_declaration
2571 #include <stdlib.h>
2572 int
2573 main ()
2574 {
2575 exit (42);
2576   ;
2577   return 0;
2578 }
2579 _ACEOF
2580 rm -f conftest.$ac_objext
2581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582   (eval $ac_compile) 2>conftest.er1
2583   ac_status=$?
2584   grep -v '^ *+' conftest.er1 >conftest.err
2585   rm -f conftest.er1
2586   cat conftest.err >&5
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); } &&
2589          { ac_try='test -z "$ac_c_werror_flag"
2590                          || test ! -s conftest.err'
2591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592   (eval $ac_try) 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); }; } &&
2596          { ac_try='test -s conftest.$ac_objext'
2597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598   (eval $ac_try) 2>&5
2599   ac_status=$?
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); }; }; then
2602   :
2603 else
2604   echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607 continue
2608 fi
2609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2610   cat >conftest.$ac_ext <<_ACEOF
2611 /* confdefs.h.  */
2612 _ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h.  */
2616 $ac_declaration
2617 int
2618 main ()
2619 {
2620 exit (42);
2621   ;
2622   return 0;
2623 }
2624 _ACEOF
2625 rm -f conftest.$ac_objext
2626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627   (eval $ac_compile) 2>conftest.er1
2628   ac_status=$?
2629   grep -v '^ *+' conftest.er1 >conftest.err
2630   rm -f conftest.er1
2631   cat conftest.err >&5
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); } &&
2634          { ac_try='test -z "$ac_c_werror_flag"
2635                          || test ! -s conftest.err'
2636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637   (eval $ac_try) 2>&5
2638   ac_status=$?
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); }; } &&
2641          { ac_try='test -s conftest.$ac_objext'
2642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643   (eval $ac_try) 2>&5
2644   ac_status=$?
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); }; }; then
2647   break
2648 else
2649   echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2651
2652 fi
2653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2654 done
2655 rm -f conftest*
2656 if test -n "$ac_declaration"; then
2657   echo '#ifdef __cplusplus' >>confdefs.h
2658   echo $ac_declaration      >>confdefs.h
2659   echo '#endif'             >>confdefs.h
2660 fi
2661
2662 else
2663   echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2665
2666 fi
2667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2668 ac_ext=c
2669 ac_cpp='$CPP $CPPFLAGS'
2670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673 DEPDIR="${am__leading_dot}deps"
2674
2675           ac_config_commands="$ac_config_commands depfiles"
2676
2677
2678 am_make=${MAKE-make}
2679 cat > confinc << 'END'
2680 am__doit:
2681         @echo done
2682 .PHONY: am__doit
2683 END
2684 # If we don't find an include directive, just comment out the code.
2685 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2686 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2687 am__include="#"
2688 am__quote=
2689 _am_result=none
2690 # First try GNU make style include.
2691 echo "include confinc" > confmf
2692 # We grep out `Entering directory' and `Leaving directory'
2693 # messages which can occur if `w' ends up in MAKEFLAGS.
2694 # In particular we don't look at `^make:' because GNU make might
2695 # be invoked under some other name (usually "gmake"), in which
2696 # case it prints its new name instead of `make'.
2697 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2698    am__include=include
2699    am__quote=
2700    _am_result=GNU
2701 fi
2702 # Now try BSD make style include.
2703 if test "$am__include" = "#"; then
2704    echo '.include "confinc"' > confmf
2705    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2706       am__include=.include
2707       am__quote="\""
2708       _am_result=BSD
2709    fi
2710 fi
2711
2712
2713 echo "$as_me:$LINENO: result: $_am_result" >&5
2714 echo "${ECHO_T}$_am_result" >&6
2715 rm -f confinc confmf
2716
2717 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2718 if test "${enable_dependency_tracking+set}" = set; then
2719   enableval="$enable_dependency_tracking"
2720
2721 fi;
2722 if test "x$enable_dependency_tracking" != xno; then
2723   am_depcomp="$ac_aux_dir/depcomp"
2724   AMDEPBACKSLASH='\'
2725 fi
2726
2727
2728 if test "x$enable_dependency_tracking" != xno; then
2729   AMDEP_TRUE=
2730   AMDEP_FALSE='#'
2731 else
2732   AMDEP_TRUE='#'
2733   AMDEP_FALSE=
2734 fi
2735
2736
2737
2738
2739 depcc="$CC"   am_compiler_list=
2740
2741 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2742 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2743 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2744   echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2747   # We make a subdir and do the tests there.  Otherwise we can end up
2748   # making bogus files that we don't know about and never remove.  For
2749   # instance it was reported that on HP-UX the gcc test will end up
2750   # making a dummy file named `D' -- because `-MD' means `put the output
2751   # in D'.
2752   mkdir conftest.dir
2753   # Copy depcomp to subdir because otherwise we won't find it if we're
2754   # using a relative directory.
2755   cp "$am_depcomp" conftest.dir
2756   cd conftest.dir
2757   # We will build objects and dependencies in a subdirectory because
2758   # it helps to detect inapplicable dependency modes.  For instance
2759   # both Tru64's cc and ICC support -MD to output dependencies as a
2760   # side effect of compilation, but ICC will put the dependencies in
2761   # the current directory while Tru64 will put them in the object
2762   # directory.
2763   mkdir sub
2764
2765   am_cv_CC_dependencies_compiler_type=none
2766   if test "$am_compiler_list" = ""; then
2767      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2768   fi
2769   for depmode in $am_compiler_list; do
2770     # Setup a source with many dependencies, because some compilers
2771     # like to wrap large dependency lists on column 80 (with \), and
2772     # we should not choose a depcomp mode which is confused by this.
2773     #
2774     # We need to recreate these files for each test, as the compiler may
2775     # overwrite some of them when testing with obscure command lines.
2776     # This happens at least with the AIX C compiler.
2777     : > sub/conftest.c
2778     for i in 1 2 3 4 5 6; do
2779       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2780       : > sub/conftst$i.h
2781     done
2782     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2783
2784     case $depmode in
2785     nosideeffect)
2786       # after this tag, mechanisms are not by side-effect, so they'll
2787       # only be used when explicitly requested
2788       if test "x$enable_dependency_tracking" = xyes; then
2789         continue
2790       else
2791         break
2792       fi
2793       ;;
2794     none) break ;;
2795     esac
2796     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2797     # mode.  It turns out that the SunPro C++ compiler does not properly
2798     # handle `-M -o', and we need to detect this.
2799     if depmode=$depmode \
2800        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2801        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2802        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2803          >/dev/null 2>conftest.err &&
2804        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2805        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2806        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2807       # icc doesn't choke on unknown options, it will just issue warnings
2808       # (even with -Werror).  So we grep stderr for any message
2809       # that says an option was ignored.
2810       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2811         am_cv_CC_dependencies_compiler_type=$depmode
2812         break
2813       fi
2814     fi
2815   done
2816
2817   cd ..
2818   rm -rf conftest.dir
2819 else
2820   am_cv_CC_dependencies_compiler_type=none
2821 fi
2822
2823 fi
2824 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2825 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2826 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2827
2828
2829
2830 if
2831   test "x$enable_dependency_tracking" != xno \
2832   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2833   am__fastdepCC_TRUE=
2834   am__fastdepCC_FALSE='#'
2835 else
2836   am__fastdepCC_TRUE='#'
2837   am__fastdepCC_FALSE=
2838 fi
2839
2840
2841 ac_ext=cc
2842 ac_cpp='$CXXCPP $CPPFLAGS'
2843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2846 if test -n "$ac_tool_prefix"; then
2847   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2848   do
2849     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2851 echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853 if test "${ac_cv_prog_CXX+set}" = set; then
2854   echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856   if test -n "$CXX"; then
2857   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864   for ac_exec_ext in '' $ac_executable_extensions; do
2865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868     break 2
2869   fi
2870 done
2871 done
2872
2873 fi
2874 fi
2875 CXX=$ac_cv_prog_CXX
2876 if test -n "$CXX"; then
2877   echo "$as_me:$LINENO: result: $CXX" >&5
2878 echo "${ECHO_T}$CXX" >&6
2879 else
2880   echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6
2882 fi
2883
2884     test -n "$CXX" && break
2885   done
2886 fi
2887 if test -z "$CXX"; then
2888   ac_ct_CXX=$CXX
2889   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2890 do
2891   # Extract the first word of "$ac_prog", so it can be a program name with args.
2892 set dummy $ac_prog; ac_word=$2
2893 echo "$as_me:$LINENO: checking for $ac_word" >&5
2894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2895 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2896   echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898   if test -n "$ac_ct_CXX"; then
2899   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2903 do
2904   IFS=$as_save_IFS
2905   test -z "$as_dir" && as_dir=.
2906   for ac_exec_ext in '' $ac_executable_extensions; do
2907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2908     ac_cv_prog_ac_ct_CXX="$ac_prog"
2909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2910     break 2
2911   fi
2912 done
2913 done
2914
2915 fi
2916 fi
2917 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2918 if test -n "$ac_ct_CXX"; then
2919   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2920 echo "${ECHO_T}$ac_ct_CXX" >&6
2921 else
2922   echo "$as_me:$LINENO: result: no" >&5
2923 echo "${ECHO_T}no" >&6
2924 fi
2925
2926   test -n "$ac_ct_CXX" && break
2927 done
2928 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2929
2930   CXX=$ac_ct_CXX
2931 fi
2932
2933
2934 # Provide some information about the compiler.
2935 echo "$as_me:$LINENO:" \
2936      "checking for C++ compiler version" >&5
2937 ac_compiler=`set X $ac_compile; echo $2`
2938 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2939   (eval $ac_compiler --version </dev/null >&5) 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); }
2943 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2944   (eval $ac_compiler -v </dev/null >&5) 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); }
2948 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2949   (eval $ac_compiler -V </dev/null >&5) 2>&5
2950   ac_status=$?
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); }
2953
2954 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2955 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2956 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2957   echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959   cat >conftest.$ac_ext <<_ACEOF
2960 /* confdefs.h.  */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h.  */
2965
2966 int
2967 main ()
2968 {
2969 #ifndef __GNUC__
2970        choke me
2971 #endif
2972
2973   ;
2974   return 0;
2975 }
2976 _ACEOF
2977 rm -f conftest.$ac_objext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979   (eval $ac_compile) 2>conftest.er1
2980   ac_status=$?
2981   grep -v '^ *+' conftest.er1 >conftest.err
2982   rm -f conftest.er1
2983   cat conftest.err >&5
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); } &&
2986          { ac_try='test -z "$ac_cxx_werror_flag"
2987                          || test ! -s conftest.err'
2988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989   (eval $ac_try) 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; } &&
2993          { ac_try='test -s conftest.$ac_objext'
2994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995   (eval $ac_try) 2>&5
2996   ac_status=$?
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); }; }; then
2999   ac_compiler_gnu=yes
3000 else
3001   echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004 ac_compiler_gnu=no
3005 fi
3006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3007 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3008
3009 fi
3010 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3011 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3012 GXX=`test $ac_compiler_gnu = yes && echo yes`
3013 ac_test_CXXFLAGS=${CXXFLAGS+set}
3014 ac_save_CXXFLAGS=$CXXFLAGS
3015 CXXFLAGS="-g"
3016 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3017 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3018 if test "${ac_cv_prog_cxx_g+set}" = set; then
3019   echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021   cat >conftest.$ac_ext <<_ACEOF
3022 /* confdefs.h.  */
3023 _ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h.  */
3027
3028 int
3029 main ()
3030 {
3031
3032   ;
3033   return 0;
3034 }
3035 _ACEOF
3036 rm -f conftest.$ac_objext
3037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3038   (eval $ac_compile) 2>conftest.er1
3039   ac_status=$?
3040   grep -v '^ *+' conftest.er1 >conftest.err
3041   rm -f conftest.er1
3042   cat conftest.err >&5
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); } &&
3045          { ac_try='test -z "$ac_cxx_werror_flag"
3046                          || test ! -s conftest.err'
3047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048   (eval $ac_try) 2>&5
3049   ac_status=$?
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); }; } &&
3052          { ac_try='test -s conftest.$ac_objext'
3053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054   (eval $ac_try) 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }; }; then
3058   ac_cv_prog_cxx_g=yes
3059 else
3060   echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3062
3063 ac_cv_prog_cxx_g=no
3064 fi
3065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3066 fi
3067 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3068 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3069 if test "$ac_test_CXXFLAGS" = set; then
3070   CXXFLAGS=$ac_save_CXXFLAGS
3071 elif test $ac_cv_prog_cxx_g = yes; then
3072   if test "$GXX" = yes; then
3073     CXXFLAGS="-g -O2"
3074   else
3075     CXXFLAGS="-g"
3076   fi
3077 else
3078   if test "$GXX" = yes; then
3079     CXXFLAGS="-O2"
3080   else
3081     CXXFLAGS=
3082   fi
3083 fi
3084 for ac_declaration in \
3085    '' \
3086    'extern "C" void std::exit (int) throw (); using std::exit;' \
3087    'extern "C" void std::exit (int); using std::exit;' \
3088    'extern "C" void exit (int) throw ();' \
3089    'extern "C" void exit (int);' \
3090    'void exit (int);'
3091 do
3092   cat >conftest.$ac_ext <<_ACEOF
3093 /* confdefs.h.  */
3094 _ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h.  */
3098 $ac_declaration
3099 #include <stdlib.h>
3100 int
3101 main ()
3102 {
3103 exit (42);
3104   ;
3105   return 0;
3106 }
3107 _ACEOF
3108 rm -f conftest.$ac_objext
3109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3110   (eval $ac_compile) 2>conftest.er1
3111   ac_status=$?
3112   grep -v '^ *+' conftest.er1 >conftest.err
3113   rm -f conftest.er1
3114   cat conftest.err >&5
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); } &&
3117          { ac_try='test -z "$ac_cxx_werror_flag"
3118                          || test ! -s conftest.err'
3119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120   (eval $ac_try) 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }; } &&
3124          { ac_try='test -s conftest.$ac_objext'
3125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126   (eval $ac_try) 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }; }; then
3130   :
3131 else
3132   echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135 continue
3136 fi
3137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3138   cat >conftest.$ac_ext <<_ACEOF
3139 /* confdefs.h.  */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h.  */
3144 $ac_declaration
3145 int
3146 main ()
3147 {
3148 exit (42);
3149   ;
3150   return 0;
3151 }
3152 _ACEOF
3153 rm -f conftest.$ac_objext
3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155   (eval $ac_compile) 2>conftest.er1
3156   ac_status=$?
3157   grep -v '^ *+' conftest.er1 >conftest.err
3158   rm -f conftest.er1
3159   cat conftest.err >&5
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); } &&
3162          { ac_try='test -z "$ac_cxx_werror_flag"
3163                          || test ! -s conftest.err'
3164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165   (eval $ac_try) 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); }; } &&
3169          { ac_try='test -s conftest.$ac_objext'
3170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171   (eval $ac_try) 2>&5
3172   ac_status=$?
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); }; }; then
3175   break
3176 else
3177   echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 fi
3181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3182 done
3183 rm -f conftest*
3184 if test -n "$ac_declaration"; then
3185   echo '#ifdef __cplusplus' >>confdefs.h
3186   echo $ac_declaration      >>confdefs.h
3187   echo '#endif'             >>confdefs.h
3188 fi
3189
3190 ac_ext=c
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195
3196 depcc="$CXX"  am_compiler_list=
3197
3198 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3199 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3200 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3201   echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3204   # We make a subdir and do the tests there.  Otherwise we can end up
3205   # making bogus files that we don't know about and never remove.  For
3206   # instance it was reported that on HP-UX the gcc test will end up
3207   # making a dummy file named `D' -- because `-MD' means `put the output
3208   # in D'.
3209   mkdir conftest.dir
3210   # Copy depcomp to subdir because otherwise we won't find it if we're
3211   # using a relative directory.
3212   cp "$am_depcomp" conftest.dir
3213   cd conftest.dir
3214   # We will build objects and dependencies in a subdirectory because
3215   # it helps to detect inapplicable dependency modes.  For instance
3216   # both Tru64's cc and ICC support -MD to output dependencies as a
3217   # side effect of compilation, but ICC will put the dependencies in
3218   # the current directory while Tru64 will put them in the object
3219   # directory.
3220   mkdir sub
3221
3222   am_cv_CXX_dependencies_compiler_type=none
3223   if test "$am_compiler_list" = ""; then
3224      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3225   fi
3226   for depmode in $am_compiler_list; do
3227     # Setup a source with many dependencies, because some compilers
3228     # like to wrap large dependency lists on column 80 (with \), and
3229     # we should not choose a depcomp mode which is confused by this.
3230     #
3231     # We need to recreate these files for each test, as the compiler may
3232     # overwrite some of them when testing with obscure command lines.
3233     # This happens at least with the AIX C compiler.
3234     : > sub/conftest.c
3235     for i in 1 2 3 4 5 6; do
3236       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3237       : > sub/conftst$i.h
3238     done
3239     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3240
3241     case $depmode in
3242     nosideeffect)
3243       # after this tag, mechanisms are not by side-effect, so they'll
3244       # only be used when explicitly requested
3245       if test "x$enable_dependency_tracking" = xyes; then
3246         continue
3247       else
3248         break
3249       fi
3250       ;;
3251     none) break ;;
3252     esac
3253     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3254     # mode.  It turns out that the SunPro C++ compiler does not properly
3255     # handle `-M -o', and we need to detect this.
3256     if depmode=$depmode \
3257        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3258        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3259        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3260          >/dev/null 2>conftest.err &&
3261        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3262        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3263        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3264       # icc doesn't choke on unknown options, it will just issue warnings
3265       # (even with -Werror).  So we grep stderr for any message
3266       # that says an option was ignored.
3267       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3268         am_cv_CXX_dependencies_compiler_type=$depmode
3269         break
3270       fi
3271     fi
3272   done
3273
3274   cd ..
3275   rm -rf conftest.dir
3276 else
3277   am_cv_CXX_dependencies_compiler_type=none
3278 fi
3279
3280 fi
3281 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3282 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3283 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3284
3285
3286
3287 if
3288   test "x$enable_dependency_tracking" != xno \
3289   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3290   am__fastdepCXX_TRUE=
3291   am__fastdepCXX_FALSE='#'
3292 else
3293   am__fastdepCXX_TRUE='#'
3294   am__fastdepCXX_FALSE=
3295 fi
3296
3297
3298 ac_ext=c
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3304 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3305 # On Suns, sometimes $CPP names a directory.
3306 if test -n "$CPP" && test -d "$CPP"; then
3307   CPP=
3308 fi
3309 if test -z "$CPP"; then
3310   if test "${ac_cv_prog_CPP+set}" = set; then
3311   echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313       # Double quotes because CPP needs to be expanded
3314     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3315     do
3316       ac_preproc_ok=false
3317 for ac_c_preproc_warn_flag in '' yes
3318 do
3319   # Use a header file that comes with gcc, so configuring glibc
3320   # with a fresh cross-compiler works.
3321   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3322   # <limits.h> exists even on freestanding compilers.
3323   # On the NeXT, cc -E runs the code through the compiler's parser,
3324   # not just through cpp. "Syntax error" is here to catch this case.
3325   cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h.  */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h.  */
3331 #ifdef __STDC__
3332 # include <limits.h>
3333 #else
3334 # include <assert.h>
3335 #endif
3336                      Syntax error
3337 _ACEOF
3338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3339   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3340   ac_status=$?
3341   grep -v '^ *+' conftest.er1 >conftest.err
3342   rm -f conftest.er1
3343   cat conftest.err >&5
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); } >/dev/null; then
3346   if test -s conftest.err; then
3347     ac_cpp_err=$ac_c_preproc_warn_flag
3348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3349   else
3350     ac_cpp_err=
3351   fi
3352 else
3353   ac_cpp_err=yes
3354 fi
3355 if test -z "$ac_cpp_err"; then
3356   :
3357 else
3358   echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3360
3361   # Broken: fails on valid input.
3362 continue
3363 fi
3364 rm -f conftest.err conftest.$ac_ext
3365
3366   # OK, works on sane cases.  Now check whether non-existent headers
3367   # can be detected and how.
3368   cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h.  */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h.  */
3374 #include <ac_nonexistent.h>
3375 _ACEOF
3376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3378   ac_status=$?
3379   grep -v '^ *+' conftest.er1 >conftest.err
3380   rm -f conftest.er1
3381   cat conftest.err >&5
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); } >/dev/null; then
3384   if test -s conftest.err; then
3385     ac_cpp_err=$ac_c_preproc_warn_flag
3386     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387   else
3388     ac_cpp_err=
3389   fi
3390 else
3391   ac_cpp_err=yes
3392 fi
3393 if test -z "$ac_cpp_err"; then
3394   # Broken: success on invalid input.
3395 continue
3396 else
3397   echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400   # Passes both tests.
3401 ac_preproc_ok=:
3402 break
3403 fi
3404 rm -f conftest.err conftest.$ac_ext
3405
3406 done
3407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3408 rm -f conftest.err conftest.$ac_ext
3409 if $ac_preproc_ok; then
3410   break
3411 fi
3412
3413     done
3414     ac_cv_prog_CPP=$CPP
3415
3416 fi
3417   CPP=$ac_cv_prog_CPP
3418 else
3419   ac_cv_prog_CPP=$CPP
3420 fi
3421 echo "$as_me:$LINENO: result: $CPP" >&5
3422 echo "${ECHO_T}$CPP" >&6
3423 ac_preproc_ok=false
3424 for ac_c_preproc_warn_flag in '' yes
3425 do
3426   # Use a header file that comes with gcc, so configuring glibc
3427   # with a fresh cross-compiler works.
3428   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429   # <limits.h> exists even on freestanding compilers.
3430   # On the NeXT, cc -E runs the code through the compiler's parser,
3431   # not just through cpp. "Syntax error" is here to catch this case.
3432   cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h.  */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h.  */
3438 #ifdef __STDC__
3439 # include <limits.h>
3440 #else
3441 # include <assert.h>
3442 #endif
3443                      Syntax error
3444 _ACEOF
3445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3446   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3447   ac_status=$?
3448   grep -v '^ *+' conftest.er1 >conftest.err
3449   rm -f conftest.er1
3450   cat conftest.err >&5
3451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); } >/dev/null; then
3453   if test -s conftest.err; then
3454     ac_cpp_err=$ac_c_preproc_warn_flag
3455     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3456   else
3457     ac_cpp_err=
3458   fi
3459 else
3460   ac_cpp_err=yes
3461 fi
3462 if test -z "$ac_cpp_err"; then
3463   :
3464 else
3465   echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468   # Broken: fails on valid input.
3469 continue
3470 fi
3471 rm -f conftest.err conftest.$ac_ext
3472
3473   # OK, works on sane cases.  Now check whether non-existent headers
3474   # can be detected and how.
3475   cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h.  */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h.  */
3481 #include <ac_nonexistent.h>
3482 _ACEOF
3483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3484   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3485   ac_status=$?
3486   grep -v '^ *+' conftest.er1 >conftest.err
3487   rm -f conftest.er1
3488   cat conftest.err >&5
3489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490   (exit $ac_status); } >/dev/null; then
3491   if test -s conftest.err; then
3492     ac_cpp_err=$ac_c_preproc_warn_flag
3493     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3494   else
3495     ac_cpp_err=
3496   fi
3497 else
3498   ac_cpp_err=yes
3499 fi
3500 if test -z "$ac_cpp_err"; then
3501   # Broken: success on invalid input.
3502 continue
3503 else
3504   echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507   # Passes both tests.
3508 ac_preproc_ok=:
3509 break
3510 fi
3511 rm -f conftest.err conftest.$ac_ext
3512
3513 done
3514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515 rm -f conftest.err conftest.$ac_ext
3516 if $ac_preproc_ok; then
3517   :
3518 else
3519   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3520 See \`config.log' for more details." >&5
3521 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3522 See \`config.log' for more details." >&2;}
3523    { (exit 1); exit 1; }; }
3524 fi
3525
3526 ac_ext=c
3527 ac_cpp='$CPP $CPPFLAGS'
3528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3531
3532
3533 for ac_prog in flex lex
3534 do
3535   # Extract the first word of "$ac_prog", so it can be a program name with args.
3536 set dummy $ac_prog; ac_word=$2
3537 echo "$as_me:$LINENO: checking for $ac_word" >&5
3538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539 if test "${ac_cv_prog_LEX+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   if test -n "$LEX"; then
3543   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548   IFS=$as_save_IFS
3549   test -z "$as_dir" && as_dir=.
3550   for ac_exec_ext in '' $ac_executable_extensions; do
3551   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552     ac_cv_prog_LEX="$ac_prog"
3553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554     break 2
3555   fi
3556 done
3557 done
3558
3559 fi
3560 fi
3561 LEX=$ac_cv_prog_LEX
3562 if test -n "$LEX"; then
3563   echo "$as_me:$LINENO: result: $LEX" >&5
3564 echo "${ECHO_T}$LEX" >&6
3565 else
3566   echo "$as_me:$LINENO: result: no" >&5
3567 echo "${ECHO_T}no" >&6
3568 fi
3569
3570   test -n "$LEX" && break
3571 done
3572 test -n "$LEX" || LEX=":"
3573
3574 if test -z "$LEXLIB"
3575 then
3576   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3577 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3578 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   ac_check_lib_save_LIBS=$LIBS
3582 LIBS="-lfl  $LIBS"
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h.  */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h.  */
3589
3590 /* Override any gcc2 internal prototype to avoid an error.  */
3591 #ifdef __cplusplus
3592 extern "C"
3593 #endif
3594 /* We use char because int might match the return type of a gcc2
3595    builtin and then its argument prototype would still apply.  */
3596 char yywrap ();
3597 int
3598 main ()
3599 {
3600 yywrap ();
3601   ;
3602   return 0;
3603 }
3604 _ACEOF
3605 rm -f conftest.$ac_objext conftest$ac_exeext
3606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3607   (eval $ac_link) 2>conftest.er1
3608   ac_status=$?
3609   grep -v '^ *+' conftest.er1 >conftest.err
3610   rm -f conftest.er1
3611   cat conftest.err >&5
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); } &&
3614          { ac_try='test -z "$ac_c_werror_flag"
3615                          || test ! -s conftest.err'
3616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617   (eval $ac_try) 2>&5
3618   ac_status=$?
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); }; } &&
3621          { ac_try='test -s conftest$ac_exeext'
3622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623   (eval $ac_try) 2>&5
3624   ac_status=$?
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); }; }; then
3627   ac_cv_lib_fl_yywrap=yes
3628 else
3629   echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632 ac_cv_lib_fl_yywrap=no
3633 fi
3634 rm -f conftest.err conftest.$ac_objext \
3635       conftest$ac_exeext conftest.$ac_ext
3636 LIBS=$ac_check_lib_save_LIBS
3637 fi
3638 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3639 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3640 if test $ac_cv_lib_fl_yywrap = yes; then
3641   LEXLIB="-lfl"
3642 else
3643   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3644 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3645 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3646   echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648   ac_check_lib_save_LIBS=$LIBS
3649 LIBS="-ll  $LIBS"
3650 cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h.  */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h.  */
3656
3657 /* Override any gcc2 internal prototype to avoid an error.  */
3658 #ifdef __cplusplus
3659 extern "C"
3660 #endif
3661 /* We use char because int might match the return type of a gcc2
3662    builtin and then its argument prototype would still apply.  */
3663 char yywrap ();
3664 int
3665 main ()
3666 {
3667 yywrap ();
3668   ;
3669   return 0;
3670 }
3671 _ACEOF
3672 rm -f conftest.$ac_objext conftest$ac_exeext
3673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3674   (eval $ac_link) 2>conftest.er1
3675   ac_status=$?
3676   grep -v '^ *+' conftest.er1 >conftest.err
3677   rm -f conftest.er1
3678   cat conftest.err >&5
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); } &&
3681          { ac_try='test -z "$ac_c_werror_flag"
3682                          || test ! -s conftest.err'
3683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684   (eval $ac_try) 2>&5
3685   ac_status=$?
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); }; } &&
3688          { ac_try='test -s conftest$ac_exeext'
3689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690   (eval $ac_try) 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); }; }; then
3694   ac_cv_lib_l_yywrap=yes
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699 ac_cv_lib_l_yywrap=no
3700 fi
3701 rm -f conftest.err conftest.$ac_objext \
3702       conftest$ac_exeext conftest.$ac_ext
3703 LIBS=$ac_check_lib_save_LIBS
3704 fi
3705 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3706 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3707 if test $ac_cv_lib_l_yywrap = yes; then
3708   LEXLIB="-ll"
3709 fi
3710
3711 fi
3712
3713 fi
3714
3715 if test "x$LEX" != "x:"; then
3716   echo "$as_me:$LINENO: checking lex output file root" >&5
3717 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3718 if test "${ac_cv_prog_lex_root+set}" = set; then
3719   echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721   # The minimal lex program is just a single line: %%.  But some broken lexes
3722 # (Solaris, I think it was) want two %% lines, so accommodate them.
3723 cat >conftest.l <<_ACEOF
3724 %%
3725 %%
3726 _ACEOF
3727 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3728   (eval $LEX conftest.l) 2>&5
3729   ac_status=$?
3730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731   (exit $ac_status); }
3732 if test -f lex.yy.c; then
3733   ac_cv_prog_lex_root=lex.yy
3734 elif test -f lexyy.c; then
3735   ac_cv_prog_lex_root=lexyy
3736 else
3737   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3738 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3739    { (exit 1); exit 1; }; }
3740 fi
3741 fi
3742 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3743 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3744 rm -f conftest.l
3745 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3746
3747 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3748 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3749 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3750   echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752   # POSIX says lex can declare yytext either as a pointer or an array; the
3753 # default is implementation-dependent. Figure out which it is, since
3754 # not all implementations provide the %pointer and %array declarations.
3755 ac_cv_prog_lex_yytext_pointer=no
3756 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3757 ac_save_LIBS=$LIBS
3758 LIBS="$LIBS $LEXLIB"
3759 cat >conftest.$ac_ext <<_ACEOF
3760 `cat $LEX_OUTPUT_ROOT.c`
3761 _ACEOF
3762 rm -f conftest.$ac_objext conftest$ac_exeext
3763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3764   (eval $ac_link) 2>conftest.er1
3765   ac_status=$?
3766   grep -v '^ *+' conftest.er1 >conftest.err
3767   rm -f conftest.er1
3768   cat conftest.err >&5
3769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770   (exit $ac_status); } &&
3771          { ac_try='test -z "$ac_c_werror_flag"
3772                          || test ! -s conftest.err'
3773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774   (eval $ac_try) 2>&5
3775   ac_status=$?
3776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777   (exit $ac_status); }; } &&
3778          { ac_try='test -s conftest$ac_exeext'
3779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780   (eval $ac_try) 2>&5
3781   ac_status=$?
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); }; }; then
3784   ac_cv_prog_lex_yytext_pointer=yes
3785 else
3786   echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3788
3789 fi
3790 rm -f conftest.err conftest.$ac_objext \
3791       conftest$ac_exeext conftest.$ac_ext
3792 LIBS=$ac_save_LIBS
3793 rm -f "${LEX_OUTPUT_ROOT}.c"
3794
3795 fi
3796 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3797 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3798 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3799
3800 cat >>confdefs.h <<\_ACEOF
3801 #define YYTEXT_POINTER 1
3802 _ACEOF
3803
3804 fi
3805
3806 fi
3807 if test "$LEX" = :; then
3808   LEX=${am_missing_run}flex
3809 fi
3810 # Find a good install program.  We prefer a C program (faster),
3811 # so one script is as good as another.  But avoid the broken or
3812 # incompatible versions:
3813 # SysV /etc/install, /usr/sbin/install
3814 # SunOS /usr/etc/install
3815 # IRIX /sbin/install
3816 # AIX /bin/install
3817 # AmigaOS /C/install, which installs bootblocks on floppy discs
3818 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3819 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3820 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3821 # OS/2's system install, which has a completely different semantic
3822 # ./install, which can be erroneously created by make from ./install.sh.
3823 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3824 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3825 if test -z "$INSTALL"; then
3826 if test "${ac_cv_path_install+set}" = set; then
3827   echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH
3831 do
3832   IFS=$as_save_IFS
3833   test -z "$as_dir" && as_dir=.
3834   # Account for people who put trailing slashes in PATH elements.
3835 case $as_dir/ in
3836   ./ | .// | /cC/* | \
3837   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3838   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3839   /usr/ucb/* ) ;;
3840   *)
3841     # OSF1 and SCO ODT 3.0 have their own names for install.
3842     # Don't use installbsd from OSF since it installs stuff as root
3843     # by default.
3844     for ac_prog in ginstall scoinst install; do
3845       for ac_exec_ext in '' $ac_executable_extensions; do
3846         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3847           if test $ac_prog = install &&
3848             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3849             # AIX install.  It has an incompatible calling convention.
3850             :
3851           elif test $ac_prog = install &&
3852             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3853             # program-specific install script used by HP pwplus--don't use.
3854             :
3855           else
3856             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3857             break 3
3858           fi
3859         fi
3860       done
3861     done
3862     ;;
3863 esac
3864 done
3865
3866
3867 fi
3868   if test "${ac_cv_path_install+set}" = set; then
3869     INSTALL=$ac_cv_path_install
3870   else
3871     # As a last resort, use the slow shell script.  We don't cache a
3872     # path for INSTALL within a source directory, because that will
3873     # break other packages using the cache if that directory is
3874     # removed, or if the path is relative.
3875     INSTALL=$ac_install_sh
3876   fi
3877 fi
3878 echo "$as_me:$LINENO: result: $INSTALL" >&5
3879 echo "${ECHO_T}$INSTALL" >&6
3880
3881 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3882 # It thinks the first close brace ends the variable substitution.
3883 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3884
3885 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3886
3887 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3888
3889 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3890 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3891 LN_S=$as_ln_s
3892 if test "$LN_S" = "ln -s"; then
3893   echo "$as_me:$LINENO: result: yes" >&5
3894 echo "${ECHO_T}yes" >&6
3895 else
3896   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3897 echo "${ECHO_T}no, using $LN_S" >&6
3898 fi
3899
3900 if test -n "$ac_tool_prefix"; then
3901   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3903 echo "$as_me:$LINENO: checking for $ac_word" >&5
3904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3905 if test "${ac_cv_prog_RANLIB+set}" = set; then
3906   echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908   if test -n "$RANLIB"; then
3909   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3910 else
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3913 do
3914   IFS=$as_save_IFS
3915   test -z "$as_dir" && as_dir=.
3916   for ac_exec_ext in '' $ac_executable_extensions; do
3917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3920     break 2
3921   fi
3922 done
3923 done
3924
3925 fi
3926 fi
3927 RANLIB=$ac_cv_prog_RANLIB
3928 if test -n "$RANLIB"; then
3929   echo "$as_me:$LINENO: result: $RANLIB" >&5
3930 echo "${ECHO_T}$RANLIB" >&6
3931 else
3932   echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6
3934 fi
3935
3936 fi
3937 if test -z "$ac_cv_prog_RANLIB"; then
3938   ac_ct_RANLIB=$RANLIB
3939   # Extract the first word of "ranlib", so it can be a program name with args.
3940 set dummy ranlib; ac_word=$2
3941 echo "$as_me:$LINENO: checking for $ac_word" >&5
3942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3943 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3944   echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946   if test -n "$ac_ct_RANLIB"; then
3947   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3948 else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3951 do
3952   IFS=$as_save_IFS
3953   test -z "$as_dir" && as_dir=.
3954   for ac_exec_ext in '' $ac_executable_extensions; do
3955   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956     ac_cv_prog_ac_ct_RANLIB="ranlib"
3957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3958     break 2
3959   fi
3960 done
3961 done
3962
3963   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3964 fi
3965 fi
3966 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3967 if test -n "$ac_ct_RANLIB"; then
3968   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3969 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3970 else
3971   echo "$as_me:$LINENO: result: no" >&5
3972 echo "${ECHO_T}no" >&6
3973 fi
3974
3975   RANLIB=$ac_ct_RANLIB
3976 else
3977   RANLIB="$ac_cv_prog_RANLIB"
3978 fi
3979
3980 for ac_prog in 'bison -y' byacc
3981 do
3982   # Extract the first word of "$ac_prog", so it can be a program name with args.
3983 set dummy $ac_prog; ac_word=$2
3984 echo "$as_me:$LINENO: checking for $ac_word" >&5
3985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3986 if test "${ac_cv_prog_YACC+set}" = set; then
3987   echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989   if test -n "$YACC"; then
3990   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3991 else
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH
3994 do
3995   IFS=$as_save_IFS
3996   test -z "$as_dir" && as_dir=.
3997   for ac_exec_ext in '' $ac_executable_extensions; do
3998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3999     ac_cv_prog_YACC="$ac_prog"
4000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001     break 2
4002   fi
4003 done
4004 done
4005
4006 fi
4007 fi
4008 YACC=$ac_cv_prog_YACC
4009 if test -n "$YACC"; then
4010   echo "$as_me:$LINENO: result: $YACC" >&5
4011 echo "${ECHO_T}$YACC" >&6
4012 else
4013   echo "$as_me:$LINENO: result: no" >&5
4014 echo "${ECHO_T}no" >&6
4015 fi
4016
4017   test -n "$YACC" && break
4018 done
4019 test -n "$YACC" || YACC="yacc"
4020
4021 for ac_prog in gawk mawk nawk awk
4022 do
4023   # Extract the first word of "$ac_prog", so it can be a program name with args.
4024 set dummy $ac_prog; ac_word=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_prog_AWK+set}" = set; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030   if test -n "$AWK"; then
4031   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4035 do
4036   IFS=$as_save_IFS
4037   test -z "$as_dir" && as_dir=.
4038   for ac_exec_ext in '' $ac_executable_extensions; do
4039   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040     ac_cv_prog_AWK="$ac_prog"
4041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042     break 2
4043   fi
4044 done
4045 done
4046
4047 fi
4048 fi
4049 AWK=$ac_cv_prog_AWK
4050 if test -n "$AWK"; then
4051   echo "$as_me:$LINENO: result: $AWK" >&5
4052 echo "${ECHO_T}$AWK" >&6
4053 else
4054   echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6
4056 fi
4057
4058   test -n "$AWK" && break
4059 done
4060
4061
4062 # Extract the first word of "xml2-config", so it can be a program name with args.
4063 set dummy xml2-config; ac_word=$2
4064 echo "$as_me:$LINENO: checking for $ac_word" >&5
4065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4066 if test "${ac_cv_path_XML_CONFIG+set}" = set; then
4067   echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069   case $XML_CONFIG in
4070   [\\/]* | ?:[\\/]*)
4071   ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
4072   ;;
4073   *)
4074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH
4076 do
4077   IFS=$as_save_IFS
4078   test -z "$as_dir" && as_dir=.
4079   for ac_exec_ext in '' $ac_executable_extensions; do
4080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4081     ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4083     break 2
4084   fi
4085 done
4086 done
4087
4088   test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
4089   ;;
4090 esac
4091 fi
4092 XML_CONFIG=$ac_cv_path_XML_CONFIG
4093
4094 if test -n "$XML_CONFIG"; then
4095   echo "$as_me:$LINENO: result: $XML_CONFIG" >&5
4096 echo "${ECHO_T}$XML_CONFIG" >&6
4097 else
4098   echo "$as_me:$LINENO: result: no" >&5
4099 echo "${ECHO_T}no" >&6
4100 fi
4101
4102
4103 if test $XML_CONFIG = "no"
4104 then
4105    echo "XML library not found (see http://xmlsoft.org/)."
4106    exit 1;
4107 fi
4108
4109
4110
4111 echo "$as_me:$LINENO: checking for X" >&5
4112 echo $ECHO_N "checking for X... $ECHO_C" >&6
4113
4114
4115 # Check whether --with-x or --without-x was given.
4116 if test "${with_x+set}" = set; then
4117   withval="$with_x"
4118
4119 fi;
4120 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4121 if test "x$with_x" = xno; then
4122   # The user explicitly disabled X.
4123   have_x=disabled
4124 else
4125   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4126     # Both variables are already set.
4127     have_x=yes
4128   else
4129     if test "${ac_cv_have_x+set}" = set; then
4130   echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132   # One or both of the vars are not set, and there is no cached value.
4133 ac_x_includes=no ac_x_libraries=no
4134 rm -fr conftest.dir
4135 if mkdir conftest.dir; then
4136   cd conftest.dir
4137   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4138   cat >Imakefile <<'_ACEOF'
4139 acfindx:
4140         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4141 _ACEOF
4142   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4143     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4144     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4145     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4146     for ac_extension in a so sl; do
4147       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4148          test -f $ac_im_libdir/libX11.$ac_extension; then
4149         ac_im_usrlibdir=$ac_im_libdir; break
4150       fi
4151     done
4152     # Screen out bogus values from the imake configuration.  They are
4153     # bogus both because they are the default anyway, and because
4154     # using them would break gcc on systems where it needs fixed includes.
4155     case $ac_im_incroot in
4156         /usr/include) ;;
4157         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4158     esac
4159     case $ac_im_usrlibdir in
4160         /usr/lib | /lib) ;;
4161         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4162     esac
4163   fi
4164   cd ..
4165   rm -fr conftest.dir
4166 fi
4167
4168 # Standard set of common directories for X headers.
4169 # Check X11 before X11Rn because it is often a symlink to the current release.
4170 ac_x_header_dirs='
4171 /usr/X11/include
4172 /usr/X11R6/include
4173 /usr/X11R5/include
4174 /usr/X11R4/include
4175
4176 /usr/include/X11
4177 /usr/include/X11R6
4178 /usr/include/X11R5
4179 /usr/include/X11R4
4180
4181 /usr/local/X11/include
4182 /usr/local/X11R6/include
4183 /usr/local/X11R5/include
4184 /usr/local/X11R4/include
4185
4186 /usr/local/include/X11
4187 /usr/local/include/X11R6
4188 /usr/local/include/X11R5
4189 /usr/local/include/X11R4
4190
4191 /usr/X386/include
4192 /usr/x386/include
4193 /usr/XFree86/include/X11
4194
4195 /usr/include
4196 /usr/local/include
4197 /usr/unsupported/include
4198 /usr/athena/include
4199 /usr/local/x11r5/include
4200 /usr/lpp/Xamples/include
4201
4202 /usr/openwin/include
4203 /usr/openwin/share/include'
4204
4205 if test "$ac_x_includes" = no; then
4206   # Guess where to find include files, by looking for Intrinsic.h.
4207   # First, try using that file with no special directory specified.
4208   cat >conftest.$ac_ext <<_ACEOF
4209 /* confdefs.h.  */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h.  */
4214 #include <X11/Intrinsic.h>
4215 _ACEOF
4216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4218   ac_status=$?
4219   grep -v '^ *+' conftest.er1 >conftest.err
4220   rm -f conftest.er1
4221   cat conftest.err >&5
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); } >/dev/null; then
4224   if test -s conftest.err; then
4225     ac_cpp_err=$ac_c_preproc_warn_flag
4226     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4227   else
4228     ac_cpp_err=
4229   fi
4230 else
4231   ac_cpp_err=yes
4232 fi
4233 if test -z "$ac_cpp_err"; then
4234   # We can compile using X headers with no special include directory.
4235 ac_x_includes=
4236 else
4237   echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4240   for ac_dir in $ac_x_header_dirs; do
4241   if test -r "$ac_dir/X11/Intrinsic.h"; then
4242     ac_x_includes=$ac_dir
4243     break
4244   fi
4245 done
4246 fi
4247 rm -f conftest.err conftest.$ac_ext
4248 fi # $ac_x_includes = no
4249
4250 if test "$ac_x_libraries" = no; then
4251   # Check for the libraries.
4252   # See if we find them without any special options.
4253   # Don't add to $LIBS permanently.
4254   ac_save_LIBS=$LIBS
4255   LIBS="-lXt $LIBS"
4256   cat >conftest.$ac_ext <<_ACEOF
4257 /* confdefs.h.  */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h.  */
4262 #include <X11/Intrinsic.h>
4263 int
4264 main ()
4265 {
4266 XtMalloc (0)
4267   ;
4268   return 0;
4269 }
4270 _ACEOF
4271 rm -f conftest.$ac_objext conftest$ac_exeext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4273   (eval $ac_link) 2>conftest.er1
4274   ac_status=$?
4275   grep -v '^ *+' conftest.er1 >conftest.err
4276   rm -f conftest.er1
4277   cat conftest.err >&5
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } &&
4280          { ac_try='test -z "$ac_c_werror_flag"
4281                          || test ! -s conftest.err'
4282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283   (eval $ac_try) 2>&5
4284   ac_status=$?
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); }; } &&
4287          { ac_try='test -s conftest$ac_exeext'
4288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289   (eval $ac_try) 2>&5
4290   ac_status=$?
4291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292   (exit $ac_status); }; }; then
4293   LIBS=$ac_save_LIBS
4294 # We can link X programs with no special library path.
4295 ac_x_libraries=
4296 else
4297   echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4299
4300 LIBS=$ac_save_LIBS
4301 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4302 do
4303   # Don't even attempt the hair of trying to link an X program!
4304   for ac_extension in a so sl; do
4305     if test -r $ac_dir/libXt.$ac_extension; then
4306       ac_x_libraries=$ac_dir
4307       break 2
4308     fi
4309   done
4310 done
4311 fi
4312 rm -f conftest.err conftest.$ac_objext \
4313       conftest$ac_exeext conftest.$ac_ext
4314 fi # $ac_x_libraries = no
4315
4316 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4317   # Didn't find X anywhere.  Cache the known absence of X.
4318   ac_cv_have_x="have_x=no"
4319 else
4320   # Record where we found X for the cache.
4321   ac_cv_have_x="have_x=yes \
4322                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4323 fi
4324 fi
4325
4326   fi
4327   eval "$ac_cv_have_x"
4328 fi # $with_x != no
4329
4330 if test "$have_x" != yes; then
4331   echo "$as_me:$LINENO: result: $have_x" >&5
4332 echo "${ECHO_T}$have_x" >&6
4333   no_x=yes
4334 else
4335   # If each of the values was on the command line, it overrides each guess.
4336   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4337   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4338   # Update the cache value to reflect the command line values.
4339   ac_cv_have_x="have_x=yes \
4340                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4341   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4342 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4343 fi
4344
4345 if test "$no_x" = yes; then
4346   # Not all programs may use this symbol, but it does not hurt to define it.
4347
4348 cat >>confdefs.h <<\_ACEOF
4349 #define X_DISPLAY_MISSING 1
4350 _ACEOF
4351
4352   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4353 else
4354   if test -n "$x_includes"; then
4355     X_CFLAGS="$X_CFLAGS -I$x_includes"
4356   fi
4357
4358   # It would also be nice to do this for all -L options, not just this one.
4359   if test -n "$x_libraries"; then
4360     X_LIBS="$X_LIBS -L$x_libraries"
4361     # For Solaris; some versions of Sun CC require a space after -R and
4362     # others require no space.  Words are not sufficient . . . .
4363     case `(uname -sr) 2>/dev/null` in
4364     "SunOS 5"*)
4365       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4366 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4367       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4368       cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h.  */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h.  */
4374
4375 int
4376 main ()
4377 {
4378
4379   ;
4380   return 0;
4381 }
4382 _ACEOF
4383 rm -f conftest.$ac_objext conftest$ac_exeext
4384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4385   (eval $ac_link) 2>conftest.er1
4386   ac_status=$?
4387   grep -v '^ *+' conftest.er1 >conftest.err
4388   rm -f conftest.er1
4389   cat conftest.err >&5
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); } &&
4392          { ac_try='test -z "$ac_c_werror_flag"
4393                          || test ! -s conftest.err'
4394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395   (eval $ac_try) 2>&5
4396   ac_status=$?
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); }; } &&
4399          { ac_try='test -s conftest$ac_exeext'
4400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401   (eval $ac_try) 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); }; }; then
4405   ac_R_nospace=yes
4406 else
4407   echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4409
4410 ac_R_nospace=no
4411 fi
4412 rm -f conftest.err conftest.$ac_objext \
4413       conftest$ac_exeext conftest.$ac_ext
4414       if test $ac_R_nospace = yes; then
4415         echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6
4417         X_LIBS="$X_LIBS -R$x_libraries"
4418       else
4419         LIBS="$ac_xsave_LIBS -R $x_libraries"
4420         cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h.  */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h.  */
4426
4427 int
4428 main ()
4429 {
4430
4431   ;
4432   return 0;
4433 }
4434 _ACEOF
4435 rm -f conftest.$ac_objext conftest$ac_exeext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4437   (eval $ac_link) 2>conftest.er1
4438   ac_status=$?
4439   grep -v '^ *+' conftest.er1 >conftest.err
4440   rm -f conftest.er1
4441   cat conftest.err >&5
4442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443   (exit $ac_status); } &&
4444          { ac_try='test -z "$ac_c_werror_flag"
4445                          || test ! -s conftest.err'
4446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447   (eval $ac_try) 2>&5
4448   ac_status=$?
4449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450   (exit $ac_status); }; } &&
4451          { ac_try='test -s conftest$ac_exeext'
4452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453   (eval $ac_try) 2>&5
4454   ac_status=$?
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); }; }; then
4457   ac_R_space=yes
4458 else
4459   echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4461
4462 ac_R_space=no
4463 fi
4464 rm -f conftest.err conftest.$ac_objext \
4465       conftest$ac_exeext conftest.$ac_ext
4466         if test $ac_R_space = yes; then
4467           echo "$as_me:$LINENO: result: yes" >&5
4468 echo "${ECHO_T}yes" >&6
4469           X_LIBS="$X_LIBS -R $x_libraries"
4470         else
4471           echo "$as_me:$LINENO: result: neither works" >&5
4472 echo "${ECHO_T}neither works" >&6
4473         fi
4474       fi
4475       LIBS=$ac_xsave_LIBS
4476     esac
4477   fi
4478
4479   # Check for system-dependent libraries X programs must link with.
4480   # Do this before checking for the system-independent R6 libraries
4481   # (-lICE), since we may need -lsocket or whatever for X linking.
4482
4483   if test "$ISC" = yes; then
4484     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4485   else
4486     # Martyn Johnson says this is needed for Ultrix, if the X
4487     # libraries were built with DECnet support.  And Karl Berry says
4488     # the Alpha needs dnet_stub (dnet does not exist).
4489     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4490     cat >conftest.$ac_ext <<_ACEOF
4491 /* confdefs.h.  */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h.  */
4496
4497 /* Override any gcc2 internal prototype to avoid an error.  */
4498 #ifdef __cplusplus
4499 extern "C"
4500 #endif
4501 /* We use char because int might match the return type of a gcc2
4502    builtin and then its argument prototype would still apply.  */
4503 char XOpenDisplay ();
4504 int
4505 main ()
4506 {
4507 XOpenDisplay ();
4508   ;
4509   return 0;
4510 }
4511 _ACEOF
4512 rm -f conftest.$ac_objext conftest$ac_exeext
4513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4514   (eval $ac_link) 2>conftest.er1
4515   ac_status=$?
4516   grep -v '^ *+' conftest.er1 >conftest.err
4517   rm -f conftest.er1
4518   cat conftest.err >&5
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); } &&
4521          { ac_try='test -z "$ac_c_werror_flag"
4522                          || test ! -s conftest.err'
4523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524   (eval $ac_try) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); }; } &&
4528          { ac_try='test -s conftest$ac_exeext'
4529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530   (eval $ac_try) 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); }; }; then
4534   :
4535 else
4536   echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4540 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4541 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4542   echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544   ac_check_lib_save_LIBS=$LIBS
4545 LIBS="-ldnet  $LIBS"
4546 cat >conftest.$ac_ext <<_ACEOF
4547 /* confdefs.h.  */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h.  */
4552
4553 /* Override any gcc2 internal prototype to avoid an error.  */
4554 #ifdef __cplusplus
4555 extern "C"
4556 #endif
4557 /* We use char because int might match the return type of a gcc2
4558    builtin and then its argument prototype would still apply.  */
4559 char dnet_ntoa ();
4560 int
4561 main ()
4562 {
4563 dnet_ntoa ();
4564   ;
4565   return 0;
4566 }
4567 _ACEOF
4568 rm -f conftest.$ac_objext conftest$ac_exeext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4570   (eval $ac_link) 2>conftest.er1
4571   ac_status=$?
4572   grep -v '^ *+' conftest.er1 >conftest.err
4573   rm -f conftest.er1
4574   cat conftest.err >&5
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); } &&
4577          { ac_try='test -z "$ac_c_werror_flag"
4578                          || test ! -s conftest.err'
4579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580   (eval $ac_try) 2>&5
4581   ac_status=$?
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); }; } &&
4584          { ac_try='test -s conftest$ac_exeext'
4585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586   (eval $ac_try) 2>&5
4587   ac_status=$?
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); }; }; then
4590   ac_cv_lib_dnet_dnet_ntoa=yes
4591 else
4592   echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4594
4595 ac_cv_lib_dnet_dnet_ntoa=no
4596 fi
4597 rm -f conftest.err conftest.$ac_objext \
4598       conftest$ac_exeext conftest.$ac_ext
4599 LIBS=$ac_check_lib_save_LIBS
4600 fi
4601 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4602 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4603 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4604   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4605 fi
4606
4607     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4608       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4609 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4610 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4611   echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613   ac_check_lib_save_LIBS=$LIBS
4614 LIBS="-ldnet_stub  $LIBS"
4615 cat >conftest.$ac_ext <<_ACEOF
4616 /* confdefs.h.  */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h.  */
4621
4622 /* Override any gcc2 internal prototype to avoid an error.  */
4623 #ifdef __cplusplus
4624 extern "C"
4625 #endif
4626 /* We use char because int might match the return type of a gcc2
4627    builtin and then its argument prototype would still apply.  */
4628 char dnet_ntoa ();
4629 int
4630 main ()
4631 {
4632 dnet_ntoa ();
4633   ;
4634   return 0;
4635 }
4636 _ACEOF
4637 rm -f conftest.$ac_objext conftest$ac_exeext
4638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4639   (eval $ac_link) 2>conftest.er1
4640   ac_status=$?
4641   grep -v '^ *+' conftest.er1 >conftest.err
4642   rm -f conftest.er1
4643   cat conftest.err >&5
4644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645   (exit $ac_status); } &&
4646          { ac_try='test -z "$ac_c_werror_flag"
4647                          || test ! -s conftest.err'
4648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649   (eval $ac_try) 2>&5
4650   ac_status=$?
4651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652   (exit $ac_status); }; } &&
4653          { ac_try='test -s conftest$ac_exeext'
4654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655   (eval $ac_try) 2>&5
4656   ac_status=$?
4657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); }; }; then
4659   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4660 else
4661   echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664 ac_cv_lib_dnet_stub_dnet_ntoa=no
4665 fi
4666 rm -f conftest.err conftest.$ac_objext \
4667       conftest$ac_exeext conftest.$ac_ext
4668 LIBS=$ac_check_lib_save_LIBS
4669 fi
4670 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4671 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4672 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4673   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4674 fi
4675
4676     fi
4677 fi
4678 rm -f conftest.err conftest.$ac_objext \
4679       conftest$ac_exeext conftest.$ac_ext
4680     LIBS="$ac_xsave_LIBS"
4681
4682     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4683     # to get the SysV transport functions.
4684     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4685     # needs -lnsl.
4686     # The nsl library prevents programs from opening the X display
4687     # on Irix 5.2, according to T.E. Dickey.
4688     # The functions gethostbyname, getservbyname, and inet_addr are
4689     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4690     echo "$as_me:$LINENO: checking for gethostbyname" >&5
4691 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4692 if test "${ac_cv_func_gethostbyname+set}" = set; then
4693   echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695   cat >conftest.$ac_ext <<_ACEOF
4696 /* confdefs.h.  */
4697 _ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h.  */
4701 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4703 #define gethostbyname innocuous_gethostbyname
4704
4705 /* System header to define __stub macros and hopefully few prototypes,
4706     which can conflict with char gethostbyname (); below.
4707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4708     <limits.h> exists even on freestanding compilers.  */
4709
4710 #ifdef __STDC__
4711 # include <limits.h>
4712 #else
4713 # include <assert.h>
4714 #endif
4715
4716 #undef gethostbyname
4717
4718 /* Override any gcc2 internal prototype to avoid an error.  */
4719 #ifdef __cplusplus
4720 extern "C"
4721 {
4722 #endif
4723 /* We use char because int might match the return type of a gcc2
4724    builtin and then its argument prototype would still apply.  */
4725 char gethostbyname ();
4726 /* The GNU C library defines this for functions which it implements
4727     to always fail with ENOSYS.  Some functions are actually named
4728     something starting with __ and the normal name is an alias.  */
4729 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4730 choke me
4731 #else
4732 char (*f) () = gethostbyname;
4733 #endif
4734 #ifdef __cplusplus
4735 }
4736 #endif
4737
4738 int
4739 main ()
4740 {
4741 return f != gethostbyname;
4742   ;
4743   return 0;
4744 }
4745 _ACEOF
4746 rm -f conftest.$ac_objext conftest$ac_exeext
4747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4748   (eval $ac_link) 2>conftest.er1
4749   ac_status=$?
4750   grep -v '^ *+' conftest.er1 >conftest.err
4751   rm -f conftest.er1
4752   cat conftest.err >&5
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); } &&
4755          { ac_try='test -z "$ac_c_werror_flag"
4756                          || test ! -s conftest.err'
4757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758   (eval $ac_try) 2>&5
4759   ac_status=$?
4760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761   (exit $ac_status); }; } &&
4762          { ac_try='test -s conftest$ac_exeext'
4763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764   (eval $ac_try) 2>&5
4765   ac_status=$?
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); }; }; then
4768   ac_cv_func_gethostbyname=yes
4769 else
4770   echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4772
4773 ac_cv_func_gethostbyname=no
4774 fi
4775 rm -f conftest.err conftest.$ac_objext \
4776       conftest$ac_exeext conftest.$ac_ext
4777 fi
4778 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4779 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4780
4781     if test $ac_cv_func_gethostbyname = no; then
4782       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4783 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4784 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4785   echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787   ac_check_lib_save_LIBS=$LIBS
4788 LIBS="-lnsl  $LIBS"
4789 cat >conftest.$ac_ext <<_ACEOF
4790 /* confdefs.h.  */
4791 _ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h.  */
4795
4796 /* Override any gcc2 internal prototype to avoid an error.  */
4797 #ifdef __cplusplus
4798 extern "C"
4799 #endif
4800 /* We use char because int might match the return type of a gcc2
4801    builtin and then its argument prototype would still apply.  */
4802 char gethostbyname ();
4803 int
4804 main ()
4805 {
4806 gethostbyname ();
4807   ;
4808   return 0;
4809 }
4810 _ACEOF
4811 rm -f conftest.$ac_objext conftest$ac_exeext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4813   (eval $ac_link) 2>conftest.er1
4814   ac_status=$?
4815   grep -v '^ *+' conftest.er1 >conftest.err
4816   rm -f conftest.er1
4817   cat conftest.err >&5
4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819   (exit $ac_status); } &&
4820          { ac_try='test -z "$ac_c_werror_flag"
4821                          || test ! -s conftest.err'
4822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823   (eval $ac_try) 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); }; } &&
4827          { ac_try='test -s conftest$ac_exeext'
4828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829   (eval $ac_try) 2>&5
4830   ac_status=$?
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); }; }; then
4833   ac_cv_lib_nsl_gethostbyname=yes
4834 else
4835   echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4837
4838 ac_cv_lib_nsl_gethostbyname=no
4839 fi
4840 rm -f conftest.err conftest.$ac_objext \
4841       conftest$ac_exeext conftest.$ac_ext
4842 LIBS=$ac_check_lib_save_LIBS
4843 fi
4844 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4845 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4846 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4847   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4848 fi
4849
4850       if test $ac_cv_lib_nsl_gethostbyname = no; then
4851         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4852 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4853 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   ac_check_lib_save_LIBS=$LIBS
4857 LIBS="-lbsd  $LIBS"
4858 cat >conftest.$ac_ext <<_ACEOF
4859 /* confdefs.h.  */
4860 _ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h.  */
4864
4865 /* Override any gcc2 internal prototype to avoid an error.  */
4866 #ifdef __cplusplus
4867 extern "C"
4868 #endif
4869 /* We use char because int might match the return type of a gcc2
4870    builtin and then its argument prototype would still apply.  */
4871 char gethostbyname ();
4872 int
4873 main ()
4874 {
4875 gethostbyname ();
4876   ;
4877   return 0;
4878 }
4879 _ACEOF
4880 rm -f conftest.$ac_objext conftest$ac_exeext
4881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4882   (eval $ac_link) 2>conftest.er1
4883   ac_status=$?
4884   grep -v '^ *+' conftest.er1 >conftest.err
4885   rm -f conftest.er1
4886   cat conftest.err >&5
4887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888   (exit $ac_status); } &&
4889          { ac_try='test -z "$ac_c_werror_flag"
4890                          || test ! -s conftest.err'
4891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892   (eval $ac_try) 2>&5
4893   ac_status=$?
4894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895   (exit $ac_status); }; } &&
4896          { ac_try='test -s conftest$ac_exeext'
4897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898   (eval $ac_try) 2>&5
4899   ac_status=$?
4900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901   (exit $ac_status); }; }; then
4902   ac_cv_lib_bsd_gethostbyname=yes
4903 else
4904   echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4906
4907 ac_cv_lib_bsd_gethostbyname=no
4908 fi
4909 rm -f conftest.err conftest.$ac_objext \
4910       conftest$ac_exeext conftest.$ac_ext
4911 LIBS=$ac_check_lib_save_LIBS
4912 fi
4913 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4914 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4915 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4916   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4917 fi
4918
4919       fi
4920     fi
4921
4922     # lieder@skyler.mavd.honeywell.com says without -lsocket,
4923     # socket/setsockopt and other routines are undefined under SCO ODT
4924     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4925     # on later versions), says Simon Leinen: it contains gethostby*
4926     # variants that don't use the name server (or something).  -lsocket
4927     # must be given before -lnsl if both are needed.  We assume that
4928     # if connect needs -lnsl, so does gethostbyname.
4929     echo "$as_me:$LINENO: checking for connect" >&5
4930 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4931 if test "${ac_cv_func_connect+set}" = set; then
4932   echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934   cat >conftest.$ac_ext <<_ACEOF
4935 /* confdefs.h.  */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h.  */
4940 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4942 #define connect innocuous_connect
4943
4944 /* System header to define __stub macros and hopefully few prototypes,
4945     which can conflict with char connect (); below.
4946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4947     <limits.h> exists even on freestanding compilers.  */
4948
4949 #ifdef __STDC__
4950 # include <limits.h>
4951 #else
4952 # include <assert.h>
4953 #endif
4954
4955 #undef connect
4956
4957 /* Override any gcc2 internal prototype to avoid an error.  */
4958 #ifdef __cplusplus
4959 extern "C"
4960 {
4961 #endif
4962 /* We use char because int might match the return type of a gcc2
4963    builtin and then its argument prototype would still apply.  */
4964 char connect ();
4965 /* The GNU C library defines this for functions which it implements
4966     to always fail with ENOSYS.  Some functions are actually named
4967     something starting with __ and the normal name is an alias.  */
4968 #if defined (__stub_connect) || defined (__stub___connect)
4969 choke me
4970 #else
4971 char (*f) () = connect;
4972 #endif
4973 #ifdef __cplusplus
4974 }
4975 #endif
4976
4977 int
4978 main ()
4979 {
4980 return f != connect;
4981   ;
4982   return 0;
4983 }
4984 _ACEOF
4985 rm -f conftest.$ac_objext conftest$ac_exeext
4986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4987   (eval $ac_link) 2>conftest.er1
4988   ac_status=$?
4989   grep -v '^ *+' conftest.er1 >conftest.err
4990   rm -f conftest.er1
4991   cat conftest.err >&5
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); } &&
4994          { ac_try='test -z "$ac_c_werror_flag"
4995                          || test ! -s conftest.err'
4996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997   (eval $ac_try) 2>&5
4998   ac_status=$?
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); }; } &&
5001          { ac_try='test -s conftest$ac_exeext'
5002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003   (eval $ac_try) 2>&5
5004   ac_status=$?
5005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006   (exit $ac_status); }; }; then
5007   ac_cv_func_connect=yes
5008 else
5009   echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012 ac_cv_func_connect=no
5013 fi
5014 rm -f conftest.err conftest.$ac_objext \
5015       conftest$ac_exeext conftest.$ac_ext
5016 fi
5017 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5018 echo "${ECHO_T}$ac_cv_func_connect" >&6
5019
5020     if test $ac_cv_func_connect = no; then
5021       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5022 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5023 if test "${ac_cv_lib_socket_connect+set}" = set; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   ac_check_lib_save_LIBS=$LIBS
5027 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5028 cat >conftest.$ac_ext <<_ACEOF
5029 /* confdefs.h.  */
5030 _ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h.  */
5034
5035 /* Override any gcc2 internal prototype to avoid an error.  */
5036 #ifdef __cplusplus
5037 extern "C"
5038 #endif
5039 /* We use char because int might match the return type of a gcc2
5040    builtin and then its argument prototype would still apply.  */
5041 char connect ();
5042 int
5043 main ()
5044 {
5045 connect ();
5046   ;
5047   return 0;
5048 }
5049 _ACEOF
5050 rm -f conftest.$ac_objext conftest$ac_exeext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5052   (eval $ac_link) 2>conftest.er1
5053   ac_status=$?
5054   grep -v '^ *+' conftest.er1 >conftest.err
5055   rm -f conftest.er1
5056   cat conftest.err >&5
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); } &&
5059          { ac_try='test -z "$ac_c_werror_flag"
5060                          || test ! -s conftest.err'
5061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062   (eval $ac_try) 2>&5
5063   ac_status=$?
5064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065   (exit $ac_status); }; } &&
5066          { ac_try='test -s conftest$ac_exeext'
5067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068   (eval $ac_try) 2>&5
5069   ac_status=$?
5070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071   (exit $ac_status); }; }; then
5072   ac_cv_lib_socket_connect=yes
5073 else
5074   echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5076
5077 ac_cv_lib_socket_connect=no
5078 fi
5079 rm -f conftest.err conftest.$ac_objext \
5080       conftest$ac_exeext conftest.$ac_ext
5081 LIBS=$ac_check_lib_save_LIBS
5082 fi
5083 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5084 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5085 if test $ac_cv_lib_socket_connect = yes; then
5086   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5087 fi
5088
5089     fi
5090
5091     # Guillermo Gomez says -lposix is necessary on A/UX.
5092     echo "$as_me:$LINENO: checking for remove" >&5
5093 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5094 if test "${ac_cv_func_remove+set}" = set; then
5095   echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097   cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h.  */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h.  */
5103 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5105 #define remove innocuous_remove
5106
5107 /* System header to define __stub macros and hopefully few prototypes,
5108     which can conflict with char remove (); below.
5109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110     <limits.h> exists even on freestanding compilers.  */
5111
5112 #ifdef __STDC__
5113 # include <limits.h>
5114 #else
5115 # include <assert.h>
5116 #endif
5117
5118 #undef remove
5119
5120 /* Override any gcc2 internal prototype to avoid an error.  */
5121 #ifdef __cplusplus
5122 extern "C"
5123 {
5124 #endif
5125 /* We use char because int might match the return type of a gcc2
5126    builtin and then its argument prototype would still apply.  */
5127 char remove ();
5128 /* The GNU C library defines this for functions which it implements
5129     to always fail with ENOSYS.  Some functions are actually named
5130     something starting with __ and the normal name is an alias.  */
5131 #if defined (__stub_remove) || defined (__stub___remove)
5132 choke me
5133 #else
5134 char (*f) () = remove;
5135 #endif
5136 #ifdef __cplusplus
5137 }
5138 #endif
5139
5140 int
5141 main ()
5142 {
5143 return f != remove;
5144   ;
5145   return 0;
5146 }
5147 _ACEOF
5148 rm -f conftest.$ac_objext conftest$ac_exeext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150   (eval $ac_link) 2>conftest.er1
5151   ac_status=$?
5152   grep -v '^ *+' conftest.er1 >conftest.err
5153   rm -f conftest.er1
5154   cat conftest.err >&5
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); } &&
5157          { ac_try='test -z "$ac_c_werror_flag"
5158                          || test ! -s conftest.err'
5159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160   (eval $ac_try) 2>&5
5161   ac_status=$?
5162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163   (exit $ac_status); }; } &&
5164          { ac_try='test -s conftest$ac_exeext'
5165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166   (eval $ac_try) 2>&5
5167   ac_status=$?
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); }; }; then
5170   ac_cv_func_remove=yes
5171 else
5172   echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5174
5175 ac_cv_func_remove=no
5176 fi
5177 rm -f conftest.err conftest.$ac_objext \
5178       conftest$ac_exeext conftest.$ac_ext
5179 fi
5180 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5181 echo "${ECHO_T}$ac_cv_func_remove" >&6
5182
5183     if test $ac_cv_func_remove = no; then
5184       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5185 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5186 if test "${ac_cv_lib_posix_remove+set}" = set; then
5187   echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189   ac_check_lib_save_LIBS=$LIBS
5190 LIBS="-lposix  $LIBS"
5191 cat >conftest.$ac_ext <<_ACEOF
5192 /* confdefs.h.  */
5193 _ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h.  */
5197
5198 /* Override any gcc2 internal prototype to avoid an error.  */
5199 #ifdef __cplusplus
5200 extern "C"
5201 #endif
5202 /* We use char because int might match the return type of a gcc2
5203    builtin and then its argument prototype would still apply.  */
5204 char remove ();
5205 int
5206 main ()
5207 {
5208 remove ();
5209   ;
5210   return 0;
5211 }
5212 _ACEOF
5213 rm -f conftest.$ac_objext conftest$ac_exeext
5214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5215   (eval $ac_link) 2>conftest.er1
5216   ac_status=$?
5217   grep -v '^ *+' conftest.er1 >conftest.err
5218   rm -f conftest.er1
5219   cat conftest.err >&5
5220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221   (exit $ac_status); } &&
5222          { ac_try='test -z "$ac_c_werror_flag"
5223                          || test ! -s conftest.err'
5224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225   (eval $ac_try) 2>&5
5226   ac_status=$?
5227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228   (exit $ac_status); }; } &&
5229          { ac_try='test -s conftest$ac_exeext'
5230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231   (eval $ac_try) 2>&5
5232   ac_status=$?
5233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234   (exit $ac_status); }; }; then
5235   ac_cv_lib_posix_remove=yes
5236 else
5237   echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5239
5240 ac_cv_lib_posix_remove=no
5241 fi
5242 rm -f conftest.err conftest.$ac_objext \
5243       conftest$ac_exeext conftest.$ac_ext
5244 LIBS=$ac_check_lib_save_LIBS
5245 fi
5246 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5247 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5248 if test $ac_cv_lib_posix_remove = yes; then
5249   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5250 fi
5251
5252     fi
5253
5254     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5255     echo "$as_me:$LINENO: checking for shmat" >&5
5256 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5257 if test "${ac_cv_func_shmat+set}" = set; then
5258   echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260   cat >conftest.$ac_ext <<_ACEOF
5261 /* confdefs.h.  */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h.  */
5266 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5268 #define shmat innocuous_shmat
5269
5270 /* System header to define __stub macros and hopefully few prototypes,
5271     which can conflict with char shmat (); below.
5272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5273     <limits.h> exists even on freestanding compilers.  */
5274
5275 #ifdef __STDC__
5276 # include <limits.h>
5277 #else
5278 # include <assert.h>
5279 #endif
5280
5281 #undef shmat
5282
5283 /* Override any gcc2 internal prototype to avoid an error.  */
5284 #ifdef __cplusplus
5285 extern "C"
5286 {
5287 #endif
5288 /* We use char because int might match the return type of a gcc2
5289    builtin and then its argument prototype would still apply.  */
5290 char shmat ();
5291 /* The GNU C library defines this for functions which it implements
5292     to always fail with ENOSYS.  Some functions are actually named
5293     something starting with __ and the normal name is an alias.  */
5294 #if defined (__stub_shmat) || defined (__stub___shmat)
5295 choke me
5296 #else
5297 char (*f) () = shmat;
5298 #endif
5299 #ifdef __cplusplus
5300 }
5301 #endif
5302
5303 int
5304 main ()
5305 {
5306 return f != shmat;
5307   ;
5308   return 0;
5309 }
5310 _ACEOF
5311 rm -f conftest.$ac_objext conftest$ac_exeext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5313   (eval $ac_link) 2>conftest.er1
5314   ac_status=$?
5315   grep -v '^ *+' conftest.er1 >conftest.err
5316   rm -f conftest.er1
5317   cat conftest.err >&5
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); } &&
5320          { ac_try='test -z "$ac_c_werror_flag"
5321                          || test ! -s conftest.err'
5322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323   (eval $ac_try) 2>&5
5324   ac_status=$?
5325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326   (exit $ac_status); }; } &&
5327          { ac_try='test -s conftest$ac_exeext'
5328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329   (eval $ac_try) 2>&5
5330   ac_status=$?
5331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332   (exit $ac_status); }; }; then
5333   ac_cv_func_shmat=yes
5334 else
5335   echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5337
5338 ac_cv_func_shmat=no
5339 fi
5340 rm -f conftest.err conftest.$ac_objext \
5341       conftest$ac_exeext conftest.$ac_ext
5342 fi
5343 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5344 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5345
5346     if test $ac_cv_func_shmat = no; then
5347       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5348 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5349 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   ac_check_lib_save_LIBS=$LIBS
5353 LIBS="-lipc  $LIBS"
5354 cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h.  */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h.  */
5360
5361 /* Override any gcc2 internal prototype to avoid an error.  */
5362 #ifdef __cplusplus
5363 extern "C"
5364 #endif
5365 /* We use char because int might match the return type of a gcc2
5366    builtin and then its argument prototype would still apply.  */
5367 char shmat ();
5368 int
5369 main ()
5370 {
5371 shmat ();
5372   ;
5373   return 0;
5374 }
5375 _ACEOF
5376 rm -f conftest.$ac_objext conftest$ac_exeext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5378   (eval $ac_link) 2>conftest.er1
5379   ac_status=$?
5380   grep -v '^ *+' conftest.er1 >conftest.err
5381   rm -f conftest.er1
5382   cat conftest.err >&5
5383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384   (exit $ac_status); } &&
5385          { ac_try='test -z "$ac_c_werror_flag"
5386                          || test ! -s conftest.err'
5387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388   (eval $ac_try) 2>&5
5389   ac_status=$?
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); }; } &&
5392          { ac_try='test -s conftest$ac_exeext'
5393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394   (eval $ac_try) 2>&5
5395   ac_status=$?
5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397   (exit $ac_status); }; }; then
5398   ac_cv_lib_ipc_shmat=yes
5399 else
5400   echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5402
5403 ac_cv_lib_ipc_shmat=no
5404 fi
5405 rm -f conftest.err conftest.$ac_objext \
5406       conftest$ac_exeext conftest.$ac_ext
5407 LIBS=$ac_check_lib_save_LIBS
5408 fi
5409 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5410 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5411 if test $ac_cv_lib_ipc_shmat = yes; then
5412   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5413 fi
5414
5415     fi
5416   fi
5417
5418   # Check for libraries that X11R6 Xt/Xaw programs need.
5419   ac_save_LDFLAGS=$LDFLAGS
5420   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5421   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5422   # check for ICE first), but we must link in the order -lSM -lICE or
5423   # we get undefined symbols.  So assume we have SM if we have ICE.
5424   # These have to be linked with before -lX11, unlike the other
5425   # libraries we check for below, so use a different variable.
5426   # John Interrante, Karl Berry
5427   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5428 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5429 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   ac_check_lib_save_LIBS=$LIBS
5433 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5434 cat >conftest.$ac_ext <<_ACEOF
5435 /* confdefs.h.  */
5436 _ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h.  */
5440
5441 /* Override any gcc2 internal prototype to avoid an error.  */
5442 #ifdef __cplusplus
5443 extern "C"
5444 #endif
5445 /* We use char because int might match the return type of a gcc2
5446    builtin and then its argument prototype would still apply.  */
5447 char IceConnectionNumber ();
5448 int
5449 main ()
5450 {
5451 IceConnectionNumber ();
5452   ;
5453   return 0;
5454 }
5455 _ACEOF
5456 rm -f conftest.$ac_objext conftest$ac_exeext
5457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458   (eval $ac_link) 2>conftest.er1
5459   ac_status=$?
5460   grep -v '^ *+' conftest.er1 >conftest.err
5461   rm -f conftest.er1
5462   cat conftest.err >&5
5463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464   (exit $ac_status); } &&
5465          { ac_try='test -z "$ac_c_werror_flag"
5466                          || test ! -s conftest.err'
5467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468   (eval $ac_try) 2>&5
5469   ac_status=$?
5470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471   (exit $ac_status); }; } &&
5472          { ac_try='test -s conftest$ac_exeext'
5473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474   (eval $ac_try) 2>&5
5475   ac_status=$?
5476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477   (exit $ac_status); }; }; then
5478   ac_cv_lib_ICE_IceConnectionNumber=yes
5479 else
5480   echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5482
5483 ac_cv_lib_ICE_IceConnectionNumber=no
5484 fi
5485 rm -f conftest.err conftest.$ac_objext \
5486       conftest$ac_exeext conftest.$ac_ext
5487 LIBS=$ac_check_lib_save_LIBS
5488 fi
5489 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5490 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5491 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5492   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5493 fi
5494
5495   LDFLAGS=$ac_save_LDFLAGS
5496
5497 fi
5498
5499
5500 XML_CFLAGS=`$XML_CONFIG --cflags`
5501 XML_LFLAGS=`$XML_CONFIG --libs`
5502
5503 LIBS="$LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS"
5504 LIBS="$LIBS -L/usr/local/lib $XML_LFLAGS"
5505 CFLAGS="$CFLAGS $X_CFLAGS $XML_CFLAGS "
5506 CXXFLAGS="$CXXFLAGS  -Wno-deprecated $X_CFLAGS $XML_CFLAGS"
5507
5508
5509 echo "$as_me:$LINENO: checking for main in -lAXE" >&5
5510 echo $ECHO_N "checking for main in -lAXE... $ECHO_C" >&6
5511 if test "${ac_cv_lib_AXE_main+set}" = set; then
5512   echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514   ac_check_lib_save_LIBS=$LIBS
5515 LIBS="-lAXE  $LIBS"
5516 cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h.  */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h.  */
5522
5523
5524 int
5525 main ()
5526 {
5527 main ();
5528   ;
5529   return 0;
5530 }
5531 _ACEOF
5532 rm -f conftest.$ac_objext conftest$ac_exeext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5534   (eval $ac_link) 2>conftest.er1
5535   ac_status=$?
5536   grep -v '^ *+' conftest.er1 >conftest.err
5537   rm -f conftest.er1
5538   cat conftest.err >&5
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); } &&
5541          { ac_try='test -z "$ac_c_werror_flag"
5542                          || test ! -s conftest.err'
5543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544   (eval $ac_try) 2>&5
5545   ac_status=$?
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); }; } &&
5548          { ac_try='test -s conftest$ac_exeext'
5549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550   (eval $ac_try) 2>&5
5551   ac_status=$?
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); }; }; then
5554   ac_cv_lib_AXE_main=yes
5555 else
5556   echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5558
5559 ac_cv_lib_AXE_main=no
5560 fi
5561 rm -f conftest.err conftest.$ac_objext \
5562       conftest$ac_exeext conftest.$ac_ext
5563 LIBS=$ac_check_lib_save_LIBS
5564 fi
5565 echo "$as_me:$LINENO: result: $ac_cv_lib_AXE_main" >&5
5566 echo "${ECHO_T}$ac_cv_lib_AXE_main" >&6
5567 if test $ac_cv_lib_AXE_main = yes; then
5568   cat >>confdefs.h <<_ACEOF
5569 #define HAVE_LIBAXE 1
5570 _ACEOF
5571
5572   LIBS="-lAXE $LIBS"
5573
5574 else
5575   { { echo "$as_me:$LINENO: error: AXE Library is not installed" >&5
5576 echo "$as_me: error: AXE Library is not installed" >&2;}
5577    { (exit 1); exit 1; }; }
5578 fi
5579
5580 #AC_CHECK_LIB(X11, XOpenDisplay)
5581 #AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData)
5582 #AC_CHECK_LIB(pthread, pthread_create)
5583
5584 echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
5585 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6
5586 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
5587   echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589   ac_check_lib_save_LIBS=$LIBS
5590 LIBS="-lxml2  $LIBS"
5591 cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h.  */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h.  */
5597
5598 /* Override any gcc2 internal prototype to avoid an error.  */
5599 #ifdef __cplusplus
5600 extern "C"
5601 #endif
5602 /* We use char because int might match the return type of a gcc2
5603    builtin and then its argument prototype would still apply.  */
5604 char xmlParseFile ();
5605 int
5606 main ()
5607 {
5608 xmlParseFile ();
5609   ;
5610   return 0;
5611 }
5612 _ACEOF
5613 rm -f conftest.$ac_objext conftest$ac_exeext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5615   (eval $ac_link) 2>conftest.er1
5616   ac_status=$?
5617   grep -v '^ *+' conftest.er1 >conftest.err
5618   rm -f conftest.er1
5619   cat conftest.err >&5
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); } &&
5622          { ac_try='test -z "$ac_c_werror_flag"
5623                          || test ! -s conftest.err'
5624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625   (eval $ac_try) 2>&5
5626   ac_status=$?
5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); }; } &&
5629          { ac_try='test -s conftest$ac_exeext'
5630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631   (eval $ac_try) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); }; }; then
5635   ac_cv_lib_xml2_xmlParseFile=yes
5636 else
5637   echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640 ac_cv_lib_xml2_xmlParseFile=no
5641 fi
5642 rm -f conftest.err conftest.$ac_objext \
5643       conftest$ac_exeext conftest.$ac_ext
5644 LIBS=$ac_check_lib_save_LIBS
5645 fi
5646 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
5647 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6
5648 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
5649   cat >>confdefs.h <<_ACEOF
5650 #define HAVE_LIBXML2 1
5651 _ACEOF
5652
5653   LIBS="-lxml2 $LIBS"
5654
5655 fi
5656
5657
5658 # Find PostgreSQL includes and libraries
5659 for ac_prog in pqxx-config
5660 do
5661   # Extract the first word of "$ac_prog", so it can be a program name with args.
5662 set dummy $ac_prog; ac_word=$2
5663 echo "$as_me:$LINENO: checking for $ac_word" >&5
5664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5665 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
5666   echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668   case $PG_CONFIG in
5669   [\\/]* | ?:[\\/]*)
5670   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
5671   ;;
5672   *)
5673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5675 do
5676   IFS=$as_save_IFS
5677   test -z "$as_dir" && as_dir=.
5678   for ac_exec_ext in '' $ac_executable_extensions; do
5679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5682     break 2
5683   fi
5684 done
5685 done
5686
5687   ;;
5688 esac
5689 fi
5690 PG_CONFIG=$ac_cv_path_PG_CONFIG
5691
5692 if test -n "$PG_CONFIG"; then
5693   echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
5694 echo "${ECHO_T}$PG_CONFIG" >&6
5695 else
5696   echo "$as_me:$LINENO: result: no" >&5
5697 echo "${ECHO_T}no" >&6
5698 fi
5699
5700   test -n "$PG_CONFIG" && break
5701 done
5702
5703 if test -z "$PG_CONFIG" || test ! -r "$PG_CONFIG"; then
5704         { { echo "$as_me:$LINENO: error: libpqxx configuration script was not found" >&5
5705 echo "$as_me: error: libpqxx configuration script was not found" >&2;}
5706    { (exit 1); exit 1; }; }
5707 fi
5708 with_postgres_include=`$PG_CONFIG --cflags`
5709 { echo "$as_me:$LINENO: using PostgreSQL headers at $with_postgres_include" >&5
5710 echo "$as_me: using PostgreSQL headers at $with_postgres_include" >&6;}
5711 with_postgres_lib=`$PG_CONFIG --libs`
5712 { echo "$as_me:$LINENO: using PostgreSQL libraries at $with_postgres_lib" >&5
5713 echo "$as_me: using PostgreSQL libraries at $with_postgres_lib" >&6;}
5714
5715
5716
5717 POSTGRES_LIB="${with_postgres_lib}"
5718
5719 POSTGRES_INCLUDE="${with_postgres_include}"
5720
5721
5722
5723 # Checks for libraries.
5724
5725 echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
5726 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6
5727 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
5728   echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730   ac_check_lib_save_LIBS=$LIBS
5731 LIBS="-lpq -L${with_postgres_lib} $LIBS"
5732 cat >conftest.$ac_ext <<_ACEOF
5733 /* confdefs.h.  */
5734 _ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h.  */
5738
5739 /* Override any gcc2 internal prototype to avoid an error.  */
5740 #ifdef __cplusplus
5741 extern "C"
5742 #endif
5743 /* We use char because int might match the return type of a gcc2
5744    builtin and then its argument prototype would still apply.  */
5745 char PQexec ();
5746 int
5747 main ()
5748 {
5749 PQexec ();
5750   ;
5751   return 0;
5752 }
5753 _ACEOF
5754 rm -f conftest.$ac_objext conftest$ac_exeext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5756   (eval $ac_link) 2>conftest.er1
5757   ac_status=$?
5758   grep -v '^ *+' conftest.er1 >conftest.err
5759   rm -f conftest.er1
5760   cat conftest.err >&5
5761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762   (exit $ac_status); } &&
5763          { ac_try='test -z "$ac_c_werror_flag"
5764                          || test ! -s conftest.err'
5765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766   (eval $ac_try) 2>&5
5767   ac_status=$?
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); }; } &&
5770          { ac_try='test -s conftest$ac_exeext'
5771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772   (eval $ac_try) 2>&5
5773   ac_status=$?
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); }; }; then
5776   ac_cv_lib_pq_PQexec=yes
5777 else
5778   echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.$ac_ext >&5
5780
5781 ac_cv_lib_pq_PQexec=no
5782 fi
5783 rm -f conftest.err conftest.$ac_objext \
5784       conftest$ac_exeext conftest.$ac_ext
5785 LIBS=$ac_check_lib_save_LIBS
5786 fi
5787 echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
5788 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6
5789 if test $ac_cv_lib_pq_PQexec = yes; then
5790   cat >>confdefs.h <<_ACEOF
5791 #define HAVE_LIBPQ 1
5792 _ACEOF
5793
5794   LIBS="-lpq $LIBS"
5795
5796 else
5797   { { echo "$as_me:$LINENO: error: Failed to find a suitable libpq.
5798
5799 PostgreSQL's libpq needs to be installed.
5800 Perhaps you need to specify --with-postgres-lib?
5801 " >&5
5802 echo "$as_me: error: Failed to find a suitable libpq.
5803
5804 PostgreSQL's libpq needs to be installed.
5805 Perhaps you need to specify --with-postgres-lib?
5806 " >&2;}
5807    { (exit 1); exit 1; }; }
5808 fi
5809
5810
5811
5812 CXXFLAGS="$CXXFLAGS $POSTGRES_INCLUDE"
5813 LIBS="$LIBS $POSTGRES_LIB"
5814
5815 #
5816 #  There is no convenient way to detect libpqxx, so we'll
5817 #  use fixed paths for the time being.
5818
5819 CXXFLAGS="$CXXFLAGS -I/usr/local/pqxx/include"
5820 LIBS="$LIBS -L/usr/local/pqxx/lib -lpqxx"
5821
5822
5823
5824
5825
5826
5827 ac_header_dirent=no
5828 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5829   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5830 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5831 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h.  */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h.  */
5841 #include <sys/types.h>
5842 #include <$ac_hdr>
5843
5844 int
5845 main ()
5846 {
5847 if ((DIR *) 0)
5848 return 0;
5849   ;
5850   return 0;
5851 }
5852 _ACEOF
5853 rm -f conftest.$ac_objext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855   (eval $ac_compile) 2>conftest.er1
5856   ac_status=$?
5857   grep -v '^ *+' conftest.er1 >conftest.err
5858   rm -f conftest.er1
5859   cat conftest.err >&5
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); } &&
5862          { ac_try='test -z "$ac_c_werror_flag"
5863                          || test ! -s conftest.err'
5864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865   (eval $ac_try) 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); }; } &&
5869          { ac_try='test -s conftest.$ac_objext'
5870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871   (eval $ac_try) 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }; }; then
5875   eval "$as_ac_Header=yes"
5876 else
5877   echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5879
5880 eval "$as_ac_Header=no"
5881 fi
5882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5883 fi
5884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5887   cat >>confdefs.h <<_ACEOF
5888 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5889 _ACEOF
5890
5891 ac_header_dirent=$ac_hdr; break
5892 fi
5893
5894 done
5895 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5896 if test $ac_header_dirent = dirent.h; then
5897   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5898 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5899 if test "${ac_cv_search_opendir+set}" = set; then
5900   echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902   ac_func_search_save_LIBS=$LIBS
5903 ac_cv_search_opendir=no
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h.  */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h.  */
5910
5911 /* Override any gcc2 internal prototype to avoid an error.  */
5912 #ifdef __cplusplus
5913 extern "C"
5914 #endif
5915 /* We use char because int might match the return type of a gcc2
5916    builtin and then its argument prototype would still apply.  */
5917 char opendir ();
5918 int
5919 main ()
5920 {
5921 opendir ();
5922   ;
5923   return 0;
5924 }
5925 _ACEOF
5926 rm -f conftest.$ac_objext conftest$ac_exeext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5928   (eval $ac_link) 2>conftest.er1
5929   ac_status=$?
5930   grep -v '^ *+' conftest.er1 >conftest.err
5931   rm -f conftest.er1
5932   cat conftest.err >&5
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); } &&
5935          { ac_try='test -z "$ac_c_werror_flag"
5936                          || test ! -s conftest.err'
5937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938   (eval $ac_try) 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); }; } &&
5942          { ac_try='test -s conftest$ac_exeext'
5943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944   (eval $ac_try) 2>&5
5945   ac_status=$?
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); }; }; then
5948   ac_cv_search_opendir="none required"
5949 else
5950   echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 fi
5954 rm -f conftest.err conftest.$ac_objext \
5955       conftest$ac_exeext conftest.$ac_ext
5956 if test "$ac_cv_search_opendir" = no; then
5957   for ac_lib in dir; do
5958     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5959     cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h.  */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h.  */
5965
5966 /* Override any gcc2 internal prototype to avoid an error.  */
5967 #ifdef __cplusplus
5968 extern "C"
5969 #endif
5970 /* We use char because int might match the return type of a gcc2
5971    builtin and then its argument prototype would still apply.  */
5972 char opendir ();
5973 int
5974 main ()
5975 {
5976 opendir ();
5977   ;
5978   return 0;
5979 }
5980 _ACEOF
5981 rm -f conftest.$ac_objext conftest$ac_exeext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5983   (eval $ac_link) 2>conftest.er1
5984   ac_status=$?
5985   grep -v '^ *+' conftest.er1 >conftest.err
5986   rm -f conftest.er1
5987   cat conftest.err >&5
5988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989   (exit $ac_status); } &&
5990          { ac_try='test -z "$ac_c_werror_flag"
5991                          || test ! -s conftest.err'
5992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993   (eval $ac_try) 2>&5
5994   ac_status=$?
5995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996   (exit $ac_status); }; } &&
5997          { ac_try='test -s conftest$ac_exeext'
5998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999   (eval $ac_try) 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); }; }; then
6003   ac_cv_search_opendir="-l$ac_lib"
6004 break
6005 else
6006   echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009 fi
6010 rm -f conftest.err conftest.$ac_objext \
6011       conftest$ac_exeext conftest.$ac_ext
6012   done
6013 fi
6014 LIBS=$ac_func_search_save_LIBS
6015 fi
6016 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6017 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6018 if test "$ac_cv_search_opendir" != no; then
6019   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6020
6021 fi
6022
6023 else
6024   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6025 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6026 if test "${ac_cv_search_opendir+set}" = set; then
6027   echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029   ac_func_search_save_LIBS=$LIBS
6030 ac_cv_search_opendir=no
6031 cat >conftest.$ac_ext <<_ACEOF
6032 /* confdefs.h.  */
6033 _ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h.  */
6037
6038 /* Override any gcc2 internal prototype to avoid an error.  */
6039 #ifdef __cplusplus
6040 extern "C"
6041 #endif
6042 /* We use char because int might match the return type of a gcc2
6043    builtin and then its argument prototype would still apply.  */
6044 char opendir ();
6045 int
6046 main ()
6047 {
6048 opendir ();
6049   ;
6050   return 0;
6051 }
6052 _ACEOF
6053 rm -f conftest.$ac_objext conftest$ac_exeext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6055   (eval $ac_link) 2>conftest.er1
6056   ac_status=$?
6057   grep -v '^ *+' conftest.er1 >conftest.err
6058   rm -f conftest.er1
6059   cat conftest.err >&5
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); } &&
6062          { ac_try='test -z "$ac_c_werror_flag"
6063                          || test ! -s conftest.err'
6064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065   (eval $ac_try) 2>&5
6066   ac_status=$?
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); }; } &&
6069          { ac_try='test -s conftest$ac_exeext'
6070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071   (eval $ac_try) 2>&5
6072   ac_status=$?
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); }; }; then
6075   ac_cv_search_opendir="none required"
6076 else
6077   echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6079
6080 fi
6081 rm -f conftest.err conftest.$ac_objext \
6082       conftest$ac_exeext conftest.$ac_ext
6083 if test "$ac_cv_search_opendir" = no; then
6084   for ac_lib in x; do
6085     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6086     cat >conftest.$ac_ext <<_ACEOF
6087 /* confdefs.h.  */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h.  */
6092
6093 /* Override any gcc2 internal prototype to avoid an error.  */
6094 #ifdef __cplusplus
6095 extern "C"
6096 #endif
6097 /* We use char because int might match the return type of a gcc2
6098    builtin and then its argument prototype would still apply.  */
6099 char opendir ();
6100 int
6101 main ()
6102 {
6103 opendir ();
6104   ;
6105   return 0;
6106 }
6107 _ACEOF
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110   (eval $ac_link) 2>conftest.er1
6111   ac_status=$?
6112   grep -v '^ *+' conftest.er1 >conftest.err
6113   rm -f conftest.er1
6114   cat conftest.err >&5
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); } &&
6117          { ac_try='test -z "$ac_c_werror_flag"
6118                          || test ! -s conftest.err'
6119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120   (eval $ac_try) 2>&5
6121   ac_status=$?
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); }; } &&
6124          { ac_try='test -s conftest$ac_exeext'
6125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126   (eval $ac_try) 2>&5
6127   ac_status=$?
6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); }; }; then
6130   ac_cv_search_opendir="-l$ac_lib"
6131 break
6132 else
6133   echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6135
6136 fi
6137 rm -f conftest.err conftest.$ac_objext \
6138       conftest$ac_exeext conftest.$ac_ext
6139   done
6140 fi
6141 LIBS=$ac_func_search_save_LIBS
6142 fi
6143 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6144 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6145 if test "$ac_cv_search_opendir" != no; then
6146   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6147
6148 fi
6149
6150 fi
6151
6152 echo "$as_me:$LINENO: checking for egrep" >&5
6153 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6154 if test "${ac_cv_prog_egrep+set}" = set; then
6155   echo $ECHO_N "(cached) $ECHO_C" >&6
6156 else
6157   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6158     then ac_cv_prog_egrep='grep -E'
6159     else ac_cv_prog_egrep='egrep'
6160     fi
6161 fi
6162 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6163 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6164  EGREP=$ac_cv_prog_egrep
6165
6166
6167 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6168 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6169 if test "${ac_cv_header_stdc+set}" = set; then
6170   echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172   cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h.  */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h.  */
6178 #include <stdlib.h>
6179 #include <stdarg.h>
6180 #include <string.h>
6181 #include <float.h>
6182
6183 int
6184 main ()
6185 {
6186
6187   ;
6188   return 0;
6189 }
6190 _ACEOF
6191 rm -f conftest.$ac_objext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6193   (eval $ac_compile) 2>conftest.er1
6194   ac_status=$?
6195   grep -v '^ *+' conftest.er1 >conftest.err
6196   rm -f conftest.er1
6197   cat conftest.err >&5
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); } &&
6200          { ac_try='test -z "$ac_c_werror_flag"
6201                          || test ! -s conftest.err'
6202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203   (eval $ac_try) 2>&5
6204   ac_status=$?
6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); }; } &&
6207          { ac_try='test -s conftest.$ac_objext'
6208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209   (eval $ac_try) 2>&5
6210   ac_status=$?
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); }; }; then
6213   ac_cv_header_stdc=yes
6214 else
6215   echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6217
6218 ac_cv_header_stdc=no
6219 fi
6220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6221
6222 if test $ac_cv_header_stdc = yes; then
6223   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6224   cat >conftest.$ac_ext <<_ACEOF
6225 /* confdefs.h.  */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h.  */
6230 #include <string.h>
6231
6232 _ACEOF
6233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6234   $EGREP "memchr" >/dev/null 2>&1; then
6235   :
6236 else
6237   ac_cv_header_stdc=no
6238 fi
6239 rm -f conftest*
6240
6241 fi
6242
6243 if test $ac_cv_header_stdc = yes; then
6244   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6245   cat >conftest.$ac_ext <<_ACEOF
6246 /* confdefs.h.  */
6247 _ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h.  */
6251 #include <stdlib.h>
6252
6253 _ACEOF
6254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6255   $EGREP "free" >/dev/null 2>&1; then
6256   :
6257 else
6258   ac_cv_header_stdc=no
6259 fi
6260 rm -f conftest*
6261
6262 fi
6263
6264 if test $ac_cv_header_stdc = yes; then
6265   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6266   if test "$cross_compiling" = yes; then
6267   :
6268 else
6269   cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h.  */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h.  */
6275 #include <ctype.h>
6276 #if ((' ' & 0x0FF) == 0x020)
6277 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6278 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6279 #else
6280 # define ISLOWER(c) \
6281                    (('a' <= (c) && (c) <= 'i') \
6282                      || ('j' <= (c) && (c) <= 'r') \
6283                      || ('s' <= (c) && (c) <= 'z'))
6284 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6285 #endif
6286
6287 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6288 int
6289 main ()
6290 {
6291   int i;
6292   for (i = 0; i < 256; i++)
6293     if (XOR (islower (i), ISLOWER (i))
6294         || toupper (i) != TOUPPER (i))
6295       exit(2);
6296   exit (0);
6297 }
6298 _ACEOF
6299 rm -f conftest$ac_exeext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6301   (eval $ac_link) 2>&5
6302   ac_status=$?
6303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306   (eval $ac_try) 2>&5
6307   ac_status=$?
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); }; }; then
6310   :
6311 else
6312   echo "$as_me: program exited with status $ac_status" >&5
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6315
6316 ( exit $ac_status )
6317 ac_cv_header_stdc=no
6318 fi
6319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6320 fi
6321 fi
6322 fi
6323 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6324 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6325 if test $ac_cv_header_stdc = yes; then
6326
6327 cat >>confdefs.h <<\_ACEOF
6328 #define STDC_HEADERS 1
6329 _ACEOF
6330
6331 fi
6332
6333 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6344                   inttypes.h stdint.h unistd.h
6345 do
6346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6347 echo "$as_me:$LINENO: checking for $ac_header" >&5
6348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6350   echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352   cat >conftest.$ac_ext <<_ACEOF
6353 /* confdefs.h.  */
6354 _ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h.  */
6358 $ac_includes_default
6359
6360 #include <$ac_header>
6361 _ACEOF
6362 rm -f conftest.$ac_objext
6363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6364   (eval $ac_compile) 2>conftest.er1
6365   ac_status=$?
6366   grep -v '^ *+' conftest.er1 >conftest.err
6367   rm -f conftest.er1
6368   cat conftest.err >&5
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); } &&
6371          { ac_try='test -z "$ac_c_werror_flag"
6372                          || test ! -s conftest.err'
6373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374   (eval $ac_try) 2>&5
6375   ac_status=$?
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); }; } &&
6378          { ac_try='test -s conftest.$ac_objext'
6379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380   (eval $ac_try) 2>&5
6381   ac_status=$?
6382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383   (exit $ac_status); }; }; then
6384   eval "$as_ac_Header=yes"
6385 else
6386   echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6388
6389 eval "$as_ac_Header=no"
6390 fi
6391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6392 fi
6393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6396   cat >>confdefs.h <<_ACEOF
6397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6398 _ACEOF
6399
6400 fi
6401
6402 done
6403
6404
6405
6406 for ac_header in unistd.h
6407 do
6408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6410   echo "$as_me:$LINENO: checking for $ac_header" >&5
6411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413   echo $ECHO_N "(cached) $ECHO_C" >&6
6414 fi
6415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6417 else
6418   # Is the header compilable?
6419 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6421 cat >conftest.$ac_ext <<_ACEOF
6422 /* confdefs.h.  */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h.  */
6427 $ac_includes_default
6428 #include <$ac_header>
6429 _ACEOF
6430 rm -f conftest.$ac_objext
6431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6432   (eval $ac_compile) 2>conftest.er1
6433   ac_status=$?
6434   grep -v '^ *+' conftest.er1 >conftest.err
6435   rm -f conftest.er1
6436   cat conftest.err >&5
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); } &&
6439          { ac_try='test -z "$ac_c_werror_flag"
6440                          || test ! -s conftest.err'
6441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442   (eval $ac_try) 2>&5
6443   ac_status=$?
6444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445   (exit $ac_status); }; } &&
6446          { ac_try='test -s conftest.$ac_objext'
6447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448   (eval $ac_try) 2>&5
6449   ac_status=$?
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); }; }; then
6452   ac_header_compiler=yes
6453 else
6454   echo "$as_me: failed program was:" >&5
6455 sed 's/^/| /' conftest.$ac_ext >&5
6456
6457 ac_header_compiler=no
6458 fi
6459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6461 echo "${ECHO_T}$ac_header_compiler" >&6
6462
6463 # Is the header present?
6464 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6466 cat >conftest.$ac_ext <<_ACEOF
6467 /* confdefs.h.  */
6468 _ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h.  */
6472 #include <$ac_header>
6473 _ACEOF
6474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6475   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6476   ac_status=$?
6477   grep -v '^ *+' conftest.er1 >conftest.err
6478   rm -f conftest.er1
6479   cat conftest.err >&5
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); } >/dev/null; then
6482   if test -s conftest.err; then
6483     ac_cpp_err=$ac_c_preproc_warn_flag
6484     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6485   else
6486     ac_cpp_err=
6487   fi
6488 else
6489   ac_cpp_err=yes
6490 fi
6491 if test -z "$ac_cpp_err"; then
6492   ac_header_preproc=yes
6493 else
6494   echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.$ac_ext >&5
6496
6497   ac_header_preproc=no
6498 fi
6499 rm -f conftest.err conftest.$ac_ext
6500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6501 echo "${ECHO_T}$ac_header_preproc" >&6
6502
6503 # So?  What about this header?
6504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6505   yes:no: )
6506     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6510     ac_header_preproc=yes
6511     ;;
6512   no:yes:* )
6513     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6515     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6516 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6517     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6519     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6520 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6523     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6525     (
6526       cat <<\_ASBOX
6527 ## ------------------------------------------ ##
6528 ## Report this to the AC_PACKAGE_NAME lists.  ##
6529 ## ------------------------------------------ ##
6530 _ASBOX
6531     ) |
6532       sed "s/^/$as_me: WARNING:     /" >&2
6533     ;;
6534 esac
6535 echo "$as_me:$LINENO: checking for $ac_header" >&5
6536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540   eval "$as_ac_Header=\$ac_header_preproc"
6541 fi
6542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6544
6545 fi
6546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6547   cat >>confdefs.h <<_ACEOF
6548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6549 _ACEOF
6550
6551 fi
6552
6553 done
6554
6555
6556 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6557 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6558 if test "${ac_cv_c_const+set}" = set; then
6559   echo $ECHO_N "(cached) $ECHO_C" >&6
6560 else
6561   cat >conftest.$ac_ext <<_ACEOF
6562 /* confdefs.h.  */
6563 _ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h.  */
6567
6568 int
6569 main ()
6570 {
6571 /* FIXME: Include the comments suggested by Paul. */
6572 #ifndef __cplusplus
6573   /* Ultrix mips cc rejects this.  */
6574   typedef int charset[2];
6575   const charset x;
6576   /* SunOS 4.1.1 cc rejects this.  */
6577   char const *const *ccp;
6578   char **p;
6579   /* NEC SVR4.0.2 mips cc rejects this.  */
6580   struct point {int x, y;};
6581   static struct point const zero = {0,0};
6582   /* AIX XL C 1.02.0.0 rejects this.
6583      It does not let you subtract one const X* pointer from another in
6584      an arm of an if-expression whose if-part is not a constant
6585      expression */
6586   const char *g = "string";
6587   ccp = &g + (g ? g-g : 0);
6588   /* HPUX 7.0 cc rejects these. */
6589   ++ccp;
6590   p = (char**) ccp;
6591   ccp = (char const *const *) p;
6592   { /* SCO 3.2v4 cc rejects this.  */
6593     char *t;
6594     char const *s = 0 ? (char *) 0 : (char const *) 0;
6595
6596     *t++ = 0;
6597   }
6598   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6599     int x[] = {25, 17};
6600     const int *foo = &x[0];
6601     ++foo;
6602   }
6603   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6604     typedef const int *iptr;
6605     iptr p = 0;
6606     ++p;
6607   }
6608   { /* AIX XL C 1.02.0.0 rejects this saying
6609        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6610     struct s { int j; const int *ap[3]; };
6611     struct s *b; b->j = 5;
6612   }
6613   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6614     const int foo = 10;
6615   }
6616 #endif
6617
6618   ;
6619   return 0;
6620 }
6621 _ACEOF
6622 rm -f conftest.$ac_objext
6623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6624   (eval $ac_compile) 2>conftest.er1
6625   ac_status=$?
6626   grep -v '^ *+' conftest.er1 >conftest.err
6627   rm -f conftest.er1
6628   cat conftest.err >&5
6629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630   (exit $ac_status); } &&
6631          { ac_try='test -z "$ac_c_werror_flag"
6632                          || test ! -s conftest.err'
6633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634   (eval $ac_try) 2>&5
6635   ac_status=$?
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); }; } &&
6638          { ac_try='test -s conftest.$ac_objext'
6639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640   (eval $ac_try) 2>&5
6641   ac_status=$?
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); }; }; then
6644   ac_cv_c_const=yes
6645 else
6646   echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6648
6649 ac_cv_c_const=no
6650 fi
6651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6652 fi
6653 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6654 echo "${ECHO_T}$ac_cv_c_const" >&6
6655 if test $ac_cv_c_const = no; then
6656
6657 cat >>confdefs.h <<\_ACEOF
6658 #define const
6659 _ACEOF
6660
6661 fi
6662
6663
6664
6665
6666
6667 for ac_func in strtod strtol strtoul
6668 do
6669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6670 echo "$as_me:$LINENO: checking for $ac_func" >&5
6671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6672 if eval "test \"\${$as_ac_var+set}\" = set"; then
6673   echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675   cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h.  */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h.  */
6681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6683 #define $ac_func innocuous_$ac_func
6684
6685 /* System header to define __stub macros and hopefully few prototypes,
6686     which can conflict with char $ac_func (); below.
6687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6688     <limits.h> exists even on freestanding compilers.  */
6689
6690 #ifdef __STDC__
6691 # include <limits.h>
6692 #else
6693 # include <assert.h>
6694 #endif
6695
6696 #undef $ac_func
6697
6698 /* Override any gcc2 internal prototype to avoid an error.  */
6699 #ifdef __cplusplus
6700 extern "C"
6701 {
6702 #endif
6703 /* We use char because int might match the return type of a gcc2
6704    builtin and then its argument prototype would still apply.  */
6705 char $ac_func ();
6706 /* The GNU C library defines this for functions which it implements
6707     to always fail with ENOSYS.  Some functions are actually named
6708     something starting with __ and the normal name is an alias.  */
6709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6710 choke me
6711 #else
6712 char (*f) () = $ac_func;
6713 #endif
6714 #ifdef __cplusplus
6715 }
6716 #endif
6717
6718 int
6719 main ()
6720 {
6721 return f != $ac_func;
6722   ;
6723   return 0;
6724 }
6725 _ACEOF
6726 rm -f conftest.$ac_objext conftest$ac_exeext
6727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6728   (eval $ac_link) 2>conftest.er1
6729   ac_status=$?
6730   grep -v '^ *+' conftest.er1 >conftest.err
6731   rm -f conftest.er1
6732   cat conftest.err >&5
6733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734   (exit $ac_status); } &&
6735          { ac_try='test -z "$ac_c_werror_flag"
6736                          || test ! -s conftest.err'
6737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738   (eval $ac_try) 2>&5
6739   ac_status=$?
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); }; } &&
6742          { ac_try='test -s conftest$ac_exeext'
6743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744   (eval $ac_try) 2>&5
6745   ac_status=$?
6746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747   (exit $ac_status); }; }; then
6748   eval "$as_ac_var=yes"
6749 else
6750   echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6752
6753 eval "$as_ac_var=no"
6754 fi
6755 rm -f conftest.err conftest.$ac_objext \
6756       conftest$ac_exeext conftest.$ac_ext
6757 fi
6758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6759 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6760 if test `eval echo '${'$as_ac_var'}'` = yes; then
6761   cat >>confdefs.h <<_ACEOF
6762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6763 _ACEOF
6764
6765 fi
6766 done
6767
6768
6769
6770 DocumentRoot=/var/www/html
6771
6772 #AC_OUTPUT(Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile src/web/Makefile)
6773                                         ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile"
6774 cat >confcache <<\_ACEOF
6775 # This file is a shell script that caches the results of configure
6776 # tests run on this system so they can be shared between configure
6777 # scripts and configure runs, see configure's option --config-cache.
6778 # It is not useful on other systems.  If it contains results you don't
6779 # want to keep, you may remove or edit it.
6780 #
6781 # config.status only pays attention to the cache file if you give it
6782 # the --recheck option to rerun configure.
6783 #
6784 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6785 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6786 # following values.
6787
6788 _ACEOF
6789
6790 # The following way of writing the cache mishandles newlines in values,
6791 # but we know of no workaround that is simple, portable, and efficient.
6792 # So, don't put newlines in cache variables' values.
6793 # Ultrix sh set writes to stderr and can't be redirected directly,
6794 # and sets the high bit in the cache file unless we assign to the vars.
6795 {
6796   (set) 2>&1 |
6797     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6798     *ac_space=\ *)
6799       # `set' does not quote correctly, so add quotes (double-quote
6800       # substitution turns \\\\ into \\, and sed turns \\ into \).
6801       sed -n \
6802         "s/'/'\\\\''/g;
6803           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6804       ;;
6805     *)
6806       # `set' quotes correctly as required by POSIX, so do not add quotes.
6807       sed -n \
6808         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6809       ;;
6810     esac;
6811 } |
6812   sed '
6813      t clear
6814      : clear
6815      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6816      t end
6817      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6818      : end' >>confcache
6819 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6820   if test -w $cache_file; then
6821     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6822     cat confcache >$cache_file
6823   else
6824     echo "not updating unwritable cache $cache_file"
6825   fi
6826 fi
6827 rm -f confcache
6828
6829 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6830 # Let make expand exec_prefix.
6831 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6832
6833 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6834 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6835 # trailing colons and then remove the whole line if VPATH becomes empty
6836 # (actually we leave an empty line to preserve line numbers).
6837 if test "x$srcdir" = x.; then
6838   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6839 s/:*\$(srcdir):*/:/;
6840 s/:*\${srcdir}:*/:/;
6841 s/:*@srcdir@:*/:/;
6842 s/^\([^=]*=[     ]*\):*/\1/;
6843 s/:*$//;
6844 s/^[^=]*=[       ]*$//;
6845 }'
6846 fi
6847
6848 # Transform confdefs.h into DEFS.
6849 # Protect against shell expansion while executing Makefile rules.
6850 # Protect against Makefile macro expansion.
6851 #
6852 # If the first sed substitution is executed (which looks for macros that
6853 # take arguments), then we branch to the quote section.  Otherwise,
6854 # look for a macro that doesn't take arguments.
6855 cat >confdef2opt.sed <<\_ACEOF
6856 t clear
6857 : clear
6858 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
6859 t quote
6860 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
6861 t quote
6862 d
6863 : quote
6864 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
6865 s,\[,\\&,g
6866 s,\],\\&,g
6867 s,\$,$$,g
6868 p
6869 _ACEOF
6870 # We use echo to avoid assuming a particular line-breaking character.
6871 # The extra dot is to prevent the shell from consuming trailing
6872 # line-breaks from the sub-command output.  A line-break within
6873 # single-quotes doesn't work because, if this script is created in a
6874 # platform that uses two characters for line-breaks (e.g., DOS), tr
6875 # would break.
6876 ac_LF_and_DOT=`echo; echo .`
6877 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6878 rm -f confdef2opt.sed
6879
6880
6881 ac_libobjs=
6882 ac_ltlibobjs=
6883 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6884   # 1. Remove the extension, and $U if already installed.
6885   ac_i=`echo "$ac_i" |
6886          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6887   # 2. Add them.
6888   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6889   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6890 done
6891 LIBOBJS=$ac_libobjs
6892
6893 LTLIBOBJS=$ac_ltlibobjs
6894
6895
6896 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6897   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6898 Usually this means the macro was only invoked conditionally." >&5
6899 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6900 Usually this means the macro was only invoked conditionally." >&2;}
6901    { (exit 1); exit 1; }; }
6902 fi
6903 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6904   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6905 Usually this means the macro was only invoked conditionally." >&5
6906 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6907 Usually this means the macro was only invoked conditionally." >&2;}
6908    { (exit 1); exit 1; }; }
6909 fi
6910 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6911   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
6912 Usually this means the macro was only invoked conditionally." >&5
6913 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
6914 Usually this means the macro was only invoked conditionally." >&2;}
6915    { (exit 1); exit 1; }; }
6916 fi
6917
6918 : ${CONFIG_STATUS=./config.status}
6919 ac_clean_files_save=$ac_clean_files
6920 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6921 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6922 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6923 cat >$CONFIG_STATUS <<_ACEOF
6924 #! $SHELL
6925 # Generated by $as_me.
6926 # Run this file to recreate the current configuration.
6927 # Compiler output produced by configure, useful for debugging
6928 # configure, is in config.log if it exists.
6929
6930 debug=false
6931 ac_cs_recheck=false
6932 ac_cs_silent=false
6933 SHELL=\${CONFIG_SHELL-$SHELL}
6934 _ACEOF
6935
6936 cat >>$CONFIG_STATUS <<\_ACEOF
6937 ## --------------------- ##
6938 ## M4sh Initialization.  ##
6939 ## --------------------- ##
6940
6941 # Be Bourne compatible
6942 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6943   emulate sh
6944   NULLCMD=:
6945   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6946   # is contrary to our usage.  Disable this feature.
6947   alias -g '${1+"$@"}'='"$@"'
6948 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6949   set -o posix
6950 fi
6951 DUALCASE=1; export DUALCASE # for MKS sh
6952
6953 # Support unset when possible.
6954 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6955   as_unset=unset
6956 else
6957   as_unset=false
6958 fi
6959
6960
6961 # Work around bugs in pre-3.0 UWIN ksh.
6962 $as_unset ENV MAIL MAILPATH
6963 PS1='$ '
6964 PS2='> '
6965 PS4='+ '
6966
6967 # NLS nuisances.
6968 for as_var in \
6969   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6970   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6971   LC_TELEPHONE LC_TIME
6972 do
6973   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6974     eval $as_var=C; export $as_var
6975   else
6976     $as_unset $as_var
6977   fi
6978 done
6979
6980 # Required to use basename.
6981 if expr a : '\(a\)' >/dev/null 2>&1; then
6982   as_expr=expr
6983 else
6984   as_expr=false
6985 fi
6986
6987 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6988   as_basename=basename
6989 else
6990   as_basename=false
6991 fi
6992
6993
6994 # Name of the executable.
6995 as_me=`$as_basename "$0" ||
6996 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6997          X"$0" : 'X\(//\)$' \| \
6998          X"$0" : 'X\(/\)$' \| \
6999          .     : '\(.\)' 2>/dev/null ||
7000 echo X/"$0" |
7001     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7002           /^X\/\(\/\/\)$/{ s//\1/; q; }
7003           /^X\/\(\/\).*/{ s//\1/; q; }
7004           s/.*/./; q'`
7005
7006
7007 # PATH needs CR, and LINENO needs CR and PATH.
7008 # Avoid depending upon Character Ranges.
7009 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7010 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7011 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7012 as_cr_digits='0123456789'
7013 as_cr_alnum=$as_cr_Letters$as_cr_digits
7014
7015 # The user is always right.
7016 if test "${PATH_SEPARATOR+set}" != set; then
7017   echo "#! /bin/sh" >conf$$.sh
7018   echo  "exit 0"   >>conf$$.sh
7019   chmod +x conf$$.sh
7020   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7021     PATH_SEPARATOR=';'
7022   else
7023     PATH_SEPARATOR=:
7024   fi
7025   rm -f conf$$.sh
7026 fi
7027
7028
7029   as_lineno_1=$LINENO
7030   as_lineno_2=$LINENO
7031   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7032   test "x$as_lineno_1" != "x$as_lineno_2" &&
7033   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7034   # Find who we are.  Look in the path if we contain no path at all
7035   # relative or not.
7036   case $0 in
7037     *[\\/]* ) as_myself=$0 ;;
7038     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041   IFS=$as_save_IFS
7042   test -z "$as_dir" && as_dir=.
7043   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7044 done
7045
7046        ;;
7047   esac
7048   # We did not find ourselves, most probably we were run as `sh COMMAND'
7049   # in which case we are not to be found in the path.
7050   if test "x$as_myself" = x; then
7051     as_myself=$0
7052   fi
7053   if test ! -f "$as_myself"; then
7054     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7055 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7056    { (exit 1); exit 1; }; }
7057   fi
7058   case $CONFIG_SHELL in
7059   '')
7060     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7062 do
7063   IFS=$as_save_IFS
7064   test -z "$as_dir" && as_dir=.
7065   for as_base in sh bash ksh sh5; do
7066          case $as_dir in
7067          /*)
7068            if ("$as_dir/$as_base" -c '
7069   as_lineno_1=$LINENO
7070   as_lineno_2=$LINENO
7071   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7072   test "x$as_lineno_1" != "x$as_lineno_2" &&
7073   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7074              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7075              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7076              CONFIG_SHELL=$as_dir/$as_base
7077              export CONFIG_SHELL
7078              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7079            fi;;
7080          esac
7081        done
7082 done
7083 ;;
7084   esac
7085
7086   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7087   # uniformly replaced by the line number.  The first 'sed' inserts a
7088   # line-number line before each line; the second 'sed' does the real
7089   # work.  The second script uses 'N' to pair each line-number line
7090   # with the numbered line, and appends trailing '-' during
7091   # substitution so that $LINENO is not a special case at line end.
7092   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7093   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7094   sed '=' <$as_myself |
7095     sed '
7096       N
7097       s,$,-,
7098       : loop
7099       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7100       t loop
7101       s,-$,,
7102       s,^['$as_cr_digits']*\n,,
7103     ' >$as_me.lineno &&
7104   chmod +x $as_me.lineno ||
7105     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7106 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7107    { (exit 1); exit 1; }; }
7108
7109   # Don't try to exec as it changes $[0], causing all sort of problems
7110   # (the dirname of $[0] is not the place where we might find the
7111   # original and so on.  Autoconf is especially sensible to this).
7112   . ./$as_me.lineno
7113   # Exit status is that of the last command.
7114   exit
7115 }
7116
7117
7118 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7119   *c*,-n*) ECHO_N= ECHO_C='
7120 ' ECHO_T='      ' ;;
7121   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7122   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7123 esac
7124
7125 if expr a : '\(a\)' >/dev/null 2>&1; then
7126   as_expr=expr
7127 else
7128   as_expr=false
7129 fi
7130
7131 rm -f conf$$ conf$$.exe conf$$.file
7132 echo >conf$$.file
7133 if ln -s conf$$.file conf$$ 2>/dev/null; then
7134   # We could just check for DJGPP; but this test a) works b) is more generic
7135   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7136   if test -f conf$$.exe; then
7137     # Don't use ln at all; we don't have any links
7138     as_ln_s='cp -p'
7139   else
7140     as_ln_s='ln -s'
7141   fi
7142 elif ln conf$$.file conf$$ 2>/dev/null; then
7143   as_ln_s=ln
7144 else
7145   as_ln_s='cp -p'
7146 fi
7147 rm -f conf$$ conf$$.exe conf$$.file
7148
7149 if mkdir -p . 2>/dev/null; then
7150   as_mkdir_p=:
7151 else
7152   test -d ./-p && rmdir ./-p
7153   as_mkdir_p=false
7154 fi
7155
7156 as_executable_p="test -f"
7157
7158 # Sed expression to map a string onto a valid CPP name.
7159 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7160
7161 # Sed expression to map a string onto a valid variable name.
7162 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7163
7164
7165 # IFS
7166 # We need space, tab and new line, in precisely that order.
7167 as_nl='
7168 '
7169 IFS="   $as_nl"
7170
7171 # CDPATH.
7172 $as_unset CDPATH
7173
7174 exec 6>&1
7175
7176 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7177 # report actual input values of CONFIG_FILES etc. instead of their
7178 # values after options handling.  Logging --version etc. is OK.
7179 exec 5>>config.log
7180 {
7181   echo
7182   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7183 ## Running $as_me. ##
7184 _ASBOX
7185 } >&5
7186 cat >&5 <<_CSEOF
7187
7188 This file was extended by $as_me, which was
7189 generated by GNU Autoconf 2.59.  Invocation command line was
7190
7191   CONFIG_FILES    = $CONFIG_FILES
7192   CONFIG_HEADERS  = $CONFIG_HEADERS
7193   CONFIG_LINKS    = $CONFIG_LINKS
7194   CONFIG_COMMANDS = $CONFIG_COMMANDS
7195   $ $0 $@
7196
7197 _CSEOF
7198 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7199 echo >&5
7200 _ACEOF
7201
7202 # Files that config.status was made for.
7203 if test -n "$ac_config_files"; then
7204   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7205 fi
7206
7207 if test -n "$ac_config_headers"; then
7208   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7209 fi
7210
7211 if test -n "$ac_config_links"; then
7212   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7213 fi
7214
7215 if test -n "$ac_config_commands"; then
7216   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7217 fi
7218
7219 cat >>$CONFIG_STATUS <<\_ACEOF
7220
7221 ac_cs_usage="\
7222 \`$as_me' instantiates files from templates according to the
7223 current configuration.
7224
7225 Usage: $0 [OPTIONS] [FILE]...
7226
7227   -h, --help       print this help, then exit
7228   -V, --version    print version number, then exit
7229   -q, --quiet      do not print progress messages
7230   -d, --debug      don't remove temporary files
7231       --recheck    update $as_me by reconfiguring in the same conditions
7232   --file=FILE[:TEMPLATE]
7233                    instantiate the configuration file FILE
7234
7235 Configuration files:
7236 $config_files
7237
7238 Configuration commands:
7239 $config_commands
7240
7241 Report bugs to <bug-autoconf@gnu.org>."
7242 _ACEOF
7243
7244 cat >>$CONFIG_STATUS <<_ACEOF
7245 ac_cs_version="\\
7246 config.status
7247 configured by $0, generated by GNU Autoconf 2.59,
7248   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7249
7250 Copyright (C) 2003 Free Software Foundation, Inc.
7251 This config.status script is free software; the Free Software Foundation
7252 gives unlimited permission to copy, distribute and modify it."
7253 srcdir=$srcdir
7254 INSTALL="$INSTALL"
7255 _ACEOF
7256
7257 cat >>$CONFIG_STATUS <<\_ACEOF
7258 # If no file are specified by the user, then we need to provide default
7259 # value.  By we need to know if files were specified by the user.
7260 ac_need_defaults=:
7261 while test $# != 0
7262 do
7263   case $1 in
7264   --*=*)
7265     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7266     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7267     ac_shift=:
7268     ;;
7269   -*)
7270     ac_option=$1
7271     ac_optarg=$2
7272     ac_shift=shift
7273     ;;
7274   *) # This is not an option, so the user has probably given explicit
7275      # arguments.
7276      ac_option=$1
7277      ac_need_defaults=false;;
7278   esac
7279
7280   case $ac_option in
7281   # Handling of the options.
7282 _ACEOF
7283 cat >>$CONFIG_STATUS <<\_ACEOF
7284   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7285     ac_cs_recheck=: ;;
7286   --version | --vers* | -V )
7287     echo "$ac_cs_version"; exit 0 ;;
7288   --he | --h)
7289     # Conflict between --help and --header
7290     { { echo "$as_me:$LINENO: error: ambiguous option: $1
7291 Try \`$0 --help' for more information." >&5
7292 echo "$as_me: error: ambiguous option: $1
7293 Try \`$0 --help' for more information." >&2;}
7294    { (exit 1); exit 1; }; };;
7295   --help | --hel | -h )
7296     echo "$ac_cs_usage"; exit 0 ;;
7297   --debug | --d* | -d )
7298     debug=: ;;
7299   --file | --fil | --fi | --f )
7300     $ac_shift
7301     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7302     ac_need_defaults=false;;
7303   --header | --heade | --head | --hea )
7304     $ac_shift
7305     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7306     ac_need_defaults=false;;
7307   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7308   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7309     ac_cs_silent=: ;;
7310
7311   # This is an error.
7312   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7313 Try \`$0 --help' for more information." >&5
7314 echo "$as_me: error: unrecognized option: $1
7315 Try \`$0 --help' for more information." >&2;}
7316    { (exit 1); exit 1; }; } ;;
7317
7318   *) ac_config_targets="$ac_config_targets $1" ;;
7319
7320   esac
7321   shift
7322 done
7323
7324 ac_configure_extra_args=
7325
7326 if $ac_cs_silent; then
7327   exec 6>/dev/null
7328   ac_configure_extra_args="$ac_configure_extra_args --silent"
7329 fi
7330
7331 _ACEOF
7332 cat >>$CONFIG_STATUS <<_ACEOF
7333 if \$ac_cs_recheck; then
7334   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7335   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7336 fi
7337
7338 _ACEOF
7339
7340 cat >>$CONFIG_STATUS <<_ACEOF
7341 #
7342 # INIT-COMMANDS section.
7343 #
7344
7345 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7346
7347 _ACEOF
7348
7349
7350
7351 cat >>$CONFIG_STATUS <<\_ACEOF
7352 for ac_config_target in $ac_config_targets
7353 do
7354   case "$ac_config_target" in
7355   # Handling of arguments.
7356   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7357   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7358   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
7359   "src/gcm_input/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gcm_input/Makefile" ;;
7360   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7361   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7362 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7363    { (exit 1); exit 1; }; };;
7364   esac
7365 done
7366
7367 # If the user did not use the arguments to specify the items to instantiate,
7368 # then the envvar interface is used.  Set only those that are not.
7369 # We use the long form for the default assignment because of an extremely
7370 # bizarre bug on SunOS 4.1.3.
7371 if $ac_need_defaults; then
7372   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7373   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7374 fi
7375
7376 # Have a temporary directory for convenience.  Make it in the build tree
7377 # simply because there is no reason to put it here, and in addition,
7378 # creating and moving files from /tmp can sometimes cause problems.
7379 # Create a temporary directory, and hook for its removal unless debugging.
7380 $debug ||
7381 {
7382   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7383   trap '{ (exit 1); exit 1; }' 1 2 13 15
7384 }
7385
7386 # Create a (secure) tmp directory for tmp files.
7387
7388 {
7389   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7390   test -n "$tmp" && test -d "$tmp"
7391 }  ||
7392 {
7393   tmp=./confstat$$-$RANDOM
7394   (umask 077 && mkdir $tmp)
7395 } ||
7396 {
7397    echo "$me: cannot create a temporary directory in ." >&2
7398    { (exit 1); exit 1; }
7399 }
7400
7401 _ACEOF
7402
7403 cat >>$CONFIG_STATUS <<_ACEOF
7404
7405 #
7406 # CONFIG_FILES section.
7407 #
7408
7409 # No need to generate the scripts if there are no CONFIG_FILES.
7410 # This happens for instance when ./config.status config.h
7411 if test -n "\$CONFIG_FILES"; then
7412   # Protect against being on the right side of a sed subst in config.status.
7413   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7414    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7415 s,@SHELL@,$SHELL,;t t
7416 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7417 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7418 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7419 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7420 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7421 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7422 s,@exec_prefix@,$exec_prefix,;t t
7423 s,@prefix@,$prefix,;t t
7424 s,@program_transform_name@,$program_transform_name,;t t
7425 s,@bindir@,$bindir,;t t
7426 s,@sbindir@,$sbindir,;t t
7427 s,@libexecdir@,$libexecdir,;t t
7428 s,@datadir@,$datadir,;t t
7429 s,@sysconfdir@,$sysconfdir,;t t
7430 s,@sharedstatedir@,$sharedstatedir,;t t
7431 s,@localstatedir@,$localstatedir,;t t
7432 s,@libdir@,$libdir,;t t
7433 s,@includedir@,$includedir,;t t
7434 s,@oldincludedir@,$oldincludedir,;t t
7435 s,@infodir@,$infodir,;t t
7436 s,@mandir@,$mandir,;t t
7437 s,@build_alias@,$build_alias,;t t
7438 s,@host_alias@,$host_alias,;t t
7439 s,@target_alias@,$target_alias,;t t
7440 s,@DEFS@,$DEFS,;t t
7441 s,@ECHO_C@,$ECHO_C,;t t
7442 s,@ECHO_N@,$ECHO_N,;t t
7443 s,@ECHO_T@,$ECHO_T,;t t
7444 s,@LIBS@,$LIBS,;t t
7445 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7446 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7447 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7448 s,@CYGPATH_W@,$CYGPATH_W,;t t
7449 s,@PACKAGE@,$PACKAGE,;t t
7450 s,@VERSION@,$VERSION,;t t
7451 s,@ACLOCAL@,$ACLOCAL,;t t
7452 s,@AUTOCONF@,$AUTOCONF,;t t
7453 s,@AUTOMAKE@,$AUTOMAKE,;t t
7454 s,@AUTOHEADER@,$AUTOHEADER,;t t
7455 s,@MAKEINFO@,$MAKEINFO,;t t
7456 s,@AMTAR@,$AMTAR,;t t
7457 s,@install_sh@,$install_sh,;t t
7458 s,@STRIP@,$STRIP,;t t
7459 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7460 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7461 s,@mkdir_p@,$mkdir_p,;t t
7462 s,@AWK@,$AWK,;t t
7463 s,@SET_MAKE@,$SET_MAKE,;t t
7464 s,@am__leading_dot@,$am__leading_dot,;t t
7465 s,@CC@,$CC,;t t
7466 s,@CFLAGS@,$CFLAGS,;t t
7467 s,@LDFLAGS@,$LDFLAGS,;t t
7468 s,@CPPFLAGS@,$CPPFLAGS,;t t
7469 s,@ac_ct_CC@,$ac_ct_CC,;t t
7470 s,@EXEEXT@,$EXEEXT,;t t
7471 s,@OBJEXT@,$OBJEXT,;t t
7472 s,@DEPDIR@,$DEPDIR,;t t
7473 s,@am__include@,$am__include,;t t
7474 s,@am__quote@,$am__quote,;t t
7475 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7476 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7477 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7478 s,@CCDEPMODE@,$CCDEPMODE,;t t
7479 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7480 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7481 s,@CXX@,$CXX,;t t
7482 s,@CXXFLAGS@,$CXXFLAGS,;t t
7483 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7484 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
7485 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
7486 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
7487 s,@CPP@,$CPP,;t t
7488 s,@LEX@,$LEX,;t t
7489 s,@LEXLIB@,$LEXLIB,;t t
7490 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7491 s,@LN_S@,$LN_S,;t t
7492 s,@RANLIB@,$RANLIB,;t t
7493 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7494 s,@YACC@,$YACC,;t t
7495 s,@XML_CONFIG@,$XML_CONFIG,;t t
7496 s,@X_CFLAGS@,$X_CFLAGS,;t t
7497 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
7498 s,@X_LIBS@,$X_LIBS,;t t
7499 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
7500 s,@PG_CONFIG@,$PG_CONFIG,;t t
7501 s,@with_postgres_lib@,$with_postgres_lib,;t t
7502 s,@with_postgres_include@,$with_postgres_include,;t t
7503 s,@POSTGRES_LIB@,$POSTGRES_LIB,;t t
7504 s,@POSTGRES_INCLUDE@,$POSTGRES_INCLUDE,;t t
7505 s,@EGREP@,$EGREP,;t t
7506 s,@LIBOBJS@,$LIBOBJS,;t t
7507 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7508 CEOF
7509
7510 _ACEOF
7511
7512   cat >>$CONFIG_STATUS <<\_ACEOF
7513   # Split the substitutions into bite-sized pieces for seds with
7514   # small command number limits, like on Digital OSF/1 and HP-UX.
7515   ac_max_sed_lines=48
7516   ac_sed_frag=1 # Number of current file.
7517   ac_beg=1 # First line for current file.
7518   ac_end=$ac_max_sed_lines # Line after last line for current file.
7519   ac_more_lines=:
7520   ac_sed_cmds=
7521   while $ac_more_lines; do
7522     if test $ac_beg -gt 1; then
7523       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7524     else
7525       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7526     fi
7527     if test ! -s $tmp/subs.frag; then
7528       ac_more_lines=false
7529     else
7530       # The purpose of the label and of the branching condition is to
7531       # speed up the sed processing (if there are no `@' at all, there
7532       # is no need to browse any of the substitutions).
7533       # These are the two extra sed commands mentioned above.
7534       (echo ':t
7535   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7536       if test -z "$ac_sed_cmds"; then
7537         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7538       else
7539         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7540       fi
7541       ac_sed_frag=`expr $ac_sed_frag + 1`
7542       ac_beg=$ac_end
7543       ac_end=`expr $ac_end + $ac_max_sed_lines`
7544     fi
7545   done
7546   if test -z "$ac_sed_cmds"; then
7547     ac_sed_cmds=cat
7548   fi
7549 fi # test -n "$CONFIG_FILES"
7550
7551 _ACEOF
7552 cat >>$CONFIG_STATUS <<\_ACEOF
7553 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7554   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7555   case $ac_file in
7556   - | *:- | *:-:* ) # input from stdin
7557         cat >$tmp/stdin
7558         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7559         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7560   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7561         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7562   * )   ac_file_in=$ac_file.in ;;
7563   esac
7564
7565   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7566   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7568          X"$ac_file" : 'X\(//\)[^/]' \| \
7569          X"$ac_file" : 'X\(//\)$' \| \
7570          X"$ac_file" : 'X\(/\)' \| \
7571          .     : '\(.\)' 2>/dev/null ||
7572 echo X"$ac_file" |
7573     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7574           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7575           /^X\(\/\/\)$/{ s//\1/; q; }
7576           /^X\(\/\).*/{ s//\1/; q; }
7577           s/.*/./; q'`
7578   { if $as_mkdir_p; then
7579     mkdir -p "$ac_dir"
7580   else
7581     as_dir="$ac_dir"
7582     as_dirs=
7583     while test ! -d "$as_dir"; do
7584       as_dirs="$as_dir $as_dirs"
7585       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7586 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7587          X"$as_dir" : 'X\(//\)[^/]' \| \
7588          X"$as_dir" : 'X\(//\)$' \| \
7589          X"$as_dir" : 'X\(/\)' \| \
7590          .     : '\(.\)' 2>/dev/null ||
7591 echo X"$as_dir" |
7592     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7593           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7594           /^X\(\/\/\)$/{ s//\1/; q; }
7595           /^X\(\/\).*/{ s//\1/; q; }
7596           s/.*/./; q'`
7597     done
7598     test ! -n "$as_dirs" || mkdir $as_dirs
7599   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7600 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7601    { (exit 1); exit 1; }; }; }
7602
7603   ac_builddir=.
7604
7605 if test "$ac_dir" != .; then
7606   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7607   # A "../" for each directory in $ac_dir_suffix.
7608   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7609 else
7610   ac_dir_suffix= ac_top_builddir=
7611 fi
7612
7613 case $srcdir in
7614   .)  # No --srcdir option.  We are building in place.
7615     ac_srcdir=.
7616     if test -z "$ac_top_builddir"; then
7617        ac_top_srcdir=.
7618     else
7619        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7620     fi ;;
7621   [\\/]* | ?:[\\/]* )  # Absolute path.
7622     ac_srcdir=$srcdir$ac_dir_suffix;
7623     ac_top_srcdir=$srcdir ;;
7624   *) # Relative path.
7625     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7626     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7627 esac
7628
7629 # Do not use `cd foo && pwd` to compute absolute paths, because
7630 # the directories may not exist.
7631 case `pwd` in
7632 .) ac_abs_builddir="$ac_dir";;
7633 *)
7634   case "$ac_dir" in
7635   .) ac_abs_builddir=`pwd`;;
7636   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7637   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7638   esac;;
7639 esac
7640 case $ac_abs_builddir in
7641 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7642 *)
7643   case ${ac_top_builddir}. in
7644   .) ac_abs_top_builddir=$ac_abs_builddir;;
7645   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7646   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7647   esac;;
7648 esac
7649 case $ac_abs_builddir in
7650 .) ac_abs_srcdir=$ac_srcdir;;
7651 *)
7652   case $ac_srcdir in
7653   .) ac_abs_srcdir=$ac_abs_builddir;;
7654   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7655   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7656   esac;;
7657 esac
7658 case $ac_abs_builddir in
7659 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7660 *)
7661   case $ac_top_srcdir in
7662   .) ac_abs_top_srcdir=$ac_abs_builddir;;
7663   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7664   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7665   esac;;
7666 esac
7667
7668
7669   case $INSTALL in
7670   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7671   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7672   esac
7673
7674   if test x"$ac_file" != x-; then
7675     { echo "$as_me:$LINENO: creating $ac_file" >&5
7676 echo "$as_me: creating $ac_file" >&6;}
7677     rm -f "$ac_file"
7678   fi
7679   # Let's still pretend it is `configure' which instantiates (i.e., don't
7680   # use $as_me), people would be surprised to read:
7681   #    /* config.h.  Generated by config.status.  */
7682   if test x"$ac_file" = x-; then
7683     configure_input=
7684   else
7685     configure_input="$ac_file.  "
7686   fi
7687   configure_input=$configure_input"Generated from `echo $ac_file_in |
7688                                      sed 's,.*/,,'` by configure."
7689
7690   # First look for the input files in the build tree, otherwise in the
7691   # src tree.
7692   ac_file_inputs=`IFS=:
7693     for f in $ac_file_in; do
7694       case $f in
7695       -) echo $tmp/stdin ;;
7696       [\\/$]*)
7697          # Absolute (can't be DOS-style, as IFS=:)
7698          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7699 echo "$as_me: error: cannot find input file: $f" >&2;}
7700    { (exit 1); exit 1; }; }
7701          echo "$f";;
7702       *) # Relative
7703          if test -f "$f"; then
7704            # Build tree
7705            echo "$f"
7706          elif test -f "$srcdir/$f"; then
7707            # Source tree
7708            echo "$srcdir/$f"
7709          else
7710            # /dev/null tree
7711            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7712 echo "$as_me: error: cannot find input file: $f" >&2;}
7713    { (exit 1); exit 1; }; }
7714          fi;;
7715       esac
7716     done` || { (exit 1); exit 1; }
7717 _ACEOF
7718 cat >>$CONFIG_STATUS <<_ACEOF
7719   sed "$ac_vpsub
7720 $extrasub
7721 _ACEOF
7722 cat >>$CONFIG_STATUS <<\_ACEOF
7723 :t
7724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7725 s,@configure_input@,$configure_input,;t t
7726 s,@srcdir@,$ac_srcdir,;t t
7727 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7728 s,@top_srcdir@,$ac_top_srcdir,;t t
7729 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7730 s,@builddir@,$ac_builddir,;t t
7731 s,@abs_builddir@,$ac_abs_builddir,;t t
7732 s,@top_builddir@,$ac_top_builddir,;t t
7733 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7734 s,@INSTALL@,$ac_INSTALL,;t t
7735 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7736   rm -f $tmp/stdin
7737   if test x"$ac_file" != x-; then
7738     mv $tmp/out $ac_file
7739   else
7740     cat $tmp/out
7741     rm -f $tmp/out
7742   fi
7743
7744 done
7745 _ACEOF
7746 cat >>$CONFIG_STATUS <<\_ACEOF
7747
7748 #
7749 # CONFIG_COMMANDS section.
7750 #
7751 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7752   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7753   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7754   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7755 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7756          X"$ac_dest" : 'X\(//\)[^/]' \| \
7757          X"$ac_dest" : 'X\(//\)$' \| \
7758          X"$ac_dest" : 'X\(/\)' \| \
7759          .     : '\(.\)' 2>/dev/null ||
7760 echo X"$ac_dest" |
7761     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7762           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7763           /^X\(\/\/\)$/{ s//\1/; q; }
7764           /^X\(\/\).*/{ s//\1/; q; }
7765           s/.*/./; q'`
7766   { if $as_mkdir_p; then
7767     mkdir -p "$ac_dir"
7768   else
7769     as_dir="$ac_dir"
7770     as_dirs=
7771     while test ! -d "$as_dir"; do
7772       as_dirs="$as_dir $as_dirs"
7773       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7774 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7775          X"$as_dir" : 'X\(//\)[^/]' \| \
7776          X"$as_dir" : 'X\(//\)$' \| \
7777          X"$as_dir" : 'X\(/\)' \| \
7778          .     : '\(.\)' 2>/dev/null ||
7779 echo X"$as_dir" |
7780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7781           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7782           /^X\(\/\/\)$/{ s//\1/; q; }
7783           /^X\(\/\).*/{ s//\1/; q; }
7784           s/.*/./; q'`
7785     done
7786     test ! -n "$as_dirs" || mkdir $as_dirs
7787   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7788 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7789    { (exit 1); exit 1; }; }; }
7790
7791   ac_builddir=.
7792
7793 if test "$ac_dir" != .; then
7794   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7795   # A "../" for each directory in $ac_dir_suffix.
7796   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7797 else
7798   ac_dir_suffix= ac_top_builddir=
7799 fi
7800
7801 case $srcdir in
7802   .)  # No --srcdir option.  We are building in place.
7803     ac_srcdir=.
7804     if test -z "$ac_top_builddir"; then
7805        ac_top_srcdir=.
7806     else
7807        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7808     fi ;;
7809   [\\/]* | ?:[\\/]* )  # Absolute path.
7810     ac_srcdir=$srcdir$ac_dir_suffix;
7811     ac_top_srcdir=$srcdir ;;
7812   *) # Relative path.
7813     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7814     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7815 esac
7816
7817 # Do not use `cd foo && pwd` to compute absolute paths, because
7818 # the directories may not exist.
7819 case `pwd` in
7820 .) ac_abs_builddir="$ac_dir";;
7821 *)
7822   case "$ac_dir" in
7823   .) ac_abs_builddir=`pwd`;;
7824   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7825   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7826   esac;;
7827 esac
7828 case $ac_abs_builddir in
7829 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7830 *)
7831   case ${ac_top_builddir}. in
7832   .) ac_abs_top_builddir=$ac_abs_builddir;;
7833   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7834   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7835   esac;;
7836 esac
7837 case $ac_abs_builddir in
7838 .) ac_abs_srcdir=$ac_srcdir;;
7839 *)
7840   case $ac_srcdir in
7841   .) ac_abs_srcdir=$ac_abs_builddir;;
7842   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7843   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7844   esac;;
7845 esac
7846 case $ac_abs_builddir in
7847 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7848 *)
7849   case $ac_top_srcdir in
7850   .) ac_abs_top_srcdir=$ac_abs_builddir;;
7851   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7852   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7853   esac;;
7854 esac
7855
7856
7857   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7858 echo "$as_me: executing $ac_dest commands" >&6;}
7859   case $ac_dest in
7860     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7861   # Strip MF so we end up with the name of the file.
7862   mf=`echo "$mf" | sed -e 's/:.*$//'`
7863   # Check whether this is an Automake generated Makefile or not.
7864   # We used to match only the files named `Makefile.in', but
7865   # some people rename them; so instead we look at the file content.
7866   # Grep'ing the first line is not enough: some people post-process
7867   # each Makefile.in and add a new line on top of each file to say so.
7868   # So let's grep whole file.
7869   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7870     dirpart=`(dirname "$mf") 2>/dev/null ||
7871 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7872          X"$mf" : 'X\(//\)[^/]' \| \
7873          X"$mf" : 'X\(//\)$' \| \
7874          X"$mf" : 'X\(/\)' \| \
7875          .     : '\(.\)' 2>/dev/null ||
7876 echo X"$mf" |
7877     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7878           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7879           /^X\(\/\/\)$/{ s//\1/; q; }
7880           /^X\(\/\).*/{ s//\1/; q; }
7881           s/.*/./; q'`
7882   else
7883     continue
7884   fi
7885   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7886   # Extract the definition of DEP_FILES from the Makefile without
7887   # running `make'.
7888   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7889   test -z "$DEPDIR" && continue
7890   # When using ansi2knr, U may be empty or an underscore; expand it
7891   U=`sed -n -e '/^U = / s///p' < "$mf"`
7892   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7893   # We invoke sed twice because it is the simplest approach to
7894   # changing $(DEPDIR) to its actual value in the expansion.
7895   for file in `sed -n -e '
7896     /^DEP_FILES = .*\\\\$/ {
7897       s/^DEP_FILES = //
7898       :loop
7899         s/\\\\$//
7900         p
7901         n
7902         /\\\\$/ b loop
7903       p
7904     }
7905     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7906        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7907     # Make sure the directory exists.
7908     test -f "$dirpart/$file" && continue
7909     fdir=`(dirname "$file") 2>/dev/null ||
7910 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7911          X"$file" : 'X\(//\)[^/]' \| \
7912          X"$file" : 'X\(//\)$' \| \
7913          X"$file" : 'X\(/\)' \| \
7914          .     : '\(.\)' 2>/dev/null ||
7915 echo X"$file" |
7916     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7917           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7918           /^X\(\/\/\)$/{ s//\1/; q; }
7919           /^X\(\/\).*/{ s//\1/; q; }
7920           s/.*/./; q'`
7921     { if $as_mkdir_p; then
7922     mkdir -p $dirpart/$fdir
7923   else
7924     as_dir=$dirpart/$fdir
7925     as_dirs=
7926     while test ! -d "$as_dir"; do
7927       as_dirs="$as_dir $as_dirs"
7928       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7929 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7930          X"$as_dir" : 'X\(//\)[^/]' \| \
7931          X"$as_dir" : 'X\(//\)$' \| \
7932          X"$as_dir" : 'X\(/\)' \| \
7933          .     : '\(.\)' 2>/dev/null ||
7934 echo X"$as_dir" |
7935     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7936           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7937           /^X\(\/\/\)$/{ s//\1/; q; }
7938           /^X\(\/\).*/{ s//\1/; q; }
7939           s/.*/./; q'`
7940     done
7941     test ! -n "$as_dirs" || mkdir $as_dirs
7942   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7943 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7944    { (exit 1); exit 1; }; }; }
7945
7946     # echo "creating $dirpart/$file"
7947     echo '# dummy' > "$dirpart/$file"
7948   done
7949 done
7950  ;;
7951   esac
7952 done
7953 _ACEOF
7954
7955 cat >>$CONFIG_STATUS <<\_ACEOF
7956
7957 { (exit 0); exit 0; }
7958 _ACEOF
7959 chmod +x $CONFIG_STATUS
7960 ac_clean_files=$ac_clean_files_save
7961
7962
7963 # configure is writing to config.log, and then calls config.status.
7964 # config.status does its own redirection, appending to config.log.
7965 # Unfortunately, on DOS this fails, as config.log is still kept open
7966 # by configure, so config.status won't be able to write to it; its
7967 # output is simply discarded.  So we exec the FD to /dev/null,
7968 # effectively closing config.log, so it can be properly (re)opened and
7969 # appended to by config.status.  When coming back to configure, we
7970 # need to make the FD available again.
7971 if test "$no_create" != yes; then
7972   ac_cs_success=:
7973   ac_config_status_args=
7974   test "$silent" = yes &&
7975     ac_config_status_args="$ac_config_status_args --quiet"
7976   exec 5>/dev/null
7977   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7978   exec 5>>config.log
7979   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7980   # would make configure fail if this is the last instruction.
7981   $ac_cs_success || { (exit 1); exit 1; }
7982 fi
7983