]> git.donarmstrong.com Git - lilypond.git/blob - configure
release: 1.0.8
[lilypond.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12 
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   enable-config=FILE      put configure settings in config-FILE.make"
16 ac_help="$ac_help
17   enable-checking         set runtime checks (assert calls). Default: on"
18 ac_help="$ac_help
19   enable-optimise         use maximal speed optimisations. Default: off"
20 ac_help="$ac_help
21   enable-profiling        compile with gprof support. Default: off"
22 ac_help="$ac_help
23   enable-debugging        set debug info. Default: on"
24 ac_help="$ac_help
25   enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)"
26 ac_help="$ac_help
27   enable-printing         turn on debug printing. Default: off"
28 ac_help="$ac_help
29   with-localedir=LOCALE   use LOCALE as locale dir. Default: PREFIX/share/locale "
30 ac_help="$ac_help
31   with-lang=LANG          use LANG as language to emit messages"
32 ac_help="$ac_help
33   enable-tex-prefix=DIR   set the tex-directory to find TeX subdirectories. (default: PREFIX)"
34 ac_help="$ac_help
35   enable-tex-dir=DIR      set the directory to put $PACKAGE_NAME TeX files in. "
36 ac_help="$ac_help
37   enable-mf-dir=DIR       set the directory to put $PACKAGE_NAME MetaFont files in. "
38
39 # Initialize some variables set by options.
40 # The variables have the same names as the options, with
41 # dashes changed to underlines.
42 build=NONE
43 cache_file=./config.cache
44 exec_prefix=NONE
45 host=NONE
46 no_create=
47 nonopt=NONE
48 no_recursion=
49 prefix=NONE
50 program_prefix=NONE
51 program_suffix=NONE
52 program_transform_name=s,x,x,
53 silent=
54 site=
55 srcdir=
56 target=NONE
57 verbose=
58 x_includes=NONE
59 x_libraries=NONE
60 bindir='${exec_prefix}/bin'
61 sbindir='${exec_prefix}/sbin'
62 libexecdir='${exec_prefix}/libexec'
63 datadir='${prefix}/share'
64 sysconfdir='${prefix}/etc'
65 sharedstatedir='${prefix}/com'
66 localstatedir='${prefix}/var'
67 libdir='${exec_prefix}/lib'
68 includedir='${prefix}/include'
69 oldincludedir='/usr/include'
70 infodir='${prefix}/info'
71 mandir='${prefix}/man'
72
73 # Initialize some other variables.
74 subdirs=
75 MFLAGS= MAKEFLAGS=
76 # Maximum number of lines to put in a shell here document.
77 ac_max_here_lines=12
78
79 ac_prev=
80 for ac_option
81 do
82
83   # If the previous option needs an argument, assign it.
84   if test -n "$ac_prev"; then
85     eval "$ac_prev=\$ac_option"
86     ac_prev=
87     continue
88   fi
89
90   case "$ac_option" in
91   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92   *) ac_optarg= ;;
93   esac
94
95   # Accept the important Cygnus configure options, so we can diagnose typos.
96
97   case "$ac_option" in
98
99   -bindir | --bindir | --bindi | --bind | --bin | --bi)
100     ac_prev=bindir ;;
101   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
102     bindir="$ac_optarg" ;;
103
104   -build | --build | --buil | --bui | --bu)
105     ac_prev=build ;;
106   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
107     build="$ac_optarg" ;;
108
109   -cache-file | --cache-file | --cache-fil | --cache-fi \
110   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
111     ac_prev=cache_file ;;
112   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
113   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
114     cache_file="$ac_optarg" ;;
115
116   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
117     ac_prev=datadir ;;
118   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
119   | --da=*)
120     datadir="$ac_optarg" ;;
121
122   -disable-* | --disable-*)
123     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
124     # Reject names that are not valid shell variable names.
125     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
126       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127     fi
128     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129     eval "enable_${ac_feature}=no" ;;
130
131   -enable-* | --enable-*)
132     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
133     # Reject names that are not valid shell variable names.
134     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
135       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136     fi
137     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138     case "$ac_option" in
139       *=*) ;;
140       *) ac_optarg=yes ;;
141     esac
142     eval "enable_${ac_feature}='$ac_optarg'" ;;
143
144   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
145   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
146   | --exec | --exe | --ex)
147     ac_prev=exec_prefix ;;
148   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
149   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
150   | --exec=* | --exe=* | --ex=*)
151     exec_prefix="$ac_optarg" ;;
152
153   -gas | --gas | --ga | --g)
154     # Obsolete; use --with-gas.
155     with_gas=yes ;;
156
157   -help | --help | --hel | --he)
158     # Omit some internal or obsolete options to make the list less imposing.
159     # This message is too long to be a string in the A/UX 3.1 sh.
160     cat << EOF
161 Usage: configure [options] [host]
162 Options: [defaults in brackets after descriptions]
163 Configuration:
164   --cache-file=FILE       cache test results in FILE
165   --help                  print this message
166   --no-create             do not create output files
167   --quiet, --silent       do not print \`checking...' messages
168   --version               print the version of autoconf that created configure
169 Directory and file names:
170   --prefix=PREFIX         install architecture-independent files in PREFIX
171                           [$ac_default_prefix]
172   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
173                           [same as prefix]
174   --bindir=DIR            user executables in DIR [EPREFIX/bin]
175   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
176   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
177   --datadir=DIR           read-only architecture-independent data in DIR
178                           [PREFIX/share]
179   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
180   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
181                           [PREFIX/com]
182   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
183   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
184   --includedir=DIR        C header files in DIR [PREFIX/include]
185   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
186   --infodir=DIR           info documentation in DIR [PREFIX/info]
187   --mandir=DIR            man documentation in DIR [PREFIX/man]
188   --srcdir=DIR            find the sources in DIR [configure dir or ..]
189   --program-prefix=PREFIX prepend PREFIX to installed program names
190   --program-suffix=SUFFIX append SUFFIX to installed program names
191   --program-transform-name=PROGRAM
192                           run sed PROGRAM on installed program names
193 EOF
194     cat << EOF
195 Host type:
196   --build=BUILD           configure for building on BUILD [BUILD=HOST]
197   --host=HOST             configure for HOST [guessed]
198   --target=TARGET         configure for TARGET [TARGET=HOST]
199 Features and packages:
200   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
201   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
202   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
203   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
204   --x-includes=DIR        X include files are in DIR
205   --x-libraries=DIR       X library files are in DIR
206 EOF
207     if test -n "$ac_help"; then
208       echo "--enable and --with options recognized:$ac_help"
209     fi
210     exit 0 ;;
211
212   -host | --host | --hos | --ho)
213     ac_prev=host ;;
214   -host=* | --host=* | --hos=* | --ho=*)
215     host="$ac_optarg" ;;
216
217   -includedir | --includedir | --includedi | --included | --include \
218   | --includ | --inclu | --incl | --inc)
219     ac_prev=includedir ;;
220   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
221   | --includ=* | --inclu=* | --incl=* | --inc=*)
222     includedir="$ac_optarg" ;;
223
224   -infodir | --infodir | --infodi | --infod | --info | --inf)
225     ac_prev=infodir ;;
226   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227     infodir="$ac_optarg" ;;
228
229   -libdir | --libdir | --libdi | --libd)
230     ac_prev=libdir ;;
231   -libdir=* | --libdir=* | --libdi=* | --libd=*)
232     libdir="$ac_optarg" ;;
233
234   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
235   | --libexe | --libex | --libe)
236     ac_prev=libexecdir ;;
237   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
238   | --libexe=* | --libex=* | --libe=*)
239     libexecdir="$ac_optarg" ;;
240
241   -localstatedir | --localstatedir | --localstatedi | --localstated \
242   | --localstate | --localstat | --localsta | --localst \
243   | --locals | --local | --loca | --loc | --lo)
244     ac_prev=localstatedir ;;
245   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
246   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
247   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
248     localstatedir="$ac_optarg" ;;
249
250   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
251     ac_prev=mandir ;;
252   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253     mandir="$ac_optarg" ;;
254
255   -nfp | --nfp | --nf)
256     # Obsolete; use --without-fp.
257     with_fp=no ;;
258
259   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260   | --no-cr | --no-c)
261     no_create=yes ;;
262
263   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
265     no_recursion=yes ;;
266
267   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
268   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
269   | --oldin | --oldi | --old | --ol | --o)
270     ac_prev=oldincludedir ;;
271   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
272   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
273   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
274     oldincludedir="$ac_optarg" ;;
275
276   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
277     ac_prev=prefix ;;
278   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279     prefix="$ac_optarg" ;;
280
281   -program-prefix | --program-prefix | --program-prefi | --program-pref \
282   | --program-pre | --program-pr | --program-p)
283     ac_prev=program_prefix ;;
284   -program-prefix=* | --program-prefix=* | --program-prefi=* \
285   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
286     program_prefix="$ac_optarg" ;;
287
288   -program-suffix | --program-suffix | --program-suffi | --program-suff \
289   | --program-suf | --program-su | --program-s)
290     ac_prev=program_suffix ;;
291   -program-suffix=* | --program-suffix=* | --program-suffi=* \
292   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
293     program_suffix="$ac_optarg" ;;
294
295   -program-transform-name | --program-transform-name \
296   | --program-transform-nam | --program-transform-na \
297   | --program-transform-n | --program-transform- \
298   | --program-transform | --program-transfor \
299   | --program-transfo | --program-transf \
300   | --program-trans | --program-tran \
301   | --progr-tra | --program-tr | --program-t)
302     ac_prev=program_transform_name ;;
303   -program-transform-name=* | --program-transform-name=* \
304   | --program-transform-nam=* | --program-transform-na=* \
305   | --program-transform-n=* | --program-transform-=* \
306   | --program-transform=* | --program-transfor=* \
307   | --program-transfo=* | --program-transf=* \
308   | --program-trans=* | --program-tran=* \
309   | --progr-tra=* | --program-tr=* | --program-t=*)
310     program_transform_name="$ac_optarg" ;;
311
312   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313   | -silent | --silent | --silen | --sile | --sil)
314     silent=yes ;;
315
316   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
317     ac_prev=sbindir ;;
318   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
319   | --sbi=* | --sb=*)
320     sbindir="$ac_optarg" ;;
321
322   -sharedstatedir | --sharedstatedir | --sharedstatedi \
323   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324   | --sharedst | --shareds | --shared | --share | --shar \
325   | --sha | --sh)
326     ac_prev=sharedstatedir ;;
327   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
330   | --sha=* | --sh=*)
331     sharedstatedir="$ac_optarg" ;;
332
333   -site | --site | --sit)
334     ac_prev=site ;;
335   -site=* | --site=* | --sit=*)
336     site="$ac_optarg" ;;
337
338   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
339     ac_prev=srcdir ;;
340   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
341     srcdir="$ac_optarg" ;;
342
343   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
344   | --syscon | --sysco | --sysc | --sys | --sy)
345     ac_prev=sysconfdir ;;
346   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
347   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
348     sysconfdir="$ac_optarg" ;;
349
350   -target | --target | --targe | --targ | --tar | --ta | --t)
351     ac_prev=target ;;
352   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
353     target="$ac_optarg" ;;
354
355   -v | -verbose | --verbose | --verbos | --verbo | --verb)
356     verbose=yes ;;
357
358   -version | --version | --versio | --versi | --vers)
359     echo "configure generated by autoconf version 2.12"
360     exit 0 ;;
361
362   -with-* | --with-*)
363     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
364     # Reject names that are not valid shell variable names.
365     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
366       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367     fi
368     ac_package=`echo $ac_package| sed 's/-/_/g'`
369     case "$ac_option" in
370       *=*) ;;
371       *) ac_optarg=yes ;;
372     esac
373     eval "with_${ac_package}='$ac_optarg'" ;;
374
375   -without-* | --without-*)
376     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
377     # Reject names that are not valid shell variable names.
378     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
379       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380     fi
381     ac_package=`echo $ac_package| sed 's/-/_/g'`
382     eval "with_${ac_package}=no" ;;
383
384   --x)
385     # Obsolete; use --with-x.
386     with_x=yes ;;
387
388   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
389   | --x-incl | --x-inc | --x-in | --x-i)
390     ac_prev=x_includes ;;
391   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
392   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
393     x_includes="$ac_optarg" ;;
394
395   -x-libraries | --x-libraries | --x-librarie | --x-librari \
396   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
397     ac_prev=x_libraries ;;
398   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
399   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
400     x_libraries="$ac_optarg" ;;
401
402   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403     ;;
404
405   *)
406     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
407       echo "configure: warning: $ac_option: invalid host type" 1>&2
408     fi
409     if test "x$nonopt" != xNONE; then
410       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411     fi
412     nonopt="$ac_option"
413     ;;
414
415   esac
416 done
417
418 if test -n "$ac_prev"; then
419   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 fi
421
422 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
423
424 # File descriptor usage:
425 # 0 standard input
426 # 1 file creation
427 # 2 errors and warnings
428 # 3 some systems may open it to /dev/tty
429 # 4 used on the Kubota Titan
430 # 6 checking for... messages and results
431 # 5 compiler messages saved in config.log
432 if test "$silent" = yes; then
433   exec 6>/dev/null
434 else
435   exec 6>&1
436 fi
437 exec 5>./config.log
438
439 echo "\
440 This file contains any messages produced by compilers while
441 running configure, to aid debugging if configure makes a mistake.
442 " 1>&5
443
444 # Strip out --no-create and --no-recursion so they do not pile up.
445 # Also quote any args containing shell metacharacters.
446 ac_configure_args=
447 for ac_arg
448 do
449   case "$ac_arg" in
450   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
451   | --no-cr | --no-c) ;;
452   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
454   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
455   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
456   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
457   esac
458 done
459
460 # NLS nuisances.
461 # Only set these to C if already set.  These must not be set unconditionally
462 # because not all systems understand e.g. LANG=C (notably SCO).
463 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
464 # Non-C LC_CTYPE values break the ctype check.
465 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
466 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
467 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
468 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
469
470 # confdefs.h avoids OS command line length limits that DEFS can exceed.
471 rm -rf conftest* confdefs.h
472 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 echo > confdefs.h
474
475 # A filename unique to this package, relative to the directory that
476 # configure is in, which we can look for to find out if srcdir is correct.
477 ac_unique_file=make/lilypond.lsm.in
478
479 # Find the source files, if location was not specified.
480 if test -z "$srcdir"; then
481   ac_srcdir_defaulted=yes
482   # Try the directory containing this script, then its parent.
483   ac_prog=$0
484   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
485   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
486   srcdir=$ac_confdir
487   if test ! -r $srcdir/$ac_unique_file; then
488     srcdir=..
489   fi
490 else
491   ac_srcdir_defaulted=no
492 fi
493 if test ! -r $srcdir/$ac_unique_file; then
494   if test "$ac_srcdir_defaulted" = yes; then
495     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
496   else
497     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498   fi
499 fi
500 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
501
502 # Prefer explicitly selected file to automatically selected ones.
503 if test -z "$CONFIG_SITE"; then
504   if test "x$prefix" != xNONE; then
505     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
506   else
507     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508   fi
509 fi
510 for ac_site_file in $CONFIG_SITE; do
511   if test -r "$ac_site_file"; then
512     echo "loading site script $ac_site_file"
513     . "$ac_site_file"
514   fi
515 done
516
517 if test -r "$cache_file"; then
518   echo "loading cache $cache_file"
519   . $cache_file
520 else
521   echo "creating cache $cache_file"
522   > $cache_file
523 fi
524
525 ac_ext=c
526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
527 ac_cpp='$CPP $CPPFLAGS'
528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
529 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
530 cross_compiling=$ac_cv_prog_cc_cross
531
532 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
533   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535     ac_n= ac_c='
536 ' ac_t='        '
537   else
538     ac_n=-n ac_c= ac_t=
539   fi
540 else
541   ac_n= ac_c='\c' ac_t=
542 fi
543
544
545
546
547 # Bootstrap StepMake configure
548
549
550     . $srcdir/VERSION
551     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
552     if test x$MY_PATCH_LEVEL != x; then
553         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
554     fi
555
556     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
557         PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
558     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
559     
560     if test "x$PACKAGE" = "xSTEPMAKE"; then
561         echo Stepmake package!
562         (cd stepmake; rm -f stepmake; ln -s ../stepmake .)
563         (cd stepmake; rm -f bin; ln -s ../bin .)
564         ac_aux_dir=
565 for ac_dir in bin $srcdir/bin; do
566   if test -f $ac_dir/install-sh; then
567     ac_aux_dir=$ac_dir
568     ac_install_sh="$ac_aux_dir/install-sh -c"
569     break
570   elif test -f $ac_dir/install.sh; then
571     ac_aux_dir=$ac_dir
572     ac_install_sh="$ac_aux_dir/install.sh -c"
573     break
574   fi
575 done
576 if test -z "$ac_aux_dir"; then
577   { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
578 fi
579 ac_config_guess=$ac_aux_dir/config.guess
580 ac_config_sub=$ac_aux_dir/config.sub
581 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
582
583     else
584         echo Package: $PACKAGE
585         ac_aux_dir=
586 for ac_dir in stepmake/bin $srcdir/stepmake/bin; do
587   if test -f $ac_dir/install-sh; then
588     ac_aux_dir=$ac_dir
589     ac_install_sh="$ac_aux_dir/install-sh -c"
590     break
591   elif test -f $ac_dir/install.sh; then
592     ac_aux_dir=$ac_dir
593     ac_install_sh="$ac_aux_dir/install.sh -c"
594     break
595   fi
596 done
597 if test -z "$ac_aux_dir"; then
598   { echo "configure: error: can not find install-sh or install.sh in stepmake/bin $srcdir/stepmake/bin" 1>&2; exit 1; }
599 fi
600 ac_config_guess=$ac_aux_dir/config.guess
601 ac_config_sub=$ac_aux_dir/config.sub
602 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
603
604     fi
605
606     
607     
608     
609     cat >> confdefs.h <<EOF
610 #define PACKAGE "${PACKAGE_NAME}"
611 EOF
612
613     cat >> confdefs.h <<EOF
614 #define TOPLEVEL_VERSION "${FULL_VERSION}"
615 EOF
616
617
618     package_depth=`dirname $cache_file`
619     
620
621     AUTOGENERATE="This file was automatically generated by configure"
622     
623     absolute_builddir="`pwd`"
624     
625
626     # No versioning on directory names of sub-packages 
627     stepmake=stepmake
628     
629
630     STATE_VECTOR=`ls make/STATE-VECTOR 2>/dev/null`
631     if test "x$STATE_VECTOR" != "x"; then
632         STATE_VECTOR="\$(depth)/$STATE_VECTOR"
633     fi
634     
635
636     CONFIGSUFFIX=
637     # Check whether --enable-config or --disable-config was given.
638 if test "${enable_config+set}" = set; then
639   enableval="$enable_config"
640   CONFIGSUFFIX=$enableval
641 fi
642
643
644     if test "$CONFIGSUFFIX" != "" ; then
645         CONFIGFILE=config-$CONFIGSUFFIX
646     else
647         CONFIGFILE=config
648     fi
649     
650      
651     
652 # Make sure we can run config.sub.
653 if $ac_config_sub sun4 >/dev/null 2>&1; then :
654 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
655 fi
656
657 echo $ac_n "checking host system type""... $ac_c" 1>&6
658 echo "configure:659: checking host system type" >&5
659
660 host_alias=$host
661 case "$host_alias" in
662 NONE)
663   case $nonopt in
664   NONE)
665     if host_alias=`$ac_config_guess`; then :
666     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
667     fi ;;
668   *) host_alias=$nonopt ;;
669   esac ;;
670 esac
671
672 host=`$ac_config_sub $host_alias`
673 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
674 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
675 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
676 echo "$ac_t""$host" 1>&6
677
678     for ac_prog in make
679 do
680 # Extract the first word of "$ac_prog", so it can be a program name with args.
681 set dummy $ac_prog; ac_word=$2
682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683 echo "configure:684: checking for $ac_word" >&5
684 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
685   echo $ac_n "(cached) $ac_c" 1>&6
686 else
687   if test -n "$MAKE"; then
688   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
689 else
690   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
691   for ac_dir in $PATH; do
692     test -z "$ac_dir" && ac_dir=.
693     if test -f $ac_dir/$ac_word; then
694       ac_cv_prog_MAKE="$ac_prog"
695       break
696     fi
697   done
698   IFS="$ac_save_ifs"
699 fi
700 fi
701 MAKE="$ac_cv_prog_MAKE"
702 if test -n "$MAKE"; then
703   echo "$ac_t""$MAKE" 1>&6
704 else
705   echo "$ac_t""no" 1>&6
706 fi
707
708 test -n "$MAKE" && break
709 done
710 test -n "$MAKE" || MAKE="error"
711
712     for ac_prog in find
713 do
714 # Extract the first word of "$ac_prog", so it can be a program name with args.
715 set dummy $ac_prog; ac_word=$2
716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
717 echo "configure:718: checking for $ac_word" >&5
718 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
719   echo $ac_n "(cached) $ac_c" 1>&6
720 else
721   if test -n "$FIND"; then
722   ac_cv_prog_FIND="$FIND" # Let the user override the test.
723 else
724   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
725   for ac_dir in $PATH; do
726     test -z "$ac_dir" && ac_dir=.
727     if test -f $ac_dir/$ac_word; then
728       ac_cv_prog_FIND="$ac_prog"
729       break
730     fi
731   done
732   IFS="$ac_save_ifs"
733 fi
734 fi
735 FIND="$ac_cv_prog_FIND"
736 if test -n "$FIND"; then
737   echo "$ac_t""$FIND" 1>&6
738 else
739   echo "$ac_t""no" 1>&6
740 fi
741
742 test -n "$FIND" && break
743 done
744 test -n "$FIND" || FIND="error"
745
746
747
748
749     for ac_prog in tar
750 do
751 # Extract the first word of "$ac_prog", so it can be a program name with args.
752 set dummy $ac_prog; ac_word=$2
753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
754 echo "configure:755: checking for $ac_word" >&5
755 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
756   echo $ac_n "(cached) $ac_c" 1>&6
757 else
758   if test -n "$TAR"; then
759   ac_cv_prog_TAR="$TAR" # Let the user override the test.
760 else
761   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
762   for ac_dir in $PATH; do
763     test -z "$ac_dir" && ac_dir=.
764     if test -f $ac_dir/$ac_word; then
765       ac_cv_prog_TAR="$ac_prog"
766       break
767     fi
768   done
769   IFS="$ac_save_ifs"
770 fi
771 fi
772 TAR="$ac_cv_prog_TAR"
773 if test -n "$TAR"; then
774   echo "$ac_t""$TAR" 1>&6
775 else
776   echo "$ac_t""no" 1>&6
777 fi
778
779 test -n "$TAR" && break
780 done
781 test -n "$TAR" || TAR="error"
782
783     for ac_prog in bash
784 do
785 # Extract the first word of "$ac_prog", so it can be a program name with args.
786 set dummy $ac_prog; ac_word=$2
787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
788 echo "configure:789: checking for $ac_word" >&5
789 if eval "test \"`echo '$''{'ac_cv_prog_BASH'+set}'`\" = set"; then
790   echo $ac_n "(cached) $ac_c" 1>&6
791 else
792   if test -n "$BASH"; then
793   ac_cv_prog_BASH="$BASH" # Let the user override the test.
794 else
795   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
796   for ac_dir in $PATH; do
797     test -z "$ac_dir" && ac_dir=.
798     if test -f $ac_dir/$ac_word; then
799       ac_cv_prog_BASH="$ac_prog"
800       break
801     fi
802   done
803   IFS="$ac_save_ifs"
804 fi
805 fi
806 BASH="$ac_cv_prog_BASH"
807 if test -n "$BASH"; then
808   echo "$ac_t""$BASH" 1>&6
809 else
810   echo "$ac_t""no" 1>&6
811 fi
812
813 test -n "$BASH" && break
814 done
815 test -n "$BASH" || BASH="/bin/sh"
816
817
818     # Extract the first word of "python", so it can be a program name with args.
819 set dummy python; ac_word=$2
820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
821 echo "configure:822: checking for $ac_word" >&5
822 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
823   echo $ac_n "(cached) $ac_c" 1>&6
824 else
825   case "$PYTHON" in
826   /*)
827   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
828   ;;
829   *)
830   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
831   for ac_dir in $PATH; do
832     test -z "$ac_dir" && ac_dir=.
833     if test -f $ac_dir/$ac_word; then
834       ac_cv_path_PYTHON="$ac_dir/$ac_word"
835       break
836     fi
837   done
838   IFS="$ac_save_ifs"
839   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
840   ;;
841 esac
842 fi
843 PYTHON="$ac_cv_path_PYTHON"
844 if test -n "$PYTHON"; then
845   echo "$ac_t""$PYTHON" 1>&6
846 else
847   echo "$ac_t""no" 1>&6
848 fi
849
850     
851
852
853     
854         result="`echo \"$MAKE\" | grep echo`"
855         if test "x$MAKE" = "xerror" -o "x$result" != "x"; then
856                 
857     echo "configure: warning: can\'t find GNU make. You should install GNU make" 1>&2
858     warn_b=yes
859
860         fi
861
862     if test $MAKE != "error" ; then
863         $MAKE -v| grep GNU > /dev/null
864         if test "$?" = 1
865         then
866                 
867     echo "configure: warning: Please install *GNU* make" 1>&2
868     warn_b=yes
869  
870         fi 
871     fi 
872
873     
874         result="`echo \"$PYTHON\" | grep echo`"
875         if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
876                 
877     echo "configure: warning: can\'t find python. You should install Python" 1>&2
878     warn_b=yes
879
880         fi
881
882
883     if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
884         LN=cp # hard link does not work under cygnus-nt
885         LN_S=cp # symbolic link does not work for native nt
886         ZIP="zip -r -9" #
887         DOTEXE=.exe
888        DIRSEP='\\'
889         PATHSEP=';'
890        INSTALL="\$(stepdir)/../bin/install-dot-exe.sh -c"
891     else
892         DIRSEP='/'
893         PATHSEP=':'
894         LN=ln
895         LN_S='ln -s'
896         ZIP="zip -r -9"
897         INSTALL="\$(stepdir)/../bin/install-sh -c"
898     fi
899     
900     
901     
902     
903     
904    cat >> confdefs.h <<EOF
905 #define DIRSEP '${DIRSEP}'
906 EOF
907
908      cat >> confdefs.h <<EOF
909 #define PATHSEP '${PATHSEP}'
910 EOF
911
912   
913    
914     
915     if test "$datadir" = "\${prefix}/share"; then
916             datadir='${prefix}/share/'$package
917     fi
918     DIR_DATADIR=${datadir}
919     presome=${prefix}
920     if test "$prefix" = "NONE"; then
921             presome=${ac_default_prefix}
922     fi
923     DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
924     
925     
926     cat >> confdefs.h <<EOF
927 #define DIR_DATADIR "${DIR_DATADIR}"
928 EOF
929
930
931
932
933 # For all packages except the StepMake package itself
934 subdirs="stepmake"
935
936
937 # Uncomment the configuration options your package needs.
938
939     # -O is necessary to get inlining
940     OPTIMIZE=""
941     CXXFLAGS=${CXXFLAGS:-""}
942     checking_b=yes
943     optimise_b=no
944     profile_b=no
945     debug_b=yes
946
947     # Check whether --enable-checking or --disable-checking was given.
948 if test "${enable_checking+set}" = set; then
949   enableval="$enable_checking"
950   checking_b=$enableval 
951 fi
952
953
954     # actually, the default is: tja='-O' to get inlining...
955     # off=''  --jcn
956
957     #actually, that sucks.
958     #  tja looks like a typo.  Default is optimisation off. --hwn
959     
960     # Check whether --enable-optimise or --disable-optimise was given.
961 if test "${enable_optimise+set}" = set; then
962   enableval="$enable_optimise"
963   optimise_b=$enableval
964 fi
965
966     
967     # Check whether --enable-profiling or --disable-profiling was given.
968 if test "${enable_profiling+set}" = set; then
969   enableval="$enable_profiling"
970   profile_b=$enableval
971 fi
972
973     
974     # Check whether --enable-debugging or --disable-debugging was given.
975 if test "${enable_debugging+set}" = set; then
976   enableval="$enable_debugging"
977   debug_b=$enableval
978 fi
979
980
981     # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
982 if test "${enable_mingw_prefix+set}" = set; then
983   enableval="$enable_mingw_prefix"
984   MINGWPREFIX=$enableval
985 else
986   MINGWPREFIX=no
987 fi
988
989
990     if test "$printing_b" = no; then
991         # ugh
992         cat >> confdefs.h <<\EOF
993 #define NPRINT 1
994 EOF
995
996         DEFINES="$DEFINES -DNPRINT"
997     fi
998         
999     if test "$checking_b" = no; then
1000         # ugh
1001         cat >> confdefs.h <<\EOF
1002 #define NDEBUG 1
1003 EOF
1004
1005         DEFINES="$DEFINES -DNDEBUG"
1006     fi
1007
1008     if test "$optimise_b" = yes; then
1009         OPTIMIZE="-O2 -finline-functions"
1010     fi
1011
1012     if test "$optimise_b" = no; then
1013         OPTIMIZE=""
1014     fi
1015
1016     if test $profile_b = yes; then
1017         EXTRA_LIBES="-pg"
1018         OPTIMIZE="$OPTIMIZE -pg"
1019     fi
1020
1021     if test $debug_b = yes; then        
1022         OPTIMIZE="$OPTIMIZE -g"
1023     fi
1024
1025     # however, C++ support in mingw32 v 0.1.4 is still flaky
1026     if test x$MINGWPREFIX != xno; then 
1027         ICFLAGS="-I$MINGWPREFIX/include"
1028         ILDFLAGS="-$MINGWPREFIX/lib"
1029     fi
1030
1031     # Extract the first word of "gcc", so it can be a program name with args.
1032 set dummy gcc; ac_word=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036   echo $ac_n "(cached) $ac_c" 1>&6
1037 else
1038   if test -n "$CC"; then
1039   ac_cv_prog_CC="$CC" # Let the user override the test.
1040 else
1041   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1042   for ac_dir in $PATH; do
1043     test -z "$ac_dir" && ac_dir=.
1044     if test -f $ac_dir/$ac_word; then
1045       ac_cv_prog_CC="gcc"
1046       break
1047     fi
1048   done
1049   IFS="$ac_save_ifs"
1050 fi
1051 fi
1052 CC="$ac_cv_prog_CC"
1053 if test -n "$CC"; then
1054   echo "$ac_t""$CC" 1>&6
1055 else
1056   echo "$ac_t""no" 1>&6
1057 fi
1058
1059 if test -z "$CC"; then
1060   # Extract the first word of "cc", so it can be a program name with args.
1061 set dummy cc; ac_word=$2
1062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1063 echo "configure:1064: checking for $ac_word" >&5
1064 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1065   echo $ac_n "(cached) $ac_c" 1>&6
1066 else
1067   if test -n "$CC"; then
1068   ac_cv_prog_CC="$CC" # Let the user override the test.
1069 else
1070   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1071   ac_prog_rejected=no
1072   for ac_dir in $PATH; do
1073     test -z "$ac_dir" && ac_dir=.
1074     if test -f $ac_dir/$ac_word; then
1075       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1076         ac_prog_rejected=yes
1077         continue
1078       fi
1079       ac_cv_prog_CC="cc"
1080       break
1081     fi
1082   done
1083   IFS="$ac_save_ifs"
1084 if test $ac_prog_rejected = yes; then
1085   # We found a bogon in the path, so make sure we never use it.
1086   set dummy $ac_cv_prog_CC
1087   shift
1088   if test $# -gt 0; then
1089     # We chose a different compiler from the bogus one.
1090     # However, it has the same basename, so the bogon will be chosen
1091     # first if we set CC to just the basename; use the full file name.
1092     shift
1093     set dummy "$ac_dir/$ac_word" "$@"
1094     shift
1095     ac_cv_prog_CC="$@"
1096   fi
1097 fi
1098 fi
1099 fi
1100 CC="$ac_cv_prog_CC"
1101 if test -n "$CC"; then
1102   echo "$ac_t""$CC" 1>&6
1103 else
1104   echo "$ac_t""no" 1>&6
1105 fi
1106
1107   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1108 fi
1109
1110 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1111 echo "configure:1112: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1112
1113 ac_ext=c
1114 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1115 ac_cpp='$CPP $CPPFLAGS'
1116 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1117 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1118 cross_compiling=$ac_cv_prog_cc_cross
1119
1120 cat > conftest.$ac_ext <<EOF
1121 #line 1122 "configure"
1122 #include "confdefs.h"
1123 main(){return(0);}
1124 EOF
1125 if { (eval echo configure:1126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1126   ac_cv_prog_cc_works=yes
1127   # If we can't run a trivial program, we are probably using a cross compiler.
1128   if (./conftest; exit) 2>/dev/null; then
1129     ac_cv_prog_cc_cross=no
1130   else
1131     ac_cv_prog_cc_cross=yes
1132   fi
1133 else
1134   echo "configure: failed program was:" >&5
1135   cat conftest.$ac_ext >&5
1136   ac_cv_prog_cc_works=no
1137 fi
1138 rm -fr conftest*
1139
1140 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1141 if test $ac_cv_prog_cc_works = no; then
1142   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1143 fi
1144 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1146 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1147 cross_compiling=$ac_cv_prog_cc_cross
1148
1149 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1150 echo "configure:1151: checking whether we are using GNU C" >&5
1151 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1152   echo $ac_n "(cached) $ac_c" 1>&6
1153 else
1154   cat > conftest.c <<EOF
1155 #ifdef __GNUC__
1156   yes;
1157 #endif
1158 EOF
1159 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1160   ac_cv_prog_gcc=yes
1161 else
1162   ac_cv_prog_gcc=no
1163 fi
1164 fi
1165
1166 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1167
1168 if test $ac_cv_prog_gcc = yes; then
1169   GCC=yes
1170   ac_test_CFLAGS="${CFLAGS+set}"
1171   ac_save_CFLAGS="$CFLAGS"
1172   CFLAGS=
1173   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1174 echo "configure:1175: checking whether ${CC-cc} accepts -g" >&5
1175 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1176   echo $ac_n "(cached) $ac_c" 1>&6
1177 else
1178   echo 'void f(){}' > conftest.c
1179 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1180   ac_cv_prog_cc_g=yes
1181 else
1182   ac_cv_prog_cc_g=no
1183 fi
1184 rm -f conftest*
1185
1186 fi
1187
1188 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1189   if test "$ac_test_CFLAGS" = set; then
1190     CFLAGS="$ac_save_CFLAGS"
1191   elif test $ac_cv_prog_cc_g = yes; then
1192     CFLAGS="-g -O2"
1193   else
1194     CFLAGS="-O2"
1195   fi
1196 else
1197   GCC=
1198   test "${CFLAGS+set}" = set || CFLAGS="-g"
1199 fi
1200
1201     LD='$(CC)'
1202     
1203
1204     CPPFLAGS=${CPPFLAGS:-""}
1205     
1206     
1207     
1208     
1209     
1210     
1211
1212 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1213
1214 printing_b=no
1215 # Check whether --enable-printing or --disable-printing was given.
1216 if test "${enable_printing+set}" = set; then
1217   enableval="$enable_printing"
1218   printing_b=$enableval
1219 fi
1220
1221
1222 if test "$optimise_b" = yes; then
1223     DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1224     cat >> confdefs.h <<\EOF
1225 #define STRINGS_UTILS_INLINED 1
1226 EOF
1227
1228 fi
1229
1230 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1231 echo "configure:1232: checking how to run the C++ preprocessor" >&5
1232 if test -z "$CXXCPP"; then
1233 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1234   echo $ac_n "(cached) $ac_c" 1>&6
1235 else
1236   ac_ext=C
1237 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1238 ac_cpp='$CXXCPP $CPPFLAGS'
1239 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1240 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1241 cross_compiling=$ac_cv_prog_cxx_cross
1242   CXXCPP="${CXX-g++} -E"
1243   cat > conftest.$ac_ext <<EOF
1244 #line 1245 "configure"
1245 #include "confdefs.h"
1246 #include <stdlib.h>
1247 EOF
1248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1249 { (eval echo configure:1250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1250 ac_err=`grep -v '^ *+' conftest.out`
1251 if test -z "$ac_err"; then
1252   :
1253 else
1254   echo "$ac_err" >&5
1255   echo "configure: failed program was:" >&5
1256   cat conftest.$ac_ext >&5
1257   rm -rf conftest*
1258   CXXCPP=/lib/cpp
1259 fi
1260 rm -f conftest*
1261   ac_cv_prog_CXXCPP="$CXXCPP"
1262 fi
1263 fi
1264 CXXCPP="$ac_cv_prog_CXXCPP"
1265 echo "$ac_t""$CXXCPP" 1>&6
1266
1267
1268     ac_ext=C
1269 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1270 ac_cpp='$CXXCPP $CPPFLAGS'
1271 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1272 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1273 cross_compiling=$ac_cv_prog_cxx_cross
1274
1275     for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1276 do
1277 # Extract the first word of "$ac_prog", so it can be a program name with args.
1278 set dummy $ac_prog; ac_word=$2
1279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1280 echo "configure:1281: checking for $ac_word" >&5
1281 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1282   echo $ac_n "(cached) $ac_c" 1>&6
1283 else
1284   if test -n "$CXX"; then
1285   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1286 else
1287   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1288   for ac_dir in $PATH; do
1289     test -z "$ac_dir" && ac_dir=.
1290     if test -f $ac_dir/$ac_word; then
1291       ac_cv_prog_CXX="$ac_prog"
1292       break
1293     fi
1294   done
1295   IFS="$ac_save_ifs"
1296 fi
1297 fi
1298 CXX="$ac_cv_prog_CXX"
1299 if test -n "$CXX"; then
1300   echo "$ac_t""$CXX" 1>&6
1301 else
1302   echo "$ac_t""no" 1>&6
1303 fi
1304
1305 test -n "$CXX" && break
1306 done
1307 test -n "$CXX" || CXX="gcc"
1308
1309
1310 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1311 echo "configure:1312: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1312
1313 ac_ext=C
1314 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1315 ac_cpp='$CXXCPP $CPPFLAGS'
1316 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1317 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1318 cross_compiling=$ac_cv_prog_cxx_cross
1319
1320 cat > conftest.$ac_ext <<EOF
1321 #line 1322 "configure"
1322 #include "confdefs.h"
1323 main(){return(0);}
1324 EOF
1325 if { (eval echo configure:1326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1326   ac_cv_prog_cxx_works=yes
1327   # If we can't run a trivial program, we are probably using a cross compiler.
1328   if (./conftest; exit) 2>/dev/null; then
1329     ac_cv_prog_cxx_cross=no
1330   else
1331     ac_cv_prog_cxx_cross=yes
1332   fi
1333 else
1334   echo "configure: failed program was:" >&5
1335   cat conftest.$ac_ext >&5
1336   ac_cv_prog_cxx_works=no
1337 fi
1338 rm -fr conftest*
1339
1340 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1341 if test $ac_cv_prog_cxx_works = no; then
1342   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1343 fi
1344 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1345 echo "configure:1346: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1346 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1347 cross_compiling=$ac_cv_prog_cxx_cross
1348
1349 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1350 echo "configure:1351: checking whether we are using GNU C++" >&5
1351 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1352   echo $ac_n "(cached) $ac_c" 1>&6
1353 else
1354   cat > conftest.C <<EOF
1355 #ifdef __GNUC__
1356   yes;
1357 #endif
1358 EOF
1359 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1360   ac_cv_prog_gxx=yes
1361 else
1362   ac_cv_prog_gxx=no
1363 fi
1364 fi
1365
1366 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1367
1368 if test $ac_cv_prog_gxx = yes; then
1369   GXX=yes
1370   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1371   ac_save_CXXFLAGS="$CXXFLAGS"
1372   CXXFLAGS=
1373   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1374 echo "configure:1375: checking whether ${CXX-g++} accepts -g" >&5
1375 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1376   echo $ac_n "(cached) $ac_c" 1>&6
1377 else
1378   echo 'void f(){}' > conftest.cc
1379 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1380   ac_cv_prog_cxx_g=yes
1381 else
1382   ac_cv_prog_cxx_g=no
1383 fi
1384 rm -f conftest*
1385
1386 fi
1387
1388 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1389   if test "$ac_test_CXXFLAGS" = set; then
1390     CXXFLAGS="$ac_save_CXXFLAGS"
1391   elif test $ac_cv_prog_cxx_g = yes; then
1392     CXXFLAGS="-g -O2"
1393   else
1394     CXXFLAGS="-O2"
1395   fi
1396 else
1397   GXX=
1398   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1399 fi
1400
1401
1402     ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1403 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1404 echo "configure:1405: checking for FlexLexer.h" >&5
1405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1406   echo $ac_n "(cached) $ac_c" 1>&6
1407 else
1408   cat > conftest.$ac_ext <<EOF
1409 #line 1410 "configure"
1410 #include "confdefs.h"
1411 #include <FlexLexer.h>
1412 EOF
1413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1414 { (eval echo configure:1415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1415 ac_err=`grep -v '^ *+' conftest.out`
1416 if test -z "$ac_err"; then
1417   rm -rf conftest*
1418   eval "ac_cv_header_$ac_safe=yes"
1419 else
1420   echo "$ac_err" >&5
1421   echo "configure: failed program was:" >&5
1422   cat conftest.$ac_ext >&5
1423   rm -rf conftest*
1424   eval "ac_cv_header_$ac_safe=no"
1425 fi
1426 rm -f conftest*
1427 fi
1428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1429   echo "$ac_t""yes" 1>&6
1430   true
1431 else
1432   echo "$ac_t""no" 1>&6
1433
1434     echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1435     warn_b=yes
1436
1437 fi
1438
1439
1440     CPPFLAGS="$CPPFLAGS $DEFINES"
1441     CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1442     LDFLAGS=$EXTRA_LIBES
1443
1444     
1445     
1446     LD='$(CXX)'
1447     
1448
1449
1450     # ugh autoconf
1451         if $CXX --version | grep '2\.[78]' > /dev/null ||
1452         $CXX --version | grep 'egcs' > /dev/null
1453         then
1454             true
1455     else
1456             
1457     echo "configure: warning: can\'t find g++ 2.7" 1>&2
1458     warn_b=yes
1459
1460     fi
1461
1462
1463     echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1464 echo "configure:1465: checking whether explicit instantiation is needed" >&5
1465 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1466   echo $ac_n "(cached) $ac_c" 1>&6
1467 else
1468   cat > conftest.$ac_ext <<EOF
1469 #line 1470 "configure"
1470 #include "confdefs.h"
1471
1472     template <class T> struct foo { static int baz; };
1473     template <class T> int foo<T>::baz = 1;
1474     
1475 int main() {
1476  return foo<int>::baz; 
1477 ; return 0; }
1478 EOF
1479 if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1480   rm -rf conftest*
1481   lily_cv_need_explicit_instantiation=no
1482 else
1483   echo "configure: failed program was:" >&5
1484   cat conftest.$ac_ext >&5
1485   rm -rf conftest*
1486   lily_cv_need_explicit_instantiation=yes
1487 fi
1488 rm -f conftest*
1489 fi
1490
1491 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1492     if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1493         cat >> confdefs.h <<\EOF
1494 #define NEED_EXPLICIT_INSTANTIATION 1
1495 EOF
1496
1497     fi
1498
1499
1500     # ugh, automake: we want (and check for) bison
1501     for ac_prog in 'bison -y' byacc
1502 do
1503 # Extract the first word of "$ac_prog", so it can be a program name with args.
1504 set dummy $ac_prog; ac_word=$2
1505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1506 echo "configure:1507: checking for $ac_word" >&5
1507 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1508   echo $ac_n "(cached) $ac_c" 1>&6
1509 else
1510   if test -n "$YACC"; then
1511   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1512 else
1513   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1514   for ac_dir in $PATH; do
1515     test -z "$ac_dir" && ac_dir=.
1516     if test -f $ac_dir/$ac_word; then
1517       ac_cv_prog_YACC="$ac_prog"
1518       break
1519     fi
1520   done
1521   IFS="$ac_save_ifs"
1522 fi
1523 fi
1524 YACC="$ac_cv_prog_YACC"
1525 if test -n "$YACC"; then
1526   echo "$ac_t""$YACC" 1>&6
1527 else
1528   echo "$ac_t""no" 1>&6
1529 fi
1530
1531 test -n "$YACC" && break
1532 done
1533 test -n "$YACC" || YACC="yacc"
1534
1535     # ugh, automake: we want (and check for) flex
1536     # AC_PROG_LEX
1537     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
1538
1539     # AC_DECL_YYTEXT
1540     # ugh, ugh
1541     ac_cv_prog_lex_root=lex.yy
1542
1543     for ac_prog in bison
1544 do
1545 # Extract the first word of "$ac_prog", so it can be a program name with args.
1546 set dummy $ac_prog; ac_word=$2
1547 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1548 echo "configure:1549: checking for $ac_word" >&5
1549 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1550   echo $ac_n "(cached) $ac_c" 1>&6
1551 else
1552   if test -n "$BISON"; then
1553   ac_cv_prog_BISON="$BISON" # Let the user override the test.
1554 else
1555   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1556   for ac_dir in $PATH; do
1557     test -z "$ac_dir" && ac_dir=.
1558     if test -f $ac_dir/$ac_word; then
1559       ac_cv_prog_BISON="$ac_prog"
1560       break
1561     fi
1562   done
1563   IFS="$ac_save_ifs"
1564 fi
1565 fi
1566 BISON="$ac_cv_prog_BISON"
1567 if test -n "$BISON"; then
1568   echo "$ac_t""$BISON" 1>&6
1569 else
1570   echo "$ac_t""no" 1>&6
1571 fi
1572
1573 test -n "$BISON" && break
1574 done
1575 test -n "$BISON" || BISON="error"
1576
1577     for ac_prog in flex
1578 do
1579 # Extract the first word of "$ac_prog", so it can be a program name with args.
1580 set dummy $ac_prog; ac_word=$2
1581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1582 echo "configure:1583: checking for $ac_word" >&5
1583 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1584   echo $ac_n "(cached) $ac_c" 1>&6
1585 else
1586   if test -n "$FLEX"; then
1587   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
1588 else
1589   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1590   for ac_dir in $PATH; do
1591     test -z "$ac_dir" && ac_dir=.
1592     if test -f $ac_dir/$ac_word; then
1593       ac_cv_prog_FLEX="$ac_prog"
1594       break
1595     fi
1596   done
1597   IFS="$ac_save_ifs"
1598 fi
1599 fi
1600 FLEX="$ac_cv_prog_FLEX"
1601 if test -n "$FLEX"; then
1602   echo "$ac_t""$FLEX" 1>&6
1603 else
1604   echo "$ac_t""no" 1>&6
1605 fi
1606
1607 test -n "$FLEX" && break
1608 done
1609 test -n "$FLEX" || FLEX="error"
1610
1611     
1612         result="`echo \"$BISON\" | grep echo`"
1613         if test "x$BISON" = "xerror" -o "x$result" != "x"; then
1614                 
1615     echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
1616     warn_b=yes
1617
1618         fi
1619
1620     
1621         result="`echo \"$FLEX\" | grep echo`"
1622         if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
1623                 
1624     echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
1625     warn_b=yes
1626
1627         fi
1628
1629
1630     if test $BISON != "error"; then
1631         bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
1632         if test $bison_version -lt 25; then
1633             
1634     echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
1635     warn_b=yes
1636
1637         fi      
1638     fi
1639
1640     
1641     
1642
1643
1644     for ac_prog in ar
1645 do
1646 # Extract the first word of "$ac_prog", so it can be a program name with args.
1647 set dummy $ac_prog; ac_word=$2
1648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1649 echo "configure:1650: checking for $ac_word" >&5
1650 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1651   echo $ac_n "(cached) $ac_c" 1>&6
1652 else
1653   if test -n "$AR"; then
1654   ac_cv_prog_AR="$AR" # Let the user override the test.
1655 else
1656   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1657   for ac_dir in $PATH; do
1658     test -z "$ac_dir" && ac_dir=.
1659     if test -f $ac_dir/$ac_word; then
1660       ac_cv_prog_AR="$ac_prog"
1661       break
1662     fi
1663   done
1664   IFS="$ac_save_ifs"
1665 fi
1666 fi
1667 AR="$ac_cv_prog_AR"
1668 if test -n "$AR"; then
1669   echo "$ac_t""$AR" 1>&6
1670 else
1671   echo "$ac_t""no" 1>&6
1672 fi
1673
1674 test -n "$AR" && break
1675 done
1676 test -n "$AR" || AR="error"
1677
1678     # Extract the first word of "ranlib", so it can be a program name with args.
1679 set dummy ranlib; ac_word=$2
1680 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1681 echo "configure:1682: checking for $ac_word" >&5
1682 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1683   echo $ac_n "(cached) $ac_c" 1>&6
1684 else
1685   if test -n "$RANLIB"; then
1686   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1687 else
1688   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1689   for ac_dir in $PATH; do
1690     test -z "$ac_dir" && ac_dir=.
1691     if test -f $ac_dir/$ac_word; then
1692       ac_cv_prog_RANLIB="ranlib"
1693       break
1694     fi
1695   done
1696   IFS="$ac_save_ifs"
1697   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1698 fi
1699 fi
1700 RANLIB="$ac_cv_prog_RANLIB"
1701 if test -n "$RANLIB"; then
1702   echo "$ac_t""$RANLIB" 1>&6
1703 else
1704   echo "$ac_t""no" 1>&6
1705 fi
1706
1707
1708     
1709     
1710
1711 # AC_STEPMAKE_LIBTOOL
1712
1713     lang=English
1714     ALL_LINGUAS="en nl"
1715
1716     # with/enable ??
1717     # Check whether --with-localedir or --without-localedir was given.
1718 if test "${with_localedir+set}" = set; then
1719   withval="$with_localedir"
1720   localedir=$with_localedir
1721 else
1722   localedir='${prefix}/share/locale'
1723 fi
1724
1725
1726     # Check whether --with-lang or --without-lang was given.
1727 if test "${with_lang+set}" = set; then
1728   withval="$with_lang"
1729   language=$with_lang
1730 else
1731   language=English
1732 fi
1733
1734
1735     echo $ac_n "checking language""... $ac_c" 1>&6
1736 echo "configure:1737: checking language" >&5    
1737     case "$language" in
1738       En* | en* | Am* | am* | US* | us*)
1739             lang=English;;
1740       NL | nl | Du* | du* | Ned* | ned*)
1741             lang=Dutch;;
1742       "")
1743             lang=English;;
1744       *)
1745             lang=unknown;;
1746     esac
1747     echo "$ac_t""$lang" 1>&6
1748
1749     if test "$lang" = "unknown" ; then
1750         
1751     echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
1752     warn_b=yes
1753
1754     fi
1755
1756
1757
1758     DIR_LOCALEDIR=${localedir}
1759     presome=${prefix}
1760     if test "$prefix" = "NONE"; then
1761             presome=${ac_default_prefix}
1762     fi
1763     DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
1764     
1765     
1766     cat >> confdefs.h <<EOF
1767 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
1768 EOF
1769
1770
1771     echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
1772 echo "configure:1773: checking for gettext in -lintl" >&5
1773 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
1774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1775   echo $ac_n "(cached) $ac_c" 1>&6
1776 else
1777   ac_save_LIBS="$LIBS"
1778 LIBS="-lintl  $LIBS"
1779 cat > conftest.$ac_ext <<EOF
1780 #line 1781 "configure"
1781 #include "confdefs.h"
1782 /* Override any gcc2 internal prototype to avoid an error.  */
1783 #ifdef __cplusplus
1784 extern "C"
1785 #endif
1786 /* We use char because int might match the return type of a gcc2
1787     builtin and then its argument prototype would still apply.  */
1788 char gettext();
1789
1790 int main() {
1791 gettext()
1792 ; return 0; }
1793 EOF
1794 if { (eval echo configure:1795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1795   rm -rf conftest*
1796   eval "ac_cv_lib_$ac_lib_var=yes"
1797 else
1798   echo "configure: failed program was:" >&5
1799   cat conftest.$ac_ext >&5
1800   rm -rf conftest*
1801   eval "ac_cv_lib_$ac_lib_var=no"
1802 fi
1803 rm -f conftest*
1804 LIBS="$ac_save_LIBS"
1805
1806 fi
1807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1808   echo "$ac_t""yes" 1>&6
1809     ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1810     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1811   cat >> confdefs.h <<EOF
1812 #define $ac_tr_lib 1
1813 EOF
1814
1815   LIBS="-lintl $LIBS"
1816
1817 else
1818   echo "$ac_t""no" 1>&6
1819 fi
1820
1821     for ac_func in gettext
1822 do
1823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1824 echo "configure:1825: checking for $ac_func" >&5
1825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1826   echo $ac_n "(cached) $ac_c" 1>&6
1827 else
1828   cat > conftest.$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1831 /* System header to define __stub macros and hopefully few prototypes,
1832     which can conflict with char $ac_func(); below.  */
1833 #include <assert.h>
1834 /* Override any gcc2 internal prototype to avoid an error.  */
1835 #ifdef __cplusplus
1836 extern "C"
1837 #endif
1838 /* We use char because int might match the return type of a gcc2
1839     builtin and then its argument prototype would still apply.  */
1840 char $ac_func();
1841
1842 int main() {
1843
1844 /* The GNU C library defines this for functions which it implements
1845     to always fail with ENOSYS.  Some functions are actually named
1846     something starting with __ and the normal name is an alias.  */
1847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1848 choke me
1849 #else
1850 $ac_func();
1851 #endif
1852
1853 ; return 0; }
1854 EOF
1855 if { (eval echo configure:1856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1856   rm -rf conftest*
1857   eval "ac_cv_func_$ac_func=yes"
1858 else
1859   echo "configure: failed program was:" >&5
1860   cat conftest.$ac_ext >&5
1861   rm -rf conftest*
1862   eval "ac_cv_func_$ac_func=no"
1863 fi
1864 rm -f conftest*
1865 fi
1866
1867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1868   echo "$ac_t""yes" 1>&6
1869     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1870   cat >> confdefs.h <<EOF
1871 #define $ac_tr_func 1
1872 EOF
1873  
1874 else
1875   echo "$ac_t""no" 1>&6
1876 fi
1877 done
1878
1879
1880
1881     # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
1882     for ac_prog in msgfmt
1883 do
1884 # Extract the first word of "$ac_prog", so it can be a program name with args.
1885 set dummy $ac_prog; ac_word=$2
1886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1887 echo "configure:1888: checking for $ac_word" >&5
1888 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1889   echo $ac_n "(cached) $ac_c" 1>&6
1890 else
1891   if test -n "$MSGFMT"; then
1892   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1893 else
1894   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1895   for ac_dir in $PATH; do
1896     test -z "$ac_dir" && ac_dir=.
1897     if test -f $ac_dir/$ac_word; then
1898       ac_cv_prog_MSGFMT="$ac_prog"
1899       break
1900     fi
1901   done
1902   IFS="$ac_save_ifs"
1903 fi
1904 fi
1905 MSGFMT="$ac_cv_prog_MSGFMT"
1906 if test -n "$MSGFMT"; then
1907   echo "$ac_t""$MSGFMT" 1>&6
1908 else
1909   echo "$ac_t""no" 1>&6
1910 fi
1911
1912 test -n "$MSGFMT" && break
1913 done
1914 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
1915
1916     echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
1917 echo "configure:1918: checking whether msgfmt accepts -o" >&5
1918     msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
1919     if test "$msgfmt_output" = ""; then
1920         echo "$ac_t""yes" 1>&6
1921     else
1922         # urg
1923         MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
1924         echo "$ac_t""no" 1>&6
1925         
1926     echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
1927     warn_b=yes
1928
1929     fi
1930     if test ! -n "$MSGFMT"; then
1931         
1932     echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
1933     warn_b=yes
1934
1935     fi
1936
1937
1938     # Check whether --enable-tex-prefix or --disable-tex-prefix was given.
1939 if test "${enable_tex_prefix+set}" = set; then
1940   enableval="$enable_tex_prefix"
1941   TEXPREFIX=$enableval
1942 else
1943   TEXPREFIX=auto 
1944 fi
1945
1946     
1947     # Check whether --enable-tex-dir or --disable-tex-dir was given.
1948 if test "${enable_tex_dir+set}" = set; then
1949   enableval="$enable_tex_dir"
1950   TEXDIR=$enableval
1951 else
1952   TEXDIR=auto 
1953 fi
1954
1955
1956     # Check whether --enable-mf-dir or --disable-mf-dir was given.
1957 if test "${enable_mf_dir+set}" = set; then
1958   enableval="$enable_mf_dir"
1959   MFDIR=$enableval
1960 else
1961   MFDIR=auto
1962 fi
1963
1964
1965     if test "x$TEXPREFIX" = xauto ; then
1966         
1967     
1968
1969     echo $ac_n "checking TeX/MF root dir directory""... $ac_c" 1>&6
1970 echo "configure:1971: checking TeX/MF root dir directory" >&5    
1971
1972     find_root_prefix="$prefix"
1973     
1974
1975     test "x$find_root_prefix" = xNONE && find_root_prefix="$ac_default_prefix"
1976     find_texpostfix="";
1977     for postfix in "/lib/tex/" "/lib/texmf" "/lib" "/tex" "/texmf"; do
1978         find_texprefix="$find_root_prefix$postfix"
1979         if test -d $find_texprefix; then
1980             find_texpostfix=$postfix
1981             break;
1982         fi
1983     done
1984     
1985     if test "x$find_texpostfix" = x; then
1986         find_texpostfix='/lib/texmf/tex'
1987         
1988     echo "configure: warning: Cannot determine the TeX-directory. Please use --enable-tex-prefix" 1>&2
1989     warn_b=yes
1990
1991     fi
1992
1993     find_texprefix="$find_root_prefix/$find_texpostfix"
1994
1995     # only assign if variablename not empty
1996     if test x != "x$TEXPREFIX"; then
1997         TEXPREFIX='${prefix}'/"$find_texpostfix"
1998     fi
1999     echo "$ac_t""$find_texprefix" 1>&6
2000
2001
2002     else
2003      find_texprefix=$TEXPREFIX
2004     fi
2005
2006     if test "x$MFDIR" = xauto; then
2007         
2008     
2009     
2010     echo $ac_n "checking MF input directory""... $ac_c" 1>&6
2011 echo "configure:2012: checking MF input directory" >&5    
2012     find_dirdir=`(cd $find_texprefix; 
2013       $FIND ./ -type d -a -name source -print |sort|head -1|sed 's#^\./##')`
2014     
2015
2016     if test "x$find_dirdir" = x; then
2017        find_dirdir="/source";
2018        
2019     echo "configure: warning: Cannot determine MF input subdirectory. Please set from command-line" 1>&2
2020     warn_b=yes
2021
2022         true
2023     fi
2024     MFDIR=$find_dirdir
2025     echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
2026
2027     MFDIR="$TEXPREFIX/$MFDIR"
2028
2029     fi
2030         
2031     if test "x$TEXDIR" = xauto ; then
2032         
2033     
2034     
2035     echo $ac_n "checking TeX input directory""... $ac_c" 1>&6
2036 echo "configure:2037: checking TeX input directory" >&5    
2037     find_dirdir=`(cd $find_texprefix; 
2038       $FIND ./ -type d -a -name tex -print |sort|head -1|sed 's#^\./##')`
2039     
2040
2041     if test "x$find_dirdir" = x; then
2042        find_dirdir="/tex";
2043        
2044     echo "configure: warning: Cannot determine TeX input subdirectory. Please set from command-line" 1>&2
2045     warn_b=yes
2046
2047         true
2048     fi
2049     TEXDIR=$find_dirdir
2050     echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
2051
2052     TEXDIR="$TEXPREFIX/$TEXDIR"
2053
2054     fi
2055
2056     
2057     
2058     
2059
2060
2061     if test "x$YODL" = "x"; then 
2062         for ac_prog in yodl
2063 do
2064 # Extract the first word of "$ac_prog", so it can be a program name with args.
2065 set dummy $ac_prog; ac_word=$2
2066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2067 echo "configure:2068: checking for $ac_word" >&5
2068 if eval "test \"`echo '$''{'ac_cv_prog_YODL'+set}'`\" = set"; then
2069   echo $ac_n "(cached) $ac_c" 1>&6
2070 else
2071   if test -n "$YODL"; then
2072   ac_cv_prog_YODL="$YODL" # Let the user override the test.
2073 else
2074   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2075   for ac_dir in $PATH; do
2076     test -z "$ac_dir" && ac_dir=.
2077     if test -f $ac_dir/$ac_word; then
2078       ac_cv_prog_YODL="$ac_prog"
2079       break
2080     fi
2081   done
2082   IFS="$ac_save_ifs"
2083 fi
2084 fi
2085 YODL="$ac_cv_prog_YODL"
2086 if test -n "$YODL"; then
2087   echo "$ac_t""$YODL" 1>&6
2088 else
2089   echo "$ac_t""no" 1>&6
2090 fi
2091
2092 test -n "$YODL" && break
2093 done
2094 test -n "$YODL" || YODL="-echo no yodl"
2095
2096         for ac_prog in yodl2html
2097 do
2098 # Extract the first word of "$ac_prog", so it can be a program name with args.
2099 set dummy $ac_prog; ac_word=$2
2100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2101 echo "configure:2102: checking for $ac_word" >&5
2102 if eval "test \"`echo '$''{'ac_cv_prog_YODL2HTML'+set}'`\" = set"; then
2103   echo $ac_n "(cached) $ac_c" 1>&6
2104 else
2105   if test -n "$YODL2HTML"; then
2106   ac_cv_prog_YODL2HTML="$YODL2HTML" # Let the user override the test.
2107 else
2108   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2109   for ac_dir in $PATH; do
2110     test -z "$ac_dir" && ac_dir=.
2111     if test -f $ac_dir/$ac_word; then
2112       ac_cv_prog_YODL2HTML="$ac_prog"
2113       break
2114     fi
2115   done
2116   IFS="$ac_save_ifs"
2117 fi
2118 fi
2119 YODL2HTML="$ac_cv_prog_YODL2HTML"
2120 if test -n "$YODL2HTML"; then
2121   echo "$ac_t""$YODL2HTML" 1>&6
2122 else
2123   echo "$ac_t""no" 1>&6
2124 fi
2125
2126 test -n "$YODL2HTML" && break
2127 done
2128 test -n "$YODL2HTML" || YODL2HTML="-echo no yodl"
2129
2130         for ac_prog in yodl2latex
2131 do
2132 # Extract the first word of "$ac_prog", so it can be a program name with args.
2133 set dummy $ac_prog; ac_word=$2
2134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2135 echo "configure:2136: checking for $ac_word" >&5
2136 if eval "test \"`echo '$''{'ac_cv_prog_YODL2LATEX'+set}'`\" = set"; then
2137   echo $ac_n "(cached) $ac_c" 1>&6
2138 else
2139   if test -n "$YODL2LATEX"; then
2140   ac_cv_prog_YODL2LATEX="$YODL2LATEX" # Let the user override the test.
2141 else
2142   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2143   for ac_dir in $PATH; do
2144     test -z "$ac_dir" && ac_dir=.
2145     if test -f $ac_dir/$ac_word; then
2146       ac_cv_prog_YODL2LATEX="$ac_prog"
2147       break
2148     fi
2149   done
2150   IFS="$ac_save_ifs"
2151 fi
2152 fi
2153 YODL2LATEX="$ac_cv_prog_YODL2LATEX"
2154 if test -n "$YODL2LATEX"; then
2155   echo "$ac_t""$YODL2LATEX" 1>&6
2156 else
2157   echo "$ac_t""no" 1>&6
2158 fi
2159
2160 test -n "$YODL2LATEX" && break
2161 done
2162
2163         for ac_prog in yodl2man
2164 do
2165 # Extract the first word of "$ac_prog", so it can be a program name with args.
2166 set dummy $ac_prog; ac_word=$2
2167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2168 echo "configure:2169: checking for $ac_word" >&5
2169 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MAN'+set}'`\" = set"; then
2170   echo $ac_n "(cached) $ac_c" 1>&6
2171 else
2172   if test -n "$YODL2MAN"; then
2173   ac_cv_prog_YODL2MAN="$YODL2MAN" # Let the user override the test.
2174 else
2175   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2176   for ac_dir in $PATH; do
2177     test -z "$ac_dir" && ac_dir=.
2178     if test -f $ac_dir/$ac_word; then
2179       ac_cv_prog_YODL2MAN="$ac_prog"
2180       break
2181     fi
2182   done
2183   IFS="$ac_save_ifs"
2184 fi
2185 fi
2186 YODL2MAN="$ac_cv_prog_YODL2MAN"
2187 if test -n "$YODL2MAN"; then
2188   echo "$ac_t""$YODL2MAN" 1>&6
2189 else
2190   echo "$ac_t""no" 1>&6
2191 fi
2192
2193 test -n "$YODL2MAN" && break
2194 done
2195 test -n "$YODL2MAN" || YODL2MAN="-echo no yodl"
2196
2197         for ac_prog in yodl2msless
2198 do
2199 # Extract the first word of "$ac_prog", so it can be a program name with args.
2200 set dummy $ac_prog; ac_word=$2
2201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2202 echo "configure:2203: checking for $ac_word" >&5
2203 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MSLESS'+set}'`\" = set"; then
2204   echo $ac_n "(cached) $ac_c" 1>&6
2205 else
2206   if test -n "$YODL2MSLESS"; then
2207   ac_cv_prog_YODL2MSLESS="$YODL2MSLESS" # Let the user override the test.
2208 else
2209   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2210   for ac_dir in $PATH; do
2211     test -z "$ac_dir" && ac_dir=.
2212     if test -f $ac_dir/$ac_word; then
2213       ac_cv_prog_YODL2MSLESS="$ac_prog"
2214       break
2215     fi
2216   done
2217   IFS="$ac_save_ifs"
2218 fi
2219 fi
2220 YODL2MSLESS="$ac_cv_prog_YODL2MSLESS"
2221 if test -n "$YODL2MSLESS"; then
2222   echo "$ac_t""$YODL2MSLESS" 1>&6
2223 else
2224   echo "$ac_t""no" 1>&6
2225 fi
2226
2227 test -n "$YODL2MSLESS" && break
2228 done
2229 test -n "$YODL2MSLESS" || YODL2MSLESS="-echo no yodl"
2230
2231         for ac_prog in yodl2texinfo
2232 do
2233 # Extract the first word of "$ac_prog", so it can be a program name with args.
2234 set dummy $ac_prog; ac_word=$2
2235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_word" >&5
2237 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TEXINFO'+set}'`\" = set"; then
2238   echo $ac_n "(cached) $ac_c" 1>&6
2239 else
2240   if test -n "$YODL2TEXINFO"; then
2241   ac_cv_prog_YODL2TEXINFO="$YODL2TEXINFO" # Let the user override the test.
2242 else
2243   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2244   for ac_dir in $PATH; do
2245     test -z "$ac_dir" && ac_dir=.
2246     if test -f $ac_dir/$ac_word; then
2247       ac_cv_prog_YODL2TEXINFO="$ac_prog"
2248       break
2249     fi
2250   done
2251   IFS="$ac_save_ifs"
2252 fi
2253 fi
2254 YODL2TEXINFO="$ac_cv_prog_YODL2TEXINFO"
2255 if test -n "$YODL2TEXINFO"; then
2256   echo "$ac_t""$YODL2TEXINFO" 1>&6
2257 else
2258   echo "$ac_t""no" 1>&6
2259 fi
2260
2261 test -n "$YODL2TEXINFO" && break
2262 done
2263 test -n "$YODL2TEXINFO" || YODL2TEXINFO="-echo no yodl"
2264
2265         for ac_prog in yodl2txt
2266 do
2267 # Extract the first word of "$ac_prog", so it can be a program name with args.
2268 set dummy $ac_prog; ac_word=$2
2269 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2270 echo "configure:2271: checking for $ac_word" >&5
2271 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TXT'+set}'`\" = set"; then
2272   echo $ac_n "(cached) $ac_c" 1>&6
2273 else
2274   if test -n "$YODL2TXT"; then
2275   ac_cv_prog_YODL2TXT="$YODL2TXT" # Let the user override the test.
2276 else
2277   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2278   for ac_dir in $PATH; do
2279     test -z "$ac_dir" && ac_dir=.
2280     if test -f $ac_dir/$ac_word; then
2281       ac_cv_prog_YODL2TXT="$ac_prog"
2282       break
2283     fi
2284   done
2285   IFS="$ac_save_ifs"
2286 fi
2287 fi
2288 YODL2TXT="$ac_cv_prog_YODL2TXT"
2289 if test -n "$YODL2TXT"; then
2290   echo "$ac_t""$YODL2TXT" 1>&6
2291 else
2292   echo "$ac_t""no" 1>&6
2293 fi
2294
2295 test -n "$YODL2TXT" && break
2296 done
2297 test -n "$YODL2TXT" || YODL2TXT="-echo no yodl"
2298
2299     else
2300         
2301         
2302         
2303         
2304         
2305         
2306         
2307         export YODL YODL2HTML YODL2LATEX YODL2MAN YODL2MSLESS YODL2TEXINFO YODL2TXT
2308     fi
2309     if test "x$YODL" = "-echo no yodl"; then
2310         
2311     echo "configure: warning: Did not find YODL (Yodl is Yet Oneother Document Language, see http://www.cs.uu.nl/~hanwen/yodl)" 1>&2
2312     warn_b=yes
2313
2314     fi    
2315
2316
2317
2318
2319         result="`echo \"$FIND\" | grep echo`"
2320         if test "x$FIND" = "xerror" -o "x$result" != "x"; then
2321                 
2322     echo "configure: warning: can\'t find find. Please use --enable-tex-dir" 1>&2
2323     warn_b=yes
2324
2325         fi
2326
2327
2328 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2329 echo "configure:2330: checking for 8-bit clean memcmp" >&5
2330 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2331   echo $ac_n "(cached) $ac_c" 1>&6
2332 else
2333   if test "$cross_compiling" = yes; then
2334   ac_cv_func_memcmp_clean=no
2335 else
2336   cat > conftest.$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2339 #ifdef __cplusplus
2340 extern "C" void exit(int);
2341 #endif
2342
2343 main()
2344 {
2345   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2346   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2347 }
2348
2349 EOF
2350 if { (eval echo configure:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2351 then
2352   ac_cv_func_memcmp_clean=yes
2353 else
2354   echo "configure: failed program was:" >&5
2355   cat conftest.$ac_ext >&5
2356   rm -fr conftest*
2357   ac_cv_func_memcmp_clean=no
2358 fi
2359 rm -fr conftest*
2360 fi
2361
2362 fi
2363
2364 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2365 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2366
2367 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2368 echo "configure:2369: checking for vprintf" >&5
2369 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2370   echo $ac_n "(cached) $ac_c" 1>&6
2371 else
2372   cat > conftest.$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2375 /* System header to define __stub macros and hopefully few prototypes,
2376     which can conflict with char vprintf(); below.  */
2377 #include <assert.h>
2378 /* Override any gcc2 internal prototype to avoid an error.  */
2379 #ifdef __cplusplus
2380 extern "C"
2381 #endif
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 vprintf();
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_vprintf) || defined (__stub___vprintf)
2392 choke me
2393 #else
2394 vprintf();
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; then
2400   rm -rf conftest*
2401   eval "ac_cv_func_vprintf=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_vprintf=no"
2407 fi
2408 rm -f conftest*
2409 fi
2410
2411 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2412   echo "$ac_t""yes" 1>&6
2413   cat >> confdefs.h <<\EOF
2414 #define HAVE_VPRINTF 1
2415 EOF
2416
2417 else
2418   echo "$ac_t""no" 1>&6
2419 fi
2420
2421 if test "$ac_cv_func_vprintf" != yes; then
2422 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2423 echo "configure:2424: checking for _doprnt" >&5
2424 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2425   echo $ac_n "(cached) $ac_c" 1>&6
2426 else
2427   cat > conftest.$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2430 /* System header to define __stub macros and hopefully few prototypes,
2431     which can conflict with char _doprnt(); below.  */
2432 #include <assert.h>
2433 /* Override any gcc2 internal prototype to avoid an error.  */
2434 #ifdef __cplusplus
2435 extern "C"
2436 #endif
2437 /* We use char because int might match the return type of a gcc2
2438     builtin and then its argument prototype would still apply.  */
2439 char _doprnt();
2440
2441 int main() {
2442
2443 /* The GNU C library defines this for functions which it implements
2444     to always fail with ENOSYS.  Some functions are actually named
2445     something starting with __ and the normal name is an alias.  */
2446 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2447 choke me
2448 #else
2449 _doprnt();
2450 #endif
2451
2452 ; return 0; }
2453 EOF
2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2455   rm -rf conftest*
2456   eval "ac_cv_func__doprnt=yes"
2457 else
2458   echo "configure: failed program was:" >&5
2459   cat conftest.$ac_ext >&5
2460   rm -rf conftest*
2461   eval "ac_cv_func__doprnt=no"
2462 fi
2463 rm -f conftest*
2464 fi
2465
2466 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2467   echo "$ac_t""yes" 1>&6
2468   cat >> confdefs.h <<\EOF
2469 #define HAVE_DOPRNT 1
2470 EOF
2471
2472 else
2473   echo "$ac_t""no" 1>&6
2474 fi
2475
2476 fi
2477
2478 for ac_func in memmem snprintf vsnprintf gettext
2479 do
2480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2481 echo "configure:2482: checking for $ac_func" >&5
2482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2483   echo $ac_n "(cached) $ac_c" 1>&6
2484 else
2485   cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 /* System header to define __stub macros and hopefully few prototypes,
2489     which can conflict with char $ac_func(); below.  */
2490 #include <assert.h>
2491 /* Override any gcc2 internal prototype to avoid an error.  */
2492 #ifdef __cplusplus
2493 extern "C"
2494 #endif
2495 /* We use char because int might match the return type of a gcc2
2496     builtin and then its argument prototype would still apply.  */
2497 char $ac_func();
2498
2499 int main() {
2500
2501 /* The GNU C library defines this for functions which it implements
2502     to always fail with ENOSYS.  Some functions are actually named
2503     something starting with __ and the normal name is an alias.  */
2504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2505 choke me
2506 #else
2507 $ac_func();
2508 #endif
2509
2510 ; return 0; }
2511 EOF
2512 if { (eval echo configure:2513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2513   rm -rf conftest*
2514   eval "ac_cv_func_$ac_func=yes"
2515 else
2516   echo "configure: failed program was:" >&5
2517   cat conftest.$ac_ext >&5
2518   rm -rf conftest*
2519   eval "ac_cv_func_$ac_func=no"
2520 fi
2521 rm -f conftest*
2522 fi
2523
2524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2525   echo "$ac_t""yes" 1>&6
2526     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2527   cat >> confdefs.h <<EOF
2528 #define $ac_tr_func 1
2529 EOF
2530  
2531 else
2532   echo "$ac_t""no" 1>&6
2533 fi
2534 done
2535
2536
2537 cat >> confdefs.h <<EOF
2538 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2539 EOF
2540
2541 cat >> confdefs.h <<EOF
2542 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
2543 EOF
2544
2545
2546 for ac_prog in makeinfo
2547 do
2548 # Extract the first word of "$ac_prog", so it can be a program name with args.
2549 set dummy $ac_prog; ac_word=$2
2550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2551 echo "configure:2552: checking for $ac_word" >&5
2552 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2553   echo $ac_n "(cached) $ac_c" 1>&6
2554 else
2555   if test -n "$MAKEINFO"; then
2556   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2557 else
2558   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2559   for ac_dir in $PATH; do
2560     test -z "$ac_dir" && ac_dir=.
2561     if test -f $ac_dir/$ac_word; then
2562       ac_cv_prog_MAKEINFO="$ac_prog"
2563       break
2564     fi
2565   done
2566   IFS="$ac_save_ifs"
2567 fi
2568 fi
2569 MAKEINFO="$ac_cv_prog_MAKEINFO"
2570 if test -n "$MAKEINFO"; then
2571   echo "$ac_t""$MAKEINFO" 1>&6
2572 else
2573   echo "$ac_t""no" 1>&6
2574 fi
2575
2576 test -n "$MAKEINFO" && break
2577 done
2578 test -n "$MAKEINFO" || MAKEINFO="error"
2579
2580
2581         result="`echo \"$YODL2TEXINFO\" | grep echo`"
2582         if test "x$YODL2TEXINFO" = "xerror" -o "x$result" != "x"; then
2583                 
2584     echo "configure: warning: can\'t find yodl. You should install Yodl 1.30.2 or better" 1>&2
2585     warn_b=yes
2586
2587         fi
2588
2589
2590
2591     trap '' 1 2 15
2592 cat > confcache <<\EOF
2593 # This file is a shell script that caches the results of configure
2594 # tests run on this system so they can be shared between configure
2595 # scripts and configure runs.  It is not useful on other systems.
2596 # If it contains results you don't want to keep, you may remove or edit it.
2597 #
2598 # By default, configure uses ./config.cache as the cache file,
2599 # creating it if it does not exist already.  You can give configure
2600 # the --cache-file=FILE option to use a different cache file; that is
2601 # what configure does when it calls configure scripts in
2602 # subdirectories, so they share the cache.
2603 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2604 # config.status only pays attention to the cache file if you give it the
2605 # --recheck option to rerun configure.
2606 #
2607 EOF
2608 # The following way of writing the cache mishandles newlines in values,
2609 # but we know of no workaround that is simple, portable, and efficient.
2610 # So, don't put newlines in cache variables' values.
2611 # Ultrix sh set writes to stderr and can't be redirected directly,
2612 # and sets the high bit in the cache file unless we assign to the vars.
2613 (set) 2>&1 |
2614   case `(ac_space=' '; set) 2>&1` in
2615   *ac_space=\ *)
2616     # `set' does not quote correctly, so add quotes (double-quote substitution
2617     # turns \\\\ into \\, and sed turns \\ into \).
2618     sed -n \
2619       -e "s/'/'\\\\''/g" \
2620       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2621     ;;
2622   *)
2623     # `set' quotes correctly as required by POSIX, so do not add quotes.
2624     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2625     ;;
2626   esac >> confcache
2627 if cmp -s $cache_file confcache; then
2628   :
2629 else
2630   if test -w $cache_file; then
2631     echo "updating cache $cache_file"
2632     cat confcache > $cache_file
2633   else
2634     echo "not updating unwritable cache $cache_file"
2635   fi
2636 fi
2637 rm -f confcache
2638
2639 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2640
2641 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2642 # Let make expand exec_prefix.
2643 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2644
2645 # Any assignment to VPATH causes Sun make to only execute
2646 # the first set of double-colon rules, so remove it if not needed.
2647 # If there is a colon in the path, we need to keep it.
2648 if test "x$srcdir" = x.; then
2649   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2650 fi
2651
2652 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2653
2654 DEFS=-DHAVE_CONFIG_H
2655
2656 # Without the "./", some shells look in PATH for config.status.
2657 : ${CONFIG_STATUS=./config.status}
2658
2659 echo creating $CONFIG_STATUS
2660 rm -f $CONFIG_STATUS
2661 cat > $CONFIG_STATUS <<EOF
2662 #! /bin/sh
2663 # Generated automatically by configure.
2664 # Run this file to recreate the current configuration.
2665 # This directory was configured as follows,
2666 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2667 #
2668 # $0 $ac_configure_args
2669 #
2670 # Compiler output produced by configure, useful for debugging
2671 # configure, is in ./config.log if it exists.
2672
2673 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2674 for ac_option
2675 do
2676   case "\$ac_option" in
2677   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2678     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2679     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2680   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2681     echo "$CONFIG_STATUS generated by autoconf version 2.12"
2682     exit 0 ;;
2683   -help | --help | --hel | --he | --h)
2684     echo "\$ac_cs_usage"; exit 0 ;;
2685   *) echo "\$ac_cs_usage"; exit 1 ;;
2686   esac
2687 done
2688
2689 ac_given_srcdir=$srcdir
2690
2691 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2692 EOF
2693 cat >> $CONFIG_STATUS <<EOF
2694
2695 # Protect against being on the right side of a sed subst in config.status.
2696 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2697  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2698 $ac_vpsub
2699 $extrasub
2700 s%@CFLAGS@%$CFLAGS%g
2701 s%@CPPFLAGS@%$CPPFLAGS%g
2702 s%@CXXFLAGS@%$CXXFLAGS%g
2703 s%@DEFS@%$DEFS%g
2704 s%@LDFLAGS@%$LDFLAGS%g
2705 s%@LIBS@%$LIBS%g
2706 s%@exec_prefix@%$exec_prefix%g
2707 s%@prefix@%$prefix%g
2708 s%@program_transform_name@%$program_transform_name%g
2709 s%@bindir@%$bindir%g
2710 s%@sbindir@%$sbindir%g
2711 s%@libexecdir@%$libexecdir%g
2712 s%@datadir@%$datadir%g
2713 s%@sysconfdir@%$sysconfdir%g
2714 s%@sharedstatedir@%$sharedstatedir%g
2715 s%@localstatedir@%$localstatedir%g
2716 s%@libdir@%$libdir%g
2717 s%@includedir@%$includedir%g
2718 s%@oldincludedir@%$oldincludedir%g
2719 s%@infodir@%$infodir%g
2720 s%@mandir@%$mandir%g
2721 s%@package@%$package%g
2722 s%@PACKAGE@%$PACKAGE%g
2723 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
2724 s%@package_depth@%$package_depth%g
2725 s%@AUTOGENERATE@%$AUTOGENERATE%g
2726 s%@absolute_builddir@%$absolute_builddir%g
2727 s%@stepmake@%$stepmake%g
2728 s%@STATE_VECTOR@%$STATE_VECTOR%g
2729 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
2730 s%@host@%$host%g
2731 s%@host_alias@%$host_alias%g
2732 s%@host_cpu@%$host_cpu%g
2733 s%@host_vendor@%$host_vendor%g
2734 s%@host_os@%$host_os%g
2735 s%@MAKE@%$MAKE%g
2736 s%@FIND@%$FIND%g
2737 s%@TAR@%$TAR%g
2738 s%@BASH@%$BASH%g
2739 s%@PYTHON@%$PYTHON%g
2740 s%@DOTEXE@%$DOTEXE%g
2741 s%@ZIP@%$ZIP%g
2742 s%@LN@%$LN%g
2743 s%@LN_S@%$LN_S%g
2744 s%@INSTALL@%$INSTALL%g
2745 s%@DIR_DATADIR@%$DIR_DATADIR%g
2746 s%@subdirs@%$subdirs%g
2747 s%@CC@%$CC%g
2748 s%@LD@%$LD%g
2749 s%@ICFLAGS@%$ICFLAGS%g
2750 s%@ILDFLAGS@%$ILDFLAGS%g
2751 s%@DEFINES@%$DEFINES%g
2752 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
2753 s%@CXX@%$CXX%g
2754 s%@CXXCPP@%$CXXCPP%g
2755 s%@YACC@%$YACC%g
2756 s%@BISON@%$BISON%g
2757 s%@FLEX@%$FLEX%g
2758 s%@AR@%$AR%g
2759 s%@RANLIB@%$RANLIB%g
2760 s%@localedir@%$localedir%g
2761 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
2762 s%@MSGFMT@%$MSGFMT%g
2763 s%@TEXPREFIX@%$TEXPREFIX%g
2764 s%@TEXDIR@%$TEXDIR%g
2765 s%@MFDIR@%$MFDIR%g
2766 s%@YODL@%$YODL%g
2767 s%@YODL2HTML@%$YODL2HTML%g
2768 s%@YODL2LATEX@%$YODL2LATEX%g
2769 s%@YODL2MAN@%$YODL2MAN%g
2770 s%@YODL2MSLESS@%$YODL2MSLESS%g
2771 s%@YODL2TEXINFO@%$YODL2TEXINFO%g
2772 s%@YODL2TXT@%$YODL2TXT%g
2773 s%@LIBOBJS@%$LIBOBJS%g
2774 s%@MAKEINFO@%$MAKEINFO%g
2775
2776 CEOF
2777 EOF
2778
2779 cat >> $CONFIG_STATUS <<\EOF
2780
2781 # Split the substitutions into bite-sized pieces for seds with
2782 # small command number limits, like on Digital OSF/1 and HP-UX.
2783 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2784 ac_file=1 # Number of current file.
2785 ac_beg=1 # First line for current file.
2786 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2787 ac_more_lines=:
2788 ac_sed_cmds=""
2789 while $ac_more_lines; do
2790   if test $ac_beg -gt 1; then
2791     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2792   else
2793     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2794   fi
2795   if test ! -s conftest.s$ac_file; then
2796     ac_more_lines=false
2797     rm -f conftest.s$ac_file
2798   else
2799     if test -z "$ac_sed_cmds"; then
2800       ac_sed_cmds="sed -f conftest.s$ac_file"
2801     else
2802       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2803     fi
2804     ac_file=`expr $ac_file + 1`
2805     ac_beg=$ac_end
2806     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2807   fi
2808 done
2809 if test -z "$ac_sed_cmds"; then
2810   ac_sed_cmds=cat
2811 fi
2812 EOF
2813
2814 cat >> $CONFIG_STATUS <<EOF
2815
2816 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
2817 EOF
2818 cat >> $CONFIG_STATUS <<\EOF
2819 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2820   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2821   case "$ac_file" in
2822   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2823        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2824   *) ac_file_in="${ac_file}.in" ;;
2825   esac
2826
2827   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2828
2829   # Remove last slash and all that follows it.  Not all systems have dirname.
2830   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2831   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2832     # The file is in a subdirectory.
2833     test ! -d "$ac_dir" && mkdir "$ac_dir"
2834     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2835     # A "../" for each directory in $ac_dir_suffix.
2836     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2837   else
2838     ac_dir_suffix= ac_dots=
2839   fi
2840
2841   case "$ac_given_srcdir" in
2842   .)  srcdir=.
2843       if test -z "$ac_dots"; then top_srcdir=.
2844       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2845   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2846   *) # Relative path.
2847     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2848     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2849   esac
2850
2851
2852   echo creating "$ac_file"
2853   rm -f "$ac_file"
2854   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2855   case "$ac_file" in
2856   *Makefile*) ac_comsub="1i\\
2857 # $configure_input" ;;
2858   *) ac_comsub= ;;
2859   esac
2860
2861   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2862   sed -e "$ac_comsub
2863 s%@configure_input@%$configure_input%g
2864 s%@srcdir@%$srcdir%g
2865 s%@top_srcdir@%$top_srcdir%g
2866 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2867 fi; done
2868 rm -f conftest.s*
2869
2870 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2871 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2872 #
2873 # ac_d sets the value in "#define NAME VALUE" lines.
2874 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2875 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2876 ac_dC='\3'
2877 ac_dD='%g'
2878 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2879 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2880 ac_uB='\([      ]\)%\1#\2define\3'
2881 ac_uC=' '
2882 ac_uD='\4%g'
2883 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2884 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2885 ac_eB='$%\1#\2define\3'
2886 ac_eC=' '
2887 ac_eD='%g'
2888
2889 if test "${CONFIG_HEADERS+set}" != set; then
2890 EOF
2891 cat >> $CONFIG_STATUS <<EOF
2892   CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
2893 EOF
2894 cat >> $CONFIG_STATUS <<\EOF
2895 fi
2896 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2897   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2898   case "$ac_file" in
2899   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2900        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2901   *) ac_file_in="${ac_file}.in" ;;
2902   esac
2903
2904   echo creating $ac_file
2905
2906   rm -f conftest.frag conftest.in conftest.out
2907   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2908   cat $ac_file_inputs > conftest.in
2909
2910 EOF
2911
2912 # Transform confdefs.h into a sed script conftest.vals that substitutes
2913 # the proper values into config.h.in to produce config.h.  And first:
2914 # Protect against being on the right side of a sed subst in config.status.
2915 # Protect against being in an unquoted here document in config.status.
2916 rm -f conftest.vals
2917 cat > conftest.hdr <<\EOF
2918 s/[\\&%]/\\&/g
2919 s%[\\$`]%\\&%g
2920 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2921 s%ac_d%ac_u%gp
2922 s%ac_u%ac_e%gp
2923 EOF
2924 sed -n -f conftest.hdr confdefs.h > conftest.vals
2925 rm -f conftest.hdr
2926
2927 # This sed command replaces #undef with comments.  This is necessary, for
2928 # example, in the case of _POSIX_SOURCE, which is predefined and required
2929 # on some systems where configure will not decide to define it.
2930 cat >> conftest.vals <<\EOF
2931 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2932 EOF
2933
2934 # Break up conftest.vals because some shells have a limit on
2935 # the size of here documents, and old seds have small limits too.
2936
2937 rm -f conftest.tail
2938 while :
2939 do
2940   ac_lines=`grep -c . conftest.vals`
2941   # grep -c gives empty output for an empty file on some AIX systems.
2942   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2943   # Write a limited-size here document to conftest.frag.
2944   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2945   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2946   echo 'CEOF
2947   sed -f conftest.frag conftest.in > conftest.out
2948   rm -f conftest.in
2949   mv conftest.out conftest.in
2950 ' >> $CONFIG_STATUS
2951   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2952   rm -f conftest.vals
2953   mv conftest.tail conftest.vals
2954 done
2955 rm -f conftest.vals
2956
2957 cat >> $CONFIG_STATUS <<\EOF
2958   rm -f conftest.frag conftest.h
2959   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2960   cat conftest.in >> conftest.h
2961   rm -f conftest.in
2962   if cmp -s $ac_file conftest.h 2>/dev/null; then
2963     echo "$ac_file is unchanged"
2964     rm -f conftest.h
2965   else
2966     # Remove last slash and all that follows it.  Not all systems have dirname.
2967       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2968       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2969       # The file is in a subdirectory.
2970       test ! -d "$ac_dir" && mkdir "$ac_dir"
2971     fi
2972     rm -f $ac_file
2973     mv conftest.h $ac_file
2974   fi
2975 fi; done
2976
2977 EOF
2978 cat >> $CONFIG_STATUS <<EOF
2979
2980 EOF
2981 cat >> $CONFIG_STATUS <<\EOF
2982
2983 exit 0
2984 EOF
2985 chmod +x $CONFIG_STATUS
2986 rm -fr confdefs* $ac_clean_files
2987 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2988
2989 if test "$no_recursion" != yes; then
2990
2991   # Remove --cache-file and --srcdir arguments so they do not pile up.
2992   ac_sub_configure_args=
2993   ac_prev=
2994   for ac_arg in $ac_configure_args; do
2995     if test -n "$ac_prev"; then
2996       ac_prev=
2997       continue
2998     fi
2999     case "$ac_arg" in
3000     -cache-file | --cache-file | --cache-fil | --cache-fi \
3001     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3002       ac_prev=cache_file ;;
3003     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3004     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3005       ;;
3006     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3007       ac_prev=srcdir ;;
3008     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3009       ;;
3010     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3011     esac
3012   done
3013
3014   for ac_config_dir in stepmake; do
3015
3016     # Do not complain, so a configure script can configure whichever
3017     # parts of a large source tree are present.
3018     if test ! -d $srcdir/$ac_config_dir; then
3019       continue
3020     fi
3021
3022     echo configuring in $ac_config_dir
3023
3024     case "$srcdir" in
3025     .) ;;
3026     *)
3027       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3028       else
3029         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3030       fi
3031       ;;
3032     esac
3033
3034     ac_popdir=`pwd`
3035     cd $ac_config_dir
3036
3037       # A "../" for each directory in /$ac_config_dir.
3038       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3039
3040     case "$srcdir" in
3041     .) # No --srcdir option.  We are building in place.
3042       ac_sub_srcdir=$srcdir ;;
3043     /*) # Absolute path.
3044       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3045     *) # Relative path.
3046       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3047     esac
3048
3049     # Check for guested configure; otherwise get Cygnus style configure.
3050     if test -f $ac_sub_srcdir/configure; then
3051       ac_sub_configure=$ac_sub_srcdir/configure
3052     elif test -f $ac_sub_srcdir/configure.in; then
3053       ac_sub_configure=$ac_configure
3054     else
3055       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3056       ac_sub_configure=
3057     fi
3058
3059     # The recursion is here.
3060     if test -n "$ac_sub_configure"; then
3061
3062       # Make the cache file name correct relative to the subdirectory.
3063       case "$cache_file" in
3064       /*) ac_sub_cache_file=$cache_file ;;
3065       *) # Relative path.
3066         ac_sub_cache_file="$ac_dots$cache_file" ;;
3067       esac
3068
3069       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3070       # The eval makes quoting arguments work.
3071       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3072       then :
3073       else
3074         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3075       fi
3076     fi
3077
3078     cd $ac_popdir
3079   done
3080 fi
3081
3082
3083     rm -f GNUmakefile
3084     cp make/toplevel.make.in ./GNUmakefile
3085     chmod 444 GNUmakefile
3086
3087