1a49826f483b307bc4e63de4e6d920e9cfa3f127
[AXE.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-x                use the X Window System"
16
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
20 build=NONE
21 cache_file=./config.cache
22 exec_prefix=NONE
23 host=NONE
24 no_create=
25 nonopt=NONE
26 no_recursion=
27 prefix=NONE
28 program_prefix=NONE
29 program_suffix=NONE
30 program_transform_name=s,x,x,
31 silent=
32 site=
33 srcdir=
34 target=NONE
35 verbose=
36 x_includes=NONE
37 x_libraries=NONE
38 bindir='${exec_prefix}/bin'
39 sbindir='${exec_prefix}/sbin'
40 libexecdir='${exec_prefix}/libexec'
41 datadir='${prefix}/share'
42 sysconfdir='${prefix}/etc'
43 sharedstatedir='${prefix}/com'
44 localstatedir='${prefix}/var'
45 libdir='${exec_prefix}/lib'
46 includedir='${prefix}/include'
47 oldincludedir='/usr/include'
48 infodir='${prefix}/info'
49 mandir='${prefix}/man'
50
51 # Initialize some other variables.
52 subdirs=
53 MFLAGS= MAKEFLAGS=
54 SHELL=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
56 ac_max_here_lines=12
57
58 ac_prev=
59 for ac_option
60 do
61
62   # If the previous option needs an argument, assign it.
63   if test -n "$ac_prev"; then
64     eval "$ac_prev=\$ac_option"
65     ac_prev=
66     continue
67   fi
68
69   case "$ac_option" in
70   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71   *) ac_optarg= ;;
72   esac
73
74   # Accept the important Cygnus configure options, so we can diagnose typos.
75
76   case "$ac_option" in
77
78   -bindir | --bindir | --bindi | --bind | --bin | --bi)
79     ac_prev=bindir ;;
80   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81     bindir="$ac_optarg" ;;
82
83   -build | --build | --buil | --bui | --bu)
84     ac_prev=build ;;
85   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86     build="$ac_optarg" ;;
87
88   -cache-file | --cache-file | --cache-fil | --cache-fi \
89   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90     ac_prev=cache_file ;;
91   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93     cache_file="$ac_optarg" ;;
94
95   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96     ac_prev=datadir ;;
97   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98   | --da=*)
99     datadir="$ac_optarg" ;;
100
101   -disable-* | --disable-*)
102     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103     # Reject names that are not valid shell variable names.
104     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106     fi
107     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108     eval "enable_${ac_feature}=no" ;;
109
110   -enable-* | --enable-*)
111     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112     # Reject names that are not valid shell variable names.
113     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115     fi
116     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117     case "$ac_option" in
118       *=*) ;;
119       *) ac_optarg=yes ;;
120     esac
121     eval "enable_${ac_feature}='$ac_optarg'" ;;
122
123   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125   | --exec | --exe | --ex)
126     ac_prev=exec_prefix ;;
127   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129   | --exec=* | --exe=* | --ex=*)
130     exec_prefix="$ac_optarg" ;;
131
132   -gas | --gas | --ga | --g)
133     # Obsolete; use --with-gas.
134     with_gas=yes ;;
135
136   -help | --help | --hel | --he)
137     # Omit some internal or obsolete options to make the list less imposing.
138     # This message is too long to be a string in the A/UX 3.1 sh.
139     cat << EOF
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
142 Configuration:
143   --cache-file=FILE       cache test results in FILE
144   --help                  print this message
145   --no-create             do not create output files
146   --quiet, --silent       do not print \`checking...' messages
147   --version               print the version of autoconf that created configure
148 Directory and file names:
149   --prefix=PREFIX         install architecture-independent files in PREFIX
150                           [$ac_default_prefix]
151   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
152                           [same as prefix]
153   --bindir=DIR            user executables in DIR [EPREFIX/bin]
154   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
155   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
156   --datadir=DIR           read-only architecture-independent data in DIR
157                           [PREFIX/share]
158   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
159   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
160                           [PREFIX/com]
161   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
162   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
163   --includedir=DIR        C header files in DIR [PREFIX/include]
164   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
165   --infodir=DIR           info documentation in DIR [PREFIX/info]
166   --mandir=DIR            man documentation in DIR [PREFIX/man]
167   --srcdir=DIR            find the sources in DIR [configure dir or ..]
168   --program-prefix=PREFIX prepend PREFIX to installed program names
169   --program-suffix=SUFFIX append SUFFIX to installed program names
170   --program-transform-name=PROGRAM
171                           run sed PROGRAM on installed program names
172 EOF
173     cat << EOF
174 Host type:
175   --build=BUILD           configure for building on BUILD [BUILD=HOST]
176   --host=HOST             configure for HOST [guessed]
177   --target=TARGET         configure for TARGET [TARGET=HOST]
178 Features and packages:
179   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
180   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
181   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
182   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
183   --x-includes=DIR        X include files are in DIR
184   --x-libraries=DIR       X library files are in DIR
185 EOF
186     if test -n "$ac_help"; then
187       echo "--enable and --with options recognized:$ac_help"
188     fi
189     exit 0 ;;
190
191   -host | --host | --hos | --ho)
192     ac_prev=host ;;
193   -host=* | --host=* | --hos=* | --ho=*)
194     host="$ac_optarg" ;;
195
196   -includedir | --includedir | --includedi | --included | --include \
197   | --includ | --inclu | --incl | --inc)
198     ac_prev=includedir ;;
199   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200   | --includ=* | --inclu=* | --incl=* | --inc=*)
201     includedir="$ac_optarg" ;;
202
203   -infodir | --infodir | --infodi | --infod | --info | --inf)
204     ac_prev=infodir ;;
205   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206     infodir="$ac_optarg" ;;
207
208   -libdir | --libdir | --libdi | --libd)
209     ac_prev=libdir ;;
210   -libdir=* | --libdir=* | --libdi=* | --libd=*)
211     libdir="$ac_optarg" ;;
212
213   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214   | --libexe | --libex | --libe)
215     ac_prev=libexecdir ;;
216   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217   | --libexe=* | --libex=* | --libe=*)
218     libexecdir="$ac_optarg" ;;
219
220   -localstatedir | --localstatedir | --localstatedi | --localstated \
221   | --localstate | --localstat | --localsta | --localst \
222   | --locals | --local | --loca | --loc | --lo)
223     ac_prev=localstatedir ;;
224   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227     localstatedir="$ac_optarg" ;;
228
229   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230     ac_prev=mandir ;;
231   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232     mandir="$ac_optarg" ;;
233
234   -nfp | --nfp | --nf)
235     # Obsolete; use --without-fp.
236     with_fp=no ;;
237
238   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239   | --no-cr | --no-c)
240     no_create=yes ;;
241
242   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244     no_recursion=yes ;;
245
246   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248   | --oldin | --oldi | --old | --ol | --o)
249     ac_prev=oldincludedir ;;
250   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253     oldincludedir="$ac_optarg" ;;
254
255   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256     ac_prev=prefix ;;
257   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258     prefix="$ac_optarg" ;;
259
260   -program-prefix | --program-prefix | --program-prefi | --program-pref \
261   | --program-pre | --program-pr | --program-p)
262     ac_prev=program_prefix ;;
263   -program-prefix=* | --program-prefix=* | --program-prefi=* \
264   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265     program_prefix="$ac_optarg" ;;
266
267   -program-suffix | --program-suffix | --program-suffi | --program-suff \
268   | --program-suf | --program-su | --program-s)
269     ac_prev=program_suffix ;;
270   -program-suffix=* | --program-suffix=* | --program-suffi=* \
271   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272     program_suffix="$ac_optarg" ;;
273
274   -program-transform-name | --program-transform-name \
275   | --program-transform-nam | --program-transform-na \
276   | --program-transform-n | --program-transform- \
277   | --program-transform | --program-transfor \
278   | --program-transfo | --program-transf \
279   | --program-trans | --program-tran \
280   | --progr-tra | --program-tr | --program-t)
281     ac_prev=program_transform_name ;;
282   -program-transform-name=* | --program-transform-name=* \
283   | --program-transform-nam=* | --program-transform-na=* \
284   | --program-transform-n=* | --program-transform-=* \
285   | --program-transform=* | --program-transfor=* \
286   | --program-transfo=* | --program-transf=* \
287   | --program-trans=* | --program-tran=* \
288   | --progr-tra=* | --program-tr=* | --program-t=*)
289     program_transform_name="$ac_optarg" ;;
290
291   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292   | -silent | --silent | --silen | --sile | --sil)
293     silent=yes ;;
294
295   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296     ac_prev=sbindir ;;
297   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298   | --sbi=* | --sb=*)
299     sbindir="$ac_optarg" ;;
300
301   -sharedstatedir | --sharedstatedir | --sharedstatedi \
302   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303   | --sharedst | --shareds | --shared | --share | --shar \
304   | --sha | --sh)
305     ac_prev=sharedstatedir ;;
306   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309   | --sha=* | --sh=*)
310     sharedstatedir="$ac_optarg" ;;
311
312   -site | --site | --sit)
313     ac_prev=site ;;
314   -site=* | --site=* | --sit=*)
315     site="$ac_optarg" ;;
316
317   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318     ac_prev=srcdir ;;
319   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320     srcdir="$ac_optarg" ;;
321
322   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323   | --syscon | --sysco | --sysc | --sys | --sy)
324     ac_prev=sysconfdir ;;
325   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327     sysconfdir="$ac_optarg" ;;
328
329   -target | --target | --targe | --targ | --tar | --ta | --t)
330     ac_prev=target ;;
331   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332     target="$ac_optarg" ;;
333
334   -v | -verbose | --verbose | --verbos | --verbo | --verb)
335     verbose=yes ;;
336
337   -version | --version | --versio | --versi | --vers)
338     echo "configure generated by autoconf version 2.13"
339     exit 0 ;;
340
341   -with-* | --with-*)
342     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343     # Reject names that are not valid shell variable names.
344     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346     fi
347     ac_package=`echo $ac_package| sed 's/-/_/g'`
348     case "$ac_option" in
349       *=*) ;;
350       *) ac_optarg=yes ;;
351     esac
352     eval "with_${ac_package}='$ac_optarg'" ;;
353
354   -without-* | --without-*)
355     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356     # Reject names that are not valid shell variable names.
357     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359     fi
360     ac_package=`echo $ac_package| sed 's/-/_/g'`
361     eval "with_${ac_package}=no" ;;
362
363   --x)
364     # Obsolete; use --with-x.
365     with_x=yes ;;
366
367   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368   | --x-incl | --x-inc | --x-in | --x-i)
369     ac_prev=x_includes ;;
370   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372     x_includes="$ac_optarg" ;;
373
374   -x-libraries | --x-libraries | --x-librarie | --x-librari \
375   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376     ac_prev=x_libraries ;;
377   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379     x_libraries="$ac_optarg" ;;
380
381   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382     ;;
383
384   *)
385     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386       echo "configure: warning: $ac_option: invalid host type" 1>&2
387     fi
388     if test "x$nonopt" != xNONE; then
389       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
390     fi
391     nonopt="$ac_option"
392     ;;
393
394   esac
395 done
396
397 if test -n "$ac_prev"; then
398   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 fi
400
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402
403 # File descriptor usage:
404 # 0 standard input
405 # 1 file creation
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
412   exec 6>/dev/null
413 else
414   exec 6>&1
415 fi
416 exec 5>./config.log
417
418 echo "\
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
421 " 1>&5
422
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
425 ac_configure_args=
426 for ac_arg
427 do
428   case "$ac_arg" in
429   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430   | --no-cr | --no-c) ;;
431   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
436   esac
437 done
438
439 # NLS nuisances.
440 # Only set these to C if already set.  These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
445 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
448
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 echo > confdefs.h
453
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
456 ac_unique_file=src/xappl.h
457
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460   ac_srcdir_defaulted=yes
461   # Try the directory containing this script, then its parent.
462   ac_prog=$0
463   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465   srcdir=$ac_confdir
466   if test ! -r $srcdir/$ac_unique_file; then
467     srcdir=..
468   fi
469 else
470   ac_srcdir_defaulted=no
471 fi
472 if test ! -r $srcdir/$ac_unique_file; then
473   if test "$ac_srcdir_defaulted" = yes; then
474     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475   else
476     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477   fi
478 fi
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483   if test "x$prefix" != xNONE; then
484     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
485   else
486     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487   fi
488 fi
489 for ac_site_file in $CONFIG_SITE; do
490   if test -r "$ac_site_file"; then
491     echo "loading site script $ac_site_file"
492     . "$ac_site_file"
493   fi
494 done
495
496 if test -r "$cache_file"; then
497   echo "loading cache $cache_file"
498   . $cache_file
499 else
500   echo "creating cache $cache_file"
501   > $cache_file
502 fi
503
504 ac_ext=c
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp='$CPP $CPPFLAGS'
507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling=$ac_cv_prog_cc_cross
510
511 ac_exeext=
512 ac_objext=o
513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
516     ac_n= ac_c='
517 ' ac_t='        '
518   else
519     ac_n=-n ac_c= ac_t=
520   fi
521 else
522   ac_n= ac_c='\c' ac_t=
523 fi
524
525
526 ac_aux_dir=
527 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
528   if test -f $ac_dir/install-sh; then
529     ac_aux_dir=$ac_dir
530     ac_install_sh="$ac_aux_dir/install-sh -c"
531     break
532   elif test -f $ac_dir/install.sh; then
533     ac_aux_dir=$ac_dir
534     ac_install_sh="$ac_aux_dir/install.sh -c"
535     break
536   fi
537 done
538 if test -z "$ac_aux_dir"; then
539   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
540 fi
541 ac_config_guess=$ac_aux_dir/config.guess
542 ac_config_sub=$ac_aux_dir/config.sub
543 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
544
545 # Find a good install program.  We prefer a C program (faster),
546 # so one script is as good as another.  But avoid the broken or
547 # incompatible versions:
548 # SysV /etc/install, /usr/sbin/install
549 # SunOS /usr/etc/install
550 # IRIX /sbin/install
551 # AIX /bin/install
552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
555 # ./install, which can be erroneously created by make from ./install.sh.
556 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
557 echo "configure:558: checking for a BSD compatible install" >&5
558 if test -z "$INSTALL"; then
559 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
560   echo $ac_n "(cached) $ac_c" 1>&6
561 else
562     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
563   for ac_dir in $PATH; do
564     # Account for people who put trailing slashes in PATH elements.
565     case "$ac_dir/" in
566     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
567     *)
568       # OSF1 and SCO ODT 3.0 have their own names for install.
569       # Don't use installbsd from OSF since it installs stuff as root
570       # by default.
571       for ac_prog in ginstall scoinst install; do
572         if test -f $ac_dir/$ac_prog; then
573           if test $ac_prog = install &&
574             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
575             # AIX install.  It has an incompatible calling convention.
576             :
577           else
578             ac_cv_path_install="$ac_dir/$ac_prog -c"
579             break 2
580           fi
581         fi
582       done
583       ;;
584     esac
585   done
586   IFS="$ac_save_IFS"
587
588 fi
589   if test "${ac_cv_path_install+set}" = set; then
590     INSTALL="$ac_cv_path_install"
591   else
592     # As a last resort, use the slow shell script.  We don't cache a
593     # path for INSTALL within a source directory, because that will
594     # break other packages using the cache if that directory is
595     # removed, or if the path is relative.
596     INSTALL="$ac_install_sh"
597   fi
598 fi
599 echo "$ac_t""$INSTALL" 1>&6
600
601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
602 # It thinks the first close brace ends the variable substitution.
603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
604
605 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
606
607 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
608
609 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
610 echo "configure:611: checking whether build environment is sane" >&5
611 # Just in case
612 sleep 1
613 echo timestamp > conftestfile
614 # Do `set' in a subshell so we don't clobber the current shell's
615 # arguments.  Must try -L first in case configure is actually a
616 # symlink; some systems play weird games with the mod time of symlinks
617 # (eg FreeBSD returns the mod time of the symlink's containing
618 # directory).
619 if (
620    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
621    if test "$*" = "X"; then
622       # -L didn't work.
623       set X `ls -t $srcdir/configure conftestfile`
624    fi
625    if test "$*" != "X $srcdir/configure conftestfile" \
626       && test "$*" != "X conftestfile $srcdir/configure"; then
627
628       # If neither matched, then we have a broken ls.  This can happen
629       # if, for instance, CONFIG_SHELL is bash and it inherits a
630       # broken ls alias from the environment.  This has actually
631       # happened.  Such a system could not be considered "sane".
632       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
633 alias in your environment" 1>&2; exit 1; }
634    fi
635
636    test "$2" = conftestfile
637    )
638 then
639    # Ok.
640    :
641 else
642    { echo "configure: error: newly created file is older than distributed files!
643 Check your system clock" 1>&2; exit 1; }
644 fi
645 rm -f conftest*
646 echo "$ac_t""yes" 1>&6
647 if test "$program_transform_name" = s,x,x,; then
648   program_transform_name=
649 else
650   # Double any \ or $.  echo might interpret backslashes.
651   cat <<\EOF_SED > conftestsed
652 s,\\,\\\\,g; s,\$,$$,g
653 EOF_SED
654   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
655   rm -f conftestsed
656 fi
657 test "$program_prefix" != NONE &&
658   program_transform_name="s,^,${program_prefix},; $program_transform_name"
659 # Use a double $ so make ignores it.
660 test "$program_suffix" != NONE &&
661   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
662
663 # sed with no file args requires a program.
664 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
665
666 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
667 echo "configure:668: checking whether ${MAKE-make} sets \${MAKE}" >&5
668 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
669 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
670   echo $ac_n "(cached) $ac_c" 1>&6
671 else
672   cat > conftestmake <<\EOF
673 all:
674         @echo 'ac_maketemp="${MAKE}"'
675 EOF
676 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
677 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
678 if test -n "$ac_maketemp"; then
679   eval ac_cv_prog_make_${ac_make}_set=yes
680 else
681   eval ac_cv_prog_make_${ac_make}_set=no
682 fi
683 rm -f conftestmake
684 fi
685 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
686   echo "$ac_t""yes" 1>&6
687   SET_MAKE=
688 else
689   echo "$ac_t""no" 1>&6
690   SET_MAKE="MAKE=${MAKE-make}"
691 fi
692
693
694 PACKAGE=AXE
695
696 VERSION=0.1
697
698 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
699   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
700 fi
701 cat >> confdefs.h <<EOF
702 #define PACKAGE "$PACKAGE"
703 EOF
704
705 cat >> confdefs.h <<EOF
706 #define VERSION "$VERSION"
707 EOF
708
709
710
711 missing_dir=`cd $ac_aux_dir && pwd`
712 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
713 echo "configure:714: checking for working aclocal" >&5
714 # Run test in a subshell; some versions of sh will print an error if
715 # an executable is not found, even if stderr is redirected.
716 # Redirect stdin to placate older versions of autoconf.  Sigh.
717 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
718    ACLOCAL=aclocal
719    echo "$ac_t""found" 1>&6
720 else
721    ACLOCAL="$missing_dir/missing aclocal"
722    echo "$ac_t""missing" 1>&6
723 fi
724
725 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
726 echo "configure:727: checking for working autoconf" >&5
727 # Run test in a subshell; some versions of sh will print an error if
728 # an executable is not found, even if stderr is redirected.
729 # Redirect stdin to placate older versions of autoconf.  Sigh.
730 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
731    AUTOCONF=autoconf
732    echo "$ac_t""found" 1>&6
733 else
734    AUTOCONF="$missing_dir/missing autoconf"
735    echo "$ac_t""missing" 1>&6
736 fi
737
738 echo $ac_n "checking for working automake""... $ac_c" 1>&6
739 echo "configure:740: checking for working automake" >&5
740 # Run test in a subshell; some versions of sh will print an error if
741 # an executable is not found, even if stderr is redirected.
742 # Redirect stdin to placate older versions of autoconf.  Sigh.
743 if (automake --version) < /dev/null > /dev/null 2>&1; then
744    AUTOMAKE=automake
745    echo "$ac_t""found" 1>&6
746 else
747    AUTOMAKE="$missing_dir/missing automake"
748    echo "$ac_t""missing" 1>&6
749 fi
750
751 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
752 echo "configure:753: checking for working autoheader" >&5
753 # Run test in a subshell; some versions of sh will print an error if
754 # an executable is not found, even if stderr is redirected.
755 # Redirect stdin to placate older versions of autoconf.  Sigh.
756 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
757    AUTOHEADER=autoheader
758    echo "$ac_t""found" 1>&6
759 else
760    AUTOHEADER="$missing_dir/missing autoheader"
761    echo "$ac_t""missing" 1>&6
762 fi
763
764 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
765 echo "configure:766: checking for working makeinfo" >&5
766 # Run test in a subshell; some versions of sh will print an error if
767 # an executable is not found, even if stderr is redirected.
768 # Redirect stdin to placate older versions of autoconf.  Sigh.
769 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
770    MAKEINFO=makeinfo
771    echo "$ac_t""found" 1>&6
772 else
773    MAKEINFO="$missing_dir/missing makeinfo"
774    echo "$ac_t""missing" 1>&6
775 fi
776
777
778
779
780 # Extract the first word of "gcc", so it can be a program name with args.
781 set dummy gcc; ac_word=$2
782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
783 echo "configure:784: checking for $ac_word" >&5
784 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
785   echo $ac_n "(cached) $ac_c" 1>&6
786 else
787   if test -n "$CC"; then
788   ac_cv_prog_CC="$CC" # Let the user override the test.
789 else
790   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
791   ac_dummy="$PATH"
792   for ac_dir in $ac_dummy; do
793     test -z "$ac_dir" && ac_dir=.
794     if test -f $ac_dir/$ac_word; then
795       ac_cv_prog_CC="gcc"
796       break
797     fi
798   done
799   IFS="$ac_save_ifs"
800 fi
801 fi
802 CC="$ac_cv_prog_CC"
803 if test -n "$CC"; then
804   echo "$ac_t""$CC" 1>&6
805 else
806   echo "$ac_t""no" 1>&6
807 fi
808
809 if test -z "$CC"; then
810   # Extract the first word of "cc", so it can be a program name with args.
811 set dummy cc; ac_word=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815   echo $ac_n "(cached) $ac_c" 1>&6
816 else
817   if test -n "$CC"; then
818   ac_cv_prog_CC="$CC" # Let the user override the test.
819 else
820   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
821   ac_prog_rejected=no
822   ac_dummy="$PATH"
823   for ac_dir in $ac_dummy; do
824     test -z "$ac_dir" && ac_dir=.
825     if test -f $ac_dir/$ac_word; then
826       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
827         ac_prog_rejected=yes
828         continue
829       fi
830       ac_cv_prog_CC="cc"
831       break
832     fi
833   done
834   IFS="$ac_save_ifs"
835 if test $ac_prog_rejected = yes; then
836   # We found a bogon in the path, so make sure we never use it.
837   set dummy $ac_cv_prog_CC
838   shift
839   if test $# -gt 0; then
840     # We chose a different compiler from the bogus one.
841     # However, it has the same basename, so the bogon will be chosen
842     # first if we set CC to just the basename; use the full file name.
843     shift
844     set dummy "$ac_dir/$ac_word" "$@"
845     shift
846     ac_cv_prog_CC="$@"
847   fi
848 fi
849 fi
850 fi
851 CC="$ac_cv_prog_CC"
852 if test -n "$CC"; then
853   echo "$ac_t""$CC" 1>&6
854 else
855   echo "$ac_t""no" 1>&6
856 fi
857
858   if test -z "$CC"; then
859     case "`uname -s`" in
860     *win32* | *WIN32*)
861       # Extract the first word of "cl", so it can be a program name with args.
862 set dummy cl; ac_word=$2
863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
864 echo "configure:865: checking for $ac_word" >&5
865 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
866   echo $ac_n "(cached) $ac_c" 1>&6
867 else
868   if test -n "$CC"; then
869   ac_cv_prog_CC="$CC" # Let the user override the test.
870 else
871   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
872   ac_dummy="$PATH"
873   for ac_dir in $ac_dummy; do
874     test -z "$ac_dir" && ac_dir=.
875     if test -f $ac_dir/$ac_word; then
876       ac_cv_prog_CC="cl"
877       break
878     fi
879   done
880   IFS="$ac_save_ifs"
881 fi
882 fi
883 CC="$ac_cv_prog_CC"
884 if test -n "$CC"; then
885   echo "$ac_t""$CC" 1>&6
886 else
887   echo "$ac_t""no" 1>&6
888 fi
889  ;;
890     esac
891   fi
892   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
893 fi
894
895 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
896 echo "configure:897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
897
898 ac_ext=c
899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
900 ac_cpp='$CPP $CPPFLAGS'
901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
902 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
903 cross_compiling=$ac_cv_prog_cc_cross
904
905 cat > conftest.$ac_ext << EOF
906
907 #line 908 "configure"
908 #include "confdefs.h"
909
910 main(){return(0);}
911 EOF
912 if { (eval echo configure:913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
913   ac_cv_prog_cc_works=yes
914   # If we can't run a trivial program, we are probably using a cross compiler.
915   if (./conftest; exit) 2>/dev/null; then
916     ac_cv_prog_cc_cross=no
917   else
918     ac_cv_prog_cc_cross=yes
919   fi
920 else
921   echo "configure: failed program was:" >&5
922   cat conftest.$ac_ext >&5
923   ac_cv_prog_cc_works=no
924 fi
925 rm -fr conftest*
926 ac_ext=c
927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
928 ac_cpp='$CPP $CPPFLAGS'
929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
931 cross_compiling=$ac_cv_prog_cc_cross
932
933 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
934 if test $ac_cv_prog_cc_works = no; then
935   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
936 fi
937 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
938 echo "configure:939: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
939 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
940 cross_compiling=$ac_cv_prog_cc_cross
941
942 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
943 echo "configure:944: checking whether we are using GNU C" >&5
944 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
945   echo $ac_n "(cached) $ac_c" 1>&6
946 else
947   cat > conftest.c <<EOF
948 #ifdef __GNUC__
949   yes;
950 #endif
951 EOF
952 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
953   ac_cv_prog_gcc=yes
954 else
955   ac_cv_prog_gcc=no
956 fi
957 fi
958
959 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
960
961 if test $ac_cv_prog_gcc = yes; then
962   GCC=yes
963 else
964   GCC=
965 fi
966
967 ac_test_CFLAGS="${CFLAGS+set}"
968 ac_save_CFLAGS="$CFLAGS"
969 CFLAGS=
970 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
971 echo "configure:972: checking whether ${CC-cc} accepts -g" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
973   echo $ac_n "(cached) $ac_c" 1>&6
974 else
975   echo 'void f(){}' > conftest.c
976 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
977   ac_cv_prog_cc_g=yes
978 else
979   ac_cv_prog_cc_g=no
980 fi
981 rm -f conftest*
982
983 fi
984
985 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
986 if test "$ac_test_CFLAGS" = set; then
987   CFLAGS="$ac_save_CFLAGS"
988 elif test $ac_cv_prog_cc_g = yes; then
989   if test "$GCC" = yes; then
990     CFLAGS="-g -O2"
991   else
992     CFLAGS="-g"
993   fi
994 else
995   if test "$GCC" = yes; then
996     CFLAGS="-O2"
997   else
998     CFLAGS=
999   fi
1000 fi
1001
1002 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1003 do
1004 # Extract the first word of "$ac_prog", so it can be a program name with args.
1005 set dummy $ac_prog; ac_word=$2
1006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1007 echo "configure:1008: checking for $ac_word" >&5
1008 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1009   echo $ac_n "(cached) $ac_c" 1>&6
1010 else
1011   if test -n "$CXX"; then
1012   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1013 else
1014   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1015   ac_dummy="$PATH"
1016   for ac_dir in $ac_dummy; do
1017     test -z "$ac_dir" && ac_dir=.
1018     if test -f $ac_dir/$ac_word; then
1019       ac_cv_prog_CXX="$ac_prog"
1020       break
1021     fi
1022   done
1023   IFS="$ac_save_ifs"
1024 fi
1025 fi
1026 CXX="$ac_cv_prog_CXX"
1027 if test -n "$CXX"; then
1028   echo "$ac_t""$CXX" 1>&6
1029 else
1030   echo "$ac_t""no" 1>&6
1031 fi
1032
1033 test -n "$CXX" && break
1034 done
1035 test -n "$CXX" || CXX="gcc"
1036
1037
1038 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1039 echo "configure:1040: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1040
1041 ac_ext=C
1042 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1043 ac_cpp='$CXXCPP $CPPFLAGS'
1044 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1045 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1046 cross_compiling=$ac_cv_prog_cxx_cross
1047
1048 cat > conftest.$ac_ext << EOF
1049
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1052
1053 int main(){return(0);}
1054 EOF
1055 if { (eval echo configure:1056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1056   ac_cv_prog_cxx_works=yes
1057   # If we can't run a trivial program, we are probably using a cross compiler.
1058   if (./conftest; exit) 2>/dev/null; then
1059     ac_cv_prog_cxx_cross=no
1060   else
1061     ac_cv_prog_cxx_cross=yes
1062   fi
1063 else
1064   echo "configure: failed program was:" >&5
1065   cat conftest.$ac_ext >&5
1066   ac_cv_prog_cxx_works=no
1067 fi
1068 rm -fr conftest*
1069 ac_ext=c
1070 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1071 ac_cpp='$CPP $CPPFLAGS'
1072 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1073 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1074 cross_compiling=$ac_cv_prog_cc_cross
1075
1076 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1077 if test $ac_cv_prog_cxx_works = no; then
1078   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1079 fi
1080 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1081 echo "configure:1082: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1082 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1083 cross_compiling=$ac_cv_prog_cxx_cross
1084
1085 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1086 echo "configure:1087: checking whether we are using GNU C++" >&5
1087 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1088   echo $ac_n "(cached) $ac_c" 1>&6
1089 else
1090   cat > conftest.C <<EOF
1091 #ifdef __GNUC__
1092   yes;
1093 #endif
1094 EOF
1095 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1096   ac_cv_prog_gxx=yes
1097 else
1098   ac_cv_prog_gxx=no
1099 fi
1100 fi
1101
1102 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1103
1104 if test $ac_cv_prog_gxx = yes; then
1105   GXX=yes
1106 else
1107   GXX=
1108 fi
1109
1110 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1111 ac_save_CXXFLAGS="$CXXFLAGS"
1112 CXXFLAGS=
1113 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1114 echo "configure:1115: checking whether ${CXX-g++} accepts -g" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1116   echo $ac_n "(cached) $ac_c" 1>&6
1117 else
1118   echo 'void f(){}' > conftest.cc
1119 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1120   ac_cv_prog_cxx_g=yes
1121 else
1122   ac_cv_prog_cxx_g=no
1123 fi
1124 rm -f conftest*
1125
1126 fi
1127
1128 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1129 if test "$ac_test_CXXFLAGS" = set; then
1130   CXXFLAGS="$ac_save_CXXFLAGS"
1131 elif test $ac_cv_prog_cxx_g = yes; then
1132   if test "$GXX" = yes; then
1133     CXXFLAGS="-g -O2"
1134   else
1135     CXXFLAGS="-g"
1136   fi
1137 else
1138   if test "$GXX" = yes; then
1139     CXXFLAGS="-O2"
1140   else
1141     CXXFLAGS=
1142   fi
1143 fi
1144
1145 for ac_declaration in \
1146    ''\
1147    '#include <stdlib.h>' \
1148    'extern "C" void std::exit (int) throw (); using std::exit;' \
1149    'extern "C" void std::exit (int); using std::exit;' \
1150    'extern "C" void exit (int) throw ();' \
1151    'extern "C" void exit (int);' \
1152    'void exit (int);'
1153 do
1154   cat > conftest.$ac_ext <<EOF
1155 #line 1156 "configure"
1156 #include "confdefs.h"
1157 #include <stdlib.h>
1158 $ac_declaration
1159 int main() {
1160 exit (42);
1161 ; return 0; }
1162 EOF
1163 if { (eval echo configure:1164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1164   :
1165 else
1166   echo "configure: failed program was:" >&5
1167   cat conftest.$ac_ext >&5
1168   rm -rf conftest*
1169   continue
1170 fi
1171 rm -f conftest*
1172   cat > conftest.$ac_ext <<EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1175 $ac_declaration
1176 int main() {
1177 exit (42);
1178 ; return 0; }
1179 EOF
1180 if { (eval echo configure:1181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1181   rm -rf conftest*
1182   break
1183 else
1184   echo "configure: failed program was:" >&5
1185   cat conftest.$ac_ext >&5
1186 fi
1187 rm -f conftest*
1188 done
1189 if test -n "$ac_declaration"; then
1190   echo '#ifdef __cplusplus' >>confdefs.h
1191   echo $ac_declaration      >>confdefs.h
1192   echo '#endif'             >>confdefs.h
1193 fi
1194
1195
1196 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1197 echo "configure:1198: checking how to run the C preprocessor" >&5
1198 # On Suns, sometimes $CPP names a directory.
1199 if test -n "$CPP" && test -d "$CPP"; then
1200   CPP=
1201 fi
1202 if test -z "$CPP"; then
1203 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1204   echo $ac_n "(cached) $ac_c" 1>&6
1205 else
1206     # This must be in double quotes, not single quotes, because CPP may get
1207   # substituted into the Makefile and "${CC-cc}" will confuse make.
1208   CPP="${CC-cc} -E"
1209   # On the NeXT, cc -E runs the code through the compiler's parser,
1210   # not just through cpp.
1211   cat > conftest.$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1214 #include <assert.h>
1215 Syntax Error
1216 EOF
1217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1218 { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1220 if test -z "$ac_err"; then
1221   :
1222 else
1223   echo "$ac_err" >&5
1224   echo "configure: failed program was:" >&5
1225   cat conftest.$ac_ext >&5
1226   rm -rf conftest*
1227   CPP="${CC-cc} -E -traditional-cpp"
1228   cat > conftest.$ac_ext <<EOF
1229 #line 1230 "configure"
1230 #include "confdefs.h"
1231 #include <assert.h>
1232 Syntax Error
1233 EOF
1234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1235 { (eval echo configure:1236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1237 if test -z "$ac_err"; then
1238   :
1239 else
1240   echo "$ac_err" >&5
1241   echo "configure: failed program was:" >&5
1242   cat conftest.$ac_ext >&5
1243   rm -rf conftest*
1244   CPP="${CC-cc} -nologo -E"
1245   cat > conftest.$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1248 #include <assert.h>
1249 Syntax Error
1250 EOF
1251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1252 { (eval echo configure:1253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1254 if test -z "$ac_err"; then
1255   :
1256 else
1257   echo "$ac_err" >&5
1258   echo "configure: failed program was:" >&5
1259   cat conftest.$ac_ext >&5
1260   rm -rf conftest*
1261   CPP=/lib/cpp
1262 fi
1263 rm -f conftest*
1264 fi
1265 rm -f conftest*
1266 fi
1267 rm -f conftest*
1268   ac_cv_prog_CPP="$CPP"
1269 fi
1270   CPP="$ac_cv_prog_CPP"
1271 else
1272   ac_cv_prog_CPP="$CPP"
1273 fi
1274 echo "$ac_t""$CPP" 1>&6
1275
1276 missing_dir=`cd $ac_aux_dir && pwd`
1277 for ac_prog in flex lex
1278 do
1279 # Extract the first word of "$ac_prog", so it can be a program name with args.
1280 set dummy $ac_prog; ac_word=$2
1281 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1282 echo "configure:1283: checking for $ac_word" >&5
1283 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1284   echo $ac_n "(cached) $ac_c" 1>&6
1285 else
1286   if test -n "$LEX"; then
1287   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1288 else
1289   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1290   ac_dummy="$PATH"
1291   for ac_dir in $ac_dummy; do
1292     test -z "$ac_dir" && ac_dir=.
1293     if test -f $ac_dir/$ac_word; then
1294       ac_cv_prog_LEX="$ac_prog"
1295       break
1296     fi
1297   done
1298   IFS="$ac_save_ifs"
1299 fi
1300 fi
1301 LEX="$ac_cv_prog_LEX"
1302 if test -n "$LEX"; then
1303   echo "$ac_t""$LEX" 1>&6
1304 else
1305   echo "$ac_t""no" 1>&6
1306 fi
1307
1308 test -n "$LEX" && break
1309 done
1310 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1311
1312 # Extract the first word of "flex", so it can be a program name with args.
1313 set dummy flex; ac_word=$2
1314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1315 echo "configure:1316: checking for $ac_word" >&5
1316 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1317   echo $ac_n "(cached) $ac_c" 1>&6
1318 else
1319   if test -n "$LEX"; then
1320   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1321 else
1322   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1323   ac_dummy="$PATH"
1324   for ac_dir in $ac_dummy; do
1325     test -z "$ac_dir" && ac_dir=.
1326     if test -f $ac_dir/$ac_word; then
1327       ac_cv_prog_LEX="flex"
1328       break
1329     fi
1330   done
1331   IFS="$ac_save_ifs"
1332   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1333 fi
1334 fi
1335 LEX="$ac_cv_prog_LEX"
1336 if test -n "$LEX"; then
1337   echo "$ac_t""$LEX" 1>&6
1338 else
1339   echo "$ac_t""no" 1>&6
1340 fi
1341
1342 if test -z "$LEXLIB"
1343 then
1344   case "$LEX" in
1345   flex*) ac_lib=fl ;;
1346   *) ac_lib=l ;;
1347   esac
1348   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1349 echo "configure:1350: checking for yywrap in -l$ac_lib" >&5
1350 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1352   echo $ac_n "(cached) $ac_c" 1>&6
1353 else
1354   ac_save_LIBS="$LIBS"
1355 LIBS="-l$ac_lib  $LIBS"
1356 cat > conftest.$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1359 /* Override any gcc2 internal prototype to avoid an error.  */
1360 /* We use char because int might match the return type of a gcc2
1361     builtin and then its argument prototype would still apply.  */
1362 char yywrap();
1363
1364 int main() {
1365 yywrap()
1366 ; return 0; }
1367 EOF
1368 if { (eval echo configure:1369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1369   rm -rf conftest*
1370   eval "ac_cv_lib_$ac_lib_var=yes"
1371 else
1372   echo "configure: failed program was:" >&5
1373   cat conftest.$ac_ext >&5
1374   rm -rf conftest*
1375   eval "ac_cv_lib_$ac_lib_var=no"
1376 fi
1377 rm -f conftest*
1378 LIBS="$ac_save_LIBS"
1379
1380 fi
1381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1382   echo "$ac_t""yes" 1>&6
1383   LEXLIB="-l$ac_lib"
1384 else
1385   echo "$ac_t""no" 1>&6
1386 fi
1387
1388 fi
1389
1390 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1391 echo "configure:1392: checking lex output file root" >&5
1392 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1393   echo $ac_n "(cached) $ac_c" 1>&6
1394 else
1395   # The minimal lex program is just a single line: %%.  But some broken lexes
1396 # (Solaris, I think it was) want two %% lines, so accommodate them.
1397 echo '%%
1398 %%' | $LEX
1399 if test -f lex.yy.c; then
1400   ac_cv_prog_lex_root=lex.yy
1401 elif test -f lexyy.c; then
1402   ac_cv_prog_lex_root=lexyy
1403 else
1404   { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1405 fi
1406 fi
1407
1408 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1409 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1410
1411 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1412 echo "configure:1413: checking whether yytext is a pointer" >&5
1413 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1414   echo $ac_n "(cached) $ac_c" 1>&6
1415 else
1416   # POSIX says lex can declare yytext either as a pointer or an array; the
1417 # default is implementation-dependent. Figure out which it is, since
1418 # not all implementations provide the %pointer and %array declarations.
1419 ac_cv_prog_lex_yytext_pointer=no
1420 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1421 ac_save_LIBS="$LIBS"
1422 LIBS="$LIBS $LEXLIB"
1423 cat > conftest.$ac_ext <<EOF
1424 #line 1425 "configure"
1425 #include "confdefs.h"
1426 `cat $LEX_OUTPUT_ROOT.c`
1427 int main() {
1428
1429 ; return 0; }
1430 EOF
1431 if { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1432   rm -rf conftest*
1433   ac_cv_prog_lex_yytext_pointer=yes
1434 else
1435   echo "configure: failed program was:" >&5
1436   cat conftest.$ac_ext >&5
1437 fi
1438 rm -f conftest*
1439 LIBS="$ac_save_LIBS"
1440 rm -f "${LEX_OUTPUT_ROOT}.c"
1441
1442 fi
1443
1444 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1445 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1446   cat >> confdefs.h <<\EOF
1447 #define YYTEXT_POINTER 1
1448 EOF
1449
1450 fi
1451
1452 # Find a good install program.  We prefer a C program (faster),
1453 # so one script is as good as another.  But avoid the broken or
1454 # incompatible versions:
1455 # SysV /etc/install, /usr/sbin/install
1456 # SunOS /usr/etc/install
1457 # IRIX /sbin/install
1458 # AIX /bin/install
1459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1462 # ./install, which can be erroneously created by make from ./install.sh.
1463 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1464 echo "configure:1465: checking for a BSD compatible install" >&5
1465 if test -z "$INSTALL"; then
1466 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1467   echo $ac_n "(cached) $ac_c" 1>&6
1468 else
1469     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1470   for ac_dir in $PATH; do
1471     # Account for people who put trailing slashes in PATH elements.
1472     case "$ac_dir/" in
1473     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1474     *)
1475       # OSF1 and SCO ODT 3.0 have their own names for install.
1476       # Don't use installbsd from OSF since it installs stuff as root
1477       # by default.
1478       for ac_prog in ginstall scoinst install; do
1479         if test -f $ac_dir/$ac_prog; then
1480           if test $ac_prog = install &&
1481             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1482             # AIX install.  It has an incompatible calling convention.
1483             :
1484           else
1485             ac_cv_path_install="$ac_dir/$ac_prog -c"
1486             break 2
1487           fi
1488         fi
1489       done
1490       ;;
1491     esac
1492   done
1493   IFS="$ac_save_IFS"
1494
1495 fi
1496   if test "${ac_cv_path_install+set}" = set; then
1497     INSTALL="$ac_cv_path_install"
1498   else
1499     # As a last resort, use the slow shell script.  We don't cache a
1500     # path for INSTALL within a source directory, because that will
1501     # break other packages using the cache if that directory is
1502     # removed, or if the path is relative.
1503     INSTALL="$ac_install_sh"
1504   fi
1505 fi
1506 echo "$ac_t""$INSTALL" 1>&6
1507
1508 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1509 # It thinks the first close brace ends the variable substitution.
1510 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1511
1512 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1513
1514 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1515
1516 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1517 echo "configure:1518: checking whether ln -s works" >&5
1518 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1519   echo $ac_n "(cached) $ac_c" 1>&6
1520 else
1521   rm -f conftestdata
1522 if ln -s X conftestdata 2>/dev/null
1523 then
1524   rm -f conftestdata
1525   ac_cv_prog_LN_S="ln -s"
1526 else
1527   ac_cv_prog_LN_S=ln
1528 fi
1529 fi
1530 LN_S="$ac_cv_prog_LN_S"
1531 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1532   echo "$ac_t""yes" 1>&6
1533 else
1534   echo "$ac_t""no" 1>&6
1535 fi
1536
1537 # Extract the first word of "ranlib", so it can be a program name with args.
1538 set dummy ranlib; ac_word=$2
1539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1540 echo "configure:1541: checking for $ac_word" >&5
1541 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1542   echo $ac_n "(cached) $ac_c" 1>&6
1543 else
1544   if test -n "$RANLIB"; then
1545   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1546 else
1547   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1548   ac_dummy="$PATH"
1549   for ac_dir in $ac_dummy; do
1550     test -z "$ac_dir" && ac_dir=.
1551     if test -f $ac_dir/$ac_word; then
1552       ac_cv_prog_RANLIB="ranlib"
1553       break
1554     fi
1555   done
1556   IFS="$ac_save_ifs"
1557   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1558 fi
1559 fi
1560 RANLIB="$ac_cv_prog_RANLIB"
1561 if test -n "$RANLIB"; then
1562   echo "$ac_t""$RANLIB" 1>&6
1563 else
1564   echo "$ac_t""no" 1>&6
1565 fi
1566
1567 for ac_prog in 'bison -y' byacc
1568 do
1569 # Extract the first word of "$ac_prog", so it can be a program name with args.
1570 set dummy $ac_prog; ac_word=$2
1571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1572 echo "configure:1573: checking for $ac_word" >&5
1573 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1574   echo $ac_n "(cached) $ac_c" 1>&6
1575 else
1576   if test -n "$YACC"; then
1577   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1578 else
1579   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1580   ac_dummy="$PATH"
1581   for ac_dir in $ac_dummy; do
1582     test -z "$ac_dir" && ac_dir=.
1583     if test -f $ac_dir/$ac_word; then
1584       ac_cv_prog_YACC="$ac_prog"
1585       break
1586     fi
1587   done
1588   IFS="$ac_save_ifs"
1589 fi
1590 fi
1591 YACC="$ac_cv_prog_YACC"
1592 if test -n "$YACC"; then
1593   echo "$ac_t""$YACC" 1>&6
1594 else
1595   echo "$ac_t""no" 1>&6
1596 fi
1597
1598 test -n "$YACC" && break
1599 done
1600 test -n "$YACC" || YACC="yacc"
1601
1602 for ac_prog in gawk mawk nawk awk
1603 do
1604 # Extract the first word of "$ac_prog", so it can be a program name with args.
1605 set dummy $ac_prog; ac_word=$2
1606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1607 echo "configure:1608: checking for $ac_word" >&5
1608 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1609   echo $ac_n "(cached) $ac_c" 1>&6
1610 else
1611   if test -n "$AWK"; then
1612   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1613 else
1614   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1615   ac_dummy="$PATH"
1616   for ac_dir in $ac_dummy; do
1617     test -z "$ac_dir" && ac_dir=.
1618     if test -f $ac_dir/$ac_word; then
1619       ac_cv_prog_AWK="$ac_prog"
1620       break
1621     fi
1622   done
1623   IFS="$ac_save_ifs"
1624 fi
1625 fi
1626 AWK="$ac_cv_prog_AWK"
1627 if test -n "$AWK"; then
1628   echo "$ac_t""$AWK" 1>&6
1629 else
1630   echo "$ac_t""no" 1>&6
1631 fi
1632
1633 test -n "$AWK" && break
1634 done
1635
1636
1637 # Extract the first word of "xml-config", so it can be a program name with args.
1638 set dummy xml-config; ac_word=$2
1639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1640 echo "configure:1641: checking for $ac_word" >&5
1641 if eval "test \"`echo '$''{'ac_cv_path_XML_CONFIG'+set}'`\" = set"; then
1642   echo $ac_n "(cached) $ac_c" 1>&6
1643 else
1644   case "$XML_CONFIG" in
1645   /*)
1646   ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
1647   ;;
1648   ?:/*)                  
1649   ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a dos path.
1650   ;;
1651   *)
1652   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1653   ac_dummy="$PATH"
1654   for ac_dir in $ac_dummy; do 
1655     test -z "$ac_dir" && ac_dir=.
1656     if test -f $ac_dir/$ac_word; then
1657       ac_cv_path_XML_CONFIG="$ac_dir/$ac_word"
1658       break
1659     fi
1660   done
1661   IFS="$ac_save_ifs"
1662   test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
1663   ;;
1664 esac
1665 fi
1666 XML_CONFIG="$ac_cv_path_XML_CONFIG"
1667 if test -n "$XML_CONFIG"; then
1668   echo "$ac_t""$XML_CONFIG" 1>&6
1669 else
1670   echo "$ac_t""no" 1>&6
1671 fi
1672
1673
1674 # If we find X, set shell vars x_includes and x_libraries to the
1675 # paths, otherwise set no_x=yes.
1676 # Uses ac_ vars as temps to allow command line to override cache and checks.
1677 # --without-x overrides everything else, but does not touch the cache.
1678 echo $ac_n "checking for X""... $ac_c" 1>&6
1679 echo "configure:1680: checking for X" >&5
1680
1681 # Check whether --with-x or --without-x was given.
1682 if test "${with_x+set}" = set; then
1683   withval="$with_x"
1684   :
1685 fi
1686
1687 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1688 if test "x$with_x" = xno; then
1689   # The user explicitly disabled X.
1690   have_x=disabled
1691 else
1692   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1693     # Both variables are already set.
1694     have_x=yes
1695   else
1696 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1697   echo $ac_n "(cached) $ac_c" 1>&6
1698 else
1699   # One or both of the vars are not set, and there is no cached value.
1700 ac_x_includes=NO ac_x_libraries=NO
1701 rm -fr conftestdir
1702 if mkdir conftestdir; then
1703   cd conftestdir
1704   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1705   cat > Imakefile <<'EOF'
1706 acfindx:
1707         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1708 EOF
1709   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1710     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1711     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1712     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1713     for ac_extension in a so sl; do
1714       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1715         test -f $ac_im_libdir/libX11.$ac_extension; then
1716         ac_im_usrlibdir=$ac_im_libdir; break
1717       fi
1718     done
1719     # Screen out bogus values from the imake configuration.  They are
1720     # bogus both because they are the default anyway, and because
1721     # using them would break gcc on systems where it needs fixed includes.
1722     case "$ac_im_incroot" in
1723         /usr/include) ;;
1724         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1725     esac
1726     case "$ac_im_usrlibdir" in
1727         /usr/lib | /lib) ;;
1728         *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1729     esac
1730   fi
1731   cd ..
1732   rm -fr conftestdir
1733 fi
1734
1735 if test "$ac_x_includes" = NO; then
1736   # Guess where to find include files, by looking for this one X11 .h file.
1737   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1738
1739   # First, try using that file with no special directory specified.
1740 cat > conftest.$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1743 #include <$x_direct_test_include>
1744 EOF
1745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1746 { (eval echo configure:1747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1748 if test -z "$ac_err"; then
1749   rm -rf conftest*
1750   # We can compile using X headers with no special include directory.
1751 ac_x_includes=
1752 else
1753   echo "$ac_err" >&5
1754   echo "configure: failed program was:" >&5
1755   cat conftest.$ac_ext >&5
1756   rm -rf conftest*
1757   # Look for the header file in a standard set of common directories.
1758 # Check X11 before X11Rn because it is often a symlink to the current release.
1759   for ac_dir in               \
1760     /usr/X11/include          \
1761     /usr/X11R6/include        \
1762     /usr/X11R5/include        \
1763     /usr/X11R4/include        \
1764                               \
1765     /usr/include/X11          \
1766     /usr/include/X11R6        \
1767     /usr/include/X11R5        \
1768     /usr/include/X11R4        \
1769                               \
1770     /usr/local/X11/include    \
1771     /usr/local/X11R6/include  \
1772     /usr/local/X11R5/include  \
1773     /usr/local/X11R4/include  \
1774                               \
1775     /usr/local/include/X11    \
1776     /usr/local/include/X11R6  \
1777     /usr/local/include/X11R5  \
1778     /usr/local/include/X11R4  \
1779                               \
1780     /usr/X386/include         \
1781     /usr/x386/include         \
1782     /usr/XFree86/include/X11  \
1783                               \
1784     /usr/include              \
1785     /usr/local/include        \
1786     /usr/unsupported/include  \
1787     /usr/athena/include       \
1788     /usr/local/x11r5/include  \
1789     /usr/lpp/Xamples/include  \
1790                               \
1791     /usr/openwin/include      \
1792     /usr/openwin/share/include \
1793     ; \
1794   do
1795     if test -r "$ac_dir/$x_direct_test_include"; then
1796       ac_x_includes=$ac_dir
1797       break
1798     fi
1799   done
1800 fi
1801 rm -f conftest*
1802 fi # $ac_x_includes = NO
1803
1804 if test "$ac_x_libraries" = NO; then
1805   # Check for the libraries.
1806
1807   test -z "$x_direct_test_library" && x_direct_test_library=Xt
1808   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1809
1810   # See if we find them without any special options.
1811   # Don't add to $LIBS permanently.
1812   ac_save_LIBS="$LIBS"
1813   LIBS="-l$x_direct_test_library $LIBS"
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1817
1818 int main() {
1819 ${x_direct_test_function}()
1820 ; return 0; }
1821 EOF
1822 if { (eval echo configure:1823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1823   rm -rf conftest*
1824   LIBS="$ac_save_LIBS"
1825 # We can link X programs with no special library path.
1826 ac_x_libraries=
1827 else
1828   echo "configure: failed program was:" >&5
1829   cat conftest.$ac_ext >&5
1830   rm -rf conftest*
1831   LIBS="$ac_save_LIBS"
1832 # First see if replacing the include by lib works.
1833 # Check X11 before X11Rn because it is often a symlink to the current release.
1834 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1835     /usr/X11/lib          \
1836     /usr/X11R6/lib        \
1837     /usr/X11R5/lib        \
1838     /usr/X11R4/lib        \
1839                           \
1840     /usr/lib/X11          \
1841     /usr/lib/X11R6        \
1842     /usr/lib/X11R5        \
1843     /usr/lib/X11R4        \
1844                           \
1845     /usr/local/X11/lib    \
1846     /usr/local/X11R6/lib  \
1847     /usr/local/X11R5/lib  \
1848     /usr/local/X11R4/lib  \
1849                           \
1850     /usr/local/lib/X11    \
1851     /usr/local/lib/X11R6  \
1852     /usr/local/lib/X11R5  \
1853     /usr/local/lib/X11R4  \
1854                           \
1855     /usr/X386/lib         \
1856     /usr/x386/lib         \
1857     /usr/XFree86/lib/X11  \
1858                           \
1859     /usr/lib              \
1860     /usr/local/lib        \
1861     /usr/unsupported/lib  \
1862     /usr/athena/lib       \
1863     /usr/local/x11r5/lib  \
1864     /usr/lpp/Xamples/lib  \
1865     /lib/usr/lib/X11      \
1866                           \
1867     /usr/openwin/lib      \
1868     /usr/openwin/share/lib \
1869     ; \
1870 do
1871   for ac_extension in a so sl; do
1872     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1873       ac_x_libraries=$ac_dir
1874       break 2
1875     fi
1876   done
1877 done
1878 fi
1879 rm -f conftest*
1880 fi # $ac_x_libraries = NO
1881
1882 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1883   # Didn't find X anywhere.  Cache the known absence of X.
1884   ac_cv_have_x="have_x=no"
1885 else
1886   # Record where we found X for the cache.
1887   ac_cv_have_x="have_x=yes \
1888                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1889 fi
1890 fi
1891   fi
1892   eval "$ac_cv_have_x"
1893 fi # $with_x != no
1894
1895 if test "$have_x" != yes; then
1896   echo "$ac_t""$have_x" 1>&6
1897   no_x=yes
1898 else
1899   # If each of the values was on the command line, it overrides each guess.
1900   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1901   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1902   # Update the cache value to reflect the command line values.
1903   ac_cv_have_x="have_x=yes \
1904                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1905   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1906 fi
1907
1908 if test "$no_x" = yes; then
1909   # Not all programs may use this symbol, but it does not hurt to define it.
1910   cat >> confdefs.h <<\EOF
1911 #define X_DISPLAY_MISSING 1
1912 EOF
1913
1914   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1915 else
1916   if test -n "$x_includes"; then
1917     X_CFLAGS="$X_CFLAGS -I$x_includes"
1918   fi
1919
1920   # It would also be nice to do this for all -L options, not just this one.
1921   if test -n "$x_libraries"; then
1922     X_LIBS="$X_LIBS -L$x_libraries"
1923     # For Solaris; some versions of Sun CC require a space after -R and
1924     # others require no space.  Words are not sufficient . . . .
1925     case "`(uname -sr) 2>/dev/null`" in
1926     "SunOS 5"*)
1927       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1928 echo "configure:1929: checking whether -R must be followed by a space" >&5
1929       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1930       cat > conftest.$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1933
1934 int main() {
1935
1936 ; return 0; }
1937 EOF
1938 if { (eval echo configure:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1939   rm -rf conftest*
1940   ac_R_nospace=yes
1941 else
1942   echo "configure: failed program was:" >&5
1943   cat conftest.$ac_ext >&5
1944   rm -rf conftest*
1945   ac_R_nospace=no
1946 fi
1947 rm -f conftest*
1948       if test $ac_R_nospace = yes; then
1949         echo "$ac_t""no" 1>&6
1950         X_LIBS="$X_LIBS -R$x_libraries"
1951       else
1952         LIBS="$ac_xsave_LIBS -R $x_libraries"
1953         cat > conftest.$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1956
1957 int main() {
1958
1959 ; return 0; }
1960 EOF
1961 if { (eval echo configure:1962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1962   rm -rf conftest*
1963   ac_R_space=yes
1964 else
1965   echo "configure: failed program was:" >&5
1966   cat conftest.$ac_ext >&5
1967   rm -rf conftest*
1968   ac_R_space=no
1969 fi
1970 rm -f conftest*
1971         if test $ac_R_space = yes; then
1972           echo "$ac_t""yes" 1>&6
1973           X_LIBS="$X_LIBS -R $x_libraries"
1974         else
1975           echo "$ac_t""neither works" 1>&6
1976         fi
1977       fi
1978       LIBS="$ac_xsave_LIBS"
1979     esac
1980   fi
1981
1982   # Check for system-dependent libraries X programs must link with.
1983   # Do this before checking for the system-independent R6 libraries
1984   # (-lICE), since we may need -lsocket or whatever for X linking.
1985
1986   if test "$ISC" = yes; then
1987     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1988   else
1989     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1990     # libraries were built with DECnet support.  And karl@cs.umb.edu says
1991     # the Alpha needs dnet_stub (dnet does not exist).
1992     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1993 echo "configure:1994: checking for dnet_ntoa in -ldnet" >&5
1994 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1996   echo $ac_n "(cached) $ac_c" 1>&6
1997 else
1998   ac_save_LIBS="$LIBS"
1999 LIBS="-ldnet  $LIBS"
2000 cat > conftest.$ac_ext <<EOF
2001 #line 2002 "configure"
2002 #include "confdefs.h"
2003 /* Override any gcc2 internal prototype to avoid an error.  */
2004 /* We use char because int might match the return type of a gcc2
2005     builtin and then its argument prototype would still apply.  */
2006 char dnet_ntoa();
2007
2008 int main() {
2009 dnet_ntoa()
2010 ; return 0; }
2011 EOF
2012 if { (eval echo configure:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2013   rm -rf conftest*
2014   eval "ac_cv_lib_$ac_lib_var=yes"
2015 else
2016   echo "configure: failed program was:" >&5
2017   cat conftest.$ac_ext >&5
2018   rm -rf conftest*
2019   eval "ac_cv_lib_$ac_lib_var=no"
2020 fi
2021 rm -f conftest*
2022 LIBS="$ac_save_LIBS"
2023
2024 fi
2025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2026   echo "$ac_t""yes" 1>&6
2027   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2028 else
2029   echo "$ac_t""no" 1>&6
2030 fi
2031
2032     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2033       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2034 echo "configure:2035: checking for dnet_ntoa in -ldnet_stub" >&5
2035 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2037   echo $ac_n "(cached) $ac_c" 1>&6
2038 else
2039   ac_save_LIBS="$LIBS"
2040 LIBS="-ldnet_stub  $LIBS"
2041 cat > conftest.$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2044 /* Override any gcc2 internal prototype to avoid an error.  */
2045 /* We use char because int might match the return type of a gcc2
2046     builtin and then its argument prototype would still apply.  */
2047 char dnet_ntoa();
2048
2049 int main() {
2050 dnet_ntoa()
2051 ; return 0; }
2052 EOF
2053 if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2054   rm -rf conftest*
2055   eval "ac_cv_lib_$ac_lib_var=yes"
2056 else
2057   echo "configure: failed program was:" >&5
2058   cat conftest.$ac_ext >&5
2059   rm -rf conftest*
2060   eval "ac_cv_lib_$ac_lib_var=no"
2061 fi
2062 rm -f conftest*
2063 LIBS="$ac_save_LIBS"
2064
2065 fi
2066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2067   echo "$ac_t""yes" 1>&6
2068   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2069 else
2070   echo "$ac_t""no" 1>&6
2071 fi
2072
2073     fi
2074
2075     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2076     # to get the SysV transport functions.
2077     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2078     # needs -lnsl.
2079     # The nsl library prevents programs from opening the X display
2080     # on Irix 5.2, according to dickey@clark.net.
2081     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2082 echo "configure:2083: checking for gethostbyname" >&5
2083 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2084   echo $ac_n "(cached) $ac_c" 1>&6
2085 else
2086   cat > conftest.$ac_ext <<EOF
2087 #line 2088 "configure"
2088 #include "confdefs.h"
2089 /* System header to define __stub macros and hopefully few prototypes,
2090     which can conflict with char gethostbyname(); below.  */
2091 #include <assert.h>
2092 /* Override any gcc2 internal prototype to avoid an error.  */
2093 /* We use char because int might match the return type of a gcc2
2094     builtin and then its argument prototype would still apply.  */
2095 char gethostbyname();
2096
2097 int main() {
2098
2099 /* The GNU C library defines this for functions which it implements
2100     to always fail with ENOSYS.  Some functions are actually named
2101     something starting with __ and the normal name is an alias.  */
2102 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2103 choke me
2104 #else
2105 gethostbyname();
2106 #endif
2107
2108 ; return 0; }
2109 EOF
2110 if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2111   rm -rf conftest*
2112   eval "ac_cv_func_gethostbyname=yes"
2113 else
2114   echo "configure: failed program was:" >&5
2115   cat conftest.$ac_ext >&5
2116   rm -rf conftest*
2117   eval "ac_cv_func_gethostbyname=no"
2118 fi
2119 rm -f conftest*
2120 fi
2121
2122 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2123   echo "$ac_t""yes" 1>&6
2124   :
2125 else
2126   echo "$ac_t""no" 1>&6
2127 fi
2128
2129     if test $ac_cv_func_gethostbyname = no; then
2130       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2131 echo "configure:2132: checking for gethostbyname in -lnsl" >&5
2132 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2133 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2134   echo $ac_n "(cached) $ac_c" 1>&6
2135 else
2136   ac_save_LIBS="$LIBS"
2137 LIBS="-lnsl  $LIBS"
2138 cat > conftest.$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2141 /* Override any gcc2 internal prototype to avoid an error.  */
2142 /* We use char because int might match the return type of a gcc2
2143     builtin and then its argument prototype would still apply.  */
2144 char gethostbyname();
2145
2146 int main() {
2147 gethostbyname()
2148 ; return 0; }
2149 EOF
2150 if { (eval echo configure:2151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2151   rm -rf conftest*
2152   eval "ac_cv_lib_$ac_lib_var=yes"
2153 else
2154   echo "configure: failed program was:" >&5
2155   cat conftest.$ac_ext >&5
2156   rm -rf conftest*
2157   eval "ac_cv_lib_$ac_lib_var=no"
2158 fi
2159 rm -f conftest*
2160 LIBS="$ac_save_LIBS"
2161
2162 fi
2163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2164   echo "$ac_t""yes" 1>&6
2165   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2166 else
2167   echo "$ac_t""no" 1>&6
2168 fi
2169
2170     fi
2171
2172     # lieder@skyler.mavd.honeywell.com says without -lsocket,
2173     # socket/setsockopt and other routines are undefined under SCO ODT
2174     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
2175     # on later versions), says simon@lia.di.epfl.ch: it contains
2176     # gethostby* variants that don't use the nameserver (or something).
2177     # -lsocket must be given before -lnsl if both are needed.
2178     # We assume that if connect needs -lnsl, so does gethostbyname.
2179     echo $ac_n "checking for connect""... $ac_c" 1>&6
2180 echo "configure:2181: checking for connect" >&5
2181 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2182   echo $ac_n "(cached) $ac_c" 1>&6
2183 else
2184   cat > conftest.$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2187 /* System header to define __stub macros and hopefully few prototypes,
2188     which can conflict with char connect(); below.  */
2189 #include <assert.h>
2190 /* Override any gcc2 internal prototype to avoid an error.  */
2191 /* We use char because int might match the return type of a gcc2
2192     builtin and then its argument prototype would still apply.  */
2193 char connect();
2194
2195 int main() {
2196
2197 /* The GNU C library defines this for functions which it implements
2198     to always fail with ENOSYS.  Some functions are actually named
2199     something starting with __ and the normal name is an alias.  */
2200 #if defined (__stub_connect) || defined (__stub___connect)
2201 choke me
2202 #else
2203 connect();
2204 #endif
2205
2206 ; return 0; }
2207 EOF
2208 if { (eval echo configure:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2209   rm -rf conftest*
2210   eval "ac_cv_func_connect=yes"
2211 else
2212   echo "configure: failed program was:" >&5
2213   cat conftest.$ac_ext >&5
2214   rm -rf conftest*
2215   eval "ac_cv_func_connect=no"
2216 fi
2217 rm -f conftest*
2218 fi
2219
2220 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2221   echo "$ac_t""yes" 1>&6
2222   :
2223 else
2224   echo "$ac_t""no" 1>&6
2225 fi
2226
2227     if test $ac_cv_func_connect = no; then
2228       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2229 echo "configure:2230: checking for connect in -lsocket" >&5
2230 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2232   echo $ac_n "(cached) $ac_c" 1>&6
2233 else
2234   ac_save_LIBS="$LIBS"
2235 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2236 cat > conftest.$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2239 /* Override any gcc2 internal prototype to avoid an error.  */
2240 /* We use char because int might match the return type of a gcc2
2241     builtin and then its argument prototype would still apply.  */
2242 char connect();
2243
2244 int main() {
2245 connect()
2246 ; return 0; }
2247 EOF
2248 if { (eval echo configure:2249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2249   rm -rf conftest*
2250   eval "ac_cv_lib_$ac_lib_var=yes"
2251 else
2252   echo "configure: failed program was:" >&5
2253   cat conftest.$ac_ext >&5
2254   rm -rf conftest*
2255   eval "ac_cv_lib_$ac_lib_var=no"
2256 fi
2257 rm -f conftest*
2258 LIBS="$ac_save_LIBS"
2259
2260 fi
2261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2262   echo "$ac_t""yes" 1>&6
2263   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2264 else
2265   echo "$ac_t""no" 1>&6
2266 fi
2267
2268     fi
2269
2270     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2271     echo $ac_n "checking for remove""... $ac_c" 1>&6
2272 echo "configure:2273: checking for remove" >&5
2273 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2274   echo $ac_n "(cached) $ac_c" 1>&6
2275 else
2276   cat > conftest.$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2279 /* System header to define __stub macros and hopefully few prototypes,
2280     which can conflict with char remove(); below.  */
2281 #include <assert.h>
2282 /* Override any gcc2 internal prototype to avoid an error.  */
2283 /* We use char because int might match the return type of a gcc2
2284     builtin and then its argument prototype would still apply.  */
2285 char remove();
2286
2287 int main() {
2288
2289 /* The GNU C library defines this for functions which it implements
2290     to always fail with ENOSYS.  Some functions are actually named
2291     something starting with __ and the normal name is an alias.  */
2292 #if defined (__stub_remove) || defined (__stub___remove)
2293 choke me
2294 #else
2295 remove();
2296 #endif
2297
2298 ; return 0; }
2299 EOF
2300 if { (eval echo configure:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2301   rm -rf conftest*
2302   eval "ac_cv_func_remove=yes"
2303 else
2304   echo "configure: failed program was:" >&5
2305   cat conftest.$ac_ext >&5
2306   rm -rf conftest*
2307   eval "ac_cv_func_remove=no"
2308 fi
2309 rm -f conftest*
2310 fi
2311
2312 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2313   echo "$ac_t""yes" 1>&6
2314   :
2315 else
2316   echo "$ac_t""no" 1>&6
2317 fi
2318
2319     if test $ac_cv_func_remove = no; then
2320       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2321 echo "configure:2322: checking for remove in -lposix" >&5
2322 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2324   echo $ac_n "(cached) $ac_c" 1>&6
2325 else
2326   ac_save_LIBS="$LIBS"
2327 LIBS="-lposix  $LIBS"
2328 cat > conftest.$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2331 /* Override any gcc2 internal prototype to avoid an error.  */
2332 /* We use char because int might match the return type of a gcc2
2333     builtin and then its argument prototype would still apply.  */
2334 char remove();
2335
2336 int main() {
2337 remove()
2338 ; return 0; }
2339 EOF
2340 if { (eval echo configure:2341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2341   rm -rf conftest*
2342   eval "ac_cv_lib_$ac_lib_var=yes"
2343 else
2344   echo "configure: failed program was:" >&5
2345   cat conftest.$ac_ext >&5
2346   rm -rf conftest*
2347   eval "ac_cv_lib_$ac_lib_var=no"
2348 fi
2349 rm -f conftest*
2350 LIBS="$ac_save_LIBS"
2351
2352 fi
2353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2354   echo "$ac_t""yes" 1>&6
2355   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2356 else
2357   echo "$ac_t""no" 1>&6
2358 fi
2359
2360     fi
2361
2362     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2363     echo $ac_n "checking for shmat""... $ac_c" 1>&6
2364 echo "configure:2365: checking for shmat" >&5
2365 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2366   echo $ac_n "(cached) $ac_c" 1>&6
2367 else
2368   cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2371 /* System header to define __stub macros and hopefully few prototypes,
2372     which can conflict with char shmat(); below.  */
2373 #include <assert.h>
2374 /* Override any gcc2 internal prototype to avoid an error.  */
2375 /* We use char because int might match the return type of a gcc2
2376     builtin and then its argument prototype would still apply.  */
2377 char shmat();
2378
2379 int main() {
2380
2381 /* The GNU C library defines this for functions which it implements
2382     to always fail with ENOSYS.  Some functions are actually named
2383     something starting with __ and the normal name is an alias.  */
2384 #if defined (__stub_shmat) || defined (__stub___shmat)
2385 choke me
2386 #else
2387 shmat();
2388 #endif
2389
2390 ; return 0; }
2391 EOF
2392 if { (eval echo configure:2393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2393   rm -rf conftest*
2394   eval "ac_cv_func_shmat=yes"
2395 else
2396   echo "configure: failed program was:" >&5
2397   cat conftest.$ac_ext >&5
2398   rm -rf conftest*
2399   eval "ac_cv_func_shmat=no"
2400 fi
2401 rm -f conftest*
2402 fi
2403
2404 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2405   echo "$ac_t""yes" 1>&6
2406   :
2407 else
2408   echo "$ac_t""no" 1>&6
2409 fi
2410
2411     if test $ac_cv_func_shmat = no; then
2412       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2413 echo "configure:2414: checking for shmat in -lipc" >&5
2414 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2416   echo $ac_n "(cached) $ac_c" 1>&6
2417 else
2418   ac_save_LIBS="$LIBS"
2419 LIBS="-lipc  $LIBS"
2420 cat > conftest.$ac_ext <<EOF
2421 #line 2422 "configure"
2422 #include "confdefs.h"
2423 /* Override any gcc2 internal prototype to avoid an error.  */
2424 /* We use char because int might match the return type of a gcc2
2425     builtin and then its argument prototype would still apply.  */
2426 char shmat();
2427
2428 int main() {
2429 shmat()
2430 ; return 0; }
2431 EOF
2432 if { (eval echo configure:2433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2433   rm -rf conftest*
2434   eval "ac_cv_lib_$ac_lib_var=yes"
2435 else
2436   echo "configure: failed program was:" >&5
2437   cat conftest.$ac_ext >&5
2438   rm -rf conftest*
2439   eval "ac_cv_lib_$ac_lib_var=no"
2440 fi
2441 rm -f conftest*
2442 LIBS="$ac_save_LIBS"
2443
2444 fi
2445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2446   echo "$ac_t""yes" 1>&6
2447   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2448 else
2449   echo "$ac_t""no" 1>&6
2450 fi
2451
2452     fi
2453   fi
2454
2455   # Check for libraries that X11R6 Xt/Xaw programs need.
2456   ac_save_LDFLAGS="$LDFLAGS"
2457   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2458   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2459   # check for ICE first), but we must link in the order -lSM -lICE or
2460   # we get undefined symbols.  So assume we have SM if we have ICE.
2461   # These have to be linked with before -lX11, unlike the other
2462   # libraries we check for below, so use a different variable.
2463   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2464   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2465 echo "configure:2466: checking for IceConnectionNumber in -lICE" >&5
2466 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2468   echo $ac_n "(cached) $ac_c" 1>&6
2469 else
2470   ac_save_LIBS="$LIBS"
2471 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 /* Override any gcc2 internal prototype to avoid an error.  */
2476 /* We use char because int might match the return type of a gcc2
2477     builtin and then its argument prototype would still apply.  */
2478 char IceConnectionNumber();
2479
2480 int main() {
2481 IceConnectionNumber()
2482 ; return 0; }
2483 EOF
2484 if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2485   rm -rf conftest*
2486   eval "ac_cv_lib_$ac_lib_var=yes"
2487 else
2488   echo "configure: failed program was:" >&5
2489   cat conftest.$ac_ext >&5
2490   rm -rf conftest*
2491   eval "ac_cv_lib_$ac_lib_var=no"
2492 fi
2493 rm -f conftest*
2494 LIBS="$ac_save_LIBS"
2495
2496 fi
2497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2498   echo "$ac_t""yes" 1>&6
2499   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2500 else
2501   echo "$ac_t""no" 1>&6
2502 fi
2503
2504   LDFLAGS="$ac_save_LDFLAGS"
2505
2506 fi
2507
2508
2509 XML_CFLAGS=`$XML_CONFIG --cflags`
2510 XML_LFLAGS=`$XML_CONFIG --libs`
2511
2512 LIBS="$LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
2513 LDFLAGS="$LDFLAGS -L/usr/local/lib $XML_LFLAGS"
2514 CFLAGS="$CFLAGS $X_CFLAGS $XML_CFLAGS"
2515 CXXFLAGS="$CXXFLAGS $X_CFLAGS $XML_CFLAGS"
2516
2517 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
2518 echo "configure:2519: checking for XOpenDisplay in -lX11" >&5
2519 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
2520 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2521   echo $ac_n "(cached) $ac_c" 1>&6
2522 else
2523   ac_save_LIBS="$LIBS"
2524 LIBS="-lX11  $LIBS"
2525 cat > conftest.$ac_ext <<EOF
2526 #line 2527 "configure"
2527 #include "confdefs.h"
2528 /* Override any gcc2 internal prototype to avoid an error.  */
2529 /* We use char because int might match the return type of a gcc2
2530     builtin and then its argument prototype would still apply.  */
2531 char XOpenDisplay();
2532
2533 int main() {
2534 XOpenDisplay()
2535 ; return 0; }
2536 EOF
2537 if { (eval echo configure:2538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2538   rm -rf conftest*
2539   eval "ac_cv_lib_$ac_lib_var=yes"
2540 else
2541   echo "configure: failed program was:" >&5
2542   cat conftest.$ac_ext >&5
2543   rm -rf conftest*
2544   eval "ac_cv_lib_$ac_lib_var=no"
2545 fi
2546 rm -f conftest*
2547 LIBS="$ac_save_LIBS"
2548
2549 fi
2550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2551   echo "$ac_t""yes" 1>&6
2552     ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2553     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2554   cat >> confdefs.h <<EOF
2555 #define $ac_tr_lib 1
2556 EOF
2557
2558   LIBS="-lX11 $LIBS"
2559
2560 else
2561   echo "$ac_t""no" 1>&6
2562 fi
2563
2564 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2565 echo "configure:2566: checking for XpmCreatePixmapFromData in -lXpm" >&5
2566 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2568   echo $ac_n "(cached) $ac_c" 1>&6
2569 else
2570   ac_save_LIBS="$LIBS"
2571 LIBS="-lXpm  $LIBS"
2572 cat > conftest.$ac_ext <<EOF
2573 #line 2574 "configure"
2574 #include "confdefs.h"
2575 /* Override any gcc2 internal prototype to avoid an error.  */
2576 /* We use char because int might match the return type of a gcc2
2577     builtin and then its argument prototype would still apply.  */
2578 char XpmCreatePixmapFromData();
2579
2580 int main() {
2581 XpmCreatePixmapFromData()
2582 ; return 0; }
2583 EOF
2584 if { (eval echo configure:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2585   rm -rf conftest*
2586   eval "ac_cv_lib_$ac_lib_var=yes"
2587 else
2588   echo "configure: failed program was:" >&5
2589   cat conftest.$ac_ext >&5
2590   rm -rf conftest*
2591   eval "ac_cv_lib_$ac_lib_var=no"
2592 fi
2593 rm -f conftest*
2594 LIBS="$ac_save_LIBS"
2595
2596 fi
2597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2598   echo "$ac_t""yes" 1>&6
2599     ac_tr_lib=HAVE_LIB`echo Xpm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2600     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2601   cat >> confdefs.h <<EOF
2602 #define $ac_tr_lib 1
2603 EOF
2604
2605   LIBS="-lXpm $LIBS"
2606
2607 else
2608   echo "$ac_t""no" 1>&6
2609 fi
2610
2611 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2612 echo "configure:2613: checking for pthread_create in -lpthread" >&5
2613 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2615   echo $ac_n "(cached) $ac_c" 1>&6
2616 else
2617   ac_save_LIBS="$LIBS"
2618 LIBS="-lpthread  $LIBS"
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2622 /* Override any gcc2 internal prototype to avoid an error.  */
2623 /* We use char because int might match the return type of a gcc2
2624     builtin and then its argument prototype would still apply.  */
2625 char pthread_create();
2626
2627 int main() {
2628 pthread_create()
2629 ; return 0; }
2630 EOF
2631 if { (eval echo configure:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2632   rm -rf conftest*
2633   eval "ac_cv_lib_$ac_lib_var=yes"
2634 else
2635   echo "configure: failed program was:" >&5
2636   cat conftest.$ac_ext >&5
2637   rm -rf conftest*
2638   eval "ac_cv_lib_$ac_lib_var=no"
2639 fi
2640 rm -f conftest*
2641 LIBS="$ac_save_LIBS"
2642
2643 fi
2644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2645   echo "$ac_t""yes" 1>&6
2646     ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2647     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2648   cat >> confdefs.h <<EOF
2649 #define $ac_tr_lib 1
2650 EOF
2651
2652   LIBS="-lpthread $LIBS"
2653
2654 else
2655   echo "$ac_t""no" 1>&6
2656 fi
2657
2658 echo $ac_n "checking for xmlParseFile in -lxml""... $ac_c" 1>&6
2659 echo "configure:2660: checking for xmlParseFile in -lxml" >&5
2660 ac_lib_var=`echo xml'_'xmlParseFile | sed 'y%./+-%__p_%'`
2661 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2662   echo $ac_n "(cached) $ac_c" 1>&6
2663 else
2664   ac_save_LIBS="$LIBS"
2665 LIBS="-lxml  $LIBS"
2666 cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2669 /* Override any gcc2 internal prototype to avoid an error.  */
2670 /* We use char because int might match the return type of a gcc2
2671     builtin and then its argument prototype would still apply.  */
2672 char xmlParseFile();
2673
2674 int main() {
2675 xmlParseFile()
2676 ; return 0; }
2677 EOF
2678 if { (eval echo configure:2679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2679   rm -rf conftest*
2680   eval "ac_cv_lib_$ac_lib_var=yes"
2681 else
2682   echo "configure: failed program was:" >&5
2683   cat conftest.$ac_ext >&5
2684   rm -rf conftest*
2685   eval "ac_cv_lib_$ac_lib_var=no"
2686 fi
2687 rm -f conftest*
2688 LIBS="$ac_save_LIBS"
2689
2690 fi
2691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2692   echo "$ac_t""yes" 1>&6
2693     ac_tr_lib=HAVE_LIB`echo xml | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2694     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2695   cat >> confdefs.h <<EOF
2696 #define $ac_tr_lib 1
2697 EOF
2698
2699   LIBS="-lxml $LIBS"
2700
2701 else
2702   echo "$ac_t""no" 1>&6
2703 fi
2704
2705
2706 ac_header_dirent=no
2707 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2708 do
2709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2710 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_hdr that defines DIR" >&5
2712 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2713   echo $ac_n "(cached) $ac_c" 1>&6
2714 else
2715   cat > conftest.$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2718 #include <sys/types.h>
2719 #include <$ac_hdr>
2720 int main() {
2721 DIR *dirp = 0;
2722 ; return 0; }
2723 EOF
2724 if { (eval echo configure:2725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2725   rm -rf conftest*
2726   eval "ac_cv_header_dirent_$ac_safe=yes"
2727 else
2728   echo "configure: failed program was:" >&5
2729   cat conftest.$ac_ext >&5
2730   rm -rf conftest*
2731   eval "ac_cv_header_dirent_$ac_safe=no"
2732 fi
2733 rm -f conftest*
2734 fi
2735 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2736   echo "$ac_t""yes" 1>&6
2737     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2738   cat >> confdefs.h <<EOF
2739 #define $ac_tr_hdr 1
2740 EOF
2741  ac_header_dirent=$ac_hdr; break
2742 else
2743   echo "$ac_t""no" 1>&6
2744 fi
2745 done
2746 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2747 if test $ac_header_dirent = dirent.h; then
2748 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2749 echo "configure:2750: checking for opendir in -ldir" >&5
2750 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2752   echo $ac_n "(cached) $ac_c" 1>&6
2753 else
2754   ac_save_LIBS="$LIBS"
2755 LIBS="-ldir  $LIBS"
2756 cat > conftest.$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2759 /* Override any gcc2 internal prototype to avoid an error.  */
2760 /* We use char because int might match the return type of a gcc2
2761     builtin and then its argument prototype would still apply.  */
2762 char opendir();
2763
2764 int main() {
2765 opendir()
2766 ; return 0; }
2767 EOF
2768 if { (eval echo configure:2769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2769   rm -rf conftest*
2770   eval "ac_cv_lib_$ac_lib_var=yes"
2771 else
2772   echo "configure: failed program was:" >&5
2773   cat conftest.$ac_ext >&5
2774   rm -rf conftest*
2775   eval "ac_cv_lib_$ac_lib_var=no"
2776 fi
2777 rm -f conftest*
2778 LIBS="$ac_save_LIBS"
2779
2780 fi
2781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2782   echo "$ac_t""yes" 1>&6
2783   LIBS="$LIBS -ldir"
2784 else
2785   echo "$ac_t""no" 1>&6
2786 fi
2787
2788 else
2789 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2790 echo "configure:2791: checking for opendir in -lx" >&5
2791 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2793   echo $ac_n "(cached) $ac_c" 1>&6
2794 else
2795   ac_save_LIBS="$LIBS"
2796 LIBS="-lx  $LIBS"
2797 cat > conftest.$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2800 /* Override any gcc2 internal prototype to avoid an error.  */
2801 /* We use char because int might match the return type of a gcc2
2802     builtin and then its argument prototype would still apply.  */
2803 char opendir();
2804
2805 int main() {
2806 opendir()
2807 ; return 0; }
2808 EOF
2809 if { (eval echo configure:2810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2810   rm -rf conftest*
2811   eval "ac_cv_lib_$ac_lib_var=yes"
2812 else
2813   echo "configure: failed program was:" >&5
2814   cat conftest.$ac_ext >&5
2815   rm -rf conftest*
2816   eval "ac_cv_lib_$ac_lib_var=no"
2817 fi
2818 rm -f conftest*
2819 LIBS="$ac_save_LIBS"
2820
2821 fi
2822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2823   echo "$ac_t""yes" 1>&6
2824   LIBS="$LIBS -lx"
2825 else
2826   echo "$ac_t""no" 1>&6
2827 fi
2828
2829 fi
2830
2831 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2832 echo "configure:2833: checking for ANSI C header files" >&5
2833 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2834   echo $ac_n "(cached) $ac_c" 1>&6
2835 else
2836   cat > conftest.$ac_ext <<EOF
2837 #line 2838 "configure"
2838 #include "confdefs.h"
2839 #include <stdlib.h>
2840 #include <stdarg.h>
2841 #include <string.h>
2842 #include <float.h>
2843 EOF
2844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2845 { (eval echo configure:2846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2847 if test -z "$ac_err"; then
2848   rm -rf conftest*
2849   ac_cv_header_stdc=yes
2850 else
2851   echo "$ac_err" >&5
2852   echo "configure: failed program was:" >&5
2853   cat conftest.$ac_ext >&5
2854   rm -rf conftest*
2855   ac_cv_header_stdc=no
2856 fi
2857 rm -f conftest*
2858
2859 if test $ac_cv_header_stdc = yes; then
2860   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2861 cat > conftest.$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2864 #include <string.h>
2865 EOF
2866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2867   egrep "memchr" >/dev/null 2>&1; then
2868   :
2869 else
2870   rm -rf conftest*
2871   ac_cv_header_stdc=no
2872 fi
2873 rm -f conftest*
2874
2875 fi
2876
2877 if test $ac_cv_header_stdc = yes; then
2878   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2879 cat > conftest.$ac_ext <<EOF
2880 #line 2881 "configure"
2881 #include "confdefs.h"
2882 #include <stdlib.h>
2883 EOF
2884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2885   egrep "free" >/dev/null 2>&1; then
2886   :
2887 else
2888   rm -rf conftest*
2889   ac_cv_header_stdc=no
2890 fi
2891 rm -f conftest*
2892
2893 fi
2894
2895 if test $ac_cv_header_stdc = yes; then
2896   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2897 if test "$cross_compiling" = yes; then
2898   :
2899 else
2900   cat > conftest.$ac_ext <<EOF
2901 #line 2902 "configure"
2902 #include "confdefs.h"
2903 #include <ctype.h>
2904 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2905 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2906 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2907 int main () { int i; for (i = 0; i < 256; i++)
2908 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2909 exit (0); }
2910
2911 EOF
2912 if { (eval echo configure:2913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2913 then
2914   :
2915 else
2916   echo "configure: failed program was:" >&5
2917   cat conftest.$ac_ext >&5
2918   rm -fr conftest*
2919   ac_cv_header_stdc=no
2920 fi
2921 rm -fr conftest*
2922 fi
2923
2924 fi
2925 fi
2926
2927 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2928 if test $ac_cv_header_stdc = yes; then
2929   cat >> confdefs.h <<\EOF
2930 #define STDC_HEADERS 1
2931 EOF
2932
2933 fi
2934
2935 for ac_hdr in unistd.h
2936 do
2937 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2939 echo "configure:2940: checking for $ac_hdr" >&5
2940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2941   echo $ac_n "(cached) $ac_c" 1>&6
2942 else
2943   cat > conftest.$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2946 #include <$ac_hdr>
2947 EOF
2948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2949 { (eval echo configure:2950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2951 if test -z "$ac_err"; then
2952   rm -rf conftest*
2953   eval "ac_cv_header_$ac_safe=yes"
2954 else
2955   echo "$ac_err" >&5
2956   echo "configure: failed program was:" >&5
2957   cat conftest.$ac_ext >&5
2958   rm -rf conftest*
2959   eval "ac_cv_header_$ac_safe=no"
2960 fi
2961 rm -f conftest*
2962 fi
2963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2964   echo "$ac_t""yes" 1>&6
2965     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2966   cat >> confdefs.h <<EOF
2967 #define $ac_tr_hdr 1
2968 EOF
2969  
2970 else
2971   echo "$ac_t""no" 1>&6
2972 fi
2973 done
2974
2975
2976 echo $ac_n "checking for working const""... $ac_c" 1>&6
2977 echo "configure:2978: checking for working const" >&5
2978 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2979   echo $ac_n "(cached) $ac_c" 1>&6
2980 else
2981   cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2984
2985 int main() {
2986
2987 /* Ultrix mips cc rejects this.  */
2988 typedef int charset[2]; const charset x;
2989 /* SunOS 4.1.1 cc rejects this.  */
2990 char const *const *ccp;
2991 char **p;
2992 /* NEC SVR4.0.2 mips cc rejects this.  */
2993 struct point {int x, y;};
2994 static struct point const zero = {0,0};
2995 /* AIX XL C 1.02.0.0 rejects this.
2996    It does not let you subtract one const X* pointer from another in an arm
2997    of an if-expression whose if-part is not a constant expression */
2998 const char *g = "string";
2999 ccp = &g + (g ? g-g : 0);
3000 /* HPUX 7.0 cc rejects these. */
3001 ++ccp;
3002 p = (char**) ccp;
3003 ccp = (char const *const *) p;
3004 { /* SCO 3.2v4 cc rejects this.  */
3005   char *t;
3006   char const *s = 0 ? (char *) 0 : (char const *) 0;
3007
3008   *t++ = 0;
3009 }
3010 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3011   int x[] = {25, 17};
3012   const int *foo = &x[0];
3013   ++foo;
3014 }
3015 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3016   typedef const int *iptr;
3017   iptr p = 0;
3018   ++p;
3019 }
3020 { /* AIX XL C 1.02.0.0 rejects this saying
3021      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3022   struct s { int j; const int *ap[3]; };
3023   struct s *b; b->j = 5;
3024 }
3025 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3026   const int foo = 10;
3027 }
3028
3029 ; return 0; }
3030 EOF
3031 if { (eval echo configure:3032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3032   rm -rf conftest*
3033   ac_cv_c_const=yes
3034 else
3035   echo "configure: failed program was:" >&5
3036   cat conftest.$ac_ext >&5
3037   rm -rf conftest*
3038   ac_cv_c_const=no
3039 fi
3040 rm -f conftest*
3041 fi
3042
3043 echo "$ac_t""$ac_cv_c_const" 1>&6
3044 if test $ac_cv_c_const = no; then
3045   cat >> confdefs.h <<\EOF
3046 #define const 
3047 EOF
3048
3049 fi
3050
3051
3052 for ac_func in strtod strtol strtoul
3053 do
3054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3055 echo "configure:3056: checking for $ac_func" >&5
3056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3057   echo $ac_n "(cached) $ac_c" 1>&6
3058 else
3059   cat > conftest.$ac_ext <<EOF
3060 #line 3061 "configure"
3061 #include "confdefs.h"
3062 /* System header to define __stub macros and hopefully few prototypes,
3063     which can conflict with char $ac_func(); below.  */
3064 #include <assert.h>
3065 /* Override any gcc2 internal prototype to avoid an error.  */
3066 /* We use char because int might match the return type of a gcc2
3067     builtin and then its argument prototype would still apply.  */
3068 char $ac_func();
3069
3070 int main() {
3071
3072 /* The GNU C library defines this for functions which it implements
3073     to always fail with ENOSYS.  Some functions are actually named
3074     something starting with __ and the normal name is an alias.  */
3075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3076 choke me
3077 #else
3078 $ac_func();
3079 #endif
3080
3081 ; return 0; }
3082 EOF
3083 if { (eval echo configure:3084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3084   rm -rf conftest*
3085   eval "ac_cv_func_$ac_func=yes"
3086 else
3087   echo "configure: failed program was:" >&5
3088   cat conftest.$ac_ext >&5
3089   rm -rf conftest*
3090   eval "ac_cv_func_$ac_func=no"
3091 fi
3092 rm -f conftest*
3093 fi
3094
3095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3096   echo "$ac_t""yes" 1>&6
3097     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3098   cat >> confdefs.h <<EOF
3099 #define $ac_tr_func 1
3100 EOF
3101  
3102 else
3103   echo "$ac_t""no" 1>&6
3104 fi
3105 done
3106
3107
3108 trap '' 1 2 15
3109 cat > confcache <<\EOF
3110 # This file is a shell script that caches the results of configure
3111 # tests run on this system so they can be shared between configure
3112 # scripts and configure runs.  It is not useful on other systems.
3113 # If it contains results you don't want to keep, you may remove or edit it.
3114 #
3115 # By default, configure uses ./config.cache as the cache file,
3116 # creating it if it does not exist already.  You can give configure
3117 # the --cache-file=FILE option to use a different cache file; that is
3118 # what configure does when it calls configure scripts in
3119 # subdirectories, so they share the cache.
3120 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3121 # config.status only pays attention to the cache file if you give it the
3122 # --recheck option to rerun configure.
3123 #
3124 EOF
3125 # The following way of writing the cache mishandles newlines in values,
3126 # but we know of no workaround that is simple, portable, and efficient.
3127 # So, don't put newlines in cache variables' values.
3128 # Ultrix sh set writes to stderr and can't be redirected directly,
3129 # and sets the high bit in the cache file unless we assign to the vars.
3130 (set) 2>&1 |
3131   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3132   *ac_space=\ *)
3133     # `set' does not quote correctly, so add quotes (double-quote substitution
3134     # turns \\\\ into \\, and sed turns \\ into \).
3135     sed -n \
3136       -e "s/'/'\\\\''/g" \
3137       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3138     ;;
3139   *)
3140     # `set' quotes correctly as required by POSIX, so do not add quotes.
3141     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3142     ;;
3143   esac >> confcache
3144 if cmp -s $cache_file confcache; then
3145   :
3146 else
3147   if test -w $cache_file; then
3148     echo "updating cache $cache_file"
3149     cat confcache > $cache_file
3150   else
3151     echo "not updating unwritable cache $cache_file"
3152   fi
3153 fi
3154 rm -f confcache
3155
3156 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3157
3158 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3159 # Let make expand exec_prefix.
3160 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3161
3162 # Any assignment to VPATH causes Sun make to only execute
3163 # the first set of double-colon rules, so remove it if not needed.
3164 # If there is a colon in the path, we need to keep it.
3165 if test "x$srcdir" = x.; then
3166   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3167 fi
3168
3169 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3170
3171 # Transform confdefs.h into DEFS.
3172 # Protect against shell expansion while executing Makefile rules.
3173 # Protect against Makefile macro expansion.
3174 cat > conftest.defs <<\EOF
3175 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3176 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
3177 s%\[%\\&%g
3178 s%\]%\\&%g
3179 s%\$%$$%g
3180 EOF
3181 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3182 rm -f conftest.defs
3183
3184
3185 # Without the "./", some shells look in PATH for config.status.
3186 : ${CONFIG_STATUS=./config.status}
3187
3188 echo creating $CONFIG_STATUS
3189 rm -f $CONFIG_STATUS
3190 cat > $CONFIG_STATUS <<EOF
3191 #! /bin/sh
3192 # Generated automatically by configure.
3193 # Run this file to recreate the current configuration.
3194 # This directory was configured as follows,
3195 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3196 #
3197 # $0 $ac_configure_args
3198 #
3199 # Compiler output produced by configure, useful for debugging
3200 # configure, is in ./config.log if it exists.
3201
3202 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3203 for ac_option
3204 do
3205   case "\$ac_option" in
3206   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3207     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3208     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3209   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3210     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3211     exit 0 ;;
3212   -help | --help | --hel | --he | --h)
3213     echo "\$ac_cs_usage"; exit 0 ;;
3214   *) echo "\$ac_cs_usage"; exit 1 ;;
3215   esac
3216 done
3217
3218 ac_given_srcdir=$srcdir
3219 ac_given_INSTALL="$INSTALL"
3220
3221 trap 'rm -fr `echo "Makefile src/Makefile demos/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3222 EOF
3223 cat >> $CONFIG_STATUS <<EOF
3224
3225 # Protect against being on the right side of a sed subst in config.status.
3226 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3227  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3228 $ac_vpsub
3229 $extrasub
3230 s%@SHELL@%$SHELL%g
3231 s%@CFLAGS@%$CFLAGS%g
3232 s%@CPPFLAGS@%$CPPFLAGS%g
3233 s%@CXXFLAGS@%$CXXFLAGS%g
3234 s%@FFLAGS@%$FFLAGS%g
3235 s%@DEFS@%$DEFS%g
3236 s%@LDFLAGS@%$LDFLAGS%g
3237 s%@LIBS@%$LIBS%g
3238 s%@exec_prefix@%$exec_prefix%g
3239 s%@prefix@%$prefix%g
3240 s%@program_transform_name@%$program_transform_name%g
3241 s%@bindir@%$bindir%g
3242 s%@sbindir@%$sbindir%g
3243 s%@libexecdir@%$libexecdir%g
3244 s%@datadir@%$datadir%g
3245 s%@sysconfdir@%$sysconfdir%g
3246 s%@sharedstatedir@%$sharedstatedir%g
3247 s%@localstatedir@%$localstatedir%g
3248 s%@libdir@%$libdir%g
3249 s%@includedir@%$includedir%g
3250 s%@oldincludedir@%$oldincludedir%g
3251 s%@infodir@%$infodir%g
3252 s%@mandir@%$mandir%g
3253 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3254 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3255 s%@INSTALL_DATA@%$INSTALL_DATA%g
3256 s%@PACKAGE@%$PACKAGE%g
3257 s%@VERSION@%$VERSION%g
3258 s%@ACLOCAL@%$ACLOCAL%g
3259 s%@AUTOCONF@%$AUTOCONF%g
3260 s%@AUTOMAKE@%$AUTOMAKE%g
3261 s%@AUTOHEADER@%$AUTOHEADER%g
3262 s%@MAKEINFO@%$MAKEINFO%g
3263 s%@SET_MAKE@%$SET_MAKE%g
3264 s%@CC@%$CC%g
3265 s%@CXX@%$CXX%g
3266 s%@CPP@%$CPP%g
3267 s%@LEX@%$LEX%g
3268 s%@LEXLIB@%$LEXLIB%g
3269 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
3270 s%@LN_S@%$LN_S%g
3271 s%@RANLIB@%$RANLIB%g
3272 s%@YACC@%$YACC%g
3273 s%@AWK@%$AWK%g
3274 s%@XML_CONFIG@%$XML_CONFIG%g
3275 s%@X_CFLAGS@%$X_CFLAGS%g
3276 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3277 s%@X_LIBS@%$X_LIBS%g
3278 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3279
3280 CEOF
3281 EOF
3282
3283 cat >> $CONFIG_STATUS <<\EOF
3284
3285 # Split the substitutions into bite-sized pieces for seds with
3286 # small command number limits, like on Digital OSF/1 and HP-UX.
3287 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3288 ac_file=1 # Number of current file.
3289 ac_beg=1 # First line for current file.
3290 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3291 ac_more_lines=:
3292 ac_sed_cmds=""
3293 while $ac_more_lines; do
3294   if test $ac_beg -gt 1; then
3295     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3296   else
3297     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3298   fi
3299   if test ! -s conftest.s$ac_file; then
3300     ac_more_lines=false
3301     rm -f conftest.s$ac_file
3302   else
3303     if test -z "$ac_sed_cmds"; then
3304       ac_sed_cmds="sed -f conftest.s$ac_file"
3305     else
3306       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3307     fi
3308     ac_file=`expr $ac_file + 1`
3309     ac_beg=$ac_end
3310     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3311   fi
3312 done
3313 if test -z "$ac_sed_cmds"; then
3314   ac_sed_cmds=cat
3315 fi
3316 EOF
3317
3318 cat >> $CONFIG_STATUS <<EOF
3319
3320 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile demos/Makefile"}
3321 EOF
3322 cat >> $CONFIG_STATUS <<\EOF
3323 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3324   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3325   case "$ac_file" in
3326   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3327        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3328   *) ac_file_in="${ac_file}.in" ;;
3329   esac
3330
3331   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3332
3333   # Remove last slash and all that follows it.  Not all systems have dirname.
3334   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3335   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3336     # The file is in a subdirectory.
3337     test ! -d "$ac_dir" && mkdir "$ac_dir"
3338     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3339     # A "../" for each directory in $ac_dir_suffix.
3340     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3341   else
3342     ac_dir_suffix= ac_dots=
3343   fi
3344
3345   case "$ac_given_srcdir" in
3346   .)  srcdir=.
3347       if test -z "$ac_dots"; then top_srcdir=.
3348       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3349   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3350   *) # Relative path.
3351     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3352     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3353   esac
3354
3355   case "$ac_given_INSTALL" in
3356   [/$]*) INSTALL="$ac_given_INSTALL" ;;
3357   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3358   esac
3359
3360   echo creating "$ac_file"
3361   rm -f "$ac_file"
3362   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3363   case "$ac_file" in
3364   *Makefile*) ac_comsub="1i\\
3365 # $configure_input" ;;
3366   *) ac_comsub= ;;
3367   esac
3368
3369   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3370   sed -e "$ac_comsub
3371 s%@configure_input@%$configure_input%g
3372 s%@srcdir@%$srcdir%g
3373 s%@top_srcdir@%$top_srcdir%g
3374 s%@INSTALL@%$INSTALL%g
3375 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3376 fi; done
3377 rm -f conftest.s*
3378
3379 EOF
3380 cat >> $CONFIG_STATUS <<EOF
3381
3382 EOF
3383 cat >> $CONFIG_STATUS <<\EOF
3384
3385 exit 0
3386 EOF
3387 chmod +x $CONFIG_STATUS
3388 rm -fr confdefs* $ac_clean_files
3389 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3390