Prepared for release 0.0.6
[gnucomo.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/gcm_input/message.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=GNUCOMO
695
696 VERSION=0.0.6
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 "xml2-config", so it can be a program name with args.
1638 set dummy xml2-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 test $XML_CONFIG = "no" 
1675 then
1676    echo "XML library not found (see http://xmlsoft.org/)."
1677    exit 1;
1678 fi
1679
1680
1681 # If we find X, set shell vars x_includes and x_libraries to the
1682 # paths, otherwise set no_x=yes.
1683 # Uses ac_ vars as temps to allow command line to override cache and checks.
1684 # --without-x overrides everything else, but does not touch the cache.
1685 echo $ac_n "checking for X""... $ac_c" 1>&6
1686 echo "configure:1687: checking for X" >&5
1687
1688 # Check whether --with-x or --without-x was given.
1689 if test "${with_x+set}" = set; then
1690   withval="$with_x"
1691   :
1692 fi
1693
1694 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1695 if test "x$with_x" = xno; then
1696   # The user explicitly disabled X.
1697   have_x=disabled
1698 else
1699   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1700     # Both variables are already set.
1701     have_x=yes
1702   else
1703 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1704   echo $ac_n "(cached) $ac_c" 1>&6
1705 else
1706   # One or both of the vars are not set, and there is no cached value.
1707 ac_x_includes=NO ac_x_libraries=NO
1708 rm -fr conftestdir
1709 if mkdir conftestdir; then
1710   cd conftestdir
1711   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1712   cat > Imakefile <<'EOF'
1713 acfindx:
1714         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1715 EOF
1716   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1717     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1718     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1719     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1720     for ac_extension in a so sl; do
1721       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1722         test -f $ac_im_libdir/libX11.$ac_extension; then
1723         ac_im_usrlibdir=$ac_im_libdir; break
1724       fi
1725     done
1726     # Screen out bogus values from the imake configuration.  They are
1727     # bogus both because they are the default anyway, and because
1728     # using them would break gcc on systems where it needs fixed includes.
1729     case "$ac_im_incroot" in
1730         /usr/include) ;;
1731         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1732     esac
1733     case "$ac_im_usrlibdir" in
1734         /usr/lib | /lib) ;;
1735         *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1736     esac
1737   fi
1738   cd ..
1739   rm -fr conftestdir
1740 fi
1741
1742 if test "$ac_x_includes" = NO; then
1743   # Guess where to find include files, by looking for this one X11 .h file.
1744   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1745
1746   # First, try using that file with no special directory specified.
1747 cat > conftest.$ac_ext <<EOF
1748 #line 1749 "configure"
1749 #include "confdefs.h"
1750 #include <$x_direct_test_include>
1751 EOF
1752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1753 { (eval echo configure:1754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1755 if test -z "$ac_err"; then
1756   rm -rf conftest*
1757   # We can compile using X headers with no special include directory.
1758 ac_x_includes=
1759 else
1760   echo "$ac_err" >&5
1761   echo "configure: failed program was:" >&5
1762   cat conftest.$ac_ext >&5
1763   rm -rf conftest*
1764   # Look for the header file in a standard set of common directories.
1765 # Check X11 before X11Rn because it is often a symlink to the current release.
1766   for ac_dir in               \
1767     /usr/X11/include          \
1768     /usr/X11R6/include        \
1769     /usr/X11R5/include        \
1770     /usr/X11R4/include        \
1771                               \
1772     /usr/include/X11          \
1773     /usr/include/X11R6        \
1774     /usr/include/X11R5        \
1775     /usr/include/X11R4        \
1776                               \
1777     /usr/local/X11/include    \
1778     /usr/local/X11R6/include  \
1779     /usr/local/X11R5/include  \
1780     /usr/local/X11R4/include  \
1781                               \
1782     /usr/local/include/X11    \
1783     /usr/local/include/X11R6  \
1784     /usr/local/include/X11R5  \
1785     /usr/local/include/X11R4  \
1786                               \
1787     /usr/X386/include         \
1788     /usr/x386/include         \
1789     /usr/XFree86/include/X11  \
1790                               \
1791     /usr/include              \
1792     /usr/local/include        \
1793     /usr/unsupported/include  \
1794     /usr/athena/include       \
1795     /usr/local/x11r5/include  \
1796     /usr/lpp/Xamples/include  \
1797                               \
1798     /usr/openwin/include      \
1799     /usr/openwin/share/include \
1800     ; \
1801   do
1802     if test -r "$ac_dir/$x_direct_test_include"; then
1803       ac_x_includes=$ac_dir
1804       break
1805     fi
1806   done
1807 fi
1808 rm -f conftest*
1809 fi # $ac_x_includes = NO
1810
1811 if test "$ac_x_libraries" = NO; then
1812   # Check for the libraries.
1813
1814   test -z "$x_direct_test_library" && x_direct_test_library=Xt
1815   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1816
1817   # See if we find them without any special options.
1818   # Don't add to $LIBS permanently.
1819   ac_save_LIBS="$LIBS"
1820   LIBS="-l$x_direct_test_library $LIBS"
1821 cat > conftest.$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1824
1825 int main() {
1826 ${x_direct_test_function}()
1827 ; return 0; }
1828 EOF
1829 if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1830   rm -rf conftest*
1831   LIBS="$ac_save_LIBS"
1832 # We can link X programs with no special library path.
1833 ac_x_libraries=
1834 else
1835   echo "configure: failed program was:" >&5
1836   cat conftest.$ac_ext >&5
1837   rm -rf conftest*
1838   LIBS="$ac_save_LIBS"
1839 # First see if replacing the include by lib works.
1840 # Check X11 before X11Rn because it is often a symlink to the current release.
1841 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1842     /usr/X11/lib          \
1843     /usr/X11R6/lib        \
1844     /usr/X11R5/lib        \
1845     /usr/X11R4/lib        \
1846                           \
1847     /usr/lib/X11          \
1848     /usr/lib/X11R6        \
1849     /usr/lib/X11R5        \
1850     /usr/lib/X11R4        \
1851                           \
1852     /usr/local/X11/lib    \
1853     /usr/local/X11R6/lib  \
1854     /usr/local/X11R5/lib  \
1855     /usr/local/X11R4/lib  \
1856                           \
1857     /usr/local/lib/X11    \
1858     /usr/local/lib/X11R6  \
1859     /usr/local/lib/X11R5  \
1860     /usr/local/lib/X11R4  \
1861                           \
1862     /usr/X386/lib         \
1863     /usr/x386/lib         \
1864     /usr/XFree86/lib/X11  \
1865                           \
1866     /usr/lib              \
1867     /usr/local/lib        \
1868     /usr/unsupported/lib  \
1869     /usr/athena/lib       \
1870     /usr/local/x11r5/lib  \
1871     /usr/lpp/Xamples/lib  \
1872     /lib/usr/lib/X11      \
1873                           \
1874     /usr/openwin/lib      \
1875     /usr/openwin/share/lib \
1876     ; \
1877 do
1878   for ac_extension in a so sl; do
1879     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1880       ac_x_libraries=$ac_dir
1881       break 2
1882     fi
1883   done
1884 done
1885 fi
1886 rm -f conftest*
1887 fi # $ac_x_libraries = NO
1888
1889 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1890   # Didn't find X anywhere.  Cache the known absence of X.
1891   ac_cv_have_x="have_x=no"
1892 else
1893   # Record where we found X for the cache.
1894   ac_cv_have_x="have_x=yes \
1895                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1896 fi
1897 fi
1898   fi
1899   eval "$ac_cv_have_x"
1900 fi # $with_x != no
1901
1902 if test "$have_x" != yes; then
1903   echo "$ac_t""$have_x" 1>&6
1904   no_x=yes
1905 else
1906   # If each of the values was on the command line, it overrides each guess.
1907   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1908   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1909   # Update the cache value to reflect the command line values.
1910   ac_cv_have_x="have_x=yes \
1911                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1912   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1913 fi
1914
1915 if test "$no_x" = yes; then
1916   # Not all programs may use this symbol, but it does not hurt to define it.
1917   cat >> confdefs.h <<\EOF
1918 #define X_DISPLAY_MISSING 1
1919 EOF
1920
1921   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1922 else
1923   if test -n "$x_includes"; then
1924     X_CFLAGS="$X_CFLAGS -I$x_includes"
1925   fi
1926
1927   # It would also be nice to do this for all -L options, not just this one.
1928   if test -n "$x_libraries"; then
1929     X_LIBS="$X_LIBS -L$x_libraries"
1930     # For Solaris; some versions of Sun CC require a space after -R and
1931     # others require no space.  Words are not sufficient . . . .
1932     case "`(uname -sr) 2>/dev/null`" in
1933     "SunOS 5"*)
1934       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1935 echo "configure:1936: checking whether -R must be followed by a space" >&5
1936       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1937       cat > conftest.$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1940
1941 int main() {
1942
1943 ; return 0; }
1944 EOF
1945 if { (eval echo configure:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1946   rm -rf conftest*
1947   ac_R_nospace=yes
1948 else
1949   echo "configure: failed program was:" >&5
1950   cat conftest.$ac_ext >&5
1951   rm -rf conftest*
1952   ac_R_nospace=no
1953 fi
1954 rm -f conftest*
1955       if test $ac_R_nospace = yes; then
1956         echo "$ac_t""no" 1>&6
1957         X_LIBS="$X_LIBS -R$x_libraries"
1958       else
1959         LIBS="$ac_xsave_LIBS -R $x_libraries"
1960         cat > conftest.$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1963
1964 int main() {
1965
1966 ; return 0; }
1967 EOF
1968 if { (eval echo configure:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1969   rm -rf conftest*
1970   ac_R_space=yes
1971 else
1972   echo "configure: failed program was:" >&5
1973   cat conftest.$ac_ext >&5
1974   rm -rf conftest*
1975   ac_R_space=no
1976 fi
1977 rm -f conftest*
1978         if test $ac_R_space = yes; then
1979           echo "$ac_t""yes" 1>&6
1980           X_LIBS="$X_LIBS -R $x_libraries"
1981         else
1982           echo "$ac_t""neither works" 1>&6
1983         fi
1984       fi
1985       LIBS="$ac_xsave_LIBS"
1986     esac
1987   fi
1988
1989   # Check for system-dependent libraries X programs must link with.
1990   # Do this before checking for the system-independent R6 libraries
1991   # (-lICE), since we may need -lsocket or whatever for X linking.
1992
1993   if test "$ISC" = yes; then
1994     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1995   else
1996     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1997     # libraries were built with DECnet support.  And karl@cs.umb.edu says
1998     # the Alpha needs dnet_stub (dnet does not exist).
1999     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2000 echo "configure:2001: checking for dnet_ntoa in -ldnet" >&5
2001 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2003   echo $ac_n "(cached) $ac_c" 1>&6
2004 else
2005   ac_save_LIBS="$LIBS"
2006 LIBS="-ldnet  $LIBS"
2007 cat > conftest.$ac_ext <<EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2010 /* Override any gcc2 internal prototype to avoid an error.  */
2011 /* We use char because int might match the return type of a gcc2
2012     builtin and then its argument prototype would still apply.  */
2013 char dnet_ntoa();
2014
2015 int main() {
2016 dnet_ntoa()
2017 ; return 0; }
2018 EOF
2019 if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2020   rm -rf conftest*
2021   eval "ac_cv_lib_$ac_lib_var=yes"
2022 else
2023   echo "configure: failed program was:" >&5
2024   cat conftest.$ac_ext >&5
2025   rm -rf conftest*
2026   eval "ac_cv_lib_$ac_lib_var=no"
2027 fi
2028 rm -f conftest*
2029 LIBS="$ac_save_LIBS"
2030
2031 fi
2032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2033   echo "$ac_t""yes" 1>&6
2034   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2035 else
2036   echo "$ac_t""no" 1>&6
2037 fi
2038
2039     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2040       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2041 echo "configure:2042: checking for dnet_ntoa in -ldnet_stub" >&5
2042 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2044   echo $ac_n "(cached) $ac_c" 1>&6
2045 else
2046   ac_save_LIBS="$LIBS"
2047 LIBS="-ldnet_stub  $LIBS"
2048 cat > conftest.$ac_ext <<EOF
2049 #line 2050 "configure"
2050 #include "confdefs.h"
2051 /* Override any gcc2 internal prototype to avoid an error.  */
2052 /* We use char because int might match the return type of a gcc2
2053     builtin and then its argument prototype would still apply.  */
2054 char dnet_ntoa();
2055
2056 int main() {
2057 dnet_ntoa()
2058 ; return 0; }
2059 EOF
2060 if { (eval echo configure:2061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2061   rm -rf conftest*
2062   eval "ac_cv_lib_$ac_lib_var=yes"
2063 else
2064   echo "configure: failed program was:" >&5
2065   cat conftest.$ac_ext >&5
2066   rm -rf conftest*
2067   eval "ac_cv_lib_$ac_lib_var=no"
2068 fi
2069 rm -f conftest*
2070 LIBS="$ac_save_LIBS"
2071
2072 fi
2073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2074   echo "$ac_t""yes" 1>&6
2075   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2076 else
2077   echo "$ac_t""no" 1>&6
2078 fi
2079
2080     fi
2081
2082     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2083     # to get the SysV transport functions.
2084     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2085     # needs -lnsl.
2086     # The nsl library prevents programs from opening the X display
2087     # on Irix 5.2, according to dickey@clark.net.
2088     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2089 echo "configure:2090: checking for gethostbyname" >&5
2090 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2091   echo $ac_n "(cached) $ac_c" 1>&6
2092 else
2093   cat > conftest.$ac_ext <<EOF
2094 #line 2095 "configure"
2095 #include "confdefs.h"
2096 /* System header to define __stub macros and hopefully few prototypes,
2097     which can conflict with char gethostbyname(); below.  */
2098 #include <assert.h>
2099 /* Override any gcc2 internal prototype to avoid an error.  */
2100 /* We use char because int might match the return type of a gcc2
2101     builtin and then its argument prototype would still apply.  */
2102 char gethostbyname();
2103
2104 int main() {
2105
2106 /* The GNU C library defines this for functions which it implements
2107     to always fail with ENOSYS.  Some functions are actually named
2108     something starting with __ and the normal name is an alias.  */
2109 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2110 choke me
2111 #else
2112 gethostbyname();
2113 #endif
2114
2115 ; return 0; }
2116 EOF
2117 if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2118   rm -rf conftest*
2119   eval "ac_cv_func_gethostbyname=yes"
2120 else
2121   echo "configure: failed program was:" >&5
2122   cat conftest.$ac_ext >&5
2123   rm -rf conftest*
2124   eval "ac_cv_func_gethostbyname=no"
2125 fi
2126 rm -f conftest*
2127 fi
2128
2129 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2130   echo "$ac_t""yes" 1>&6
2131   :
2132 else
2133   echo "$ac_t""no" 1>&6
2134 fi
2135
2136     if test $ac_cv_func_gethostbyname = no; then
2137       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2138 echo "configure:2139: checking for gethostbyname in -lnsl" >&5
2139 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2141   echo $ac_n "(cached) $ac_c" 1>&6
2142 else
2143   ac_save_LIBS="$LIBS"
2144 LIBS="-lnsl  $LIBS"
2145 cat > conftest.$ac_ext <<EOF
2146 #line 2147 "configure"
2147 #include "confdefs.h"
2148 /* Override any gcc2 internal prototype to avoid an error.  */
2149 /* We use char because int might match the return type of a gcc2
2150     builtin and then its argument prototype would still apply.  */
2151 char gethostbyname();
2152
2153 int main() {
2154 gethostbyname()
2155 ; return 0; }
2156 EOF
2157 if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2158   rm -rf conftest*
2159   eval "ac_cv_lib_$ac_lib_var=yes"
2160 else
2161   echo "configure: failed program was:" >&5
2162   cat conftest.$ac_ext >&5
2163   rm -rf conftest*
2164   eval "ac_cv_lib_$ac_lib_var=no"
2165 fi
2166 rm -f conftest*
2167 LIBS="$ac_save_LIBS"
2168
2169 fi
2170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2171   echo "$ac_t""yes" 1>&6
2172   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2173 else
2174   echo "$ac_t""no" 1>&6
2175 fi
2176
2177     fi
2178
2179     # lieder@skyler.mavd.honeywell.com says without -lsocket,
2180     # socket/setsockopt and other routines are undefined under SCO ODT
2181     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
2182     # on later versions), says simon@lia.di.epfl.ch: it contains
2183     # gethostby* variants that don't use the nameserver (or something).
2184     # -lsocket must be given before -lnsl if both are needed.
2185     # We assume that if connect needs -lnsl, so does gethostbyname.
2186     echo $ac_n "checking for connect""... $ac_c" 1>&6
2187 echo "configure:2188: checking for connect" >&5
2188 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2189   echo $ac_n "(cached) $ac_c" 1>&6
2190 else
2191   cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2194 /* System header to define __stub macros and hopefully few prototypes,
2195     which can conflict with char connect(); below.  */
2196 #include <assert.h>
2197 /* Override any gcc2 internal prototype to avoid an error.  */
2198 /* We use char because int might match the return type of a gcc2
2199     builtin and then its argument prototype would still apply.  */
2200 char connect();
2201
2202 int main() {
2203
2204 /* The GNU C library defines this for functions which it implements
2205     to always fail with ENOSYS.  Some functions are actually named
2206     something starting with __ and the normal name is an alias.  */
2207 #if defined (__stub_connect) || defined (__stub___connect)
2208 choke me
2209 #else
2210 connect();
2211 #endif
2212
2213 ; return 0; }
2214 EOF
2215 if { (eval echo configure:2216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2216   rm -rf conftest*
2217   eval "ac_cv_func_connect=yes"
2218 else
2219   echo "configure: failed program was:" >&5
2220   cat conftest.$ac_ext >&5
2221   rm -rf conftest*
2222   eval "ac_cv_func_connect=no"
2223 fi
2224 rm -f conftest*
2225 fi
2226
2227 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2228   echo "$ac_t""yes" 1>&6
2229   :
2230 else
2231   echo "$ac_t""no" 1>&6
2232 fi
2233
2234     if test $ac_cv_func_connect = no; then
2235       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2236 echo "configure:2237: checking for connect in -lsocket" >&5
2237 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2239   echo $ac_n "(cached) $ac_c" 1>&6
2240 else
2241   ac_save_LIBS="$LIBS"
2242 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2243 cat > conftest.$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 /* Override any gcc2 internal prototype to avoid an error.  */
2247 /* We use char because int might match the return type of a gcc2
2248     builtin and then its argument prototype would still apply.  */
2249 char connect();
2250
2251 int main() {
2252 connect()
2253 ; return 0; }
2254 EOF
2255 if { (eval echo configure:2256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2256   rm -rf conftest*
2257   eval "ac_cv_lib_$ac_lib_var=yes"
2258 else
2259   echo "configure: failed program was:" >&5
2260   cat conftest.$ac_ext >&5
2261   rm -rf conftest*
2262   eval "ac_cv_lib_$ac_lib_var=no"
2263 fi
2264 rm -f conftest*
2265 LIBS="$ac_save_LIBS"
2266
2267 fi
2268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2269   echo "$ac_t""yes" 1>&6
2270   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2271 else
2272   echo "$ac_t""no" 1>&6
2273 fi
2274
2275     fi
2276
2277     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2278     echo $ac_n "checking for remove""... $ac_c" 1>&6
2279 echo "configure:2280: checking for remove" >&5
2280 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2281   echo $ac_n "(cached) $ac_c" 1>&6
2282 else
2283   cat > conftest.$ac_ext <<EOF
2284 #line 2285 "configure"
2285 #include "confdefs.h"
2286 /* System header to define __stub macros and hopefully few prototypes,
2287     which can conflict with char remove(); below.  */
2288 #include <assert.h>
2289 /* Override any gcc2 internal prototype to avoid an error.  */
2290 /* We use char because int might match the return type of a gcc2
2291     builtin and then its argument prototype would still apply.  */
2292 char remove();
2293
2294 int main() {
2295
2296 /* The GNU C library defines this for functions which it implements
2297     to always fail with ENOSYS.  Some functions are actually named
2298     something starting with __ and the normal name is an alias.  */
2299 #if defined (__stub_remove) || defined (__stub___remove)
2300 choke me
2301 #else
2302 remove();
2303 #endif
2304
2305 ; return 0; }
2306 EOF
2307 if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2308   rm -rf conftest*
2309   eval "ac_cv_func_remove=yes"
2310 else
2311   echo "configure: failed program was:" >&5
2312   cat conftest.$ac_ext >&5
2313   rm -rf conftest*
2314   eval "ac_cv_func_remove=no"
2315 fi
2316 rm -f conftest*
2317 fi
2318
2319 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2320   echo "$ac_t""yes" 1>&6
2321   :
2322 else
2323   echo "$ac_t""no" 1>&6
2324 fi
2325
2326     if test $ac_cv_func_remove = no; then
2327       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2328 echo "configure:2329: checking for remove in -lposix" >&5
2329 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2331   echo $ac_n "(cached) $ac_c" 1>&6
2332 else
2333   ac_save_LIBS="$LIBS"
2334 LIBS="-lposix  $LIBS"
2335 cat > conftest.$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2338 /* Override any gcc2 internal prototype to avoid an error.  */
2339 /* We use char because int might match the return type of a gcc2
2340     builtin and then its argument prototype would still apply.  */
2341 char remove();
2342
2343 int main() {
2344 remove()
2345 ; return 0; }
2346 EOF
2347 if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2348   rm -rf conftest*
2349   eval "ac_cv_lib_$ac_lib_var=yes"
2350 else
2351   echo "configure: failed program was:" >&5
2352   cat conftest.$ac_ext >&5
2353   rm -rf conftest*
2354   eval "ac_cv_lib_$ac_lib_var=no"
2355 fi
2356 rm -f conftest*
2357 LIBS="$ac_save_LIBS"
2358
2359 fi
2360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2361   echo "$ac_t""yes" 1>&6
2362   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2363 else
2364   echo "$ac_t""no" 1>&6
2365 fi
2366
2367     fi
2368
2369     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2370     echo $ac_n "checking for shmat""... $ac_c" 1>&6
2371 echo "configure:2372: checking for shmat" >&5
2372 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2373   echo $ac_n "(cached) $ac_c" 1>&6
2374 else
2375   cat > conftest.$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2378 /* System header to define __stub macros and hopefully few prototypes,
2379     which can conflict with char shmat(); below.  */
2380 #include <assert.h>
2381 /* Override any gcc2 internal prototype to avoid an error.  */
2382 /* We use char because int might match the return type of a gcc2
2383     builtin and then its argument prototype would still apply.  */
2384 char shmat();
2385
2386 int main() {
2387
2388 /* The GNU C library defines this for functions which it implements
2389     to always fail with ENOSYS.  Some functions are actually named
2390     something starting with __ and the normal name is an alias.  */
2391 #if defined (__stub_shmat) || defined (__stub___shmat)
2392 choke me
2393 #else
2394 shmat();
2395 #endif
2396
2397 ; return 0; }
2398 EOF
2399 if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2400   rm -rf conftest*
2401   eval "ac_cv_func_shmat=yes"
2402 else
2403   echo "configure: failed program was:" >&5
2404   cat conftest.$ac_ext >&5
2405   rm -rf conftest*
2406   eval "ac_cv_func_shmat=no"
2407 fi
2408 rm -f conftest*
2409 fi
2410
2411 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2412   echo "$ac_t""yes" 1>&6
2413   :
2414 else
2415   echo "$ac_t""no" 1>&6
2416 fi
2417
2418     if test $ac_cv_func_shmat = no; then
2419       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2420 echo "configure:2421: checking for shmat in -lipc" >&5
2421 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2423   echo $ac_n "(cached) $ac_c" 1>&6
2424 else
2425   ac_save_LIBS="$LIBS"
2426 LIBS="-lipc  $LIBS"
2427 cat > conftest.$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2430 /* Override any gcc2 internal prototype to avoid an error.  */
2431 /* We use char because int might match the return type of a gcc2
2432     builtin and then its argument prototype would still apply.  */
2433 char shmat();
2434
2435 int main() {
2436 shmat()
2437 ; return 0; }
2438 EOF
2439 if { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2440   rm -rf conftest*
2441   eval "ac_cv_lib_$ac_lib_var=yes"
2442 else
2443   echo "configure: failed program was:" >&5
2444   cat conftest.$ac_ext >&5
2445   rm -rf conftest*
2446   eval "ac_cv_lib_$ac_lib_var=no"
2447 fi
2448 rm -f conftest*
2449 LIBS="$ac_save_LIBS"
2450
2451 fi
2452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2453   echo "$ac_t""yes" 1>&6
2454   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2455 else
2456   echo "$ac_t""no" 1>&6
2457 fi
2458
2459     fi
2460   fi
2461
2462   # Check for libraries that X11R6 Xt/Xaw programs need.
2463   ac_save_LDFLAGS="$LDFLAGS"
2464   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2465   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2466   # check for ICE first), but we must link in the order -lSM -lICE or
2467   # we get undefined symbols.  So assume we have SM if we have ICE.
2468   # These have to be linked with before -lX11, unlike the other
2469   # libraries we check for below, so use a different variable.
2470   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2471   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2472 echo "configure:2473: checking for IceConnectionNumber in -lICE" >&5
2473 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2475   echo $ac_n "(cached) $ac_c" 1>&6
2476 else
2477   ac_save_LIBS="$LIBS"
2478 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2479 cat > conftest.$ac_ext <<EOF
2480 #line 2481 "configure"
2481 #include "confdefs.h"
2482 /* Override any gcc2 internal prototype to avoid an error.  */
2483 /* We use char because int might match the return type of a gcc2
2484     builtin and then its argument prototype would still apply.  */
2485 char IceConnectionNumber();
2486
2487 int main() {
2488 IceConnectionNumber()
2489 ; return 0; }
2490 EOF
2491 if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2492   rm -rf conftest*
2493   eval "ac_cv_lib_$ac_lib_var=yes"
2494 else
2495   echo "configure: failed program was:" >&5
2496   cat conftest.$ac_ext >&5
2497   rm -rf conftest*
2498   eval "ac_cv_lib_$ac_lib_var=no"
2499 fi
2500 rm -f conftest*
2501 LIBS="$ac_save_LIBS"
2502
2503 fi
2504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2505   echo "$ac_t""yes" 1>&6
2506   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2507 else
2508   echo "$ac_t""no" 1>&6
2509 fi
2510
2511   LDFLAGS="$ac_save_LDFLAGS"
2512
2513 fi
2514
2515
2516 XML_CFLAGS=`$XML_CONFIG --cflags`
2517 XML_LFLAGS=`$XML_CONFIG --libs`
2518
2519 LIBS="$LIBS -lAXE -lpq++ $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
2520 LDFLAGS="$LDFLAGS -L/usr/local/lib $XML_LFLAGS"
2521 CFLAGS="$CFLAGS $X_CFLAGS $XML_CFLAGS -I/usr/include/postgresql"
2522 CXXFLAGS="$CXXFLAGS $X_CFLAGS $XML_CFLAGS -I/usr/include/postgresql"
2523
2524 echo $ac_n "checking for main in -lAXE""... $ac_c" 1>&6
2525 echo "configure:2526: checking for main in -lAXE" >&5
2526 ac_lib_var=`echo AXE'_'main | sed 'y%./+-%__p_%'`
2527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2528   echo $ac_n "(cached) $ac_c" 1>&6
2529 else
2530   ac_save_LIBS="$LIBS"
2531 LIBS="-lAXE  $LIBS"
2532 cat > conftest.$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2535
2536 int main() {
2537 main()
2538 ; return 0; }
2539 EOF
2540 if { (eval echo configure:2541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2541   rm -rf conftest*
2542   eval "ac_cv_lib_$ac_lib_var=yes"
2543 else
2544   echo "configure: failed program was:" >&5
2545   cat conftest.$ac_ext >&5
2546   rm -rf conftest*
2547   eval "ac_cv_lib_$ac_lib_var=no"
2548 fi
2549 rm -f conftest*
2550 LIBS="$ac_save_LIBS"
2551
2552 fi
2553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2554   echo "$ac_t""yes" 1>&6
2555     ac_tr_lib=HAVE_LIB`echo AXE | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2556     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2557   cat >> confdefs.h <<EOF
2558 #define $ac_tr_lib 1
2559 EOF
2560
2561   LIBS="-lAXE $LIBS"
2562
2563 else
2564   echo "$ac_t""no" 1>&6
2565 fi
2566
2567 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
2568 echo "configure:2569: checking for XOpenDisplay in -lX11" >&5
2569 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
2570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2571   echo $ac_n "(cached) $ac_c" 1>&6
2572 else
2573   ac_save_LIBS="$LIBS"
2574 LIBS="-lX11  $LIBS"
2575 cat > conftest.$ac_ext <<EOF
2576 #line 2577 "configure"
2577 #include "confdefs.h"
2578 /* Override any gcc2 internal prototype to avoid an error.  */
2579 /* We use char because int might match the return type of a gcc2
2580     builtin and then its argument prototype would still apply.  */
2581 char XOpenDisplay();
2582
2583 int main() {
2584 XOpenDisplay()
2585 ; return 0; }
2586 EOF
2587 if { (eval echo configure:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2588   rm -rf conftest*
2589   eval "ac_cv_lib_$ac_lib_var=yes"
2590 else
2591   echo "configure: failed program was:" >&5
2592   cat conftest.$ac_ext >&5
2593   rm -rf conftest*
2594   eval "ac_cv_lib_$ac_lib_var=no"
2595 fi
2596 rm -f conftest*
2597 LIBS="$ac_save_LIBS"
2598
2599 fi
2600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2601   echo "$ac_t""yes" 1>&6
2602     ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2603     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2604   cat >> confdefs.h <<EOF
2605 #define $ac_tr_lib 1
2606 EOF
2607
2608   LIBS="-lX11 $LIBS"
2609
2610 else
2611   echo "$ac_t""no" 1>&6
2612 fi
2613
2614 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2615 echo "configure:2616: checking for XpmCreatePixmapFromData in -lXpm" >&5
2616 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2617 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2618   echo $ac_n "(cached) $ac_c" 1>&6
2619 else
2620   ac_save_LIBS="$LIBS"
2621 LIBS="-lXpm  $LIBS"
2622 cat > conftest.$ac_ext <<EOF
2623 #line 2624 "configure"
2624 #include "confdefs.h"
2625 /* Override any gcc2 internal prototype to avoid an error.  */
2626 /* We use char because int might match the return type of a gcc2
2627     builtin and then its argument prototype would still apply.  */
2628 char XpmCreatePixmapFromData();
2629
2630 int main() {
2631 XpmCreatePixmapFromData()
2632 ; return 0; }
2633 EOF
2634 if { (eval echo configure:2635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2635   rm -rf conftest*
2636   eval "ac_cv_lib_$ac_lib_var=yes"
2637 else
2638   echo "configure: failed program was:" >&5
2639   cat conftest.$ac_ext >&5
2640   rm -rf conftest*
2641   eval "ac_cv_lib_$ac_lib_var=no"
2642 fi
2643 rm -f conftest*
2644 LIBS="$ac_save_LIBS"
2645
2646 fi
2647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2648   echo "$ac_t""yes" 1>&6
2649     ac_tr_lib=HAVE_LIB`echo Xpm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2650     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2651   cat >> confdefs.h <<EOF
2652 #define $ac_tr_lib 1
2653 EOF
2654
2655   LIBS="-lXpm $LIBS"
2656
2657 else
2658   echo "$ac_t""no" 1>&6
2659 fi
2660
2661 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2662 echo "configure:2663: checking for pthread_create in -lpthread" >&5
2663 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2665   echo $ac_n "(cached) $ac_c" 1>&6
2666 else
2667   ac_save_LIBS="$LIBS"
2668 LIBS="-lpthread  $LIBS"
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2672 /* Override any gcc2 internal prototype to avoid an error.  */
2673 /* We use char because int might match the return type of a gcc2
2674     builtin and then its argument prototype would still apply.  */
2675 char pthread_create();
2676
2677 int main() {
2678 pthread_create()
2679 ; return 0; }
2680 EOF
2681 if { (eval echo configure:2682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2682   rm -rf conftest*
2683   eval "ac_cv_lib_$ac_lib_var=yes"
2684 else
2685   echo "configure: failed program was:" >&5
2686   cat conftest.$ac_ext >&5
2687   rm -rf conftest*
2688   eval "ac_cv_lib_$ac_lib_var=no"
2689 fi
2690 rm -f conftest*
2691 LIBS="$ac_save_LIBS"
2692
2693 fi
2694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2695   echo "$ac_t""yes" 1>&6
2696     ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2697     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2698   cat >> confdefs.h <<EOF
2699 #define $ac_tr_lib 1
2700 EOF
2701
2702   LIBS="-lpthread $LIBS"
2703
2704 else
2705   echo "$ac_t""no" 1>&6
2706 fi
2707
2708 echo $ac_n "checking for xmlParseFile in -lxml2""... $ac_c" 1>&6
2709 echo "configure:2710: checking for xmlParseFile in -lxml2" >&5
2710 ac_lib_var=`echo xml2'_'xmlParseFile | sed 'y%./+-%__p_%'`
2711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2712   echo $ac_n "(cached) $ac_c" 1>&6
2713 else
2714   ac_save_LIBS="$LIBS"
2715 LIBS="-lxml2  $LIBS"
2716 cat > conftest.$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2719 /* Override any gcc2 internal prototype to avoid an error.  */
2720 /* We use char because int might match the return type of a gcc2
2721     builtin and then its argument prototype would still apply.  */
2722 char xmlParseFile();
2723
2724 int main() {
2725 xmlParseFile()
2726 ; return 0; }
2727 EOF
2728 if { (eval echo configure:2729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2729   rm -rf conftest*
2730   eval "ac_cv_lib_$ac_lib_var=yes"
2731 else
2732   echo "configure: failed program was:" >&5
2733   cat conftest.$ac_ext >&5
2734   rm -rf conftest*
2735   eval "ac_cv_lib_$ac_lib_var=no"
2736 fi
2737 rm -f conftest*
2738 LIBS="$ac_save_LIBS"
2739
2740 fi
2741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2742   echo "$ac_t""yes" 1>&6
2743     ac_tr_lib=HAVE_LIB`echo xml2 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2744     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2745   cat >> confdefs.h <<EOF
2746 #define $ac_tr_lib 1
2747 EOF
2748
2749   LIBS="-lxml2 $LIBS"
2750
2751 else
2752   echo "$ac_t""no" 1>&6
2753 fi
2754
2755
2756 ac_header_dirent=no
2757 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2758 do
2759 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2760 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2761 echo "configure:2762: checking for $ac_hdr that defines DIR" >&5
2762 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2763   echo $ac_n "(cached) $ac_c" 1>&6
2764 else
2765   cat > conftest.$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2768 #include <sys/types.h>
2769 #include <$ac_hdr>
2770 int main() {
2771 DIR *dirp = 0;
2772 ; return 0; }
2773 EOF
2774 if { (eval echo configure:2775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2775   rm -rf conftest*
2776   eval "ac_cv_header_dirent_$ac_safe=yes"
2777 else
2778   echo "configure: failed program was:" >&5
2779   cat conftest.$ac_ext >&5
2780   rm -rf conftest*
2781   eval "ac_cv_header_dirent_$ac_safe=no"
2782 fi
2783 rm -f conftest*
2784 fi
2785 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2786   echo "$ac_t""yes" 1>&6
2787     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2788   cat >> confdefs.h <<EOF
2789 #define $ac_tr_hdr 1
2790 EOF
2791  ac_header_dirent=$ac_hdr; break
2792 else
2793   echo "$ac_t""no" 1>&6
2794 fi
2795 done
2796 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2797 if test $ac_header_dirent = dirent.h; then
2798 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2799 echo "configure:2800: checking for opendir in -ldir" >&5
2800 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2802   echo $ac_n "(cached) $ac_c" 1>&6
2803 else
2804   ac_save_LIBS="$LIBS"
2805 LIBS="-ldir  $LIBS"
2806 cat > conftest.$ac_ext <<EOF
2807 #line 2808 "configure"
2808 #include "confdefs.h"
2809 /* Override any gcc2 internal prototype to avoid an error.  */
2810 /* We use char because int might match the return type of a gcc2
2811     builtin and then its argument prototype would still apply.  */
2812 char opendir();
2813
2814 int main() {
2815 opendir()
2816 ; return 0; }
2817 EOF
2818 if { (eval echo configure:2819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2819   rm -rf conftest*
2820   eval "ac_cv_lib_$ac_lib_var=yes"
2821 else
2822   echo "configure: failed program was:" >&5
2823   cat conftest.$ac_ext >&5
2824   rm -rf conftest*
2825   eval "ac_cv_lib_$ac_lib_var=no"
2826 fi
2827 rm -f conftest*
2828 LIBS="$ac_save_LIBS"
2829
2830 fi
2831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2832   echo "$ac_t""yes" 1>&6
2833   LIBS="$LIBS -ldir"
2834 else
2835   echo "$ac_t""no" 1>&6
2836 fi
2837
2838 else
2839 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2840 echo "configure:2841: checking for opendir in -lx" >&5
2841 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2842 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2843   echo $ac_n "(cached) $ac_c" 1>&6
2844 else
2845   ac_save_LIBS="$LIBS"
2846 LIBS="-lx  $LIBS"
2847 cat > conftest.$ac_ext <<EOF
2848 #line 2849 "configure"
2849 #include "confdefs.h"
2850 /* Override any gcc2 internal prototype to avoid an error.  */
2851 /* We use char because int might match the return type of a gcc2
2852     builtin and then its argument prototype would still apply.  */
2853 char opendir();
2854
2855 int main() {
2856 opendir()
2857 ; return 0; }
2858 EOF
2859 if { (eval echo configure:2860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2860   rm -rf conftest*
2861   eval "ac_cv_lib_$ac_lib_var=yes"
2862 else
2863   echo "configure: failed program was:" >&5
2864   cat conftest.$ac_ext >&5
2865   rm -rf conftest*
2866   eval "ac_cv_lib_$ac_lib_var=no"
2867 fi
2868 rm -f conftest*
2869 LIBS="$ac_save_LIBS"
2870
2871 fi
2872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2873   echo "$ac_t""yes" 1>&6
2874   LIBS="$LIBS -lx"
2875 else
2876   echo "$ac_t""no" 1>&6
2877 fi
2878
2879 fi
2880
2881 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2882 echo "configure:2883: checking for ANSI C header files" >&5
2883 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2884   echo $ac_n "(cached) $ac_c" 1>&6
2885 else
2886   cat > conftest.$ac_ext <<EOF
2887 #line 2888 "configure"
2888 #include "confdefs.h"
2889 #include <stdlib.h>
2890 #include <stdarg.h>
2891 #include <string.h>
2892 #include <float.h>
2893 EOF
2894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2895 { (eval echo configure:2896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2897 if test -z "$ac_err"; then
2898   rm -rf conftest*
2899   ac_cv_header_stdc=yes
2900 else
2901   echo "$ac_err" >&5
2902   echo "configure: failed program was:" >&5
2903   cat conftest.$ac_ext >&5
2904   rm -rf conftest*
2905   ac_cv_header_stdc=no
2906 fi
2907 rm -f conftest*
2908
2909 if test $ac_cv_header_stdc = yes; then
2910   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2911 cat > conftest.$ac_ext <<EOF
2912 #line 2913 "configure"
2913 #include "confdefs.h"
2914 #include <string.h>
2915 EOF
2916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2917   egrep "memchr" >/dev/null 2>&1; then
2918   :
2919 else
2920   rm -rf conftest*
2921   ac_cv_header_stdc=no
2922 fi
2923 rm -f conftest*
2924
2925 fi
2926
2927 if test $ac_cv_header_stdc = yes; then
2928   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2929 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2932 #include <stdlib.h>
2933 EOF
2934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2935   egrep "free" >/dev/null 2>&1; then
2936   :
2937 else
2938   rm -rf conftest*
2939   ac_cv_header_stdc=no
2940 fi
2941 rm -f conftest*
2942
2943 fi
2944
2945 if test $ac_cv_header_stdc = yes; then
2946   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2947 if test "$cross_compiling" = yes; then
2948   :
2949 else
2950   cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 #include <ctype.h>
2954 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2955 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2957 int main () { int i; for (i = 0; i < 256; i++)
2958 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2959 exit (0); }
2960
2961 EOF
2962 if { (eval echo configure:2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2963 then
2964   :
2965 else
2966   echo "configure: failed program was:" >&5
2967   cat conftest.$ac_ext >&5
2968   rm -fr conftest*
2969   ac_cv_header_stdc=no
2970 fi
2971 rm -fr conftest*
2972 fi
2973
2974 fi
2975 fi
2976
2977 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2978 if test $ac_cv_header_stdc = yes; then
2979   cat >> confdefs.h <<\EOF
2980 #define STDC_HEADERS 1
2981 EOF
2982
2983 fi
2984
2985 for ac_hdr in unistd.h
2986 do
2987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2989 echo "configure:2990: checking for $ac_hdr" >&5
2990 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2991   echo $ac_n "(cached) $ac_c" 1>&6
2992 else
2993   cat > conftest.$ac_ext <<EOF
2994 #line 2995 "configure"
2995 #include "confdefs.h"
2996 #include <$ac_hdr>
2997 EOF
2998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2999 { (eval echo configure:3000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3001 if test -z "$ac_err"; then
3002   rm -rf conftest*
3003   eval "ac_cv_header_$ac_safe=yes"
3004 else
3005   echo "$ac_err" >&5
3006   echo "configure: failed program was:" >&5
3007   cat conftest.$ac_ext >&5
3008   rm -rf conftest*
3009   eval "ac_cv_header_$ac_safe=no"
3010 fi
3011 rm -f conftest*
3012 fi
3013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3014   echo "$ac_t""yes" 1>&6
3015     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3016   cat >> confdefs.h <<EOF
3017 #define $ac_tr_hdr 1
3018 EOF
3019  
3020 else
3021   echo "$ac_t""no" 1>&6
3022 fi
3023 done
3024
3025
3026 echo $ac_n "checking for working const""... $ac_c" 1>&6
3027 echo "configure:3028: checking for working const" >&5
3028 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3029   echo $ac_n "(cached) $ac_c" 1>&6
3030 else
3031   cat > conftest.$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3034
3035 int main() {
3036
3037 /* Ultrix mips cc rejects this.  */
3038 typedef int charset[2]; const charset x;
3039 /* SunOS 4.1.1 cc rejects this.  */
3040 char const *const *ccp;
3041 char **p;
3042 /* NEC SVR4.0.2 mips cc rejects this.  */
3043 struct point {int x, y;};
3044 static struct point const zero = {0,0};
3045 /* AIX XL C 1.02.0.0 rejects this.
3046    It does not let you subtract one const X* pointer from another in an arm
3047    of an if-expression whose if-part is not a constant expression */
3048 const char *g = "string";
3049 ccp = &g + (g ? g-g : 0);
3050 /* HPUX 7.0 cc rejects these. */
3051 ++ccp;
3052 p = (char**) ccp;
3053 ccp = (char const *const *) p;
3054 { /* SCO 3.2v4 cc rejects this.  */
3055   char *t;
3056   char const *s = 0 ? (char *) 0 : (char const *) 0;
3057
3058   *t++ = 0;
3059 }
3060 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3061   int x[] = {25, 17};
3062   const int *foo = &x[0];
3063   ++foo;
3064 }
3065 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3066   typedef const int *iptr;
3067   iptr p = 0;
3068   ++p;
3069 }
3070 { /* AIX XL C 1.02.0.0 rejects this saying
3071      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3072   struct s { int j; const int *ap[3]; };
3073   struct s *b; b->j = 5;
3074 }
3075 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3076   const int foo = 10;
3077 }
3078
3079 ; return 0; }
3080 EOF
3081 if { (eval echo configure:3082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3082   rm -rf conftest*
3083   ac_cv_c_const=yes
3084 else
3085   echo "configure: failed program was:" >&5
3086   cat conftest.$ac_ext >&5
3087   rm -rf conftest*
3088   ac_cv_c_const=no
3089 fi
3090 rm -f conftest*
3091 fi
3092
3093 echo "$ac_t""$ac_cv_c_const" 1>&6
3094 if test $ac_cv_c_const = no; then
3095   cat >> confdefs.h <<\EOF
3096 #define const 
3097 EOF
3098
3099 fi
3100
3101
3102 for ac_func in strtod strtol strtoul
3103 do
3104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3105 echo "configure:3106: checking for $ac_func" >&5
3106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3107   echo $ac_n "(cached) $ac_c" 1>&6
3108 else
3109   cat > conftest.$ac_ext <<EOF
3110 #line 3111 "configure"
3111 #include "confdefs.h"
3112 /* System header to define __stub macros and hopefully few prototypes,
3113     which can conflict with char $ac_func(); below.  */
3114 #include <assert.h>
3115 /* Override any gcc2 internal prototype to avoid an error.  */
3116 /* We use char because int might match the return type of a gcc2
3117     builtin and then its argument prototype would still apply.  */
3118 char $ac_func();
3119
3120 int main() {
3121
3122 /* The GNU C library defines this for functions which it implements
3123     to always fail with ENOSYS.  Some functions are actually named
3124     something starting with __ and the normal name is an alias.  */
3125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3126 choke me
3127 #else
3128 $ac_func();
3129 #endif
3130
3131 ; return 0; }
3132 EOF
3133 if { (eval echo configure:3134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3134   rm -rf conftest*
3135   eval "ac_cv_func_$ac_func=yes"
3136 else
3137   echo "configure: failed program was:" >&5
3138   cat conftest.$ac_ext >&5
3139   rm -rf conftest*
3140   eval "ac_cv_func_$ac_func=no"
3141 fi
3142 rm -f conftest*
3143 fi
3144
3145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3146   echo "$ac_t""yes" 1>&6
3147     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3148   cat >> confdefs.h <<EOF
3149 #define $ac_tr_func 1
3150 EOF
3151  
3152 else
3153   echo "$ac_t""no" 1>&6
3154 fi
3155 done
3156
3157
3158
3159 DocumentRoot=/var/www/html
3160
3161 #AC_OUTPUT(Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile src/web/Makefile)
3162 trap '' 1 2 15
3163 cat > confcache <<\EOF
3164 # This file is a shell script that caches the results of configure
3165 # tests run on this system so they can be shared between configure
3166 # scripts and configure runs.  It is not useful on other systems.
3167 # If it contains results you don't want to keep, you may remove or edit it.
3168 #
3169 # By default, configure uses ./config.cache as the cache file,
3170 # creating it if it does not exist already.  You can give configure
3171 # the --cache-file=FILE option to use a different cache file; that is
3172 # what configure does when it calls configure scripts in
3173 # subdirectories, so they share the cache.
3174 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3175 # config.status only pays attention to the cache file if you give it the
3176 # --recheck option to rerun configure.
3177 #
3178 EOF
3179 # The following way of writing the cache mishandles newlines in values,
3180 # but we know of no workaround that is simple, portable, and efficient.
3181 # So, don't put newlines in cache variables' values.
3182 # Ultrix sh set writes to stderr and can't be redirected directly,
3183 # and sets the high bit in the cache file unless we assign to the vars.
3184 (set) 2>&1 |
3185   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3186   *ac_space=\ *)
3187     # `set' does not quote correctly, so add quotes (double-quote substitution
3188     # turns \\\\ into \\, and sed turns \\ into \).
3189     sed -n \
3190       -e "s/'/'\\\\''/g" \
3191       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3192     ;;
3193   *)
3194     # `set' quotes correctly as required by POSIX, so do not add quotes.
3195     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3196     ;;
3197   esac >> confcache
3198 if cmp -s $cache_file confcache; then
3199   :
3200 else
3201   if test -w $cache_file; then
3202     echo "updating cache $cache_file"
3203     cat confcache > $cache_file
3204   else
3205     echo "not updating unwritable cache $cache_file"
3206   fi
3207 fi
3208 rm -f confcache
3209
3210 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3211
3212 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3213 # Let make expand exec_prefix.
3214 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3215
3216 # Any assignment to VPATH causes Sun make to only execute
3217 # the first set of double-colon rules, so remove it if not needed.
3218 # If there is a colon in the path, we need to keep it.
3219 if test "x$srcdir" = x.; then
3220   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3221 fi
3222
3223 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3224
3225 # Transform confdefs.h into DEFS.
3226 # Protect against shell expansion while executing Makefile rules.
3227 # Protect against Makefile macro expansion.
3228 cat > conftest.defs <<\EOF
3229 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3230 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
3231 s%\[%\\&%g
3232 s%\]%\\&%g
3233 s%\$%$$%g
3234 EOF
3235 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3236 rm -f conftest.defs
3237
3238
3239 # Without the "./", some shells look in PATH for config.status.
3240 : ${CONFIG_STATUS=./config.status}
3241
3242 echo creating $CONFIG_STATUS
3243 rm -f $CONFIG_STATUS
3244 cat > $CONFIG_STATUS <<EOF
3245 #! /bin/sh
3246 # Generated automatically by configure.
3247 # Run this file to recreate the current configuration.
3248 # This directory was configured as follows,
3249 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3250 #
3251 # $0 $ac_configure_args
3252 #
3253 # Compiler output produced by configure, useful for debugging
3254 # configure, is in ./config.log if it exists.
3255
3256 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3257 for ac_option
3258 do
3259   case "\$ac_option" in
3260   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3261     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3262     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3263   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3264     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3265     exit 0 ;;
3266   -help | --help | --hel | --he | --h)
3267     echo "\$ac_cs_usage"; exit 0 ;;
3268   *) echo "\$ac_cs_usage"; exit 1 ;;
3269   esac
3270 done
3271
3272 ac_given_srcdir=$srcdir
3273 ac_given_INSTALL="$INSTALL"
3274
3275 trap 'rm -fr `echo "Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3276 EOF
3277 cat >> $CONFIG_STATUS <<EOF
3278
3279 # Protect against being on the right side of a sed subst in config.status.
3280 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3281  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3282 $ac_vpsub
3283 $extrasub
3284 s%@SHELL@%$SHELL%g
3285 s%@CFLAGS@%$CFLAGS%g
3286 s%@CPPFLAGS@%$CPPFLAGS%g
3287 s%@CXXFLAGS@%$CXXFLAGS%g
3288 s%@FFLAGS@%$FFLAGS%g
3289 s%@DEFS@%$DEFS%g
3290 s%@LDFLAGS@%$LDFLAGS%g
3291 s%@LIBS@%$LIBS%g
3292 s%@exec_prefix@%$exec_prefix%g
3293 s%@prefix@%$prefix%g
3294 s%@program_transform_name@%$program_transform_name%g
3295 s%@bindir@%$bindir%g
3296 s%@sbindir@%$sbindir%g
3297 s%@libexecdir@%$libexecdir%g
3298 s%@datadir@%$datadir%g
3299 s%@sysconfdir@%$sysconfdir%g
3300 s%@sharedstatedir@%$sharedstatedir%g
3301 s%@localstatedir@%$localstatedir%g
3302 s%@libdir@%$libdir%g
3303 s%@includedir@%$includedir%g
3304 s%@oldincludedir@%$oldincludedir%g
3305 s%@infodir@%$infodir%g
3306 s%@mandir@%$mandir%g
3307 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3308 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3309 s%@INSTALL_DATA@%$INSTALL_DATA%g
3310 s%@PACKAGE@%$PACKAGE%g
3311 s%@VERSION@%$VERSION%g
3312 s%@ACLOCAL@%$ACLOCAL%g
3313 s%@AUTOCONF@%$AUTOCONF%g
3314 s%@AUTOMAKE@%$AUTOMAKE%g
3315 s%@AUTOHEADER@%$AUTOHEADER%g
3316 s%@MAKEINFO@%$MAKEINFO%g
3317 s%@SET_MAKE@%$SET_MAKE%g
3318 s%@CC@%$CC%g
3319 s%@CXX@%$CXX%g
3320 s%@CPP@%$CPP%g
3321 s%@LEX@%$LEX%g
3322 s%@LEXLIB@%$LEXLIB%g
3323 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
3324 s%@LN_S@%$LN_S%g
3325 s%@RANLIB@%$RANLIB%g
3326 s%@YACC@%$YACC%g
3327 s%@AWK@%$AWK%g
3328 s%@XML_CONFIG@%$XML_CONFIG%g
3329 s%@X_CFLAGS@%$X_CFLAGS%g
3330 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3331 s%@X_LIBS@%$X_LIBS%g
3332 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3333
3334 CEOF
3335 EOF
3336
3337 cat >> $CONFIG_STATUS <<\EOF
3338
3339 # Split the substitutions into bite-sized pieces for seds with
3340 # small command number limits, like on Digital OSF/1 and HP-UX.
3341 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3342 ac_file=1 # Number of current file.
3343 ac_beg=1 # First line for current file.
3344 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3345 ac_more_lines=:
3346 ac_sed_cmds=""
3347 while $ac_more_lines; do
3348   if test $ac_beg -gt 1; then
3349     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3350   else
3351     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3352   fi
3353   if test ! -s conftest.s$ac_file; then
3354     ac_more_lines=false
3355     rm -f conftest.s$ac_file
3356   else
3357     if test -z "$ac_sed_cmds"; then
3358       ac_sed_cmds="sed -f conftest.s$ac_file"
3359     else
3360       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3361     fi
3362     ac_file=`expr $ac_file + 1`
3363     ac_beg=$ac_end
3364     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3365   fi
3366 done
3367 if test -z "$ac_sed_cmds"; then
3368   ac_sed_cmds=cat
3369 fi
3370 EOF
3371
3372 cat >> $CONFIG_STATUS <<EOF
3373
3374 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile"}
3375 EOF
3376 cat >> $CONFIG_STATUS <<\EOF
3377 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3378   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3379   case "$ac_file" in
3380   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3381        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3382   *) ac_file_in="${ac_file}.in" ;;
3383   esac
3384
3385   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3386
3387   # Remove last slash and all that follows it.  Not all systems have dirname.
3388   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3389   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3390     # The file is in a subdirectory.
3391     test ! -d "$ac_dir" && mkdir "$ac_dir"
3392     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3393     # A "../" for each directory in $ac_dir_suffix.
3394     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3395   else
3396     ac_dir_suffix= ac_dots=
3397   fi
3398
3399   case "$ac_given_srcdir" in
3400   .)  srcdir=.
3401       if test -z "$ac_dots"; then top_srcdir=.
3402       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3403   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3404   *) # Relative path.
3405     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3406     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3407   esac
3408
3409   case "$ac_given_INSTALL" in
3410   [/$]*) INSTALL="$ac_given_INSTALL" ;;
3411   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3412   esac
3413
3414   echo creating "$ac_file"
3415   rm -f "$ac_file"
3416   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3417   case "$ac_file" in
3418   *Makefile*) ac_comsub="1i\\
3419 # $configure_input" ;;
3420   *) ac_comsub= ;;
3421   esac
3422
3423   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3424   sed -e "$ac_comsub
3425 s%@configure_input@%$configure_input%g
3426 s%@srcdir@%$srcdir%g
3427 s%@top_srcdir@%$top_srcdir%g
3428 s%@INSTALL@%$INSTALL%g
3429 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3430 fi; done
3431 rm -f conftest.s*
3432
3433 EOF
3434 cat >> $CONFIG_STATUS <<EOF
3435
3436 EOF
3437 cat >> $CONFIG_STATUS <<\EOF
3438
3439 exit 0
3440 EOF
3441 chmod +x $CONFIG_STATUS
3442 rm -fr confdefs* $ac_clean_files
3443 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3444