]> git.draconx.ca Git - gob-dx.git/blob - configure
Release 0.92.2
[gob-dx.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-glib-prefix=PFX   Prefix where GLIB is installed (optional)"
16 ac_help="$ac_help
17   --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
18 ac_help="$ac_help
19   --disable-glibtest       Do not try to compile and run a test GLIB program"
20 ac_help="$ac_help
21   --enable-maintainer-mode enable make rules and dependencies not useful
22                           (and sometimes confusing) to the casual installer"
23
24 # Initialize some variables set by options.
25 # The variables have the same names as the options, with
26 # dashes changed to underlines.
27 build=NONE
28 cache_file=./config.cache
29 exec_prefix=NONE
30 host=NONE
31 no_create=
32 nonopt=NONE
33 no_recursion=
34 prefix=NONE
35 program_prefix=NONE
36 program_suffix=NONE
37 program_transform_name=s,x,x,
38 silent=
39 site=
40 srcdir=
41 target=NONE
42 verbose=
43 x_includes=NONE
44 x_libraries=NONE
45 bindir='${exec_prefix}/bin'
46 sbindir='${exec_prefix}/sbin'
47 libexecdir='${exec_prefix}/libexec'
48 datadir='${prefix}/share'
49 sysconfdir='${prefix}/etc'
50 sharedstatedir='${prefix}/com'
51 localstatedir='${prefix}/var'
52 libdir='${exec_prefix}/lib'
53 includedir='${prefix}/include'
54 oldincludedir='/usr/include'
55 infodir='${prefix}/info'
56 mandir='${prefix}/man'
57
58 # Initialize some other variables.
59 subdirs=
60 MFLAGS= MAKEFLAGS=
61 SHELL=${CONFIG_SHELL-/bin/sh}
62 # Maximum number of lines to put in a shell here document.
63 ac_max_here_lines=12
64
65 ac_prev=
66 for ac_option
67 do
68
69   # If the previous option needs an argument, assign it.
70   if test -n "$ac_prev"; then
71     eval "$ac_prev=\$ac_option"
72     ac_prev=
73     continue
74   fi
75
76   case "$ac_option" in
77   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78   *) ac_optarg= ;;
79   esac
80
81   # Accept the important Cygnus configure options, so we can diagnose typos.
82
83   case "$ac_option" in
84
85   -bindir | --bindir | --bindi | --bind | --bin | --bi)
86     ac_prev=bindir ;;
87   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88     bindir="$ac_optarg" ;;
89
90   -build | --build | --buil | --bui | --bu)
91     ac_prev=build ;;
92   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
93     build="$ac_optarg" ;;
94
95   -cache-file | --cache-file | --cache-fil | --cache-fi \
96   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
97     ac_prev=cache_file ;;
98   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
99   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
100     cache_file="$ac_optarg" ;;
101
102   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
103     ac_prev=datadir ;;
104   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
105   | --da=*)
106     datadir="$ac_optarg" ;;
107
108   -disable-* | --disable-*)
109     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
110     # Reject names that are not valid shell variable names.
111     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
112       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113     fi
114     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115     eval "enable_${ac_feature}=no" ;;
116
117   -enable-* | --enable-*)
118     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
119     # Reject names that are not valid shell variable names.
120     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
121       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122     fi
123     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124     case "$ac_option" in
125       *=*) ;;
126       *) ac_optarg=yes ;;
127     esac
128     eval "enable_${ac_feature}='$ac_optarg'" ;;
129
130   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
131   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
132   | --exec | --exe | --ex)
133     ac_prev=exec_prefix ;;
134   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
135   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
136   | --exec=* | --exe=* | --ex=*)
137     exec_prefix="$ac_optarg" ;;
138
139   -gas | --gas | --ga | --g)
140     # Obsolete; use --with-gas.
141     with_gas=yes ;;
142
143   -help | --help | --hel | --he)
144     # Omit some internal or obsolete options to make the list less imposing.
145     # This message is too long to be a string in the A/UX 3.1 sh.
146     cat << EOF
147 Usage: configure [options] [host]
148 Options: [defaults in brackets after descriptions]
149 Configuration:
150   --cache-file=FILE       cache test results in FILE
151   --help                  print this message
152   --no-create             do not create output files
153   --quiet, --silent       do not print \`checking...' messages
154   --version               print the version of autoconf that created configure
155 Directory and file names:
156   --prefix=PREFIX         install architecture-independent files in PREFIX
157                           [$ac_default_prefix]
158   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
159                           [same as prefix]
160   --bindir=DIR            user executables in DIR [EPREFIX/bin]
161   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
162   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
163   --datadir=DIR           read-only architecture-independent data in DIR
164                           [PREFIX/share]
165   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
166   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
167                           [PREFIX/com]
168   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
169   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
170   --includedir=DIR        C header files in DIR [PREFIX/include]
171   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
172   --infodir=DIR           info documentation in DIR [PREFIX/info]
173   --mandir=DIR            man documentation in DIR [PREFIX/man]
174   --srcdir=DIR            find the sources in DIR [configure dir or ..]
175   --program-prefix=PREFIX prepend PREFIX to installed program names
176   --program-suffix=SUFFIX append SUFFIX to installed program names
177   --program-transform-name=PROGRAM
178                           run sed PROGRAM on installed program names
179 EOF
180     cat << EOF
181 Host type:
182   --build=BUILD           configure for building on BUILD [BUILD=HOST]
183   --host=HOST             configure for HOST [guessed]
184   --target=TARGET         configure for TARGET [TARGET=HOST]
185 Features and packages:
186   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
187   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
188   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
189   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
190   --x-includes=DIR        X include files are in DIR
191   --x-libraries=DIR       X library files are in DIR
192 EOF
193     if test -n "$ac_help"; then
194       echo "--enable and --with options recognized:$ac_help"
195     fi
196     exit 0 ;;
197
198   -host | --host | --hos | --ho)
199     ac_prev=host ;;
200   -host=* | --host=* | --hos=* | --ho=*)
201     host="$ac_optarg" ;;
202
203   -includedir | --includedir | --includedi | --included | --include \
204   | --includ | --inclu | --incl | --inc)
205     ac_prev=includedir ;;
206   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
207   | --includ=* | --inclu=* | --incl=* | --inc=*)
208     includedir="$ac_optarg" ;;
209
210   -infodir | --infodir | --infodi | --infod | --info | --inf)
211     ac_prev=infodir ;;
212   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
213     infodir="$ac_optarg" ;;
214
215   -libdir | --libdir | --libdi | --libd)
216     ac_prev=libdir ;;
217   -libdir=* | --libdir=* | --libdi=* | --libd=*)
218     libdir="$ac_optarg" ;;
219
220   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
221   | --libexe | --libex | --libe)
222     ac_prev=libexecdir ;;
223   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
224   | --libexe=* | --libex=* | --libe=*)
225     libexecdir="$ac_optarg" ;;
226
227   -localstatedir | --localstatedir | --localstatedi | --localstated \
228   | --localstate | --localstat | --localsta | --localst \
229   | --locals | --local | --loca | --loc | --lo)
230     ac_prev=localstatedir ;;
231   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
232   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
233   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
234     localstatedir="$ac_optarg" ;;
235
236   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
237     ac_prev=mandir ;;
238   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
239     mandir="$ac_optarg" ;;
240
241   -nfp | --nfp | --nf)
242     # Obsolete; use --without-fp.
243     with_fp=no ;;
244
245   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
246   | --no-cr | --no-c)
247     no_create=yes ;;
248
249   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
250   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
251     no_recursion=yes ;;
252
253   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
254   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
255   | --oldin | --oldi | --old | --ol | --o)
256     ac_prev=oldincludedir ;;
257   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
258   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
259   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
260     oldincludedir="$ac_optarg" ;;
261
262   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
263     ac_prev=prefix ;;
264   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
265     prefix="$ac_optarg" ;;
266
267   -program-prefix | --program-prefix | --program-prefi | --program-pref \
268   | --program-pre | --program-pr | --program-p)
269     ac_prev=program_prefix ;;
270   -program-prefix=* | --program-prefix=* | --program-prefi=* \
271   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
272     program_prefix="$ac_optarg" ;;
273
274   -program-suffix | --program-suffix | --program-suffi | --program-suff \
275   | --program-suf | --program-su | --program-s)
276     ac_prev=program_suffix ;;
277   -program-suffix=* | --program-suffix=* | --program-suffi=* \
278   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
279     program_suffix="$ac_optarg" ;;
280
281   -program-transform-name | --program-transform-name \
282   | --program-transform-nam | --program-transform-na \
283   | --program-transform-n | --program-transform- \
284   | --program-transform | --program-transfor \
285   | --program-transfo | --program-transf \
286   | --program-trans | --program-tran \
287   | --progr-tra | --program-tr | --program-t)
288     ac_prev=program_transform_name ;;
289   -program-transform-name=* | --program-transform-name=* \
290   | --program-transform-nam=* | --program-transform-na=* \
291   | --program-transform-n=* | --program-transform-=* \
292   | --program-transform=* | --program-transfor=* \
293   | --program-transfo=* | --program-transf=* \
294   | --program-trans=* | --program-tran=* \
295   | --progr-tra=* | --program-tr=* | --program-t=*)
296     program_transform_name="$ac_optarg" ;;
297
298   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
299   | -silent | --silent | --silen | --sile | --sil)
300     silent=yes ;;
301
302   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
303     ac_prev=sbindir ;;
304   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
305   | --sbi=* | --sb=*)
306     sbindir="$ac_optarg" ;;
307
308   -sharedstatedir | --sharedstatedir | --sharedstatedi \
309   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
310   | --sharedst | --shareds | --shared | --share | --shar \
311   | --sha | --sh)
312     ac_prev=sharedstatedir ;;
313   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
314   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
315   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
316   | --sha=* | --sh=*)
317     sharedstatedir="$ac_optarg" ;;
318
319   -site | --site | --sit)
320     ac_prev=site ;;
321   -site=* | --site=* | --sit=*)
322     site="$ac_optarg" ;;
323
324   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
325     ac_prev=srcdir ;;
326   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
327     srcdir="$ac_optarg" ;;
328
329   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
330   | --syscon | --sysco | --sysc | --sys | --sy)
331     ac_prev=sysconfdir ;;
332   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
333   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
334     sysconfdir="$ac_optarg" ;;
335
336   -target | --target | --targe | --targ | --tar | --ta | --t)
337     ac_prev=target ;;
338   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
339     target="$ac_optarg" ;;
340
341   -v | -verbose | --verbose | --verbos | --verbo | --verb)
342     verbose=yes ;;
343
344   -version | --version | --versio | --versi | --vers)
345     echo "configure generated by autoconf version 2.13"
346     exit 0 ;;
347
348   -with-* | --with-*)
349     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
350     # Reject names that are not valid shell variable names.
351     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
352       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
353     fi
354     ac_package=`echo $ac_package| sed 's/-/_/g'`
355     case "$ac_option" in
356       *=*) ;;
357       *) ac_optarg=yes ;;
358     esac
359     eval "with_${ac_package}='$ac_optarg'" ;;
360
361   -without-* | --without-*)
362     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
363     # Reject names that are not valid shell variable names.
364     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
365       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366     fi
367     ac_package=`echo $ac_package| sed 's/-/_/g'`
368     eval "with_${ac_package}=no" ;;
369
370   --x)
371     # Obsolete; use --with-x.
372     with_x=yes ;;
373
374   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
375   | --x-incl | --x-inc | --x-in | --x-i)
376     ac_prev=x_includes ;;
377   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
378   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
379     x_includes="$ac_optarg" ;;
380
381   -x-libraries | --x-libraries | --x-librarie | --x-librari \
382   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
383     ac_prev=x_libraries ;;
384   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
385   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
386     x_libraries="$ac_optarg" ;;
387
388   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389     ;;
390
391   *)
392     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
393       echo "configure: warning: $ac_option: invalid host type" 1>&2
394     fi
395     if test "x$nonopt" != xNONE; then
396       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
397     fi
398     nonopt="$ac_option"
399     ;;
400
401   esac
402 done
403
404 if test -n "$ac_prev"; then
405   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
406 fi
407
408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
409
410 # File descriptor usage:
411 # 0 standard input
412 # 1 file creation
413 # 2 errors and warnings
414 # 3 some systems may open it to /dev/tty
415 # 4 used on the Kubota Titan
416 # 6 checking for... messages and results
417 # 5 compiler messages saved in config.log
418 if test "$silent" = yes; then
419   exec 6>/dev/null
420 else
421   exec 6>&1
422 fi
423 exec 5>./config.log
424
425 echo "\
426 This file contains any messages produced by compilers while
427 running configure, to aid debugging if configure makes a mistake.
428 " 1>&5
429
430 # Strip out --no-create and --no-recursion so they do not pile up.
431 # Also quote any args containing shell metacharacters.
432 ac_configure_args=
433 for ac_arg
434 do
435   case "$ac_arg" in
436   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
437   | --no-cr | --no-c) ;;
438   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
439   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
440   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
441   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
442   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
443   esac
444 done
445
446 # NLS nuisances.
447 # Only set these to C if already set.  These must not be set unconditionally
448 # because not all systems understand e.g. LANG=C (notably SCO).
449 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
450 # Non-C LC_CTYPE values break the ctype check.
451 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
452 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
453 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
454 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
455
456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
457 rm -rf conftest* confdefs.h
458 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
459 echo > confdefs.h
460
461 # A filename unique to this package, relative to the directory that
462 # configure is in, which we can look for to find out if srcdir is correct.
463 ac_unique_file=src/tree.h
464
465 # Find the source files, if location was not specified.
466 if test -z "$srcdir"; then
467   ac_srcdir_defaulted=yes
468   # Try the directory containing this script, then its parent.
469   ac_prog=$0
470   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
471   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
472   srcdir=$ac_confdir
473   if test ! -r $srcdir/$ac_unique_file; then
474     srcdir=..
475   fi
476 else
477   ac_srcdir_defaulted=no
478 fi
479 if test ! -r $srcdir/$ac_unique_file; then
480   if test "$ac_srcdir_defaulted" = yes; then
481     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
482   else
483     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
484   fi
485 fi
486 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
487
488 # Prefer explicitly selected file to automatically selected ones.
489 if test -z "$CONFIG_SITE"; then
490   if test "x$prefix" != xNONE; then
491     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
492   else
493     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
494   fi
495 fi
496 for ac_site_file in $CONFIG_SITE; do
497   if test -r "$ac_site_file"; then
498     echo "loading site script $ac_site_file"
499     . "$ac_site_file"
500   fi
501 done
502
503 if test -r "$cache_file"; then
504   echo "loading cache $cache_file"
505   . $cache_file
506 else
507   echo "creating cache $cache_file"
508   > $cache_file
509 fi
510
511 ac_ext=c
512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
513 ac_cpp='$CPP $CPPFLAGS'
514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
516 cross_compiling=$ac_cv_prog_cc_cross
517
518 ac_exeext=
519 ac_objext=o
520 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
521   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
522   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
523     ac_n= ac_c='
524 ' ac_t='        '
525   else
526     ac_n=-n ac_c= ac_t=
527   fi
528 else
529   ac_n= ac_c='\c' ac_t=
530 fi
531
532
533
534
535
536 ac_aux_dir=
537 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538   if test -f $ac_dir/install-sh; then
539     ac_aux_dir=$ac_dir
540     ac_install_sh="$ac_aux_dir/install-sh -c"
541     break
542   elif test -f $ac_dir/install.sh; then
543     ac_aux_dir=$ac_dir
544     ac_install_sh="$ac_aux_dir/install.sh -c"
545     break
546   fi
547 done
548 if test -z "$ac_aux_dir"; then
549   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550 fi
551 ac_config_guess=$ac_aux_dir/config.guess
552 ac_config_sub=$ac_aux_dir/config.sub
553 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
554
555 # Find a good install program.  We prefer a C program (faster),
556 # so one script is as good as another.  But avoid the broken or
557 # incompatible versions:
558 # SysV /etc/install, /usr/sbin/install
559 # SunOS /usr/etc/install
560 # IRIX /sbin/install
561 # AIX /bin/install
562 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
563 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
564 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
565 # ./install, which can be erroneously created by make from ./install.sh.
566 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
567 echo "configure:568: checking for a BSD compatible install" >&5
568 if test -z "$INSTALL"; then
569 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
570   echo $ac_n "(cached) $ac_c" 1>&6
571 else
572     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
573   for ac_dir in $PATH; do
574     # Account for people who put trailing slashes in PATH elements.
575     case "$ac_dir/" in
576     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
577     *)
578       # OSF1 and SCO ODT 3.0 have their own names for install.
579       # Don't use installbsd from OSF since it installs stuff as root
580       # by default.
581       for ac_prog in ginstall scoinst install; do
582         if test -f $ac_dir/$ac_prog; then
583           if test $ac_prog = install &&
584             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
585             # AIX install.  It has an incompatible calling convention.
586             :
587           else
588             ac_cv_path_install="$ac_dir/$ac_prog -c"
589             break 2
590           fi
591         fi
592       done
593       ;;
594     esac
595   done
596   IFS="$ac_save_IFS"
597
598 fi
599   if test "${ac_cv_path_install+set}" = set; then
600     INSTALL="$ac_cv_path_install"
601   else
602     # As a last resort, use the slow shell script.  We don't cache a
603     # path for INSTALL within a source directory, because that will
604     # break other packages using the cache if that directory is
605     # removed, or if the path is relative.
606     INSTALL="$ac_install_sh"
607   fi
608 fi
609 echo "$ac_t""$INSTALL" 1>&6
610
611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
612 # It thinks the first close brace ends the variable substitution.
613 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
614
615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
616
617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
618
619 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
620 echo "configure:621: checking whether build environment is sane" >&5
621 # Just in case
622 sleep 1
623 echo timestamp > conftestfile
624 # Do `set' in a subshell so we don't clobber the current shell's
625 # arguments.  Must try -L first in case configure is actually a
626 # symlink; some systems play weird games with the mod time of symlinks
627 # (eg FreeBSD returns the mod time of the symlink's containing
628 # directory).
629 if (
630    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
631    if test "$*" = "X"; then
632       # -L didn't work.
633       set X `ls -t $srcdir/configure conftestfile`
634    fi
635    if test "$*" != "X $srcdir/configure conftestfile" \
636       && test "$*" != "X conftestfile $srcdir/configure"; then
637
638       # If neither matched, then we have a broken ls.  This can happen
639       # if, for instance, CONFIG_SHELL is bash and it inherits a
640       # broken ls alias from the environment.  This has actually
641       # happened.  Such a system could not be considered "sane".
642       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
643 alias in your environment" 1>&2; exit 1; }
644    fi
645
646    test "$2" = conftestfile
647    )
648 then
649    # Ok.
650    :
651 else
652    { echo "configure: error: newly created file is older than distributed files!
653 Check your system clock" 1>&2; exit 1; }
654 fi
655 rm -f conftest*
656 echo "$ac_t""yes" 1>&6
657 if test "$program_transform_name" = s,x,x,; then
658   program_transform_name=
659 else
660   # Double any \ or $.  echo might interpret backslashes.
661   cat <<\EOF_SED > conftestsed
662 s,\\,\\\\,g; s,\$,$$,g
663 EOF_SED
664   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
665   rm -f conftestsed
666 fi
667 test "$program_prefix" != NONE &&
668   program_transform_name="s,^,${program_prefix},; $program_transform_name"
669 # Use a double $ so make ignores it.
670 test "$program_suffix" != NONE &&
671   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
672
673 # sed with no file args requires a program.
674 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
675
676 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
677 echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5
678 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
679 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
680   echo $ac_n "(cached) $ac_c" 1>&6
681 else
682   cat > conftestmake <<\EOF
683 all:
684         @echo 'ac_maketemp="${MAKE}"'
685 EOF
686 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
687 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
688 if test -n "$ac_maketemp"; then
689   eval ac_cv_prog_make_${ac_make}_set=yes
690 else
691   eval ac_cv_prog_make_${ac_make}_set=no
692 fi
693 rm -f conftestmake
694 fi
695 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
696   echo "$ac_t""yes" 1>&6
697   SET_MAKE=
698 else
699   echo "$ac_t""no" 1>&6
700   SET_MAKE="MAKE=${MAKE-make}"
701 fi
702
703
704 PACKAGE=gob
705
706 VERSION=0.92.2
707
708 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
709   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
710 fi
711 cat >> confdefs.h <<EOF
712 #define PACKAGE "$PACKAGE"
713 EOF
714
715 cat >> confdefs.h <<EOF
716 #define VERSION "$VERSION"
717 EOF
718
719
720
721 missing_dir=`cd $ac_aux_dir && pwd`
722 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
723 echo "configure:724: checking for working aclocal" >&5
724 # Run test in a subshell; some versions of sh will print an error if
725 # an executable is not found, even if stderr is redirected.
726 # Redirect stdin to placate older versions of autoconf.  Sigh.
727 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
728    ACLOCAL=aclocal
729    echo "$ac_t""found" 1>&6
730 else
731    ACLOCAL="$missing_dir/missing aclocal"
732    echo "$ac_t""missing" 1>&6
733 fi
734
735 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
736 echo "configure:737: checking for working autoconf" >&5
737 # Run test in a subshell; some versions of sh will print an error if
738 # an executable is not found, even if stderr is redirected.
739 # Redirect stdin to placate older versions of autoconf.  Sigh.
740 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
741    AUTOCONF=autoconf
742    echo "$ac_t""found" 1>&6
743 else
744    AUTOCONF="$missing_dir/missing autoconf"
745    echo "$ac_t""missing" 1>&6
746 fi
747
748 echo $ac_n "checking for working automake""... $ac_c" 1>&6
749 echo "configure:750: checking for working automake" >&5
750 # Run test in a subshell; some versions of sh will print an error if
751 # an executable is not found, even if stderr is redirected.
752 # Redirect stdin to placate older versions of autoconf.  Sigh.
753 if (automake --version) < /dev/null > /dev/null 2>&1; then
754    AUTOMAKE=automake
755    echo "$ac_t""found" 1>&6
756 else
757    AUTOMAKE="$missing_dir/missing automake"
758    echo "$ac_t""missing" 1>&6
759 fi
760
761 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
762 echo "configure:763: checking for working autoheader" >&5
763 # Run test in a subshell; some versions of sh will print an error if
764 # an executable is not found, even if stderr is redirected.
765 # Redirect stdin to placate older versions of autoconf.  Sigh.
766 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
767    AUTOHEADER=autoheader
768    echo "$ac_t""found" 1>&6
769 else
770    AUTOHEADER="$missing_dir/missing autoheader"
771    echo "$ac_t""missing" 1>&6
772 fi
773
774 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
775 echo "configure:776: checking for working makeinfo" >&5
776 # Run test in a subshell; some versions of sh will print an error if
777 # an executable is not found, even if stderr is redirected.
778 # Redirect stdin to placate older versions of autoconf.  Sigh.
779 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
780    MAKEINFO=makeinfo
781    echo "$ac_t""found" 1>&6
782 else
783    MAKEINFO="$missing_dir/missing makeinfo"
784    echo "$ac_t""missing" 1>&6
785 fi
786
787
788
789 if test -f ../NOINST_GOB ; then
790   DOINSTGOB=
791   NOINSTGOB=gob
792   echo "$ac_t""*** NOT Going to install GOB ***" 1>&6
793   SUBDIRS="src examples"
794   
795 else
796   DOINSTGOB=gob
797   NOINSTGOB=
798   SUBDIRS="src examples doc"
799   
800 fi
801
802
803
804 # Extract the first word of "gcc", so it can be a program name with args.
805 set dummy gcc; ac_word=$2
806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807 echo "configure:808: checking for $ac_word" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
809   echo $ac_n "(cached) $ac_c" 1>&6
810 else
811   if test -n "$CC"; then
812   ac_cv_prog_CC="$CC" # Let the user override the test.
813 else
814   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
815   ac_dummy="$PATH"
816   for ac_dir in $ac_dummy; do
817     test -z "$ac_dir" && ac_dir=.
818     if test -f $ac_dir/$ac_word; then
819       ac_cv_prog_CC="gcc"
820       break
821     fi
822   done
823   IFS="$ac_save_ifs"
824 fi
825 fi
826 CC="$ac_cv_prog_CC"
827 if test -n "$CC"; then
828   echo "$ac_t""$CC" 1>&6
829 else
830   echo "$ac_t""no" 1>&6
831 fi
832
833 if test -z "$CC"; then
834   # Extract the first word of "cc", so it can be a program name with args.
835 set dummy cc; ac_word=$2
836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
837 echo "configure:838: checking for $ac_word" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
839   echo $ac_n "(cached) $ac_c" 1>&6
840 else
841   if test -n "$CC"; then
842   ac_cv_prog_CC="$CC" # Let the user override the test.
843 else
844   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
845   ac_prog_rejected=no
846   ac_dummy="$PATH"
847   for ac_dir in $ac_dummy; do
848     test -z "$ac_dir" && ac_dir=.
849     if test -f $ac_dir/$ac_word; then
850       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
851         ac_prog_rejected=yes
852         continue
853       fi
854       ac_cv_prog_CC="cc"
855       break
856     fi
857   done
858   IFS="$ac_save_ifs"
859 if test $ac_prog_rejected = yes; then
860   # We found a bogon in the path, so make sure we never use it.
861   set dummy $ac_cv_prog_CC
862   shift
863   if test $# -gt 0; then
864     # We chose a different compiler from the bogus one.
865     # However, it has the same basename, so the bogon will be chosen
866     # first if we set CC to just the basename; use the full file name.
867     shift
868     set dummy "$ac_dir/$ac_word" "$@"
869     shift
870     ac_cv_prog_CC="$@"
871   fi
872 fi
873 fi
874 fi
875 CC="$ac_cv_prog_CC"
876 if test -n "$CC"; then
877   echo "$ac_t""$CC" 1>&6
878 else
879   echo "$ac_t""no" 1>&6
880 fi
881
882   if test -z "$CC"; then
883     case "`uname -s`" in
884     *win32* | *WIN32*)
885       # Extract the first word of "cl", so it can be a program name with args.
886 set dummy cl; ac_word=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
890   echo $ac_n "(cached) $ac_c" 1>&6
891 else
892   if test -n "$CC"; then
893   ac_cv_prog_CC="$CC" # Let the user override the test.
894 else
895   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
896   ac_dummy="$PATH"
897   for ac_dir in $ac_dummy; do
898     test -z "$ac_dir" && ac_dir=.
899     if test -f $ac_dir/$ac_word; then
900       ac_cv_prog_CC="cl"
901       break
902     fi
903   done
904   IFS="$ac_save_ifs"
905 fi
906 fi
907 CC="$ac_cv_prog_CC"
908 if test -n "$CC"; then
909   echo "$ac_t""$CC" 1>&6
910 else
911   echo "$ac_t""no" 1>&6
912 fi
913  ;;
914     esac
915   fi
916   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
917 fi
918
919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
920 echo "configure:921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
921
922 ac_ext=c
923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
924 ac_cpp='$CPP $CPPFLAGS'
925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
927 cross_compiling=$ac_cv_prog_cc_cross
928
929 cat > conftest.$ac_ext << EOF
930
931 #line 932 "configure"
932 #include "confdefs.h"
933
934 main(){return(0);}
935 EOF
936 if { (eval echo configure:937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
937   ac_cv_prog_cc_works=yes
938   # If we can't run a trivial program, we are probably using a cross compiler.
939   if (./conftest; exit) 2>/dev/null; then
940     ac_cv_prog_cc_cross=no
941   else
942     ac_cv_prog_cc_cross=yes
943   fi
944 else
945   echo "configure: failed program was:" >&5
946   cat conftest.$ac_ext >&5
947   ac_cv_prog_cc_works=no
948 fi
949 rm -fr conftest*
950 ac_ext=c
951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955 cross_compiling=$ac_cv_prog_cc_cross
956
957 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
958 if test $ac_cv_prog_cc_works = no; then
959   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
960 fi
961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
962 echo "configure:963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
963 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
964 cross_compiling=$ac_cv_prog_cc_cross
965
966 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
967 echo "configure:968: checking whether we are using GNU C" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
969   echo $ac_n "(cached) $ac_c" 1>&6
970 else
971   cat > conftest.c <<EOF
972 #ifdef __GNUC__
973   yes;
974 #endif
975 EOF
976 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
977   ac_cv_prog_gcc=yes
978 else
979   ac_cv_prog_gcc=no
980 fi
981 fi
982
983 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
984
985 if test $ac_cv_prog_gcc = yes; then
986   GCC=yes
987 else
988   GCC=
989 fi
990
991 ac_test_CFLAGS="${CFLAGS+set}"
992 ac_save_CFLAGS="$CFLAGS"
993 CFLAGS=
994 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
995 echo "configure:996: checking whether ${CC-cc} accepts -g" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
997   echo $ac_n "(cached) $ac_c" 1>&6
998 else
999   echo 'void f(){}' > conftest.c
1000 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1001   ac_cv_prog_cc_g=yes
1002 else
1003   ac_cv_prog_cc_g=no
1004 fi
1005 rm -f conftest*
1006
1007 fi
1008
1009 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1010 if test "$ac_test_CFLAGS" = set; then
1011   CFLAGS="$ac_save_CFLAGS"
1012 elif test $ac_cv_prog_cc_g = yes; then
1013   if test "$GCC" = yes; then
1014     CFLAGS="-g -O2"
1015   else
1016     CFLAGS="-g"
1017   fi
1018 else
1019   if test "$GCC" = yes; then
1020     CFLAGS="-O2"
1021   else
1022     CFLAGS=
1023   fi
1024 fi
1025
1026 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1027 echo "configure:1028: checking how to run the C preprocessor" >&5
1028 # On Suns, sometimes $CPP names a directory.
1029 if test -n "$CPP" && test -d "$CPP"; then
1030   CPP=
1031 fi
1032 if test -z "$CPP"; then
1033 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1034   echo $ac_n "(cached) $ac_c" 1>&6
1035 else
1036     # This must be in double quotes, not single quotes, because CPP may get
1037   # substituted into the Makefile and "${CC-cc}" will confuse make.
1038   CPP="${CC-cc} -E"
1039   # On the NeXT, cc -E runs the code through the compiler's parser,
1040   # not just through cpp.
1041   cat > conftest.$ac_ext <<EOF
1042 #line 1043 "configure"
1043 #include "confdefs.h"
1044 #include <assert.h>
1045 Syntax Error
1046 EOF
1047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048 { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1050 if test -z "$ac_err"; then
1051   :
1052 else
1053   echo "$ac_err" >&5
1054   echo "configure: failed program was:" >&5
1055   cat conftest.$ac_ext >&5
1056   rm -rf conftest*
1057   CPP="${CC-cc} -E -traditional-cpp"
1058   cat > conftest.$ac_ext <<EOF
1059 #line 1060 "configure"
1060 #include "confdefs.h"
1061 #include <assert.h>
1062 Syntax Error
1063 EOF
1064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1065 { (eval echo configure:1066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1067 if test -z "$ac_err"; then
1068   :
1069 else
1070   echo "$ac_err" >&5
1071   echo "configure: failed program was:" >&5
1072   cat conftest.$ac_ext >&5
1073   rm -rf conftest*
1074   CPP="${CC-cc} -nologo -E"
1075   cat > conftest.$ac_ext <<EOF
1076 #line 1077 "configure"
1077 #include "confdefs.h"
1078 #include <assert.h>
1079 Syntax Error
1080 EOF
1081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1082 { (eval echo configure:1083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1084 if test -z "$ac_err"; then
1085   :
1086 else
1087   echo "$ac_err" >&5
1088   echo "configure: failed program was:" >&5
1089   cat conftest.$ac_ext >&5
1090   rm -rf conftest*
1091   CPP=/lib/cpp
1092 fi
1093 rm -f conftest*
1094 fi
1095 rm -f conftest*
1096 fi
1097 rm -f conftest*
1098   ac_cv_prog_CPP="$CPP"
1099 fi
1100   CPP="$ac_cv_prog_CPP"
1101 else
1102   ac_cv_prog_CPP="$CPP"
1103 fi
1104 echo "$ac_t""$CPP" 1>&6
1105
1106 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1107 echo "configure:1108: checking for ANSI C header files" >&5
1108 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1109   echo $ac_n "(cached) $ac_c" 1>&6
1110 else
1111   cat > conftest.$ac_ext <<EOF
1112 #line 1113 "configure"
1113 #include "confdefs.h"
1114 #include <stdlib.h>
1115 #include <stdarg.h>
1116 #include <string.h>
1117 #include <float.h>
1118 EOF
1119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1120 { (eval echo configure:1121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1122 if test -z "$ac_err"; then
1123   rm -rf conftest*
1124   ac_cv_header_stdc=yes
1125 else
1126   echo "$ac_err" >&5
1127   echo "configure: failed program was:" >&5
1128   cat conftest.$ac_ext >&5
1129   rm -rf conftest*
1130   ac_cv_header_stdc=no
1131 fi
1132 rm -f conftest*
1133
1134 if test $ac_cv_header_stdc = yes; then
1135   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1136 cat > conftest.$ac_ext <<EOF
1137 #line 1138 "configure"
1138 #include "confdefs.h"
1139 #include <string.h>
1140 EOF
1141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1142   egrep "memchr" >/dev/null 2>&1; then
1143   :
1144 else
1145   rm -rf conftest*
1146   ac_cv_header_stdc=no
1147 fi
1148 rm -f conftest*
1149
1150 fi
1151
1152 if test $ac_cv_header_stdc = yes; then
1153   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1154 cat > conftest.$ac_ext <<EOF
1155 #line 1156 "configure"
1156 #include "confdefs.h"
1157 #include <stdlib.h>
1158 EOF
1159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1160   egrep "free" >/dev/null 2>&1; then
1161   :
1162 else
1163   rm -rf conftest*
1164   ac_cv_header_stdc=no
1165 fi
1166 rm -f conftest*
1167
1168 fi
1169
1170 if test $ac_cv_header_stdc = yes; then
1171   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1172 if test "$cross_compiling" = yes; then
1173   :
1174 else
1175   cat > conftest.$ac_ext <<EOF
1176 #line 1177 "configure"
1177 #include "confdefs.h"
1178 #include <ctype.h>
1179 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1180 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1182 int main () { int i; for (i = 0; i < 256; i++)
1183 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1184 exit (0); }
1185
1186 EOF
1187 if { (eval echo configure:1188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1188 then
1189   :
1190 else
1191   echo "configure: failed program was:" >&5
1192   cat conftest.$ac_ext >&5
1193   rm -fr conftest*
1194   ac_cv_header_stdc=no
1195 fi
1196 rm -fr conftest*
1197 fi
1198
1199 fi
1200 fi
1201
1202 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1203 if test $ac_cv_header_stdc = yes; then
1204   cat >> confdefs.h <<\EOF
1205 #define STDC_HEADERS 1
1206 EOF
1207
1208 fi
1209
1210 for ac_prog in 'bison -y' byacc
1211 do
1212 # Extract the first word of "$ac_prog", so it can be a program name with args.
1213 set dummy $ac_prog; ac_word=$2
1214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1215 echo "configure:1216: checking for $ac_word" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1217   echo $ac_n "(cached) $ac_c" 1>&6
1218 else
1219   if test -n "$YACC"; then
1220   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1221 else
1222   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1223   ac_dummy="$PATH"
1224   for ac_dir in $ac_dummy; do
1225     test -z "$ac_dir" && ac_dir=.
1226     if test -f $ac_dir/$ac_word; then
1227       ac_cv_prog_YACC="$ac_prog"
1228       break
1229     fi
1230   done
1231   IFS="$ac_save_ifs"
1232 fi
1233 fi
1234 YACC="$ac_cv_prog_YACC"
1235 if test -n "$YACC"; then
1236   echo "$ac_t""$YACC" 1>&6
1237 else
1238   echo "$ac_t""no" 1>&6
1239 fi
1240
1241 test -n "$YACC" && break
1242 done
1243 test -n "$YACC" || YACC="yacc"
1244
1245 missing_dir=`cd $ac_aux_dir && pwd`
1246 for ac_prog in flex lex
1247 do
1248 # Extract the first word of "$ac_prog", so it can be a program name with args.
1249 set dummy $ac_prog; ac_word=$2
1250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1251 echo "configure:1252: checking for $ac_word" >&5
1252 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1253   echo $ac_n "(cached) $ac_c" 1>&6
1254 else
1255   if test -n "$LEX"; then
1256   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1257 else
1258   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1259   ac_dummy="$PATH"
1260   for ac_dir in $ac_dummy; do
1261     test -z "$ac_dir" && ac_dir=.
1262     if test -f $ac_dir/$ac_word; then
1263       ac_cv_prog_LEX="$ac_prog"
1264       break
1265     fi
1266   done
1267   IFS="$ac_save_ifs"
1268 fi
1269 fi
1270 LEX="$ac_cv_prog_LEX"
1271 if test -n "$LEX"; then
1272   echo "$ac_t""$LEX" 1>&6
1273 else
1274   echo "$ac_t""no" 1>&6
1275 fi
1276
1277 test -n "$LEX" && break
1278 done
1279 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1280
1281 # Extract the first word of "flex", so it can be a program name with args.
1282 set dummy flex; ac_word=$2
1283 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1284 echo "configure:1285: checking for $ac_word" >&5
1285 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1286   echo $ac_n "(cached) $ac_c" 1>&6
1287 else
1288   if test -n "$LEX"; then
1289   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1290 else
1291   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1292   ac_dummy="$PATH"
1293   for ac_dir in $ac_dummy; do
1294     test -z "$ac_dir" && ac_dir=.
1295     if test -f $ac_dir/$ac_word; then
1296       ac_cv_prog_LEX="flex"
1297       break
1298     fi
1299   done
1300   IFS="$ac_save_ifs"
1301   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1302 fi
1303 fi
1304 LEX="$ac_cv_prog_LEX"
1305 if test -n "$LEX"; then
1306   echo "$ac_t""$LEX" 1>&6
1307 else
1308   echo "$ac_t""no" 1>&6
1309 fi
1310
1311 if test -z "$LEXLIB"
1312 then
1313   case "$LEX" in
1314   flex*) ac_lib=fl ;;
1315   *) ac_lib=l ;;
1316   esac
1317   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1318 echo "configure:1319: checking for yywrap in -l$ac_lib" >&5
1319 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1321   echo $ac_n "(cached) $ac_c" 1>&6
1322 else
1323   ac_save_LIBS="$LIBS"
1324 LIBS="-l$ac_lib  $LIBS"
1325 cat > conftest.$ac_ext <<EOF
1326 #line 1327 "configure"
1327 #include "confdefs.h"
1328 /* Override any gcc2 internal prototype to avoid an error.  */
1329 /* We use char because int might match the return type of a gcc2
1330     builtin and then its argument prototype would still apply.  */
1331 char yywrap();
1332
1333 int main() {
1334 yywrap()
1335 ; return 0; }
1336 EOF
1337 if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1338   rm -rf conftest*
1339   eval "ac_cv_lib_$ac_lib_var=yes"
1340 else
1341   echo "configure: failed program was:" >&5
1342   cat conftest.$ac_ext >&5
1343   rm -rf conftest*
1344   eval "ac_cv_lib_$ac_lib_var=no"
1345 fi
1346 rm -f conftest*
1347 LIBS="$ac_save_LIBS"
1348
1349 fi
1350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1351   echo "$ac_t""yes" 1>&6
1352   LEXLIB="-l$ac_lib"
1353 else
1354   echo "$ac_t""no" 1>&6
1355 fi
1356
1357 fi
1358
1359 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1360 echo "configure:1361: checking lex output file root" >&5
1361 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1362   echo $ac_n "(cached) $ac_c" 1>&6
1363 else
1364   # The minimal lex program is just a single line: %%.  But some broken lexes
1365 # (Solaris, I think it was) want two %% lines, so accommodate them.
1366 echo '%%
1367 %%' | $LEX
1368 if test -f lex.yy.c; then
1369   ac_cv_prog_lex_root=lex.yy
1370 elif test -f lexyy.c; then
1371   ac_cv_prog_lex_root=lexyy
1372 else
1373   { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1374 fi
1375 fi
1376
1377 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1378 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1379
1380 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1381 echo "configure:1382: checking whether yytext is a pointer" >&5
1382 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1383   echo $ac_n "(cached) $ac_c" 1>&6
1384 else
1385   # POSIX says lex can declare yytext either as a pointer or an array; the
1386 # default is implementation-dependent. Figure out which it is, since
1387 # not all implementations provide the %pointer and %array declarations.
1388 ac_cv_prog_lex_yytext_pointer=no
1389 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1390 ac_save_LIBS="$LIBS"
1391 LIBS="$LIBS $LEXLIB"
1392 cat > conftest.$ac_ext <<EOF
1393 #line 1394 "configure"
1394 #include "confdefs.h"
1395 `cat $LEX_OUTPUT_ROOT.c`
1396 int main() {
1397
1398 ; return 0; }
1399 EOF
1400 if { (eval echo configure:1401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1401   rm -rf conftest*
1402   ac_cv_prog_lex_yytext_pointer=yes
1403 else
1404   echo "configure: failed program was:" >&5
1405   cat conftest.$ac_ext >&5
1406 fi
1407 rm -f conftest*
1408 LIBS="$ac_save_LIBS"
1409 rm -f "${LEX_OUTPUT_ROOT}.c"
1410
1411 fi
1412
1413 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1414 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1415   cat >> confdefs.h <<\EOF
1416 #define YYTEXT_POINTER 1
1417 EOF
1418
1419 fi
1420
1421 # Find a good install program.  We prefer a C program (faster),
1422 # so one script is as good as another.  But avoid the broken or
1423 # incompatible versions:
1424 # SysV /etc/install, /usr/sbin/install
1425 # SunOS /usr/etc/install
1426 # IRIX /sbin/install
1427 # AIX /bin/install
1428 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1429 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1430 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1431 # ./install, which can be erroneously created by make from ./install.sh.
1432 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1433 echo "configure:1434: checking for a BSD compatible install" >&5
1434 if test -z "$INSTALL"; then
1435 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1436   echo $ac_n "(cached) $ac_c" 1>&6
1437 else
1438     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1439   for ac_dir in $PATH; do
1440     # Account for people who put trailing slashes in PATH elements.
1441     case "$ac_dir/" in
1442     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1443     *)
1444       # OSF1 and SCO ODT 3.0 have their own names for install.
1445       # Don't use installbsd from OSF since it installs stuff as root
1446       # by default.
1447       for ac_prog in ginstall scoinst install; do
1448         if test -f $ac_dir/$ac_prog; then
1449           if test $ac_prog = install &&
1450             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1451             # AIX install.  It has an incompatible calling convention.
1452             :
1453           else
1454             ac_cv_path_install="$ac_dir/$ac_prog -c"
1455             break 2
1456           fi
1457         fi
1458       done
1459       ;;
1460     esac
1461   done
1462   IFS="$ac_save_IFS"
1463
1464 fi
1465   if test "${ac_cv_path_install+set}" = set; then
1466     INSTALL="$ac_cv_path_install"
1467   else
1468     # As a last resort, use the slow shell script.  We don't cache a
1469     # path for INSTALL within a source directory, because that will
1470     # break other packages using the cache if that directory is
1471     # removed, or if the path is relative.
1472     INSTALL="$ac_install_sh"
1473   fi
1474 fi
1475 echo "$ac_t""$INSTALL" 1>&6
1476
1477 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1478 # It thinks the first close brace ends the variable substitution.
1479 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1480
1481 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1482
1483 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1484
1485 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1486 echo "configure:1487: checking how to run the C preprocessor" >&5
1487 # On Suns, sometimes $CPP names a directory.
1488 if test -n "$CPP" && test -d "$CPP"; then
1489   CPP=
1490 fi
1491 if test -z "$CPP"; then
1492 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1493   echo $ac_n "(cached) $ac_c" 1>&6
1494 else
1495     # This must be in double quotes, not single quotes, because CPP may get
1496   # substituted into the Makefile and "${CC-cc}" will confuse make.
1497   CPP="${CC-cc} -E"
1498   # On the NeXT, cc -E runs the code through the compiler's parser,
1499   # not just through cpp.
1500   cat > conftest.$ac_ext <<EOF
1501 #line 1502 "configure"
1502 #include "confdefs.h"
1503 #include <assert.h>
1504 Syntax Error
1505 EOF
1506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1507 { (eval echo configure:1508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1509 if test -z "$ac_err"; then
1510   :
1511 else
1512   echo "$ac_err" >&5
1513   echo "configure: failed program was:" >&5
1514   cat conftest.$ac_ext >&5
1515   rm -rf conftest*
1516   CPP="${CC-cc} -E -traditional-cpp"
1517   cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1520 #include <assert.h>
1521 Syntax Error
1522 EOF
1523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1524 { (eval echo configure:1525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1526 if test -z "$ac_err"; then
1527   :
1528 else
1529   echo "$ac_err" >&5
1530   echo "configure: failed program was:" >&5
1531   cat conftest.$ac_ext >&5
1532   rm -rf conftest*
1533   CPP="${CC-cc} -nologo -E"
1534   cat > conftest.$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1537 #include <assert.h>
1538 Syntax Error
1539 EOF
1540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1541 { (eval echo configure:1542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1543 if test -z "$ac_err"; then
1544   :
1545 else
1546   echo "$ac_err" >&5
1547   echo "configure: failed program was:" >&5
1548   cat conftest.$ac_ext >&5
1549   rm -rf conftest*
1550   CPP=/lib/cpp
1551 fi
1552 rm -f conftest*
1553 fi
1554 rm -f conftest*
1555 fi
1556 rm -f conftest*
1557   ac_cv_prog_CPP="$CPP"
1558 fi
1559   CPP="$ac_cv_prog_CPP"
1560 else
1561   ac_cv_prog_CPP="$CPP"
1562 fi
1563 echo "$ac_t""$CPP" 1>&6
1564
1565 # Extract the first word of "rm", so it can be a program name with args.
1566 set dummy rm; ac_word=$2
1567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1568 echo "configure:1569: checking for $ac_word" >&5
1569 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1570   echo $ac_n "(cached) $ac_c" 1>&6
1571 else
1572   case "$RM" in
1573   /*)
1574   ac_cv_path_RM="$RM" # Let the user override the test with a path.
1575   ;;
1576   ?:/*)                  
1577   ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1578   ;;
1579   *)
1580   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1581   ac_dummy="$PATH"
1582   for ac_dir in $ac_dummy; do 
1583     test -z "$ac_dir" && ac_dir=.
1584     if test -f $ac_dir/$ac_word; then
1585       ac_cv_path_RM="$ac_dir/$ac_word"
1586       break
1587     fi
1588   done
1589   IFS="$ac_save_ifs"
1590   test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
1591   ;;
1592 esac
1593 fi
1594 RM="$ac_cv_path_RM"
1595 if test -n "$RM"; then
1596   echo "$ac_t""$RM" 1>&6
1597 else
1598   echo "$ac_t""no" 1>&6
1599 fi
1600
1601 # Extract the first word of "mv", so it can be a program name with args.
1602 set dummy mv; ac_word=$2
1603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1604 echo "configure:1605: checking for $ac_word" >&5
1605 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1606   echo $ac_n "(cached) $ac_c" 1>&6
1607 else
1608   case "$MV" in
1609   /*)
1610   ac_cv_path_MV="$MV" # Let the user override the test with a path.
1611   ;;
1612   ?:/*)                  
1613   ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1614   ;;
1615   *)
1616   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1617   ac_dummy="$PATH"
1618   for ac_dir in $ac_dummy; do 
1619     test -z "$ac_dir" && ac_dir=.
1620     if test -f $ac_dir/$ac_word; then
1621       ac_cv_path_MV="$ac_dir/$ac_word"
1622       break
1623     fi
1624   done
1625   IFS="$ac_save_ifs"
1626   test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
1627   ;;
1628 esac
1629 fi
1630 MV="$ac_cv_path_MV"
1631 if test -n "$MV"; then
1632   echo "$ac_t""$MV" 1>&6
1633 else
1634   echo "$ac_t""no" 1>&6
1635 fi
1636
1637 # Extract the first word of "tar", so it can be a program name with args.
1638 set dummy tar; 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_TAR'+set}'`\" = set"; then
1642   echo $ac_n "(cached) $ac_c" 1>&6
1643 else
1644   case "$TAR" in
1645   /*)
1646   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
1647   ;;
1648   ?:/*)                  
1649   ac_cv_path_TAR="$TAR" # 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_TAR="$ac_dir/$ac_word"
1658       break
1659     fi
1660   done
1661   IFS="$ac_save_ifs"
1662   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
1663   ;;
1664 esac
1665 fi
1666 TAR="$ac_cv_path_TAR"
1667 if test -n "$TAR"; then
1668   echo "$ac_t""$TAR" 1>&6
1669 else
1670   echo "$ac_t""no" 1>&6
1671 fi
1672
1673 # Check whether --with-glib-prefix or --without-glib-prefix was given.
1674 if test "${with_glib_prefix+set}" = set; then
1675   withval="$with_glib_prefix"
1676   glib_config_prefix="$withval"
1677 else
1678   glib_config_prefix=""
1679 fi
1680
1681 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
1682 if test "${with_glib_exec_prefix+set}" = set; then
1683   withval="$with_glib_exec_prefix"
1684   glib_config_exec_prefix="$withval"
1685 else
1686   glib_config_exec_prefix=""
1687 fi
1688
1689 # Check whether --enable-glibtest or --disable-glibtest was given.
1690 if test "${enable_glibtest+set}" = set; then
1691   enableval="$enable_glibtest"
1692   :
1693 else
1694   enable_glibtest=yes
1695 fi
1696
1697
1698   if test x$glib_config_exec_prefix != x ; then
1699      glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
1700      if test x${GLIB_CONFIG+set} != xset ; then
1701         GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
1702      fi
1703   fi
1704   if test x$glib_config_prefix != x ; then
1705      glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
1706      if test x${GLIB_CONFIG+set} != xset ; then
1707         GLIB_CONFIG=$glib_config_prefix/bin/glib-config
1708      fi
1709   fi
1710
1711   for module in . 
1712   do
1713       case "$module" in
1714          gmodule) 
1715              glib_config_args="$glib_config_args gmodule"
1716          ;;
1717          gthread) 
1718              glib_config_args="$glib_config_args gthread"
1719          ;;
1720       esac
1721   done
1722
1723   # Extract the first word of "glib-config", so it can be a program name with args.
1724 set dummy glib-config; ac_word=$2
1725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1726 echo "configure:1727: checking for $ac_word" >&5
1727 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
1728   echo $ac_n "(cached) $ac_c" 1>&6
1729 else
1730   case "$GLIB_CONFIG" in
1731   /*)
1732   ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
1733   ;;
1734   ?:/*)                  
1735   ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
1736   ;;
1737   *)
1738   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1739   ac_dummy="$PATH"
1740   for ac_dir in $ac_dummy; do 
1741     test -z "$ac_dir" && ac_dir=.
1742     if test -f $ac_dir/$ac_word; then
1743       ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
1744       break
1745     fi
1746   done
1747   IFS="$ac_save_ifs"
1748   test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
1749   ;;
1750 esac
1751 fi
1752 GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
1753 if test -n "$GLIB_CONFIG"; then
1754   echo "$ac_t""$GLIB_CONFIG" 1>&6
1755 else
1756   echo "$ac_t""no" 1>&6
1757 fi
1758
1759   min_glib_version=1.2.0
1760   echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
1761 echo "configure:1762: checking for GLIB - version >= $min_glib_version" >&5
1762   no_glib=""
1763   if test "$GLIB_CONFIG" = "no" ; then
1764     no_glib=yes
1765   else
1766     GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
1767     GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
1768     glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
1769            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1770     glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
1771            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1772     glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
1773            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1774     if test "x$enable_glibtest" = "xyes" ; then
1775       ac_save_CFLAGS="$CFLAGS"
1776       ac_save_LIBS="$LIBS"
1777       CFLAGS="$CFLAGS $GLIB_CFLAGS"
1778       LIBS="$GLIB_LIBS $LIBS"
1779       rm -f conf.glibtest
1780       if test "$cross_compiling" = yes; then
1781   echo $ac_n "cross compiling; assumed OK... $ac_c"
1782 else
1783   cat > conftest.$ac_ext <<EOF
1784 #line 1785 "configure"
1785 #include "confdefs.h"
1786
1787 #include <glib.h>
1788 #include <stdio.h>
1789 #include <stdlib.h>
1790
1791 int 
1792 main ()
1793 {
1794   int major, minor, micro;
1795   char *tmp_version;
1796
1797   system ("touch conf.glibtest");
1798
1799   /* HP/UX 9 (%@#!) writes to sscanf strings */
1800   tmp_version = g_strdup("$min_glib_version");
1801   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
1802      printf("%s, bad version string\n", "$min_glib_version");
1803      exit(1);
1804    }
1805
1806   if ((glib_major_version != $glib_config_major_version) ||
1807       (glib_minor_version != $glib_config_minor_version) ||
1808       (glib_micro_version != $glib_config_micro_version))
1809     {
1810       printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 
1811              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
1812              glib_major_version, glib_minor_version, glib_micro_version);
1813       printf ("*** was found! If glib-config was correct, then it is best\n");
1814       printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
1815       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1816       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1817       printf("*** required on your system.\n");
1818       printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
1819       printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
1820       printf("*** before re-running configure\n");
1821     } 
1822   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
1823            (glib_minor_version != GLIB_MINOR_VERSION) ||
1824            (glib_micro_version != GLIB_MICRO_VERSION))
1825     {
1826       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
1827              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
1828       printf("*** library (version %d.%d.%d)\n",
1829              glib_major_version, glib_minor_version, glib_micro_version);
1830     }
1831   else
1832     {
1833       if ((glib_major_version > major) ||
1834         ((glib_major_version == major) && (glib_minor_version > minor)) ||
1835         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
1836       {
1837         return 0;
1838        }
1839      else
1840       {
1841         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
1842                glib_major_version, glib_minor_version, glib_micro_version);
1843         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
1844                major, minor, micro);
1845         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
1846         printf("***\n");
1847         printf("*** If you have already installed a sufficiently new version, this error\n");
1848         printf("*** probably means that the wrong copy of the glib-config shell script is\n");
1849         printf("*** being found. The easiest way to fix this is to remove the old version\n");
1850         printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
1851         printf("*** correct copy of glib-config. (In this case, you will have to\n");
1852         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1853         printf("*** so that the correct libraries are found at run-time))\n");
1854       }
1855     }
1856   return 1;
1857 }
1858
1859 EOF
1860 if { (eval echo configure:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1861 then
1862   :
1863 else
1864   echo "configure: failed program was:" >&5
1865   cat conftest.$ac_ext >&5
1866   rm -fr conftest*
1867   no_glib=yes
1868 fi
1869 rm -fr conftest*
1870 fi
1871
1872        CFLAGS="$ac_save_CFLAGS"
1873        LIBS="$ac_save_LIBS"
1874      fi
1875   fi
1876   if test "x$no_glib" = x ; then
1877      echo "$ac_t""yes" 1>&6
1878      :     
1879   else
1880      echo "$ac_t""no" 1>&6
1881      if test "$GLIB_CONFIG" = "no" ; then
1882        echo "*** The glib-config script installed by GLIB could not be found"
1883        echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
1884        echo "*** your path, or set the GLIB_CONFIG environment variable to the"
1885        echo "*** full path to glib-config."
1886      else
1887        if test -f conf.glibtest ; then
1888         :
1889        else
1890           echo "*** Could not run GLIB test program, checking why..."
1891           CFLAGS="$CFLAGS $GLIB_CFLAGS"
1892           LIBS="$LIBS $GLIB_LIBS"
1893           cat > conftest.$ac_ext <<EOF
1894 #line 1895 "configure"
1895 #include "confdefs.h"
1896
1897 #include <glib.h>
1898 #include <stdio.h>
1899
1900 int main() {
1901  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); 
1902 ; return 0; }
1903 EOF
1904 if { (eval echo configure:1905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1905   rm -rf conftest*
1906    echo "*** The test program compiled, but did not run. This usually means"
1907           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
1908           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
1909           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1910           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
1911           echo "*** is required on your system"
1912           echo "***"
1913           echo "*** If you have an old version installed, it is best to remove it, although"
1914           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1915           echo "***"
1916           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
1917           echo "*** came with the system with the command"
1918           echo "***"
1919           echo "***    rpm --erase --nodeps gtk gtk-devel" 
1920 else
1921   echo "configure: failed program was:" >&5
1922   cat conftest.$ac_ext >&5
1923   rm -rf conftest*
1924    echo "*** The test program failed to compile or link. See the file config.log for the"
1925           echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
1926           echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
1927           echo "*** may want to edit the glib-config script: $GLIB_CONFIG" 
1928 fi
1929 rm -f conftest*
1930           CFLAGS="$ac_save_CFLAGS"
1931           LIBS="$ac_save_LIBS"
1932        fi
1933      fi
1934      GLIB_CFLAGS=""
1935      GLIB_LIBS=""
1936      :
1937   fi
1938   
1939   
1940   rm -f conf.glibtest
1941
1942
1943
1944
1945 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1946 echo "configure:1947: checking whether to enable maintainer-specific portions of Makefiles" >&5
1947     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1948 if test "${enable_maintainer_mode+set}" = set; then
1949   enableval="$enable_maintainer_mode"
1950   USE_MAINTAINER_MODE=$enableval
1951 else
1952   USE_MAINTAINER_MODE=no
1953 fi
1954
1955   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1956   
1957
1958 if test $USE_MAINTAINER_MODE = yes; then
1959   MAINTAINER_MODE_TRUE=
1960   MAINTAINER_MODE_FALSE='#'
1961 else
1962   MAINTAINER_MODE_TRUE='#'
1963   MAINTAINER_MODE_FALSE=
1964 fi
1965   MAINT=$MAINTAINER_MODE_TRUE
1966   
1967
1968
1969
1970
1971
1972
1973 trap '' 1 2 15
1974 cat > confcache <<\EOF
1975 # This file is a shell script that caches the results of configure
1976 # tests run on this system so they can be shared between configure
1977 # scripts and configure runs.  It is not useful on other systems.
1978 # If it contains results you don't want to keep, you may remove or edit it.
1979 #
1980 # By default, configure uses ./config.cache as the cache file,
1981 # creating it if it does not exist already.  You can give configure
1982 # the --cache-file=FILE option to use a different cache file; that is
1983 # what configure does when it calls configure scripts in
1984 # subdirectories, so they share the cache.
1985 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1986 # config.status only pays attention to the cache file if you give it the
1987 # --recheck option to rerun configure.
1988 #
1989 EOF
1990 # The following way of writing the cache mishandles newlines in values,
1991 # but we know of no workaround that is simple, portable, and efficient.
1992 # So, don't put newlines in cache variables' values.
1993 # Ultrix sh set writes to stderr and can't be redirected directly,
1994 # and sets the high bit in the cache file unless we assign to the vars.
1995 (set) 2>&1 |
1996   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1997   *ac_space=\ *)
1998     # `set' does not quote correctly, so add quotes (double-quote substitution
1999     # turns \\\\ into \\, and sed turns \\ into \).
2000     sed -n \
2001       -e "s/'/'\\\\''/g" \
2002       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2003     ;;
2004   *)
2005     # `set' quotes correctly as required by POSIX, so do not add quotes.
2006     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2007     ;;
2008   esac >> confcache
2009 if cmp -s $cache_file confcache; then
2010   :
2011 else
2012   if test -w $cache_file; then
2013     echo "updating cache $cache_file"
2014     cat confcache > $cache_file
2015   else
2016     echo "not updating unwritable cache $cache_file"
2017   fi
2018 fi
2019 rm -f confcache
2020
2021 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2022
2023 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2024 # Let make expand exec_prefix.
2025 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2026
2027 # Any assignment to VPATH causes Sun make to only execute
2028 # the first set of double-colon rules, so remove it if not needed.
2029 # If there is a colon in the path, we need to keep it.
2030 if test "x$srcdir" = x.; then
2031   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2032 fi
2033
2034 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2035
2036 DEFS=-DHAVE_CONFIG_H
2037
2038 # Without the "./", some shells look in PATH for config.status.
2039 : ${CONFIG_STATUS=./config.status}
2040
2041 echo creating $CONFIG_STATUS
2042 rm -f $CONFIG_STATUS
2043 cat > $CONFIG_STATUS <<EOF
2044 #! /bin/sh
2045 # Generated automatically by configure.
2046 # Run this file to recreate the current configuration.
2047 # This directory was configured as follows,
2048 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2049 #
2050 # $0 $ac_configure_args
2051 #
2052 # Compiler output produced by configure, useful for debugging
2053 # configure, is in ./config.log if it exists.
2054
2055 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2056 for ac_option
2057 do
2058   case "\$ac_option" in
2059   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2060     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2061     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2062   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2063     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2064     exit 0 ;;
2065   -help | --help | --hel | --he | --h)
2066     echo "\$ac_cs_usage"; exit 0 ;;
2067   *) echo "\$ac_cs_usage"; exit 1 ;;
2068   esac
2069 done
2070
2071 ac_given_srcdir=$srcdir
2072 ac_given_INSTALL="$INSTALL"
2073
2074 trap 'rm -fr `echo "
2075 gob.spec
2076 Makefile
2077 src/Makefile
2078 doc/Makefile
2079 examples/Makefile
2080 doc/gob.1 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2081 EOF
2082 cat >> $CONFIG_STATUS <<EOF
2083
2084 # Protect against being on the right side of a sed subst in config.status.
2085 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2086  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2087 $ac_vpsub
2088 $extrasub
2089 s%@SHELL@%$SHELL%g
2090 s%@CFLAGS@%$CFLAGS%g
2091 s%@CPPFLAGS@%$CPPFLAGS%g
2092 s%@CXXFLAGS@%$CXXFLAGS%g
2093 s%@FFLAGS@%$FFLAGS%g
2094 s%@DEFS@%$DEFS%g
2095 s%@LDFLAGS@%$LDFLAGS%g
2096 s%@LIBS@%$LIBS%g
2097 s%@exec_prefix@%$exec_prefix%g
2098 s%@prefix@%$prefix%g
2099 s%@program_transform_name@%$program_transform_name%g
2100 s%@bindir@%$bindir%g
2101 s%@sbindir@%$sbindir%g
2102 s%@libexecdir@%$libexecdir%g
2103 s%@datadir@%$datadir%g
2104 s%@sysconfdir@%$sysconfdir%g
2105 s%@sharedstatedir@%$sharedstatedir%g
2106 s%@localstatedir@%$localstatedir%g
2107 s%@libdir@%$libdir%g
2108 s%@includedir@%$includedir%g
2109 s%@oldincludedir@%$oldincludedir%g
2110 s%@infodir@%$infodir%g
2111 s%@mandir@%$mandir%g
2112 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2113 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2114 s%@INSTALL_DATA@%$INSTALL_DATA%g
2115 s%@PACKAGE@%$PACKAGE%g
2116 s%@VERSION@%$VERSION%g
2117 s%@ACLOCAL@%$ACLOCAL%g
2118 s%@AUTOCONF@%$AUTOCONF%g
2119 s%@AUTOMAKE@%$AUTOMAKE%g
2120 s%@AUTOHEADER@%$AUTOHEADER%g
2121 s%@MAKEINFO@%$MAKEINFO%g
2122 s%@SET_MAKE@%$SET_MAKE%g
2123 s%@SUBDIRS@%$SUBDIRS%g
2124 s%@DOINSTGOB@%$DOINSTGOB%g
2125 s%@NOINSTGOB@%$NOINSTGOB%g
2126 s%@CC@%$CC%g
2127 s%@CPP@%$CPP%g
2128 s%@YACC@%$YACC%g
2129 s%@LEX@%$LEX%g
2130 s%@LEXLIB@%$LEXLIB%g
2131 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
2132 s%@RM@%$RM%g
2133 s%@MV@%$MV%g
2134 s%@TAR@%$TAR%g
2135 s%@GLIB_CONFIG@%$GLIB_CONFIG%g
2136 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
2137 s%@GLIB_LIBS@%$GLIB_LIBS%g
2138 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2139 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2140 s%@MAINT@%$MAINT%g
2141
2142 CEOF
2143 EOF
2144
2145 cat >> $CONFIG_STATUS <<\EOF
2146
2147 # Split the substitutions into bite-sized pieces for seds with
2148 # small command number limits, like on Digital OSF/1 and HP-UX.
2149 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2150 ac_file=1 # Number of current file.
2151 ac_beg=1 # First line for current file.
2152 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2153 ac_more_lines=:
2154 ac_sed_cmds=""
2155 while $ac_more_lines; do
2156   if test $ac_beg -gt 1; then
2157     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2158   else
2159     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2160   fi
2161   if test ! -s conftest.s$ac_file; then
2162     ac_more_lines=false
2163     rm -f conftest.s$ac_file
2164   else
2165     if test -z "$ac_sed_cmds"; then
2166       ac_sed_cmds="sed -f conftest.s$ac_file"
2167     else
2168       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2169     fi
2170     ac_file=`expr $ac_file + 1`
2171     ac_beg=$ac_end
2172     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2173   fi
2174 done
2175 if test -z "$ac_sed_cmds"; then
2176   ac_sed_cmds=cat
2177 fi
2178 EOF
2179
2180 cat >> $CONFIG_STATUS <<EOF
2181
2182 CONFIG_FILES=\${CONFIG_FILES-"gob.spec
2183 Makefile
2184 src/Makefile
2185 doc/Makefile
2186 examples/Makefile
2187 doc/gob.1"}
2188 EOF
2189 cat >> $CONFIG_STATUS <<\EOF
2190 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2191   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2192   case "$ac_file" in
2193   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2194        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2195   *) ac_file_in="${ac_file}.in" ;;
2196   esac
2197
2198   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2199
2200   # Remove last slash and all that follows it.  Not all systems have dirname.
2201   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2202   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2203     # The file is in a subdirectory.
2204     test ! -d "$ac_dir" && mkdir "$ac_dir"
2205     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2206     # A "../" for each directory in $ac_dir_suffix.
2207     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2208   else
2209     ac_dir_suffix= ac_dots=
2210   fi
2211
2212   case "$ac_given_srcdir" in
2213   .)  srcdir=.
2214       if test -z "$ac_dots"; then top_srcdir=.
2215       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2216   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2217   *) # Relative path.
2218     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2219     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2220   esac
2221
2222   case "$ac_given_INSTALL" in
2223   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2224   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2225   esac
2226
2227   echo creating "$ac_file"
2228   rm -f "$ac_file"
2229   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2230   case "$ac_file" in
2231   *Makefile*) ac_comsub="1i\\
2232 # $configure_input" ;;
2233   *) ac_comsub= ;;
2234   esac
2235
2236   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2237   sed -e "$ac_comsub
2238 s%@configure_input@%$configure_input%g
2239 s%@srcdir@%$srcdir%g
2240 s%@top_srcdir@%$top_srcdir%g
2241 s%@INSTALL@%$INSTALL%g
2242 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2243 fi; done
2244 rm -f conftest.s*
2245
2246 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2247 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2248 #
2249 # ac_d sets the value in "#define NAME VALUE" lines.
2250 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2251 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2252 ac_dC='\3'
2253 ac_dD='%g'
2254 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2255 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2256 ac_uB='\([      ]\)%\1#\2define\3'
2257 ac_uC=' '
2258 ac_uD='\4%g'
2259 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2260 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2261 ac_eB='$%\1#\2define\3'
2262 ac_eC=' '
2263 ac_eD='%g'
2264
2265 if test "${CONFIG_HEADERS+set}" != set; then
2266 EOF
2267 cat >> $CONFIG_STATUS <<EOF
2268   CONFIG_HEADERS="config.h"
2269 EOF
2270 cat >> $CONFIG_STATUS <<\EOF
2271 fi
2272 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2273   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2274   case "$ac_file" in
2275   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2276        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2277   *) ac_file_in="${ac_file}.in" ;;
2278   esac
2279
2280   echo creating $ac_file
2281
2282   rm -f conftest.frag conftest.in conftest.out
2283   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2284   cat $ac_file_inputs > conftest.in
2285
2286 EOF
2287
2288 # Transform confdefs.h into a sed script conftest.vals that substitutes
2289 # the proper values into config.h.in to produce config.h.  And first:
2290 # Protect against being on the right side of a sed subst in config.status.
2291 # Protect against being in an unquoted here document in config.status.
2292 rm -f conftest.vals
2293 cat > conftest.hdr <<\EOF
2294 s/[\\&%]/\\&/g
2295 s%[\\$`]%\\&%g
2296 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2297 s%ac_d%ac_u%gp
2298 s%ac_u%ac_e%gp
2299 EOF
2300 sed -n -f conftest.hdr confdefs.h > conftest.vals
2301 rm -f conftest.hdr
2302
2303 # This sed command replaces #undef with comments.  This is necessary, for
2304 # example, in the case of _POSIX_SOURCE, which is predefined and required
2305 # on some systems where configure will not decide to define it.
2306 cat >> conftest.vals <<\EOF
2307 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2308 EOF
2309
2310 # Break up conftest.vals because some shells have a limit on
2311 # the size of here documents, and old seds have small limits too.
2312
2313 rm -f conftest.tail
2314 while :
2315 do
2316   ac_lines=`grep -c . conftest.vals`
2317   # grep -c gives empty output for an empty file on some AIX systems.
2318   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2319   # Write a limited-size here document to conftest.frag.
2320   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2321   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2322   echo 'CEOF
2323   sed -f conftest.frag conftest.in > conftest.out
2324   rm -f conftest.in
2325   mv conftest.out conftest.in
2326 ' >> $CONFIG_STATUS
2327   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2328   rm -f conftest.vals
2329   mv conftest.tail conftest.vals
2330 done
2331 rm -f conftest.vals
2332
2333 cat >> $CONFIG_STATUS <<\EOF
2334   rm -f conftest.frag conftest.h
2335   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2336   cat conftest.in >> conftest.h
2337   rm -f conftest.in
2338   if cmp -s $ac_file conftest.h 2>/dev/null; then
2339     echo "$ac_file is unchanged"
2340     rm -f conftest.h
2341   else
2342     # Remove last slash and all that follows it.  Not all systems have dirname.
2343       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2344       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2345       # The file is in a subdirectory.
2346       test ! -d "$ac_dir" && mkdir "$ac_dir"
2347     fi
2348     rm -f $ac_file
2349     mv conftest.h $ac_file
2350   fi
2351 fi; done
2352
2353 EOF
2354 cat >> $CONFIG_STATUS <<EOF
2355
2356
2357 EOF
2358 cat >> $CONFIG_STATUS <<\EOF
2359 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2360
2361 exit 0
2362 EOF
2363 chmod +x $CONFIG_STATUS
2364 rm -fr confdefs* $ac_clean_files
2365 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2366